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 (gl3d) v2.13.0
2
+ * plotly.js (gl3d) v2.13.1
3
3
  * Copyright 2012-2022, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -37683,7 +37683,6 @@ function prepSelect(evt, startX, startY, dragOptions, mode) {
37683
37683
  dragOptions.doneFnCompleted(selection);
37684
37684
  }
37685
37685
 
37686
- eventData.selections = gd.layout.selections;
37687
37686
  emitSelected(gd, eventData);
37688
37687
  }).catch(Lib.error);
37689
37688
  };
@@ -37762,7 +37761,6 @@ function selectOnClick(evt, gd, xAxes, yAxes, subplot, dragOptions, polygonOutli
37762
37761
  }
37763
37762
 
37764
37763
  if(sendEvents) {
37765
- eventData.selections = gd.layout.selections;
37766
37764
  emitSelected(gd, eventData);
37767
37765
  }
37768
37766
  }
@@ -38427,7 +38425,6 @@ function reselect(gd, selectionTesters, searchTraces, dragOptions) {
38427
38425
  fillRangeItems(eventData, poly);
38428
38426
  }
38429
38427
 
38430
- eventData.selections = gd.layout.selections;
38431
38428
  emitSelected(gd, eventData);
38432
38429
  }
38433
38430
 
@@ -38448,7 +38445,6 @@ function reselect(gd, selectionTesters, searchTraces, dragOptions) {
38448
38445
 
38449
38446
  if(sendEvents) {
38450
38447
  if(eventData.points.length) {
38451
- eventData.selections = gd.layout.selections;
38452
38448
  emitSelected(gd, eventData);
38453
38449
  } else {
38454
38450
  gd.emit('plotly_deselect', null);
@@ -38739,14 +38735,22 @@ function getFillRangeItems(dragOptions) {
38739
38735
  }
38740
38736
 
38741
38737
  function emitSelecting(gd, eventData) {
38738
+ if(drawMode(gd._fullLayout.dragmode)) return;
38742
38739
  gd.emit('plotly_selecting', eventData);
38743
38740
  }
38744
38741
 
38745
38742
  function emitSelected(gd, eventData) {
38743
+ if(drawMode(gd._fullLayout.dragmode)) return;
38744
+
38745
+ if(eventData) {
38746
+ eventData.selections = (gd.layout || {}).selections || [];
38747
+ }
38748
+
38746
38749
  gd.emit('plotly_selected', eventData);
38747
38750
  }
38748
38751
 
38749
38752
  function emitDeselect(gd) {
38753
+ if(drawMode(gd._fullLayout.dragmode)) return;
38750
38754
  gd.emit('plotly_deselect', null);
38751
38755
  }
38752
38756
 
@@ -88321,7 +88325,7 @@ function getSortFunc(opts, d2c) {
88321
88325
  'use strict';
88322
88326
 
88323
88327
  // package version injected by `npm run preprocess`
88324
- exports.version = '2.13.0';
88328
+ exports.version = '2.13.1';
88325
88329
 
88326
88330
  },{}],444:[function(_dereq_,module,exports){
88327
88331
  (function (global){(function (){