Skip to content

Commit 08f621b

Browse files
committed
2.13.3
1 parent 310c232 commit 08f621b

24 files changed

+409
-199
lines changed

Diff for: dist/README.md

+25-25
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ The main plotly.js bundles weight in at:
4646
| 8.4 MB | 3.5 MB | 1 MB | 8.7 MB |
4747

4848
#### CDN links
49-
> https://cdn.plot.ly/plotly-2.13.2.js
49+
> https://cdn.plot.ly/plotly-2.13.3.js
5050
51-
> https://cdn.plot.ly/plotly-2.13.2.min.js
51+
> https://cdn.plot.ly/plotly-2.13.3.min.js
5252
5353

5454
#### npm packages
@@ -91,12 +91,12 @@ The `basic` partial bundle contains trace modules `bar`, `pie` and `scatter`.
9191

9292
| Raw size | Minified size | Minified + gzip size |
9393
|------|-----------------|------------------------|
94-
| 2.7 MB | 997.9 kB | 324.5 kB |
94+
| 2.7 MB | 998.2 kB | 324.6 kB |
9595

9696
#### CDN links
97-
> https://cdn.plot.ly/plotly-basic-2.13.2.js
97+
> https://cdn.plot.ly/plotly-basic-2.13.3.js
9898
99-
> https://cdn.plot.ly/plotly-basic-2.13.2.min.js
99+
> https://cdn.plot.ly/plotly-basic-2.13.3.min.js
100100
101101

102102
#### npm packages
@@ -114,12 +114,12 @@ The `cartesian` partial bundle contains trace modules `bar`, `box`, `contour`, `
114114

115115
| Raw size | Minified size | Minified + gzip size |
116116
|------|-----------------|------------------------|
117-
| 3.4 MB | 1.2 MB | 397.6 kB |
117+
| 3.4 MB | 1.2 MB | 397.7 kB |
118118

119119
#### CDN links
120-
> https://cdn.plot.ly/plotly-cartesian-2.13.2.js
120+
> https://cdn.plot.ly/plotly-cartesian-2.13.3.js
121121
122-
> https://cdn.plot.ly/plotly-cartesian-2.13.2.min.js
122+
> https://cdn.plot.ly/plotly-cartesian-2.13.3.min.js
123123
124124

125125
#### npm packages
@@ -137,12 +137,12 @@ The `geo` partial bundle contains trace modules `choropleth`, `scatter` and `sca
137137

138138
| Raw size | Minified size | Minified + gzip size |
139139
|------|-----------------|------------------------|
140-
| 3.1 MB | 1.1 MB | 367.2 kB |
140+
| 3.1 MB | 1.1 MB | 367.3 kB |
141141

142142
#### CDN links
143-
> https://cdn.plot.ly/plotly-geo-2.13.2.js
143+
> https://cdn.plot.ly/plotly-geo-2.13.3.js
144144
145-
> https://cdn.plot.ly/plotly-geo-2.13.2.min.js
145+
> https://cdn.plot.ly/plotly-geo-2.13.3.min.js
146146
147147

148148
#### npm packages
@@ -160,12 +160,12 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`,
160160

161161
| Raw size | Minified size | Minified + gzip size |
162162
|------|-----------------|------------------------|
163-
| 3.9 MB | 1.5 MB | 488.3 kB |
163+
| 3.9 MB | 1.5 MB | 488.4 kB |
164164

165165
#### CDN links
166-
> https://cdn.plot.ly/plotly-gl3d-2.13.2.js
166+
> https://cdn.plot.ly/plotly-gl3d-2.13.3.js
167167
168-
> https://cdn.plot.ly/plotly-gl3d-2.13.2.min.js
168+
> https://cdn.plot.ly/plotly-gl3d-2.13.3.min.js
169169
170170

171171
#### npm packages
@@ -183,12 +183,12 @@ The `gl2d` partial bundle contains trace modules `heatmapgl`, `parcoords`, `poin
183183

184184
| Raw size | Minified size | Minified + gzip size |
185185
|------|-----------------|------------------------|
186-
| 4.4 MB | 1.8 MB | 580.5 kB |
186+
| 4.4 MB | 1.8 MB | 580.6 kB |
187187

188188
#### CDN links
189-
> https://cdn.plot.ly/plotly-gl2d-2.13.2.js
189+
> https://cdn.plot.ly/plotly-gl2d-2.13.3.js
190190
191-
> https://cdn.plot.ly/plotly-gl2d-2.13.2.min.js
191+
> https://cdn.plot.ly/plotly-gl2d-2.13.3.min.js
192192
193193

194194
#### npm packages
@@ -206,12 +206,12 @@ The `mapbox` partial bundle contains trace modules `choroplethmapbox`, `densitym
206206

207207
| Raw size | Minified size | Minified + gzip size |
208208
|------|-----------------|------------------------|
209-
| 4.4 MB | 1.7 MB | 521.4 kB |
209+
| 4.4 MB | 1.7 MB | 521.5 kB |
210210

211211
#### CDN links
212-
> https://cdn.plot.ly/plotly-mapbox-2.13.2.js
212+
> https://cdn.plot.ly/plotly-mapbox-2.13.3.js
213213
214-
> https://cdn.plot.ly/plotly-mapbox-2.13.2.min.js
214+
> https://cdn.plot.ly/plotly-mapbox-2.13.3.min.js
215215
216216

217217
#### npm packages
@@ -229,12 +229,12 @@ The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funne
229229

230230
| Raw size | Minified size | Minified + gzip size |
231231
|------|-----------------|------------------------|
232-
| 3 MB | 1.1 MB | 357.2 kB |
232+
| 3 MB | 1.1 MB | 357.3 kB |
233233

234234
#### CDN links
235-
> https://cdn.plot.ly/plotly-finance-2.13.2.js
235+
> https://cdn.plot.ly/plotly-finance-2.13.3.js
236236
237-
> https://cdn.plot.ly/plotly-finance-2.13.2.min.js
237+
> https://cdn.plot.ly/plotly-finance-2.13.3.min.js
238238
239239

240240
#### npm packages
@@ -255,9 +255,9 @@ The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `ca
255255
| 8.8 MB | 3.9 MB | 1.1 MB |
256256

257257
#### CDN links
258-
> https://cdn.plot.ly/plotly-strict-2.13.2.js
258+
> https://cdn.plot.ly/plotly-strict-2.13.3.js
259259
260-
> https://cdn.plot.ly/plotly-strict-2.13.2.min.js
260+
> https://cdn.plot.ly/plotly-strict-2.13.3.min.js
261261
262262

263263
#### npm packages

Diff for: dist/plotly-basic.js

+36-15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v2.13.2
2+
* plotly.js (basic) v2.13.3
33
* Copyright 2012-2022, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -36716,6 +36716,8 @@ function prepSelect(evt, startX, startY, dragOptions, mode) {
3671636716
}
3671736717

3671836718
if(selectionErased) {
36719+
gd._fullLayout._noEmitSelectedAtStart = true;
36720+
3671936721
Registry.call('_guiRelayout', gd, {
3672036722
selections: list
3672136723
});
@@ -36857,10 +36859,10 @@ function prepSelect(evt, startX, startY, dragOptions, mode) {
3685736859
displayOutlines(convertPoly(mergedPolygons, isOpenMode), outlines, dragOptions);
3685836860

3685936861
if(isSelectMode) {
36860-
var _res = reselect(gd);
36862+
var _res = reselect(gd, false);
3686136863
var extraPoints = _res.eventData ? _res.eventData.points.slice() : [];
3686236864

36863-
_res = reselect(gd, selectionTesters, searchTraces, dragOptions);
36865+
_res = reselect(gd, false, selectionTesters, searchTraces, dragOptions);
3686436866
selectionTesters = _res.selectionTesters;
3686536867
eventData = _res.eventData;
3686636868

@@ -36954,9 +36956,13 @@ function prepSelect(evt, startX, startY, dragOptions, mode) {
3695436956
}
3695536957
}
3695636958

36957-
Registry.call('_guiRelayout', gd, {
36958-
selections: subSelections
36959-
});
36959+
if(subSelections.length < allSelections.length) {
36960+
gd._fullLayout._noEmitSelectedAtStart = true;
36961+
36962+
Registry.call('_guiRelayout', gd, {
36963+
selections: subSelections
36964+
});
36965+
}
3696036966
}
3696136967
}
3696236968
} else {
@@ -37275,6 +37281,8 @@ function clearSelectionsCache(dragOptions, immediateSelect) {
3727537281
selections = newSelections(outlines, dragOptions);
3727637282
}
3727737283
if(selections) {
37284+
gd._fullLayout._noEmitSelectedAtStart = true;
37285+
3727837286
Registry.call('_guiRelayout', gd, {
3727937287
selections: selections
3728037288
}).then(function() {
@@ -37612,7 +37620,7 @@ function _doSelect(selectionTesters, searchTraces) {
3761237620
return allSelections;
3761337621
}
3761437622

37615-
function reselect(gd, selectionTesters, searchTraces, dragOptions) {
37623+
function reselect(gd, mayEmitSelected, selectionTesters, searchTraces, dragOptions) {
3761637624
var hadSearchTraces = !!searchTraces;
3761737625
var plotinfo, xRef, yRef;
3761837626
if(dragOptions) {
@@ -37735,15 +37743,15 @@ function reselect(gd, selectionTesters, searchTraces, dragOptions) {
3773537743
updateSelectedState(gd, allSearchTraces, eventData);
3773637744

3773737745
var clickmode = fullLayout.clickmode;
37738-
var sendEvents = clickmode.indexOf('event') > -1;
37746+
var sendEvents = clickmode.indexOf('event') > -1 && mayEmitSelected;
3773937747

3774037748
if(
3774137749
!plotinfo && // get called from plot_api & plots
37742-
fullLayout._reselect
37750+
mayEmitSelected
3774337751
) {
37744-
if(sendEvents) {
37745-
var activePolygons = getLayoutPolygons(gd, true);
37752+
var activePolygons = getLayoutPolygons(gd, true);
3774637753

37754+
if(activePolygons.length) {
3774737755
var xref = activePolygons[0].xref;
3774837756
var yref = activePolygons[0].yref;
3774937757
if(xref && yref) {
@@ -37756,8 +37764,12 @@ function reselect(gd, selectionTesters, searchTraces, dragOptions) {
3775637764

3775737765
fillRangeItems(eventData, poly);
3775837766
}
37767+
}
3775937768

37760-
emitSelected(gd, eventData);
37769+
if(gd._fullLayout._noEmitSelectedAtStart) {
37770+
gd._fullLayout._noEmitSelectedAtStart = false;
37771+
} else {
37772+
if(sendEvents) emitSelected(gd, eventData);
3776137773
}
3776237774

3776337775
fullLayout._reselect = false;
@@ -37779,7 +37791,7 @@ function reselect(gd, selectionTesters, searchTraces, dragOptions) {
3777937791
if(eventData.points.length) {
3778037792
emitSelected(gd, eventData);
3778137793
} else {
37782-
gd.emit('plotly_deselect', null);
37794+
emitDeselect(gd);
3778337795
}
3778437796
}
3778537797

@@ -74526,7 +74538,16 @@ plots.redrag = function(gd) {
7452674538
};
7452774539

7452874540
plots.reselect = function(gd) {
74529-
Registry.getComponentMethod('selections', 'reselect')(gd);
74541+
var fullLayout = gd._fullLayout;
74542+
74543+
var A = (gd.layout || {}).selections;
74544+
var B = fullLayout._previousSelections;
74545+
fullLayout._previousSelections = A;
74546+
74547+
var mayEmitSelected = fullLayout._reselect ||
74548+
JSON.stringify(A) !== JSON.stringify(B);
74549+
74550+
Registry.getComponentMethod('selections', 'reselect')(gd, mayEmitSelected);
7453074551
};
7453174552

7453274553
plots.generalUpdatePerTraceModule = function(gd, subplot, subplotCalcData, subplotLayout) {
@@ -84688,7 +84709,7 @@ function getSortFunc(opts, d2c) {
8468884709
'use strict';
8468984710

8469084711
// package version injected by `npm run preprocess`
84691-
exports.version = '2.13.2';
84712+
exports.version = '2.13.3';
8469284713

8469384714
},{}]},{},[8])(8)
8469484715
});

Diff for: dist/plotly-basic.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)