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-cartesian.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js (cartesian) v2.16.
|
|
2
|
+
* plotly.js (cartesian) v2.16.3
|
|
3
3
|
* Copyright 2012-2022, Plotly, Inc.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Licensed under the MIT license
|
|
@@ -37889,7 +37889,17 @@ function createHoverText(hoverData, opts) {
|
|
|
37889
37889
|
var xa = c0.xa;
|
|
37890
37890
|
var ya = c0.ya;
|
|
37891
37891
|
var axLetter = hovermode.charAt(0);
|
|
37892
|
-
var
|
|
37892
|
+
var axLabel = axLetter + 'Label';
|
|
37893
|
+
var t0 = c0[axLabel];
|
|
37894
|
+
|
|
37895
|
+
// search in array for the label
|
|
37896
|
+
if(t0 === undefined && xa.type === 'multicategory') {
|
|
37897
|
+
for(var q = 0; q < hoverData.length; q++) {
|
|
37898
|
+
t0 = hoverData[q][axLabel];
|
|
37899
|
+
if(t0 !== undefined) break;
|
|
37900
|
+
}
|
|
37901
|
+
}
|
|
37902
|
+
|
|
37893
37903
|
var outerContainerBB = getBoundingClientRect(gd, outerContainer);
|
|
37894
37904
|
var outerTop = outerContainerBB.top;
|
|
37895
37905
|
var outerWidth = outerContainerBB.width;
|
|
@@ -39068,7 +39078,7 @@ function getCoord(axLetter, winningPoint, fullLayout) {
|
|
|
39068
39078
|
|
|
39069
39079
|
var cd0 = winningPoint.cd[0];
|
|
39070
39080
|
|
|
39071
|
-
if(ax.type === 'category') val = ax._categoriesMap[val];
|
|
39081
|
+
if(ax.type === 'category' || ax.type === 'multicategory') val = ax._categoriesMap[val];
|
|
39072
39082
|
else if(ax.type === 'date') {
|
|
39073
39083
|
var periodalignment = winningPoint.trace[axLetter + 'periodalignment'];
|
|
39074
39084
|
if(periodalignment) {
|
|
@@ -105651,7 +105661,7 @@ function getSortFunc(opts, d2c) {
|
|
|
105651
105661
|
'use strict';
|
|
105652
105662
|
|
|
105653
105663
|
// package version injected by `npm run preprocess`
|
|
105654
|
-
exports.version = '2.16.
|
|
105664
|
+
exports.version = '2.16.3';
|
|
105655
105665
|
|
|
105656
105666
|
},{}]},{},[15])(15)
|
|
105657
105667
|
});
|