plotly.js 2.16.2 → 2.16.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/README.md +3 -3
- package/dist/README.md +23 -23
- package/dist/plotly-basic.js +15 -5
- package/dist/plotly-basic.min.js +2 -2
- package/dist/plotly-cartesian.js +15 -5
- package/dist/plotly-cartesian.min.js +2 -2
- package/dist/plotly-finance.js +15 -5
- package/dist/plotly-finance.min.js +2 -2
- package/dist/plotly-geo-assets.js +2 -2
- package/dist/plotly-geo.js +15 -5
- package/dist/plotly-geo.min.js +2 -2
- package/dist/plotly-gl2d.js +15 -5
- package/dist/plotly-gl2d.min.js +2 -2
- package/dist/plotly-gl3d.js +15 -5
- package/dist/plotly-gl3d.min.js +2 -2
- package/dist/plotly-mapbox.js +101 -42
- package/dist/plotly-mapbox.min.js +2 -2
- package/dist/plotly-strict.js +101 -42
- package/dist/plotly-strict.min.js +2 -2
- package/dist/plotly-with-meta.js +101 -42
- package/dist/plotly.js +101 -42
- package/dist/plotly.min.js +2 -2
- package/package.json +1 -1
- package/src/components/colorscale/index.js +1 -1
- package/src/components/fx/hover.js +12 -2
- package/src/traces/scattermapbox/plot.js +87 -38
- package/src/version.js +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js v2.16.
|
|
2
|
+
* plotly.js v2.16.4
|
|
3
3
|
* Copyright 2012-2022, Plotly, Inc.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Licensed under the MIT license
|
|
@@ -68,7 +68,7 @@ exports.topojson = saneTopojson;
|
|
|
68
68
|
'use strict';
|
|
69
69
|
|
|
70
70
|
// package version injected by `npm run preprocess`
|
|
71
|
-
exports.version = '2.16.
|
|
71
|
+
exports.version = '2.16.4';
|
|
72
72
|
|
|
73
73
|
},{}]},{},[16])(16)
|
|
74
74
|
});
|
package/dist/plotly-geo.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js (geo) v2.16.
|
|
2
|
+
* plotly.js (geo) v2.16.4
|
|
3
3
|
* Copyright 2012-2022, Plotly, Inc.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Licensed under the MIT license
|
|
@@ -37284,7 +37284,7 @@ module.exports = {
|
|
|
37284
37284
|
calc: _dereq_('./calc'),
|
|
37285
37285
|
|
|
37286
37286
|
// ./scales.js is required in lib/coerce.js ;
|
|
37287
|
-
// it needs to be a separate module to avoid circular
|
|
37287
|
+
// it needs to be a separate module to avoid a circular dependency
|
|
37288
37288
|
scales: scales.scales,
|
|
37289
37289
|
defaultScale: scales.defaultScale,
|
|
37290
37290
|
getScale: scales.get,
|
|
@@ -42472,7 +42472,17 @@ function createHoverText(hoverData, opts) {
|
|
|
42472
42472
|
var xa = c0.xa;
|
|
42473
42473
|
var ya = c0.ya;
|
|
42474
42474
|
var axLetter = hovermode.charAt(0);
|
|
42475
|
-
var
|
|
42475
|
+
var axLabel = axLetter + 'Label';
|
|
42476
|
+
var t0 = c0[axLabel];
|
|
42477
|
+
|
|
42478
|
+
// search in array for the label
|
|
42479
|
+
if(t0 === undefined && xa.type === 'multicategory') {
|
|
42480
|
+
for(var q = 0; q < hoverData.length; q++) {
|
|
42481
|
+
t0 = hoverData[q][axLabel];
|
|
42482
|
+
if(t0 !== undefined) break;
|
|
42483
|
+
}
|
|
42484
|
+
}
|
|
42485
|
+
|
|
42476
42486
|
var outerContainerBB = getBoundingClientRect(gd, outerContainer);
|
|
42477
42487
|
var outerTop = outerContainerBB.top;
|
|
42478
42488
|
var outerWidth = outerContainerBB.width;
|
|
@@ -43651,7 +43661,7 @@ function getCoord(axLetter, winningPoint, fullLayout) {
|
|
|
43651
43661
|
|
|
43652
43662
|
var cd0 = winningPoint.cd[0];
|
|
43653
43663
|
|
|
43654
|
-
if(ax.type === 'category') val = ax._categoriesMap[val];
|
|
43664
|
+
if(ax.type === 'category' || ax.type === 'multicategory') val = ax._categoriesMap[val];
|
|
43655
43665
|
else if(ax.type === 'date') {
|
|
43656
43666
|
var periodalignment = winningPoint.trace[axLetter + 'periodalignment'];
|
|
43657
43667
|
if(periodalignment) {
|
|
@@ -98183,7 +98193,7 @@ function getSortFunc(opts, d2c) {
|
|
|
98183
98193
|
'use strict';
|
|
98184
98194
|
|
|
98185
98195
|
// package version injected by `npm run preprocess`
|
|
98186
|
-
exports.version = '2.16.
|
|
98196
|
+
exports.version = '2.16.4';
|
|
98187
98197
|
|
|
98188
98198
|
},{}]},{},[8])(8)
|
|
98189
98199
|
});
|