Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7beccfb

Browse files
committed
2.31.1
1 parent 7e63310 commit 7beccfb

24 files changed

+330
-148
lines changed

‎dist/README.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ The main plotly.js bundles weight in at:
4646
| 8.2 MB | 3.5 MB | 1 MB | 8.5 MB |
4747

4848
#### CDN links
49-
> https://cdn.plot.ly/plotly-2.31.0.js
49+
> https://cdn.plot.ly/plotly-2.31.1.js
5050
51-
> https://cdn.plot.ly/plotly-2.31.0.min.js
51+
> https://cdn.plot.ly/plotly-2.31.1.min.js
5252
5353

5454
#### npm packages
@@ -91,12 +91,12 @@ The `basic` partial bundle contains trace modules `bar`, `pie` and `scatter`.
9191

9292
| Raw size | Minified size | Minified + gzip size |
9393
|------|-----------------|------------------------|
94-
| 2.6 MB | 987.8 kB | 330.7 kB |
94+
| 2.6 MB | 988.1 kB | 330.8 kB |
9595

9696
#### CDN links
97-
> https://cdn.plot.ly/plotly-basic-2.31.0.js
97+
> https://cdn.plot.ly/plotly-basic-2.31.1.js
9898
99-
> https://cdn.plot.ly/plotly-basic-2.31.0.min.js
99+
> https://cdn.plot.ly/plotly-basic-2.31.1.min.js
100100
101101

102102
#### npm packages
@@ -114,12 +114,12 @@ The `cartesian` partial bundle contains trace modules `bar`, `box`, `contour`, `
114114

115115
| Raw size | Minified size | Minified + gzip size |
116116
|------|-----------------|------------------------|
117-
| 3.3 MB | 1.2 MB | 418.2 kB |
117+
| 3.3 MB | 1.2 MB | 418.3 kB |
118118

119119
#### CDN links
120-
> https://cdn.plot.ly/plotly-cartesian-2.31.0.js
120+
> https://cdn.plot.ly/plotly-cartesian-2.31.1.js
121121
122-
> https://cdn.plot.ly/plotly-cartesian-2.31.0.min.js
122+
> https://cdn.plot.ly/plotly-cartesian-2.31.1.min.js
123123
124124

125125
#### npm packages
@@ -140,9 +140,9 @@ The `geo` partial bundle contains trace modules `choropleth`, `scatter` and `sca
140140
| 3.1 MB | 1.1 MB | 373.4 kB |
141141

142142
#### CDN links
143-
> https://cdn.plot.ly/plotly-geo-2.31.0.js
143+
> https://cdn.plot.ly/plotly-geo-2.31.1.js
144144
145-
> https://cdn.plot.ly/plotly-geo-2.31.0.min.js
145+
> https://cdn.plot.ly/plotly-geo-2.31.1.min.js
146146
147147

148148
#### npm packages
@@ -160,12 +160,12 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`,
160160

161161
| Raw size | Minified size | Minified + gzip size |
162162
|------|-----------------|------------------------|
163-
| 3.6 MB | 1.5 MB | 494.1 kB |
163+
| 3.6 MB | 1.5 MB | 494.2 kB |
164164

165165
#### CDN links
166-
> https://cdn.plot.ly/plotly-gl3d-2.31.0.js
166+
> https://cdn.plot.ly/plotly-gl3d-2.31.1.js
167167
168-
> https://cdn.plot.ly/plotly-gl3d-2.31.0.min.js
168+
> https://cdn.plot.ly/plotly-gl3d-2.31.1.min.js
169169
170170

171171
#### npm packages
@@ -183,12 +183,12 @@ The `gl2d` partial bundle contains trace modules `heatmapgl`, `parcoords`, `poin
183183

184184
| Raw size | Minified size | Minified + gzip size |
185185
|------|-----------------|------------------------|
186-
| 4.4 MB | 1.9 MB | 601 kB |
186+
| 4.4 MB | 1.9 MB | 601.1 kB |
187187

188188
#### CDN links
189-
> https://cdn.plot.ly/plotly-gl2d-2.31.0.js
189+
> https://cdn.plot.ly/plotly-gl2d-2.31.1.js
190190
191-
> https://cdn.plot.ly/plotly-gl2d-2.31.0.min.js
191+
> https://cdn.plot.ly/plotly-gl2d-2.31.1.min.js
192192
193193

194194
#### npm packages
@@ -206,12 +206,12 @@ The `mapbox` partial bundle contains trace modules `choroplethmapbox`, `densitym
206206

207207
| Raw size | Minified size | Minified + gzip size |
208208
|------|-----------------|------------------------|
209-
| 4.4 MB | 1.8 MB | 532.3 kB |
209+
| 4.4 MB | 1.8 MB | 532.4 kB |
210210

211211
#### CDN links
212-
> https://cdn.plot.ly/plotly-mapbox-2.31.0.js
212+
> https://cdn.plot.ly/plotly-mapbox-2.31.1.js
213213
214-
> https://cdn.plot.ly/plotly-mapbox-2.31.0.min.js
214+
> https://cdn.plot.ly/plotly-mapbox-2.31.1.min.js
215215
216216

217217
#### npm packages
@@ -229,12 +229,12 @@ The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funne
229229

230230
| Raw size | Minified size | Minified + gzip size |
231231
|------|-----------------|------------------------|
232-
| 2.8 MB | 1.1 MB | 359.9 kB |
232+
| 2.8 MB | 1.1 MB | 360 kB |
233233

234234
#### CDN links
235-
> https://cdn.plot.ly/plotly-finance-2.31.0.js
235+
> https://cdn.plot.ly/plotly-finance-2.31.1.js
236236
237-
> https://cdn.plot.ly/plotly-finance-2.31.0.min.js
237+
> https://cdn.plot.ly/plotly-finance-2.31.1.min.js
238238
239239

240240
#### npm packages
@@ -255,9 +255,9 @@ The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `ca
255255
| 8.7 MB | 3.8 MB | 1.1 MB |
256256

257257
#### CDN links
258-
> https://cdn.plot.ly/plotly-strict-2.31.0.js
258+
> https://cdn.plot.ly/plotly-strict-2.31.1.js
259259
260-
> https://cdn.plot.ly/plotly-strict-2.31.0.min.js
260+
> https://cdn.plot.ly/plotly-strict-2.31.1.min.js
261261
262262

263263
#### npm packages

‎dist/plotly-basic.js

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v2.31.0
2+
* plotly.js (basic) v2.31.1
33
* Copyright 2012-2024, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -7936,6 +7936,9 @@ var cartesianScatterPoints = {
79367936
scattergl: true,
79377937
splom: true
79387938
};
7939+
function distanceSort(a, b) {
7940+
return a.distance - b.distance;
7941+
}
79397942

79407943
// fx.hover: highlight data on hover
79417944
// evt can be a mousemove event, or an object with data about what points
@@ -8134,14 +8137,18 @@ function _hover(gd, evt, subplot, noHoverEvent, eventTarget) {
81348137
var hovermode = evt.hovermode || fullLayout.hovermode;
81358138
var hovermodeHasX = (hovermode || '').charAt(0) === 'x';
81368139
var hovermodeHasY = (hovermode || '').charAt(0) === 'y';
8140+
var firstXaxis;
8141+
var firstYaxis;
81378142
if (hasCartesian && (hovermodeHasX || hovermodeHasY) && hoversubplots === 'axis') {
81388143
var subplotsLength = subplots.length;
81398144
for (var p = 0; p < subplotsLength; p++) {
81408145
spId = subplots[p];
81418146
if (plots[spId]) {
81428147
// 'cartesian' case
81438148

8144-
var subplotsWith = Axes.getFromId(gd, spId, hovermodeHasX ? 'x' : 'y')._subplotsWith;
8149+
firstXaxis = Axes.getFromId(gd, spId, 'x');
8150+
firstYaxis = Axes.getFromId(gd, spId, 'y');
8151+
var subplotsWith = (hovermodeHasX ? firstXaxis : firstYaxis)._subplotsWith;
81458152
if (subplotsWith && subplotsWith.length) {
81468153
for (var q = 0; q < subplotsWith.length; q++) {
81478154
pushUnique(subplots, subplotsWith[q]);
@@ -8485,6 +8492,8 @@ function _hover(gd, evt, subplot, noHoverEvent, eventTarget) {
84858492
var minDistance = Infinity;
84868493
var thisSpikeDistance;
84878494
for (var i = 0; i < pointsData.length; i++) {
8495+
if (firstXaxis && firstXaxis._id !== pointsData[i].xa._id) continue;
8496+
if (firstYaxis && firstYaxis._id !== pointsData[i].ya._id) continue;
84888497
thisSpikeDistance = pointsData[i].spikeDistance;
84898498
if (spikeOnWinning && i === 0) thisSpikeDistance = -Infinity;
84908499
if (thisSpikeDistance <= minDistance && thisSpikeDistance <= spikedistance) {
@@ -8520,11 +8529,18 @@ function _hover(gd, evt, subplot, noHoverEvent, eventTarget) {
85208529
};
85218530
gd._spikepoints = newspikepoints;
85228531
var sortHoverData = function () {
8523-
if (hoversubplots !== 'axis') {
8524-
hoverData.sort(function (d1, d2) {
8525-
return d1.distance - d2.distance;
8526-
});
8527-
}
8532+
// When sorting keep the points in the main subplot at the top
8533+
// then add points in other subplots
8534+
8535+
var hoverDataInSubplot = hoverData.filter(function (a) {
8536+
return firstXaxis && firstXaxis._id === a.xa._id && firstYaxis && firstYaxis._id === a.ya._id;
8537+
});
8538+
var hoverDataOutSubplot = hoverData.filter(function (a) {
8539+
return !(firstXaxis && firstXaxis._id === a.xa._id && firstYaxis && firstYaxis._id === a.ya._id);
8540+
});
8541+
hoverDataInSubplot.sort(distanceSort);
8542+
hoverDataOutSubplot.sort(distanceSort);
8543+
hoverData = hoverDataInSubplot.concat(hoverDataOutSubplot);
85288544

85298545
// move period positioned points and box/bar-like traces to the end of the list
85308546
hoverData = orderRangePoints(hoverData, hovermode);
@@ -44666,7 +44682,8 @@ function plotOne(gd, plotinfo, cdSubplot, transitionOpts, makeOnCompleteCallback
4466644682
var name = _module.name;
4466744683
var categories = Registry.modules[name].categories;
4466844684
if (categories.svg) {
44669-
var className = (_module.layerName || name + 'layer') + (z ? Number(z) + 1 : '');
44685+
var classBaseName = _module.layerName || name + 'layer';
44686+
var className = classBaseName + (z ? Number(z) + 1 : '');
4467044687
var plotMethod = _module.plot;
4467144688

4467244689
// plot all visible traces of this type on this subplot at once
@@ -44677,7 +44694,7 @@ function plotOne(gd, plotinfo, cdSubplot, transitionOpts, makeOnCompleteCallback
4467744694
cdSubplot = cdModuleAndOthers[1];
4467844695
if (cdModule.length) {
4467944696
layerData.push({
44680-
i: traceLayerClasses.indexOf(className),
44697+
i: traceLayerClasses.indexOf(classBaseName),
4468144698
zorder: z,
4468244699
className: className,
4468344700
plotMethod: plotMethod,
@@ -61631,7 +61648,7 @@ function getSortFunc(opts, d2c) {
6163161648

6163261649

6163361650
// package version injected by `npm run preprocess`
61634-
exports.version = '2.31.0';
61651+
exports.version = '2.31.1';
6163561652

6163661653
/***/ }),
6163761654

‎dist/plotly-basic.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/plotly-cartesian.js

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (cartesian) v2.31.0
2+
* plotly.js (cartesian) v2.31.1
33
* Copyright 2012-2024, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -8026,6 +8026,9 @@ var cartesianScatterPoints = {
80268026
scattergl: true,
80278027
splom: true
80288028
};
8029+
function distanceSort(a, b) {
8030+
return a.distance - b.distance;
8031+
}
80298032

80308033
// fx.hover: highlight data on hover
80318034
// evt can be a mousemove event, or an object with data about what points
@@ -8224,14 +8227,18 @@ function _hover(gd, evt, subplot, noHoverEvent, eventTarget) {
82248227
var hovermode = evt.hovermode || fullLayout.hovermode;
82258228
var hovermodeHasX = (hovermode || '').charAt(0) === 'x';
82268229
var hovermodeHasY = (hovermode || '').charAt(0) === 'y';
8230+
var firstXaxis;
8231+
var firstYaxis;
82278232
if (hasCartesian && (hovermodeHasX || hovermodeHasY) && hoversubplots === 'axis') {
82288233
var subplotsLength = subplots.length;
82298234
for (var p = 0; p < subplotsLength; p++) {
82308235
spId = subplots[p];
82318236
if (plots[spId]) {
82328237
// 'cartesian' case
82338238

8234-
var subplotsWith = Axes.getFromId(gd, spId, hovermodeHasX ? 'x' : 'y')._subplotsWith;
8239+
firstXaxis = Axes.getFromId(gd, spId, 'x');
8240+
firstYaxis = Axes.getFromId(gd, spId, 'y');
8241+
var subplotsWith = (hovermodeHasX ? firstXaxis : firstYaxis)._subplotsWith;
82358242
if (subplotsWith && subplotsWith.length) {
82368243
for (var q = 0; q < subplotsWith.length; q++) {
82378244
pushUnique(subplots, subplotsWith[q]);
@@ -8575,6 +8582,8 @@ function _hover(gd, evt, subplot, noHoverEvent, eventTarget) {
85758582
var minDistance = Infinity;
85768583
var thisSpikeDistance;
85778584
for (var i = 0; i < pointsData.length; i++) {
8585+
if (firstXaxis && firstXaxis._id !== pointsData[i].xa._id) continue;
8586+
if (firstYaxis && firstYaxis._id !== pointsData[i].ya._id) continue;
85788587
thisSpikeDistance = pointsData[i].spikeDistance;
85798588
if (spikeOnWinning && i === 0) thisSpikeDistance = -Infinity;
85808589
if (thisSpikeDistance <= minDistance && thisSpikeDistance <= spikedistance) {
@@ -8610,11 +8619,18 @@ function _hover(gd, evt, subplot, noHoverEvent, eventTarget) {
86108619
};
86118620
gd._spikepoints = newspikepoints;
86128621
var sortHoverData = function () {
8613-
if (hoversubplots !== 'axis') {
8614-
hoverData.sort(function (d1, d2) {
8615-
return d1.distance - d2.distance;
8616-
});
8617-
}
8622+
// When sorting keep the points in the main subplot at the top
8623+
// then add points in other subplots
8624+
8625+
var hoverDataInSubplot = hoverData.filter(function (a) {
8626+
return firstXaxis && firstXaxis._id === a.xa._id && firstYaxis && firstYaxis._id === a.ya._id;
8627+
});
8628+
var hoverDataOutSubplot = hoverData.filter(function (a) {
8629+
return !(firstXaxis && firstXaxis._id === a.xa._id && firstYaxis && firstYaxis._id === a.ya._id);
8630+
});
8631+
hoverDataInSubplot.sort(distanceSort);
8632+
hoverDataOutSubplot.sort(distanceSort);
8633+
hoverData = hoverDataInSubplot.concat(hoverDataOutSubplot);
86188634

86198635
// move period positioned points and box/bar-like traces to the end of the list
86208636
hoverData = orderRangePoints(hoverData, hovermode);
@@ -44824,7 +44840,8 @@ function plotOne(gd, plotinfo, cdSubplot, transitionOpts, makeOnCompleteCallback
4482444840
var name = _module.name;
4482544841
var categories = Registry.modules[name].categories;
4482644842
if (categories.svg) {
44827-
var className = (_module.layerName || name + 'layer') + (z ? Number(z) + 1 : '');
44843+
var classBaseName = _module.layerName || name + 'layer';
44844+
var className = classBaseName + (z ? Number(z) + 1 : '');
4482844845
var plotMethod = _module.plot;
4482944846

4483044847
// plot all visible traces of this type on this subplot at once
@@ -44835,7 +44852,7 @@ function plotOne(gd, plotinfo, cdSubplot, transitionOpts, makeOnCompleteCallback
4483544852
cdSubplot = cdModuleAndOthers[1];
4483644853
if (cdModule.length) {
4483744854
layerData.push({
44838-
i: traceLayerClasses.indexOf(className),
44855+
i: traceLayerClasses.indexOf(classBaseName),
4483944856
zorder: z,
4484044857
className: className,
4484144858
plotMethod: plotMethod,
@@ -72126,7 +72143,7 @@ function getSortFunc(opts, d2c) {
7212672143

7212772144

7212872145
// package version injected by `npm run preprocess`
72129-
exports.version = '2.31.0';
72146+
exports.version = '2.31.1';
7213072147

7213172148
/***/ }),
7213272149

‎dist/plotly-cartesian.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /