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 (finance) v2.13.0
2
+ * plotly.js (finance) v2.13.1
3
3
  * Copyright 2012-2022, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -38213,7 +38213,6 @@ function prepSelect(evt, startX, startY, dragOptions, mode) {
38213
38213
  dragOptions.doneFnCompleted(selection);
38214
38214
  }
38215
38215
 
38216
- eventData.selections = gd.layout.selections;
38217
38216
  emitSelected(gd, eventData);
38218
38217
  }).catch(Lib.error);
38219
38218
  };
@@ -38292,7 +38291,6 @@ function selectOnClick(evt, gd, xAxes, yAxes, subplot, dragOptions, polygonOutli
38292
38291
  }
38293
38292
 
38294
38293
  if(sendEvents) {
38295
- eventData.selections = gd.layout.selections;
38296
38294
  emitSelected(gd, eventData);
38297
38295
  }
38298
38296
  }
@@ -38957,7 +38955,6 @@ function reselect(gd, selectionTesters, searchTraces, dragOptions) {
38957
38955
  fillRangeItems(eventData, poly);
38958
38956
  }
38959
38957
 
38960
- eventData.selections = gd.layout.selections;
38961
38958
  emitSelected(gd, eventData);
38962
38959
  }
38963
38960
 
@@ -38978,7 +38975,6 @@ function reselect(gd, selectionTesters, searchTraces, dragOptions) {
38978
38975
 
38979
38976
  if(sendEvents) {
38980
38977
  if(eventData.points.length) {
38981
- eventData.selections = gd.layout.selections;
38982
38978
  emitSelected(gd, eventData);
38983
38979
  } else {
38984
38980
  gd.emit('plotly_deselect', null);
@@ -39269,14 +39265,22 @@ function getFillRangeItems(dragOptions) {
39269
39265
  }
39270
39266
 
39271
39267
  function emitSelecting(gd, eventData) {
39268
+ if(drawMode(gd._fullLayout.dragmode)) return;
39272
39269
  gd.emit('plotly_selecting', eventData);
39273
39270
  }
39274
39271
 
39275
39272
  function emitSelected(gd, eventData) {
39273
+ if(drawMode(gd._fullLayout.dragmode)) return;
39274
+
39275
+ if(eventData) {
39276
+ eventData.selections = (gd.layout || {}).selections || [];
39277
+ }
39278
+
39276
39279
  gd.emit('plotly_selected', eventData);
39277
39280
  }
39278
39281
 
39279
39282
  function emitDeselect(gd) {
39283
+ if(drawMode(gd._fullLayout.dragmode)) return;
39280
39284
  gd.emit('plotly_deselect', null);
39281
39285
  }
39282
39286
 
@@ -92669,7 +92673,7 @@ function getSortFunc(opts, d2c) {
92669
92673
  'use strict';
92670
92674
 
92671
92675
  // package version injected by `npm run preprocess`
92672
- exports.version = '2.13.0';
92676
+ exports.version = '2.13.1';
92673
92677
 
92674
92678
  },{}]},{},[12])(12)
92675
92679
  });