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 (cartesian) v2.13.0
2
+ * plotly.js (cartesian) v2.13.1
3
3
  * Copyright 2012-2022, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -46163,7 +46163,6 @@ function prepSelect(evt, startX, startY, dragOptions, mode) {
46163
46163
  dragOptions.doneFnCompleted(selection);
46164
46164
  }
46165
46165
 
46166
- eventData.selections = gd.layout.selections;
46167
46166
  emitSelected(gd, eventData);
46168
46167
  }).catch(Lib.error);
46169
46168
  };
@@ -46242,7 +46241,6 @@ function selectOnClick(evt, gd, xAxes, yAxes, subplot, dragOptions, polygonOutli
46242
46241
  }
46243
46242
 
46244
46243
  if(sendEvents) {
46245
- eventData.selections = gd.layout.selections;
46246
46244
  emitSelected(gd, eventData);
46247
46245
  }
46248
46246
  }
@@ -46907,7 +46905,6 @@ function reselect(gd, selectionTesters, searchTraces, dragOptions) {
46907
46905
  fillRangeItems(eventData, poly);
46908
46906
  }
46909
46907
 
46910
- eventData.selections = gd.layout.selections;
46911
46908
  emitSelected(gd, eventData);
46912
46909
  }
46913
46910
 
@@ -46928,7 +46925,6 @@ function reselect(gd, selectionTesters, searchTraces, dragOptions) {
46928
46925
 
46929
46926
  if(sendEvents) {
46930
46927
  if(eventData.points.length) {
46931
- eventData.selections = gd.layout.selections;
46932
46928
  emitSelected(gd, eventData);
46933
46929
  } else {
46934
46930
  gd.emit('plotly_deselect', null);
@@ -47219,14 +47215,22 @@ function getFillRangeItems(dragOptions) {
47219
47215
  }
47220
47216
 
47221
47217
  function emitSelecting(gd, eventData) {
47218
+ if(drawMode(gd._fullLayout.dragmode)) return;
47222
47219
  gd.emit('plotly_selecting', eventData);
47223
47220
  }
47224
47221
 
47225
47222
  function emitSelected(gd, eventData) {
47223
+ if(drawMode(gd._fullLayout.dragmode)) return;
47224
+
47225
+ if(eventData) {
47226
+ eventData.selections = (gd.layout || {}).selections || [];
47227
+ }
47228
+
47226
47229
  gd.emit('plotly_selected', eventData);
47227
47230
  }
47228
47231
 
47229
47232
  function emitDeselect(gd) {
47233
+ if(drawMode(gd._fullLayout.dragmode)) return;
47230
47234
  gd.emit('plotly_deselect', null);
47231
47235
  }
47232
47236
 
@@ -104891,7 +104895,7 @@ function getSortFunc(opts, d2c) {
104891
104895
  'use strict';
104892
104896
 
104893
104897
  // package version injected by `npm run preprocess`
104894
- exports.version = '2.13.0';
104898
+ exports.version = '2.13.1';
104895
104899
 
104896
104900
  },{}]},{},[15])(15)
104897
104901
  });