plotly.js 2.13.1 → 2.13.2
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 +8 -0
- package/README.md +3 -3
- package/dist/README.md +20 -20
- package/dist/plotly-basic.js +33 -15
- package/dist/plotly-basic.min.js +2 -2
- package/dist/plotly-cartesian.js +33 -15
- package/dist/plotly-cartesian.min.js +2 -2
- package/dist/plotly-finance.js +33 -15
- package/dist/plotly-finance.min.js +2 -2
- package/dist/plotly-geo-assets.js +2 -2
- package/dist/plotly-geo.js +33 -15
- package/dist/plotly-geo.min.js +2 -2
- package/dist/plotly-gl2d.js +33 -15
- package/dist/plotly-gl2d.min.js +2 -2
- package/dist/plotly-gl3d.js +33 -15
- package/dist/plotly-gl3d.min.js +2 -2
- package/dist/plotly-mapbox.js +33 -15
- package/dist/plotly-mapbox.min.js +2 -2
- package/dist/plotly-strict.js +34 -15
- package/dist/plotly-strict.min.js +2 -2
- package/dist/plotly-with-meta.js +34 -15
- package/dist/plotly.js +34 -15
- package/dist/plotly.min.js +2 -2
- package/package.json +1 -1
- package/src/components/selections/select.js +31 -13
- package/src/traces/sankey/base_plot.js +1 -0
- package/src/version.js +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js v2.13.
|
|
2
|
+
* plotly.js v2.13.2
|
|
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.13.
|
|
71
|
+
exports.version = '2.13.2';
|
|
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.13.
|
|
2
|
+
* plotly.js (geo) v2.13.2
|
|
3
3
|
* Copyright 2012-2022, Plotly, Inc.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Licensed under the MIT license
|
|
@@ -50345,7 +50345,14 @@ var p2r = helpers.p2r;
|
|
|
50345
50345
|
var axValue = helpers.axValue;
|
|
50346
50346
|
var getTransform = helpers.getTransform;
|
|
50347
50347
|
|
|
50348
|
+
function hasSubplot(dragOptions) {
|
|
50349
|
+
// N.B. subplot may be falsy e.g zero sankey index!
|
|
50350
|
+
return dragOptions.subplot !== undefined;
|
|
50351
|
+
}
|
|
50352
|
+
|
|
50348
50353
|
function prepSelect(evt, startX, startY, dragOptions, mode) {
|
|
50354
|
+
var isCartesian = !hasSubplot(dragOptions);
|
|
50355
|
+
|
|
50349
50356
|
var isFreeMode = freeMode(mode);
|
|
50350
50357
|
var isRectMode = rectMode(mode);
|
|
50351
50358
|
var isOpenMode = openMode(mode);
|
|
@@ -50359,7 +50366,7 @@ function prepSelect(evt, startX, startY, dragOptions, mode) {
|
|
|
50359
50366
|
var gd = dragOptions.gd;
|
|
50360
50367
|
var fullLayout = gd._fullLayout;
|
|
50361
50368
|
var immediateSelect = isSelectMode && fullLayout.newselection.mode === 'immediate' &&
|
|
50362
|
-
|
|
50369
|
+
isCartesian; // N.B. only cartesian subplots have persistent selection
|
|
50363
50370
|
|
|
50364
50371
|
var zoomLayer = fullLayout._zoomlayer;
|
|
50365
50372
|
var dragBBox = dragOptions.element.getBoundingClientRect();
|
|
@@ -50407,9 +50414,9 @@ function prepSelect(evt, startX, startY, dragOptions, mode) {
|
|
|
50407
50414
|
opacity: isDrawMode ? newStyle.opacity / 2 : 1,
|
|
50408
50415
|
fill: (isDrawMode && !isOpenMode) ? newStyle.fillcolor : 'none',
|
|
50409
50416
|
stroke: newStyle.line.color || (
|
|
50410
|
-
|
|
50411
|
-
|
|
50412
|
-
|
|
50417
|
+
isCartesian ?
|
|
50418
|
+
Color.contrast(gd._fullLayout.plot_bgcolor) :
|
|
50419
|
+
'#7f7f7f' // non-cartesian subplot
|
|
50413
50420
|
),
|
|
50414
50421
|
'stroke-dasharray': dashStyle(newStyle.line.dash, newStyle.line.width),
|
|
50415
50422
|
'stroke-width': newStyle.line.width + 'px',
|
|
@@ -50440,6 +50447,8 @@ function prepSelect(evt, startX, startY, dragOptions, mode) {
|
|
|
50440
50447
|
|
|
50441
50448
|
if(immediateSelect && !evt.shiftKey) {
|
|
50442
50449
|
dragOptions._clearSubplotSelections = function() {
|
|
50450
|
+
if(!isCartesian) return;
|
|
50451
|
+
|
|
50443
50452
|
var xRef = xAxis._id;
|
|
50444
50453
|
var yRef = yAxis._id;
|
|
50445
50454
|
deselectSubplot(gd, xRef, yRef, searchTraces);
|
|
@@ -50746,7 +50755,9 @@ function prepSelect(evt, startX, startY, dragOptions, mode) {
|
|
|
50746
50755
|
dragOptions.doneFnCompleted(selection);
|
|
50747
50756
|
}
|
|
50748
50757
|
|
|
50749
|
-
|
|
50758
|
+
if(isSelectMode) {
|
|
50759
|
+
emitSelected(gd, eventData);
|
|
50760
|
+
}
|
|
50750
50761
|
}).catch(Lib.error);
|
|
50751
50762
|
};
|
|
50752
50763
|
}
|
|
@@ -50968,15 +50979,23 @@ function coerceSelectionsCache(evt, gd, dragOptions) {
|
|
|
50968
50979
|
}
|
|
50969
50980
|
}
|
|
50970
50981
|
|
|
50982
|
+
function hasActiveShape(gd) {
|
|
50983
|
+
return gd._fullLayout._activeShapeIndex >= 0;
|
|
50984
|
+
}
|
|
50985
|
+
|
|
50986
|
+
function hasActiveSelection(gd) {
|
|
50987
|
+
return gd._fullLayout._activeSelectionIndex >= 0;
|
|
50988
|
+
}
|
|
50989
|
+
|
|
50971
50990
|
function clearSelectionsCache(dragOptions, immediateSelect) {
|
|
50972
50991
|
var dragmode = dragOptions.dragmode;
|
|
50973
50992
|
var plotinfo = dragOptions.plotinfo;
|
|
50974
50993
|
|
|
50975
50994
|
var gd = dragOptions.gd;
|
|
50976
|
-
if(gd
|
|
50995
|
+
if(hasActiveShape(gd)) {
|
|
50977
50996
|
gd._fullLayout._deactivateShape(gd);
|
|
50978
50997
|
}
|
|
50979
|
-
if(gd
|
|
50998
|
+
if(hasActiveSelection(gd)) {
|
|
50980
50999
|
gd._fullLayout._deactivateSelection(gd);
|
|
50981
51000
|
}
|
|
50982
51001
|
|
|
@@ -51004,7 +51023,7 @@ function clearSelectionsCache(dragOptions, immediateSelect) {
|
|
|
51004
51023
|
var selections;
|
|
51005
51024
|
if(
|
|
51006
51025
|
isSelectMode &&
|
|
51007
|
-
!dragOptions
|
|
51026
|
+
!hasSubplot(dragOptions) // only allow cartesian - no mapbox for now
|
|
51008
51027
|
) {
|
|
51009
51028
|
selections = newSelections(outlines, dragOptions);
|
|
51010
51029
|
}
|
|
@@ -51043,7 +51062,10 @@ function determineSearchTraces(gd, xAxes, yAxes, subplot) {
|
|
|
51043
51062
|
|
|
51044
51063
|
if(trace.visible !== true || !trace._module || !trace._module.selectPoints) continue;
|
|
51045
51064
|
|
|
51046
|
-
if(
|
|
51065
|
+
if(
|
|
51066
|
+
hasSubplot({subplot: subplot}) &&
|
|
51067
|
+
(trace.subplot === subplot || trace.geo === subplot)
|
|
51068
|
+
) {
|
|
51047
51069
|
searchTraces.push(createSearchInfo(trace._module, cd, xAxes[0], yAxes[0]));
|
|
51048
51070
|
} else if(trace.type === 'splom') {
|
|
51049
51071
|
// FIXME: make sure we don't have more than single axis for splom
|
|
@@ -51798,13 +51820,10 @@ function getFillRangeItems(dragOptions) {
|
|
|
51798
51820
|
}
|
|
51799
51821
|
|
|
51800
51822
|
function emitSelecting(gd, eventData) {
|
|
51801
|
-
if(drawMode(gd._fullLayout.dragmode)) return;
|
|
51802
51823
|
gd.emit('plotly_selecting', eventData);
|
|
51803
51824
|
}
|
|
51804
51825
|
|
|
51805
51826
|
function emitSelected(gd, eventData) {
|
|
51806
|
-
if(drawMode(gd._fullLayout.dragmode)) return;
|
|
51807
|
-
|
|
51808
51827
|
if(eventData) {
|
|
51809
51828
|
eventData.selections = (gd.layout || {}).selections || [];
|
|
51810
51829
|
}
|
|
@@ -51813,7 +51832,6 @@ function emitSelected(gd, eventData) {
|
|
|
51813
51832
|
}
|
|
51814
51833
|
|
|
51815
51834
|
function emitDeselect(gd) {
|
|
51816
|
-
if(drawMode(gd._fullLayout.dragmode)) return;
|
|
51817
51835
|
gd.emit('plotly_deselect', null);
|
|
51818
51836
|
}
|
|
51819
51837
|
|
|
@@ -97416,7 +97434,7 @@ function getSortFunc(opts, d2c) {
|
|
|
97416
97434
|
'use strict';
|
|
97417
97435
|
|
|
97418
97436
|
// package version injected by `npm run preprocess`
|
|
97419
|
-
exports.version = '2.13.
|
|
97437
|
+
exports.version = '2.13.2';
|
|
97420
97438
|
|
|
97421
97439
|
},{}]},{},[8])(8)
|
|
97422
97440
|
});
|