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
@@ -68,7 +68,7 @@ exports.topojson = saneTopojson;
68
68
  'use strict';
69
69
 
70
70
  // package version injected by `npm run preprocess`
71
- exports.version = '2.13.0';
71
+ exports.version = '2.13.1';
72
72
 
73
73
  },{}]},{},[16])(16)
74
74
  });
@@ -1,5 +1,5 @@
1
1
  /**
2
- * plotly.js (geo) v2.13.0
2
+ * plotly.js (geo) v2.13.1
3
3
  * Copyright 2012-2022, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -50746,7 +50746,6 @@ function prepSelect(evt, startX, startY, dragOptions, mode) {
50746
50746
  dragOptions.doneFnCompleted(selection);
50747
50747
  }
50748
50748
 
50749
- eventData.selections = gd.layout.selections;
50750
50749
  emitSelected(gd, eventData);
50751
50750
  }).catch(Lib.error);
50752
50751
  };
@@ -50825,7 +50824,6 @@ function selectOnClick(evt, gd, xAxes, yAxes, subplot, dragOptions, polygonOutli
50825
50824
  }
50826
50825
 
50827
50826
  if(sendEvents) {
50828
- eventData.selections = gd.layout.selections;
50829
50827
  emitSelected(gd, eventData);
50830
50828
  }
50831
50829
  }
@@ -51490,7 +51488,6 @@ function reselect(gd, selectionTesters, searchTraces, dragOptions) {
51490
51488
  fillRangeItems(eventData, poly);
51491
51489
  }
51492
51490
 
51493
- eventData.selections = gd.layout.selections;
51494
51491
  emitSelected(gd, eventData);
51495
51492
  }
51496
51493
 
@@ -51511,7 +51508,6 @@ function reselect(gd, selectionTesters, searchTraces, dragOptions) {
51511
51508
 
51512
51509
  if(sendEvents) {
51513
51510
  if(eventData.points.length) {
51514
- eventData.selections = gd.layout.selections;
51515
51511
  emitSelected(gd, eventData);
51516
51512
  } else {
51517
51513
  gd.emit('plotly_deselect', null);
@@ -51802,14 +51798,22 @@ function getFillRangeItems(dragOptions) {
51802
51798
  }
51803
51799
 
51804
51800
  function emitSelecting(gd, eventData) {
51801
+ if(drawMode(gd._fullLayout.dragmode)) return;
51805
51802
  gd.emit('plotly_selecting', eventData);
51806
51803
  }
51807
51804
 
51808
51805
  function emitSelected(gd, eventData) {
51806
+ if(drawMode(gd._fullLayout.dragmode)) return;
51807
+
51808
+ if(eventData) {
51809
+ eventData.selections = (gd.layout || {}).selections || [];
51810
+ }
51811
+
51809
51812
  gd.emit('plotly_selected', eventData);
51810
51813
  }
51811
51814
 
51812
51815
  function emitDeselect(gd) {
51816
+ if(drawMode(gd._fullLayout.dragmode)) return;
51813
51817
  gd.emit('plotly_deselect', null);
51814
51818
  }
51815
51819
 
@@ -97412,7 +97416,7 @@ function getSortFunc(opts, d2c) {
97412
97416
  'use strict';
97413
97417
 
97414
97418
  // package version injected by `npm run preprocess`
97415
- exports.version = '2.13.0';
97419
+ exports.version = '2.13.1';
97416
97420
 
97417
97421
  },{}]},{},[8])(8)
97418
97422
  });