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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * plotly.js v2.13.0
2
+ * plotly.js v2.13.1
3
3
  * Copyright 2012-2022, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -122406,7 +122406,6 @@ function prepSelect(evt, startX, startY, dragOptions, mode) {
122406
122406
  dragOptions.doneFnCompleted(selection);
122407
122407
  }
122408
122408
 
122409
- eventData.selections = gd.layout.selections;
122410
122409
  emitSelected(gd, eventData);
122411
122410
  }).catch(Lib.error);
122412
122411
  };
@@ -122485,7 +122484,6 @@ function selectOnClick(evt, gd, xAxes, yAxes, subplot, dragOptions, polygonOutli
122485
122484
  }
122486
122485
 
122487
122486
  if(sendEvents) {
122488
- eventData.selections = gd.layout.selections;
122489
122487
  emitSelected(gd, eventData);
122490
122488
  }
122491
122489
  }
@@ -123150,7 +123148,6 @@ function reselect(gd, selectionTesters, searchTraces, dragOptions) {
123150
123148
  fillRangeItems(eventData, poly);
123151
123149
  }
123152
123150
 
123153
- eventData.selections = gd.layout.selections;
123154
123151
  emitSelected(gd, eventData);
123155
123152
  }
123156
123153
 
@@ -123171,7 +123168,6 @@ function reselect(gd, selectionTesters, searchTraces, dragOptions) {
123171
123168
 
123172
123169
  if(sendEvents) {
123173
123170
  if(eventData.points.length) {
123174
- eventData.selections = gd.layout.selections;
123175
123171
  emitSelected(gd, eventData);
123176
123172
  } else {
123177
123173
  gd.emit('plotly_deselect', null);
@@ -123462,14 +123458,22 @@ function getFillRangeItems(dragOptions) {
123462
123458
  }
123463
123459
 
123464
123460
  function emitSelecting(gd, eventData) {
123461
+ if(drawMode(gd._fullLayout.dragmode)) return;
123465
123462
  gd.emit('plotly_selecting', eventData);
123466
123463
  }
123467
123464
 
123468
123465
  function emitSelected(gd, eventData) {
123466
+ if(drawMode(gd._fullLayout.dragmode)) return;
123467
+
123468
+ if(eventData) {
123469
+ eventData.selections = (gd.layout || {}).selections || [];
123470
+ }
123471
+
123469
123472
  gd.emit('plotly_selected', eventData);
123470
123473
  }
123471
123474
 
123472
123475
  function emitDeselect(gd) {
123476
+ if(drawMode(gd._fullLayout.dragmode)) return;
123473
123477
  gd.emit('plotly_deselect', null);
123474
123478
  }
123475
123479
 
@@ -232755,7 +232759,7 @@ function getSortFunc(opts, d2c) {
232755
232759
  'use strict';
232756
232760
 
232757
232761
  // package version injected by `npm run preprocess`
232758
- exports.version = '2.13.0';
232762
+ exports.version = '2.13.1';
232759
232763
 
232760
232764
  },{}],1133:[function(_dereq_,module,exports){
232761
232765
  (function (global){(function (){
package/dist/plotly.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * plotly.js v2.13.0
2
+ * plotly.js v2.13.1
3
3
  * Copyright 2012-2022, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -121457,7 +121457,6 @@ function prepSelect(evt, startX, startY, dragOptions, mode) {
121457
121457
  dragOptions.doneFnCompleted(selection);
121458
121458
  }
121459
121459
 
121460
- eventData.selections = gd.layout.selections;
121461
121460
  emitSelected(gd, eventData);
121462
121461
  }).catch(Lib.error);
121463
121462
  };
@@ -121536,7 +121535,6 @@ function selectOnClick(evt, gd, xAxes, yAxes, subplot, dragOptions, polygonOutli
121536
121535
  }
121537
121536
 
121538
121537
  if(sendEvents) {
121539
- eventData.selections = gd.layout.selections;
121540
121538
  emitSelected(gd, eventData);
121541
121539
  }
121542
121540
  }
@@ -122201,7 +122199,6 @@ function reselect(gd, selectionTesters, searchTraces, dragOptions) {
122201
122199
  fillRangeItems(eventData, poly);
122202
122200
  }
122203
122201
 
122204
- eventData.selections = gd.layout.selections;
122205
122202
  emitSelected(gd, eventData);
122206
122203
  }
122207
122204
 
@@ -122222,7 +122219,6 @@ function reselect(gd, selectionTesters, searchTraces, dragOptions) {
122222
122219
 
122223
122220
  if(sendEvents) {
122224
122221
  if(eventData.points.length) {
122225
- eventData.selections = gd.layout.selections;
122226
122222
  emitSelected(gd, eventData);
122227
122223
  } else {
122228
122224
  gd.emit('plotly_deselect', null);
@@ -122513,14 +122509,22 @@ function getFillRangeItems(dragOptions) {
122513
122509
  }
122514
122510
 
122515
122511
  function emitSelecting(gd, eventData) {
122512
+ if(drawMode(gd._fullLayout.dragmode)) return;
122516
122513
  gd.emit('plotly_selecting', eventData);
122517
122514
  }
122518
122515
 
122519
122516
  function emitSelected(gd, eventData) {
122517
+ if(drawMode(gd._fullLayout.dragmode)) return;
122518
+
122519
+ if(eventData) {
122520
+ eventData.selections = (gd.layout || {}).selections || [];
122521
+ }
122522
+
122520
122523
  gd.emit('plotly_selected', eventData);
122521
122524
  }
122522
122525
 
122523
122526
  function emitDeselect(gd) {
122527
+ if(drawMode(gd._fullLayout.dragmode)) return;
122524
122528
  gd.emit('plotly_deselect', null);
122525
122529
  }
122526
122530
 
@@ -226275,7 +226279,7 @@ function getSortFunc(opts, d2c) {
226275
226279
  'use strict';
226276
226280
 
226277
226281
  // package version injected by `npm run preprocess`
226278
- exports.version = '2.13.0';
226282
+ exports.version = '2.13.1';
226279
226283
 
226280
226284
  },{}],1133:[function(_dereq_,module,exports){
226281
226285
  (function (global){(function (){