Skip to content

Commit

Permalink
2.31.1
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Apr 15, 2024
1 parent 7e63310 commit 7beccfb
Show file tree
Hide file tree
Showing 24 changed files with 330 additions and 148 deletions.
48 changes: 24 additions & 24 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ The main plotly.js bundles weight in at:
| 8.2 MB | 3.5 MB | 1 MB | 8.5 MB |

#### CDN links
> https://cdn.plot.ly/plotly-2.31.0.js
> https://cdn.plot.ly/plotly-2.31.1.js
> https://cdn.plot.ly/plotly-2.31.0.min.js
> https://cdn.plot.ly/plotly-2.31.1.min.js

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

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.6 MB | 987.8 kB | 330.7 kB |
| 2.6 MB | 988.1 kB | 330.8 kB |

#### CDN links
> https://cdn.plot.ly/plotly-basic-2.31.0.js
> https://cdn.plot.ly/plotly-basic-2.31.1.js
> https://cdn.plot.ly/plotly-basic-2.31.0.min.js
> https://cdn.plot.ly/plotly-basic-2.31.1.min.js

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

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.3 MB | 1.2 MB | 418.2 kB |
| 3.3 MB | 1.2 MB | 418.3 kB |

#### CDN links
> https://cdn.plot.ly/plotly-cartesian-2.31.0.js
> https://cdn.plot.ly/plotly-cartesian-2.31.1.js
> https://cdn.plot.ly/plotly-cartesian-2.31.0.min.js
> https://cdn.plot.ly/plotly-cartesian-2.31.1.min.js

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

#### CDN links
> https://cdn.plot.ly/plotly-geo-2.31.0.js
> https://cdn.plot.ly/plotly-geo-2.31.1.js
> https://cdn.plot.ly/plotly-geo-2.31.0.min.js
> https://cdn.plot.ly/plotly-geo-2.31.1.min.js

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

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.6 MB | 1.5 MB | 494.1 kB |
| 3.6 MB | 1.5 MB | 494.2 kB |

#### CDN links
> https://cdn.plot.ly/plotly-gl3d-2.31.0.js
> https://cdn.plot.ly/plotly-gl3d-2.31.1.js
> https://cdn.plot.ly/plotly-gl3d-2.31.0.min.js
> https://cdn.plot.ly/plotly-gl3d-2.31.1.min.js

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

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 4.4 MB | 1.9 MB | 601 kB |
| 4.4 MB | 1.9 MB | 601.1 kB |

#### CDN links
> https://cdn.plot.ly/plotly-gl2d-2.31.0.js
> https://cdn.plot.ly/plotly-gl2d-2.31.1.js
> https://cdn.plot.ly/plotly-gl2d-2.31.0.min.js
> https://cdn.plot.ly/plotly-gl2d-2.31.1.min.js

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

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 4.4 MB | 1.8 MB | 532.3 kB |
| 4.4 MB | 1.8 MB | 532.4 kB |

#### CDN links
> https://cdn.plot.ly/plotly-mapbox-2.31.0.js
> https://cdn.plot.ly/plotly-mapbox-2.31.1.js
> https://cdn.plot.ly/plotly-mapbox-2.31.0.min.js
> https://cdn.plot.ly/plotly-mapbox-2.31.1.min.js

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

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.8 MB | 1.1 MB | 359.9 kB |
| 2.8 MB | 1.1 MB | 360 kB |

#### CDN links
> https://cdn.plot.ly/plotly-finance-2.31.0.js
> https://cdn.plot.ly/plotly-finance-2.31.1.js
> https://cdn.plot.ly/plotly-finance-2.31.0.min.js
> https://cdn.plot.ly/plotly-finance-2.31.1.min.js

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

#### CDN links
> https://cdn.plot.ly/plotly-strict-2.31.0.js
> https://cdn.plot.ly/plotly-strict-2.31.1.js
> https://cdn.plot.ly/plotly-strict-2.31.0.min.js
> https://cdn.plot.ly/plotly-strict-2.31.1.min.js

#### npm packages
Expand Down
37 changes: 27 additions & 10 deletions dist/plotly-basic.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* plotly.js (basic) v2.31.0
* plotly.js (basic) v2.31.1
* Copyright 2012-2024, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
Expand Down Expand Up @@ -7936,6 +7936,9 @@ var cartesianScatterPoints = {
scattergl: true,
splom: true
};
function distanceSort(a, b) {
return a.distance - b.distance;
}

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

var subplotsWith = Axes.getFromId(gd, spId, hovermodeHasX ? 'x' : 'y')._subplotsWith;
firstXaxis = Axes.getFromId(gd, spId, 'x');
firstYaxis = Axes.getFromId(gd, spId, 'y');
var subplotsWith = (hovermodeHasX ? firstXaxis : firstYaxis)._subplotsWith;
if (subplotsWith && subplotsWith.length) {
for (var q = 0; q < subplotsWith.length; q++) {
pushUnique(subplots, subplotsWith[q]);
Expand Down Expand Up @@ -8485,6 +8492,8 @@ function _hover(gd, evt, subplot, noHoverEvent, eventTarget) {
var minDistance = Infinity;
var thisSpikeDistance;
for (var i = 0; i < pointsData.length; i++) {
if (firstXaxis && firstXaxis._id !== pointsData[i].xa._id) continue;
if (firstYaxis && firstYaxis._id !== pointsData[i].ya._id) continue;
thisSpikeDistance = pointsData[i].spikeDistance;
if (spikeOnWinning && i === 0) thisSpikeDistance = -Infinity;
if (thisSpikeDistance <= minDistance && thisSpikeDistance <= spikedistance) {
Expand Down Expand Up @@ -8520,11 +8529,18 @@ function _hover(gd, evt, subplot, noHoverEvent, eventTarget) {
};
gd._spikepoints = newspikepoints;
var sortHoverData = function () {
if (hoversubplots !== 'axis') {
hoverData.sort(function (d1, d2) {
return d1.distance - d2.distance;
});
}
// When sorting keep the points in the main subplot at the top
// then add points in other subplots

var hoverDataInSubplot = hoverData.filter(function (a) {
return firstXaxis && firstXaxis._id === a.xa._id && firstYaxis && firstYaxis._id === a.ya._id;
});
var hoverDataOutSubplot = hoverData.filter(function (a) {
return !(firstXaxis && firstXaxis._id === a.xa._id && firstYaxis && firstYaxis._id === a.ya._id);
});
hoverDataInSubplot.sort(distanceSort);
hoverDataOutSubplot.sort(distanceSort);
hoverData = hoverDataInSubplot.concat(hoverDataOutSubplot);

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

// plot all visible traces of this type on this subplot at once
Expand All @@ -44677,7 +44694,7 @@ function plotOne(gd, plotinfo, cdSubplot, transitionOpts, makeOnCompleteCallback
cdSubplot = cdModuleAndOthers[1];
if (cdModule.length) {
layerData.push({
i: traceLayerClasses.indexOf(className),
i: traceLayerClasses.indexOf(classBaseName),
zorder: z,
className: className,
plotMethod: plotMethod,
Expand Down Expand Up @@ -61631,7 +61648,7 @@ function getSortFunc(opts, d2c) {


// package version injected by `npm run preprocess`
exports.version = '2.31.0';
exports.version = '2.31.1';

/***/ }),

Expand Down
4 changes: 2 additions & 2 deletions dist/plotly-basic.min.js

Large diffs are not rendered by default.

37 changes: 27 additions & 10 deletions dist/plotly-cartesian.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* plotly.js (cartesian) v2.31.0
* plotly.js (cartesian) v2.31.1
* Copyright 2012-2024, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
Expand Down Expand Up @@ -8026,6 +8026,9 @@ var cartesianScatterPoints = {
scattergl: true,
splom: true
};
function distanceSort(a, b) {
return a.distance - b.distance;
}

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

var subplotsWith = Axes.getFromId(gd, spId, hovermodeHasX ? 'x' : 'y')._subplotsWith;
firstXaxis = Axes.getFromId(gd, spId, 'x');
firstYaxis = Axes.getFromId(gd, spId, 'y');
var subplotsWith = (hovermodeHasX ? firstXaxis : firstYaxis)._subplotsWith;
if (subplotsWith && subplotsWith.length) {
for (var q = 0; q < subplotsWith.length; q++) {
pushUnique(subplots, subplotsWith[q]);
Expand Down Expand Up @@ -8575,6 +8582,8 @@ function _hover(gd, evt, subplot, noHoverEvent, eventTarget) {
var minDistance = Infinity;
var thisSpikeDistance;
for (var i = 0; i < pointsData.length; i++) {
if (firstXaxis && firstXaxis._id !== pointsData[i].xa._id) continue;
if (firstYaxis && firstYaxis._id !== pointsData[i].ya._id) continue;
thisSpikeDistance = pointsData[i].spikeDistance;
if (spikeOnWinning && i === 0) thisSpikeDistance = -Infinity;
if (thisSpikeDistance <= minDistance && thisSpikeDistance <= spikedistance) {
Expand Down Expand Up @@ -8610,11 +8619,18 @@ function _hover(gd, evt, subplot, noHoverEvent, eventTarget) {
};
gd._spikepoints = newspikepoints;
var sortHoverData = function () {
if (hoversubplots !== 'axis') {
hoverData.sort(function (d1, d2) {
return d1.distance - d2.distance;
});
}
// When sorting keep the points in the main subplot at the top
// then add points in other subplots

var hoverDataInSubplot = hoverData.filter(function (a) {
return firstXaxis && firstXaxis._id === a.xa._id && firstYaxis && firstYaxis._id === a.ya._id;
});
var hoverDataOutSubplot = hoverData.filter(function (a) {
return !(firstXaxis && firstXaxis._id === a.xa._id && firstYaxis && firstYaxis._id === a.ya._id);
});
hoverDataInSubplot.sort(distanceSort);
hoverDataOutSubplot.sort(distanceSort);
hoverData = hoverDataInSubplot.concat(hoverDataOutSubplot);

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

// plot all visible traces of this type on this subplot at once
Expand All @@ -44835,7 +44852,7 @@ function plotOne(gd, plotinfo, cdSubplot, transitionOpts, makeOnCompleteCallback
cdSubplot = cdModuleAndOthers[1];
if (cdModule.length) {
layerData.push({
i: traceLayerClasses.indexOf(className),
i: traceLayerClasses.indexOf(classBaseName),
zorder: z,
className: className,
plotMethod: plotMethod,
Expand Down Expand Up @@ -72126,7 +72143,7 @@ function getSortFunc(opts, d2c) {


// package version injected by `npm run preprocess`
exports.version = '2.31.0';
exports.version = '2.31.1';

/***/ }),

Expand Down
4 changes: 2 additions & 2 deletions dist/plotly-cartesian.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 7beccfb

Please sign in to comment.