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 (strict) v2.13.0
2
+ * plotly.js (strict) v2.13.1
3
3
  * Copyright 2012-2022, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -121437,7 +121437,6 @@ function prepSelect(evt, startX, startY, dragOptions, mode) {
121437
121437
  dragOptions.doneFnCompleted(selection);
121438
121438
  }
121439
121439
 
121440
- eventData.selections = gd.layout.selections;
121441
121440
  emitSelected(gd, eventData);
121442
121441
  }).catch(Lib.error);
121443
121442
  };
@@ -121516,7 +121515,6 @@ function selectOnClick(evt, gd, xAxes, yAxes, subplot, dragOptions, polygonOutli
121516
121515
  }
121517
121516
 
121518
121517
  if(sendEvents) {
121519
- eventData.selections = gd.layout.selections;
121520
121518
  emitSelected(gd, eventData);
121521
121519
  }
121522
121520
  }
@@ -122181,7 +122179,6 @@ function reselect(gd, selectionTesters, searchTraces, dragOptions) {
122181
122179
  fillRangeItems(eventData, poly);
122182
122180
  }
122183
122181
 
122184
- eventData.selections = gd.layout.selections;
122185
122182
  emitSelected(gd, eventData);
122186
122183
  }
122187
122184
 
@@ -122202,7 +122199,6 @@ function reselect(gd, selectionTesters, searchTraces, dragOptions) {
122202
122199
 
122203
122200
  if(sendEvents) {
122204
122201
  if(eventData.points.length) {
122205
- eventData.selections = gd.layout.selections;
122206
122202
  emitSelected(gd, eventData);
122207
122203
  } else {
122208
122204
  gd.emit('plotly_deselect', null);
@@ -122493,14 +122489,22 @@ function getFillRangeItems(dragOptions) {
122493
122489
  }
122494
122490
 
122495
122491
  function emitSelecting(gd, eventData) {
122492
+ if(drawMode(gd._fullLayout.dragmode)) return;
122496
122493
  gd.emit('plotly_selecting', eventData);
122497
122494
  }
122498
122495
 
122499
122496
  function emitSelected(gd, eventData) {
122497
+ if(drawMode(gd._fullLayout.dragmode)) return;
122498
+
122499
+ if(eventData) {
122500
+ eventData.selections = (gd.layout || {}).selections || [];
122501
+ }
122502
+
122500
122503
  gd.emit('plotly_selected', eventData);
122501
122504
  }
122502
122505
 
122503
122506
  function emitDeselect(gd) {
122507
+ if(drawMode(gd._fullLayout.dragmode)) return;
122504
122508
  gd.emit('plotly_deselect', null);
122505
122509
  }
122506
122510
 
@@ -249311,7 +249315,7 @@ function getSortFunc(opts, d2c) {
249311
249315
  'use strict';
249312
249316
 
249313
249317
  // package version injected by `npm run preprocess`
249314
- exports.version = '2.13.0';
249318
+ exports.version = '2.13.1';
249315
249319
 
249316
249320
  },{}],1151:[function(_dereq_,module,exports){
249317
249321
  (function (global){(function (){