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
package/dist/plotly-gl3d.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js (gl3d) v2.16.
|
|
2
|
+
* plotly.js (gl3d) v2.16.4
|
|
3
3
|
* Copyright 2012-2022, Plotly, Inc.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Licensed under the MIT license
|
|
@@ -24221,7 +24221,7 @@ module.exports = {
|
|
|
24221
24221
|
calc: _dereq_('./calc'),
|
|
24222
24222
|
|
|
24223
24223
|
// ./scales.js is required in lib/coerce.js ;
|
|
24224
|
-
// it needs to be a separate module to avoid circular
|
|
24224
|
+
// it needs to be a separate module to avoid a circular dependency
|
|
24225
24225
|
scales: scales.scales,
|
|
24226
24226
|
defaultScale: scales.defaultScale,
|
|
24227
24227
|
getScale: scales.get,
|
|
@@ -29409,7 +29409,17 @@ function createHoverText(hoverData, opts) {
|
|
|
29409
29409
|
var xa = c0.xa;
|
|
29410
29410
|
var ya = c0.ya;
|
|
29411
29411
|
var axLetter = hovermode.charAt(0);
|
|
29412
|
-
var
|
|
29412
|
+
var axLabel = axLetter + 'Label';
|
|
29413
|
+
var t0 = c0[axLabel];
|
|
29414
|
+
|
|
29415
|
+
// search in array for the label
|
|
29416
|
+
if(t0 === undefined && xa.type === 'multicategory') {
|
|
29417
|
+
for(var q = 0; q < hoverData.length; q++) {
|
|
29418
|
+
t0 = hoverData[q][axLabel];
|
|
29419
|
+
if(t0 !== undefined) break;
|
|
29420
|
+
}
|
|
29421
|
+
}
|
|
29422
|
+
|
|
29413
29423
|
var outerContainerBB = getBoundingClientRect(gd, outerContainer);
|
|
29414
29424
|
var outerTop = outerContainerBB.top;
|
|
29415
29425
|
var outerWidth = outerContainerBB.width;
|
|
@@ -30588,7 +30598,7 @@ function getCoord(axLetter, winningPoint, fullLayout) {
|
|
|
30588
30598
|
|
|
30589
30599
|
var cd0 = winningPoint.cd[0];
|
|
30590
30600
|
|
|
30591
|
-
if(ax.type === 'category') val = ax._categoriesMap[val];
|
|
30601
|
+
if(ax.type === 'category' || ax.type === 'multicategory') val = ax._categoriesMap[val];
|
|
30592
30602
|
else if(ax.type === 'date') {
|
|
30593
30603
|
var periodalignment = winningPoint.trace[axLetter + 'periodalignment'];
|
|
30594
30604
|
if(periodalignment) {
|
|
@@ -89060,7 +89070,7 @@ function getSortFunc(opts, d2c) {
|
|
|
89060
89070
|
'use strict';
|
|
89061
89071
|
|
|
89062
89072
|
// package version injected by `npm run preprocess`
|
|
89063
|
-
exports.version = '2.16.
|
|
89073
|
+
exports.version = '2.16.4';
|
|
89064
89074
|
|
|
89065
89075
|
},{}],444:[function(_dereq_,module,exports){
|
|
89066
89076
|
(function (global){(function (){
|