plotly.js 2.16.1 → 2.16.3
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 +22 -22
- package/dist/plotly-basic.js +14 -4
- package/dist/plotly-basic.min.js +2 -2
- package/dist/plotly-cartesian.js +14 -4
- package/dist/plotly-cartesian.min.js +2 -2
- package/dist/plotly-finance.js +14 -4
- package/dist/plotly-finance.min.js +2 -2
- package/dist/plotly-geo-assets.js +2 -2
- package/dist/plotly-geo.js +14 -4
- package/dist/plotly-geo.min.js +2 -2
- package/dist/plotly-gl2d.js +14 -4
- package/dist/plotly-gl2d.min.js +2 -2
- package/dist/plotly-gl3d.js +14 -4
- package/dist/plotly-gl3d.min.js +2 -2
- package/dist/plotly-mapbox.js +16 -6
- package/dist/plotly-mapbox.min.js +2 -2
- package/dist/plotly-strict.js +16 -6
- package/dist/plotly-strict.min.js +2 -2
- package/dist/plotly-with-meta.js +16 -6
- package/dist/plotly.js +16 -6
- package/dist/plotly.min.js +2 -2
- package/package.json +1 -1
- package/src/components/fx/hover.js +12 -2
- package/src/plots/mapbox/mapbox.js +2 -2
- package/src/version.js +1 -1
package/dist/plotly-with-meta.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js v2.16.
|
|
2
|
+
* plotly.js v2.16.3
|
|
3
3
|
* Copyright 2012-2022, Plotly, Inc.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Licensed under the MIT license
|
|
@@ -113680,7 +113680,17 @@ function createHoverText(hoverData, opts) {
|
|
|
113680
113680
|
var xa = c0.xa;
|
|
113681
113681
|
var ya = c0.ya;
|
|
113682
113682
|
var axLetter = hovermode.charAt(0);
|
|
113683
|
-
var
|
|
113683
|
+
var axLabel = axLetter + 'Label';
|
|
113684
|
+
var t0 = c0[axLabel];
|
|
113685
|
+
|
|
113686
|
+
// search in array for the label
|
|
113687
|
+
if(t0 === undefined && xa.type === 'multicategory') {
|
|
113688
|
+
for(var q = 0; q < hoverData.length; q++) {
|
|
113689
|
+
t0 = hoverData[q][axLabel];
|
|
113690
|
+
if(t0 !== undefined) break;
|
|
113691
|
+
}
|
|
113692
|
+
}
|
|
113693
|
+
|
|
113684
113694
|
var outerContainerBB = getBoundingClientRect(gd, outerContainer);
|
|
113685
113695
|
var outerTop = outerContainerBB.top;
|
|
113686
113696
|
var outerWidth = outerContainerBB.width;
|
|
@@ -114859,7 +114869,7 @@ function getCoord(axLetter, winningPoint, fullLayout) {
|
|
|
114859
114869
|
|
|
114860
114870
|
var cd0 = winningPoint.cd[0];
|
|
114861
114871
|
|
|
114862
|
-
if(ax.type === 'category') val = ax._categoriesMap[val];
|
|
114872
|
+
if(ax.type === 'category' || ax.type === 'multicategory') val = ax._categoriesMap[val];
|
|
114863
114873
|
else if(ax.type === 'date') {
|
|
114864
114874
|
var periodalignment = winningPoint.trace[axLetter + 'periodalignment'];
|
|
114865
114875
|
if(periodalignment) {
|
|
@@ -167212,7 +167222,7 @@ proto.updateFx = function(fullLayout) {
|
|
|
167212
167222
|
map.off('click', self.onClickInPanHandler);
|
|
167213
167223
|
if(selectMode(dragMode) || drawMode(dragMode)) {
|
|
167214
167224
|
map.dragPan.disable();
|
|
167215
|
-
map.on('zoomstart', self.
|
|
167225
|
+
map.on('zoomstart', self.clearOutline);
|
|
167216
167226
|
|
|
167217
167227
|
self.dragOptions.prepFn = function(e, startX, startY) {
|
|
167218
167228
|
prepSelect(e, startX, startY, self.dragOptions, dragMode);
|
|
@@ -167221,7 +167231,7 @@ proto.updateFx = function(fullLayout) {
|
|
|
167221
167231
|
dragElement.init(self.dragOptions);
|
|
167222
167232
|
} else {
|
|
167223
167233
|
map.dragPan.enable();
|
|
167224
|
-
map.off('zoomstart', self.
|
|
167234
|
+
map.off('zoomstart', self.clearOutline);
|
|
167225
167235
|
self.div.onmousedown = null;
|
|
167226
167236
|
self.div.ontouchstart = null;
|
|
167227
167237
|
self.div.removeEventListener('touchstart', self.div._ontouchstart);
|
|
@@ -233914,7 +233924,7 @@ function getSortFunc(opts, d2c) {
|
|
|
233914
233924
|
'use strict';
|
|
233915
233925
|
|
|
233916
233926
|
// package version injected by `npm run preprocess`
|
|
233917
|
-
exports.version = '2.16.
|
|
233927
|
+
exports.version = '2.16.3';
|
|
233918
233928
|
|
|
233919
233929
|
},{}],1133:[function(_dereq_,module,exports){
|
|
233920
233930
|
(function (global){(function (){
|
package/dist/plotly.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js v2.16.
|
|
2
|
+
* plotly.js v2.16.3
|
|
3
3
|
* Copyright 2012-2022, Plotly, Inc.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Licensed under the MIT license
|
|
@@ -113183,7 +113183,17 @@ function createHoverText(hoverData, opts) {
|
|
|
113183
113183
|
var xa = c0.xa;
|
|
113184
113184
|
var ya = c0.ya;
|
|
113185
113185
|
var axLetter = hovermode.charAt(0);
|
|
113186
|
-
var
|
|
113186
|
+
var axLabel = axLetter + 'Label';
|
|
113187
|
+
var t0 = c0[axLabel];
|
|
113188
|
+
|
|
113189
|
+
// search in array for the label
|
|
113190
|
+
if(t0 === undefined && xa.type === 'multicategory') {
|
|
113191
|
+
for(var q = 0; q < hoverData.length; q++) {
|
|
113192
|
+
t0 = hoverData[q][axLabel];
|
|
113193
|
+
if(t0 !== undefined) break;
|
|
113194
|
+
}
|
|
113195
|
+
}
|
|
113196
|
+
|
|
113187
113197
|
var outerContainerBB = getBoundingClientRect(gd, outerContainer);
|
|
113188
113198
|
var outerTop = outerContainerBB.top;
|
|
113189
113199
|
var outerWidth = outerContainerBB.width;
|
|
@@ -114362,7 +114372,7 @@ function getCoord(axLetter, winningPoint, fullLayout) {
|
|
|
114362
114372
|
|
|
114363
114373
|
var cd0 = winningPoint.cd[0];
|
|
114364
114374
|
|
|
114365
|
-
if(ax.type === 'category') val = ax._categoriesMap[val];
|
|
114375
|
+
if(ax.type === 'category' || ax.type === 'multicategory') val = ax._categoriesMap[val];
|
|
114366
114376
|
else if(ax.type === 'date') {
|
|
114367
114377
|
var periodalignment = winningPoint.trace[axLetter + 'periodalignment'];
|
|
114368
114378
|
if(periodalignment) {
|
|
@@ -164298,7 +164308,7 @@ proto.updateFx = function(fullLayout) {
|
|
|
164298
164308
|
map.off('click', self.onClickInPanHandler);
|
|
164299
164309
|
if(selectMode(dragMode) || drawMode(dragMode)) {
|
|
164300
164310
|
map.dragPan.disable();
|
|
164301
|
-
map.on('zoomstart', self.
|
|
164311
|
+
map.on('zoomstart', self.clearOutline);
|
|
164302
164312
|
|
|
164303
164313
|
self.dragOptions.prepFn = function(e, startX, startY) {
|
|
164304
164314
|
prepSelect(e, startX, startY, self.dragOptions, dragMode);
|
|
@@ -164307,7 +164317,7 @@ proto.updateFx = function(fullLayout) {
|
|
|
164307
164317
|
dragElement.init(self.dragOptions);
|
|
164308
164318
|
} else {
|
|
164309
164319
|
map.dragPan.enable();
|
|
164310
|
-
map.off('zoomstart', self.
|
|
164320
|
+
map.off('zoomstart', self.clearOutline);
|
|
164311
164321
|
self.div.onmousedown = null;
|
|
164312
164322
|
self.div.ontouchstart = null;
|
|
164313
164323
|
self.div.removeEventListener('touchstart', self.div._ontouchstart);
|
|
@@ -227364,7 +227374,7 @@ function getSortFunc(opts, d2c) {
|
|
|
227364
227374
|
'use strict';
|
|
227365
227375
|
|
|
227366
227376
|
// package version injected by `npm run preprocess`
|
|
227367
|
-
exports.version = '2.16.
|
|
227377
|
+
exports.version = '2.16.3';
|
|
227368
227378
|
|
|
227369
227379
|
},{}],1133:[function(_dereq_,module,exports){
|
|
227370
227380
|
(function (global){(function (){
|