Skip to content

Commit aaac215

Browse files
committed
1.54.6
1 parent 29347fe commit aaac215

22 files changed

+1327
-1201
lines changed

dist/README.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ object. This property must be set before the plotly.js script tag, for example:
5151
Plotly.js defaults to US English (en-US) and includes British English (en) in the standard bundle.
5252
Many other localizations are available - here is an example using Swiss-German (de-CH),
5353
see the contents of this directory for the full list.
54-
They are also available on our CDN as https://cdn.plot.ly/plotly-locale-de-ch-latest.js OR https://cdn.plot.ly/plotly-locale-de-ch-1.54.5.js
54+
They are also available on our CDN as https://cdn.plot.ly/plotly-locale-de-ch-latest.js OR https://cdn.plot.ly/plotly-locale-de-ch-1.54.6.js
5555
Note that the file names are all lowercase, even though the region is uppercase when you apply a locale.
5656

5757
*After* the plotly.js script tag, add:
@@ -74,12 +74,12 @@ The main plotly.js bundle includes all the official (non-beta) trace modules.
7474

7575
It be can imported as minified javascript
7676
- using dist file `dist/plotly.min.js`
77-
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.54.5.min.js
77+
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.54.6.min.js
7878

7979
or as raw javascript:
8080
- using the `plotly.js-dist` npm package (starting in `v1.39.0`)
8181
- using dist file `dist/plotly.js`
82-
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.54.5.js
82+
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.54.6.js
8383
- using CommonJS with `require('plotly.js')`
8484

8585
If you would like to have access to the attribute meta information (including attribute descriptions as on the [schema reference page](https://plotly.com/javascript/reference/)), use dist file `dist/plotly-with-meta.js`
@@ -88,7 +88,7 @@ The main plotly.js bundle weights in at:
8888

8989
| plotly.js | plotly.min.js | plotly.min.js + gzip | plotly-with-meta.js |
9090
|-----------|---------------|----------------------|---------------------|
91-
| 7 MB | 3.3 MB | 987.5 kB | 7.3 MB |
91+
| 7 MB | 3.3 MB | 987.7 kB | 7.3 MB |
9292

9393
## Partial bundles
9494

@@ -114,16 +114,16 @@ The `basic` partial bundle contains trace modules `scatter`, `bar` and `pie`.
114114

115115
| Raw size | Minified size | Minified + gzip size |
116116
|------|-----------------|------------------------|
117-
| 2.5 MB | 889.1 kB | 292.9 kB |
117+
| 2.5 MB | 889.3 kB | 293 kB |
118118

119119
#### CDN links
120120

121121
| Flavor | URL |
122122
| ------ | --- |
123123
| Latest | https://cdn.plot.ly/plotly-basic-latest.js |
124124
| Latest minified | https://cdn.plot.ly/plotly-basic-latest.min.js |
125-
| Tagged | https://cdn.plot.ly/plotly-basic-1.54.5.js |
126-
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.54.5.min.js |
125+
| Tagged | https://cdn.plot.ly/plotly-basic-1.54.6.js |
126+
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.54.6.min.js |
127127

128128
#### npm package (starting in `v1.39.0`)
129129

@@ -167,16 +167,16 @@ The `cartesian` partial bundle contains trace modules `scatter`, `bar`, `box`, `
167167

168168
| Raw size | Minified size | Minified + gzip size |
169169
|------|-----------------|------------------------|
170-
| 2.8 MB | 1020.4 kB | 334.4 kB |
170+
| 2.8 MB | 1020.6 kB | 334.5 kB |
171171

172172
#### CDN links
173173

174174
| Flavor | URL |
175175
| ------ | --- |
176176
| Latest | https://cdn.plot.ly/plotly-cartesian-latest.js |
177177
| Latest minified | https://cdn.plot.ly/plotly-cartesian-latest.min.js |
178-
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.54.5.js |
179-
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.54.5.min.js |
178+
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.54.6.js |
179+
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.54.6.min.js |
180180

181181
#### npm package (starting in `v1.39.0`)
182182

@@ -220,16 +220,16 @@ The `geo` partial bundle contains trace modules `scatter`, `scattergeo` and `cho
220220

221221
| Raw size | Minified size | Minified + gzip size |
222222
|------|-----------------|------------------------|
223-
| 2.5 MB | 916.4 kB | 302.6 kB |
223+
| 2.5 MB | 916.5 kB | 302.6 kB |
224224

225225
#### CDN links
226226

227227
| Flavor | URL |
228228
| ------ | --- |
229229
| Latest | https://cdn.plot.ly/plotly-geo-latest.js |
230230
| Latest minified | https://cdn.plot.ly/plotly-geo-latest.min.js |
231-
| Tagged | https://cdn.plot.ly/plotly-geo-1.54.5.js |
232-
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.54.5.min.js |
231+
| Tagged | https://cdn.plot.ly/plotly-geo-1.54.6.js |
232+
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.54.6.min.js |
233233

234234
#### npm package (starting in `v1.39.0`)
235235

@@ -273,16 +273,16 @@ The `gl3d` partial bundle contains trace modules `scatter`, `scatter3d`, `surfac
273273

274274
| Raw size | Minified size | Minified + gzip size |
275275
|------|-----------------|------------------------|
276-
| 3.5 MB | 1.4 MB | 450.8 kB |
276+
| 3.5 MB | 1.4 MB | 450.9 kB |
277277

278278
#### CDN links
279279

280280
| Flavor | URL |
281281
| ------ | --- |
282282
| Latest | https://cdn.plot.ly/plotly-gl3d-latest.js |
283283
| Latest minified | https://cdn.plot.ly/plotly-gl3d-latest.min.js |
284-
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.54.5.js |
285-
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.54.5.min.js |
284+
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.54.6.js |
285+
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.54.6.min.js |
286286

287287
#### npm package (starting in `v1.39.0`)
288288

@@ -334,8 +334,8 @@ The `gl2d` partial bundle contains trace modules `scatter`, `scattergl`, `splom`
334334
| ------ | --- |
335335
| Latest | https://cdn.plot.ly/plotly-gl2d-latest.js |
336336
| Latest minified | https://cdn.plot.ly/plotly-gl2d-latest.min.js |
337-
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.54.5.js |
338-
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.54.5.min.js |
337+
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.54.6.js |
338+
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.54.6.min.js |
339339

340340
#### npm package (starting in `v1.39.0`)
341341

@@ -379,16 +379,16 @@ The `mapbox` partial bundle contains trace modules `scatter`, `scattermapbox`, `
379379

380380
| Raw size | Minified size | Minified + gzip size |
381381
|------|-----------------|------------------------|
382-
| 3.3 MB | 1.6 MB | 489.4 kB |
382+
| 3.3 MB | 1.6 MB | 489.5 kB |
383383

384384
#### CDN links
385385

386386
| Flavor | URL |
387387
| ------ | --- |
388388
| Latest | https://cdn.plot.ly/plotly-mapbox-latest.js |
389389
| Latest minified | https://cdn.plot.ly/plotly-mapbox-latest.min.js |
390-
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.54.5.js |
391-
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.54.5.min.js |
390+
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.54.6.js |
391+
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.54.6.min.js |
392392

393393
#### npm package (starting in `v1.39.0`)
394394

@@ -432,16 +432,16 @@ The `finance` partial bundle contains trace modules `scatter`, `bar`, `histogram
432432

433433
| Raw size | Minified size | Minified + gzip size |
434434
|------|-----------------|------------------------|
435-
| 2.7 MB | 977 kB | 318.3 kB |
435+
| 2.7 MB | 977.2 kB | 318.3 kB |
436436

437437
#### CDN links
438438

439439
| Flavor | URL |
440440
| ------ | --- |
441441
| Latest | https://cdn.plot.ly/plotly-finance-latest.js |
442442
| Latest minified | https://cdn.plot.ly/plotly-finance-latest.min.js |
443-
| Tagged | https://cdn.plot.ly/plotly-finance-1.54.5.js |
444-
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.54.5.min.js |
443+
| Tagged | https://cdn.plot.ly/plotly-finance-1.54.6.js |
444+
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.54.6.min.js |
445445

446446
#### npm package (starting in `v1.39.0`)
447447

dist/plotly-basic.js

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v1.54.5
2+
* plotly.js (basic) v1.54.6
33
* Copyright 2012-2020, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -41607,7 +41607,6 @@ module.exports = function relinkPrivateKeys(toContainer, fromContainer) {
4160741607
var toVal = toContainer[k];
4160841608

4160941609
if(toVal === fromVal) continue;
41610-
if(toContainer.matches && k === '_categoriesMap') continue;
4161141610

4161241611
if(k.charAt(0) === '_' || typeof fromVal === 'function') {
4161341612
// if it already exists at this point, it's something
@@ -46892,6 +46891,16 @@ function react(gd, data, layout, config) {
4689246891

4689346892
applyUIRevisions(gd.data, gd.layout, oldFullData, oldFullLayout);
4689446893

46894+
var allNames = Object.getOwnPropertyNames(oldFullLayout);
46895+
for(var q = 0; q < allNames.length; q++) {
46896+
var name = allNames[q];
46897+
var start = name.substring(0, 5);
46898+
if(start === 'xaxis' || start === 'yaxis') {
46899+
var emptyCategories = oldFullLayout[name]._emptyCategories;
46900+
if(emptyCategories) emptyCategories();
46901+
}
46902+
}
46903+
4689546904
// "true" skips updating calcdata and remapping arrays from calcTransforms,
4689646905
// which supplyDefaults usually does at the end, but we may need to NOT do
4689746906
// if the diff (which we haven't determined yet) says we'll recalc
@@ -61850,13 +61859,13 @@ module.exports = function setConvert(ax, fullLayout) {
6185061859
}
6185161860
};
6185261861

61862+
ax._emptyCategories = function() {
61863+
ax._categories = [];
61864+
ax._categoriesMap = {};
61865+
};
61866+
6185361867
// should skip if not category nor multicategory
6185461868
ax.clearCalc = function() {
61855-
var emptyCategories = function() {
61856-
ax._categories = [];
61857-
ax._categoriesMap = {};
61858-
};
61859-
6186061869
var matchGroups = fullLayout._axisMatchGroups;
6186161870

6186261871
if(matchGroups && matchGroups.length) {
@@ -61883,14 +61892,14 @@ module.exports = function setConvert(ax, fullLayout) {
6188361892
ax._categories = categories;
6188461893
ax._categoriesMap = categoriesMap;
6188561894
} else {
61886-
emptyCategories();
61895+
ax._emptyCategories();
6188761896
}
6188861897
break;
6188961898
}
6189061899
}
61891-
if(!found) emptyCategories();
61900+
if(!found) ax._emptyCategories();
6189261901
} else {
61893-
emptyCategories();
61902+
ax._emptyCategories();
6189461903
}
6189561904

6189661905
if(ax._initialCategories) {
@@ -61904,12 +61913,8 @@ module.exports = function setConvert(ax, fullLayout) {
6190461913
// returns the indices of the traces affected by the reordering
6190561914
ax.sortByInitialCategories = function() {
6190661915
var affectedTraces = [];
61907-
var emptyCategories = function() {
61908-
ax._categories = [];
61909-
ax._categoriesMap = {};
61910-
};
6191161916

61912-
emptyCategories();
61917+
ax._emptyCategories();
6191361918

6191461919
if(ax._initialCategories) {
6191561920
for(var j = 0; j < ax._initialCategories.length; j++) {
@@ -78350,7 +78355,7 @@ module.exports = function handleXYDefaults(traceIn, traceOut, layout, coerce) {
7835078355
'use strict';
7835178356

7835278357
// package version injected by `npm run preprocess`
78353-
exports.version = '1.54.5';
78358+
exports.version = '1.54.6';
7835478359

7835578360
},{}]},{},[4])(4)
7835678361
});

dist/plotly-basic.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-cartesian.js

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (cartesian) v1.54.5
2+
* plotly.js (cartesian) v1.54.6
33
* Copyright 2012-2020, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -41771,7 +41771,6 @@ module.exports = function relinkPrivateKeys(toContainer, fromContainer) {
4177141771
var toVal = toContainer[k];
4177241772

4177341773
if(toVal === fromVal) continue;
41774-
if(toContainer.matches && k === '_categoriesMap') continue;
4177541774

4177641775
if(k.charAt(0) === '_' || typeof fromVal === 'function') {
4177741776
// if it already exists at this point, it's something
@@ -47056,6 +47055,16 @@ function react(gd, data, layout, config) {
4705647055

4705747056
applyUIRevisions(gd.data, gd.layout, oldFullData, oldFullLayout);
4705847057

47058+
var allNames = Object.getOwnPropertyNames(oldFullLayout);
47059+
for(var q = 0; q < allNames.length; q++) {
47060+
var name = allNames[q];
47061+
var start = name.substring(0, 5);
47062+
if(start === 'xaxis' || start === 'yaxis') {
47063+
var emptyCategories = oldFullLayout[name]._emptyCategories;
47064+
if(emptyCategories) emptyCategories();
47065+
}
47066+
}
47067+
4705947068
// "true" skips updating calcdata and remapping arrays from calcTransforms,
4706047069
// which supplyDefaults usually does at the end, but we may need to NOT do
4706147070
// if the diff (which we haven't determined yet) says we'll recalc
@@ -62014,13 +62023,13 @@ module.exports = function setConvert(ax, fullLayout) {
6201462023
}
6201562024
};
6201662025

62026+
ax._emptyCategories = function() {
62027+
ax._categories = [];
62028+
ax._categoriesMap = {};
62029+
};
62030+
6201762031
// should skip if not category nor multicategory
6201862032
ax.clearCalc = function() {
62019-
var emptyCategories = function() {
62020-
ax._categories = [];
62021-
ax._categoriesMap = {};
62022-
};
62023-
6202462033
var matchGroups = fullLayout._axisMatchGroups;
6202562034

6202662035
if(matchGroups && matchGroups.length) {
@@ -62047,14 +62056,14 @@ module.exports = function setConvert(ax, fullLayout) {
6204762056
ax._categories = categories;
6204862057
ax._categoriesMap = categoriesMap;
6204962058
} else {
62050-
emptyCategories();
62059+
ax._emptyCategories();
6205162060
}
6205262061
break;
6205362062
}
6205462063
}
62055-
if(!found) emptyCategories();
62064+
if(!found) ax._emptyCategories();
6205662065
} else {
62057-
emptyCategories();
62066+
ax._emptyCategories();
6205862067
}
6205962068

6206062069
if(ax._initialCategories) {
@@ -62068,12 +62077,8 @@ module.exports = function setConvert(ax, fullLayout) {
6206862077
// returns the indices of the traces affected by the reordering
6206962078
ax.sortByInitialCategories = function() {
6207062079
var affectedTraces = [];
62071-
var emptyCategories = function() {
62072-
ax._categories = [];
62073-
ax._categoriesMap = {};
62074-
};
6207562080

62076-
emptyCategories();
62081+
ax._emptyCategories();
6207762082

6207862083
if(ax._initialCategories) {
6207962084
for(var j = 0; j < ax._initialCategories.length; j++) {
@@ -70132,7 +70137,7 @@ proto.initInteractions = function() {
7013270137
b: mins0.b + (dxScaled + dyScaled) / 2,
7013370138
c: mins0.c - (dxScaled - dyScaled) / 2
7013470139
};
70135-
var minsorted = [mins.a, mins.b, mins.c].sort();
70140+
var minsorted = [mins.a, mins.b, mins.c].sort(Lib.sorterAsc);
7013670141
var minindices = {
7013770142
a: minsorted.indexOf(mins.a),
7013870143
b: minsorted.indexOf(mins.b),
@@ -80582,6 +80587,11 @@ module.exports = function handleXYZDefaults(traceIn, traceOut, coerce, layout, x
8058280587
traceOut._length = null;
8058380588
}
8058480589

80590+
if(
80591+
traceIn.type === 'heatmapgl' ||
80592+
traceIn.type === 'contourgl'
80593+
) return true; // skip calendars until we handle them in those traces
80594+
8058580595
var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleTraceDefaults');
8058680596
handleCalendarDefaults(traceIn, traceOut, [xName, yName], layout);
8058780597

@@ -90010,7 +90020,7 @@ module.exports = function style(gd) {
9001090020
'use strict';
9001190021

9001290022
// package version injected by `npm run preprocess`
90013-
exports.version = '1.54.5';
90023+
exports.version = '1.54.6';
9001490024

9001590025
},{}]},{},[11])(11)
9001690026
});

dist/plotly-cartesian.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)