plotly.js 2.13.0 → 2.13.1
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 +6 -0
- package/README.md +3 -3
- package/dist/README.md +19 -19
- package/dist/plotly-basic.js +10 -6
- package/dist/plotly-basic.min.js +2 -2
- package/dist/plotly-cartesian.js +10 -6
- package/dist/plotly-cartesian.min.js +2 -2
- package/dist/plotly-finance.js +10 -6
- package/dist/plotly-finance.min.js +2 -2
- package/dist/plotly-geo-assets.js +2 -2
- package/dist/plotly-geo.js +10 -6
- package/dist/plotly-geo.min.js +2 -2
- package/dist/plotly-gl2d.js +10 -6
- package/dist/plotly-gl2d.min.js +2 -2
- package/dist/plotly-gl3d.js +10 -6
- package/dist/plotly-gl3d.min.js +2 -2
- package/dist/plotly-mapbox.js +10 -6
- package/dist/plotly-mapbox.min.js +2 -2
- package/dist/plotly-strict.js +10 -6
- package/dist/plotly-strict.min.js +2 -2
- package/dist/plotly-with-meta.js +10 -6
- package/dist/plotly.js +10 -6
- package/dist/plotly.min.js +2 -2
- package/package.json +1 -1
- package/src/components/selections/select.js +8 -4
- package/src/version.js +1 -1
package/package.json
CHANGED
|
@@ -451,7 +451,6 @@ function prepSelect(evt, startX, startY, dragOptions, mode) {
|
|
|
451
451
|
dragOptions.doneFnCompleted(selection);
|
|
452
452
|
}
|
|
453
453
|
|
|
454
|
-
eventData.selections = gd.layout.selections;
|
|
455
454
|
emitSelected(gd, eventData);
|
|
456
455
|
}).catch(Lib.error);
|
|
457
456
|
};
|
|
@@ -530,7 +529,6 @@ function selectOnClick(evt, gd, xAxes, yAxes, subplot, dragOptions, polygonOutli
|
|
|
530
529
|
}
|
|
531
530
|
|
|
532
531
|
if(sendEvents) {
|
|
533
|
-
eventData.selections = gd.layout.selections;
|
|
534
532
|
emitSelected(gd, eventData);
|
|
535
533
|
}
|
|
536
534
|
}
|
|
@@ -1195,7 +1193,6 @@ function reselect(gd, selectionTesters, searchTraces, dragOptions) {
|
|
|
1195
1193
|
fillRangeItems(eventData, poly);
|
|
1196
1194
|
}
|
|
1197
1195
|
|
|
1198
|
-
eventData.selections = gd.layout.selections;
|
|
1199
1196
|
emitSelected(gd, eventData);
|
|
1200
1197
|
}
|
|
1201
1198
|
|
|
@@ -1216,7 +1213,6 @@ function reselect(gd, selectionTesters, searchTraces, dragOptions) {
|
|
|
1216
1213
|
|
|
1217
1214
|
if(sendEvents) {
|
|
1218
1215
|
if(eventData.points.length) {
|
|
1219
|
-
eventData.selections = gd.layout.selections;
|
|
1220
1216
|
emitSelected(gd, eventData);
|
|
1221
1217
|
} else {
|
|
1222
1218
|
gd.emit('plotly_deselect', null);
|
|
@@ -1507,14 +1503,22 @@ function getFillRangeItems(dragOptions) {
|
|
|
1507
1503
|
}
|
|
1508
1504
|
|
|
1509
1505
|
function emitSelecting(gd, eventData) {
|
|
1506
|
+
if(drawMode(gd._fullLayout.dragmode)) return;
|
|
1510
1507
|
gd.emit('plotly_selecting', eventData);
|
|
1511
1508
|
}
|
|
1512
1509
|
|
|
1513
1510
|
function emitSelected(gd, eventData) {
|
|
1511
|
+
if(drawMode(gd._fullLayout.dragmode)) return;
|
|
1512
|
+
|
|
1513
|
+
if(eventData) {
|
|
1514
|
+
eventData.selections = (gd.layout || {}).selections || [];
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1514
1517
|
gd.emit('plotly_selected', eventData);
|
|
1515
1518
|
}
|
|
1516
1519
|
|
|
1517
1520
|
function emitDeselect(gd) {
|
|
1521
|
+
if(drawMode(gd._fullLayout.dragmode)) return;
|
|
1518
1522
|
gd.emit('plotly_deselect', null);
|
|
1519
1523
|
}
|
|
1520
1524
|
|
package/src/version.js
CHANGED