Skip to content

Commit d45eef5

Browse files
committedDec 17, 2020
1.58.3
1 parent e656dea commit d45eef5

22 files changed

+334
-622
lines changed
 

‎dist/README.md

+25-25
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.58.2.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.58.3.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.58.2.min.js
77+
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.58.3.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.58.2.js
82+
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.58.3.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.2 MB | 3.3 MB | 1007.2 kB | 7.5 MB |
91+
| 7.2 MB | 3.3 MB | 1007.1 kB | 7.5 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.6 MB | 935.5 kB | 307.4 kB |
117+
| 2.6 MB | 935.2 kB | 307.3 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.58.2.js |
126-
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.58.2.min.js |
125+
| Tagged | https://cdn.plot.ly/plotly-basic-1.58.3.js |
126+
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.58.3.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-
| 3 MB | 1.1 MB | 361 kB |
170+
| 3 MB | 1.1 MB | 360.9 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.58.2.js |
179-
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.58.2.min.js |
178+
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.58.3.js |
179+
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.58.3.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.7 MB | 962.1 kB | 316.7 kB |
223+
| 2.7 MB | 961.8 kB | 316.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.58.2.js |
232-
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.58.2.min.js |
231+
| Tagged | https://cdn.plot.ly/plotly-geo-1.58.3.js |
232+
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.58.3.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.6 MB | 1.4 MB | 463.1 kB |
276+
| 3.6 MB | 1.4 MB | 463 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.58.2.js |
285-
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.58.2.min.js |
284+
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.58.3.js |
285+
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.58.3.min.js |
286286

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

@@ -326,16 +326,16 @@ The `gl2d` partial bundle contains trace modules `scatter`, `scattergl`, `splom`
326326

327327
| Raw size | Minified size | Minified + gzip size |
328328
|------|-----------------|------------------------|
329-
| 3.7 MB | 1.5 MB | 488.1 kB |
329+
| 3.7 MB | 1.5 MB | 488 kB |
330330

331331
#### CDN links
332332

333333
| Flavor | URL |
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.58.2.js |
338-
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.58.2.min.js |
337+
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.58.3.js |
338+
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.58.3.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.4 MB | 1.7 MB | 503.8 kB |
382+
| 3.4 MB | 1.7 MB | 503.7 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.58.2.js |
391-
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.58.2.min.js |
390+
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.58.3.js |
391+
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.58.3.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.8 MB | 1 MB | 333.2 kB |
435+
| 2.8 MB | 1 MB | 333.1 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.58.2.js |
444-
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.58.2.min.js |
443+
| Tagged | https://cdn.plot.ly/plotly-finance-1.58.3.js |
444+
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.58.3.min.js |
445445

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

‎dist/plotly-basic.js

+32-64
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v1.58.2
2+
* plotly.js (basic) v1.58.3
33
* Copyright 2012-2020, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -48917,7 +48917,9 @@ function axRangeSupplyDefaultsByPass(gd, flags, specs) {
4891748917
var axIn = gd.layout[axName];
4891848918
var axOut = fullLayout[axName];
4891948919
axOut.autorange = axIn.autorange;
48920-
axOut.range = axIn.range.slice();
48920+
if(axIn.range) {
48921+
axOut.range = axIn.range.slice();
48922+
}
4892148923
axOut.cleanRange();
4892248924

4892348925
if(axOut._matchGroup) {
@@ -49704,16 +49706,6 @@ function react(gd, data, layout, config) {
4970449706

4970549707
applyUIRevisions(gd.data, gd.layout, oldFullData, oldFullLayout);
4970649708

49707-
var allNames = Object.getOwnPropertyNames(oldFullLayout);
49708-
for(var q = 0; q < allNames.length; q++) {
49709-
var name = allNames[q];
49710-
var start = name.substring(0, 5);
49711-
if(start === 'xaxis' || start === 'yaxis') {
49712-
var emptyCategories = oldFullLayout[name]._emptyCategories;
49713-
if(emptyCategories) emptyCategories();
49714-
}
49715-
}
49716-
4971749709
// "true" skips updating calcdata and remapping arrays from calcTransforms,
4971849710
// which supplyDefaults usually does at the end, but we may need to NOT do
4971949711
// if the diff (which we haven't determined yet) says we'll recalc
@@ -49739,10 +49731,22 @@ function react(gd, data, layout, config) {
4973949731

4974049732
if(updateAutosize(gd)) relayoutFlags.layoutReplot = true;
4974149733

49742-
// clear calcdata if required
49743-
if(restyleFlags.calc || relayoutFlags.calc) gd.calcdata = undefined;
49734+
// clear calcdata and empty categories if required
49735+
if(restyleFlags.calc || relayoutFlags.calc) {
49736+
gd.calcdata = undefined;
49737+
var allNames = Object.getOwnPropertyNames(newFullLayout);
49738+
for(var q = 0; q < allNames.length; q++) {
49739+
var name = allNames[q];
49740+
var start = name.substring(0, 5);
49741+
if(start === 'xaxis' || start === 'yaxis') {
49742+
var emptyCategories = newFullLayout[name]._emptyCategories;
49743+
if(emptyCategories) emptyCategories();
49744+
}
49745+
}
4974449746
// otherwise do the calcdata updates and calcTransform array remaps that we skipped earlier
49745-
else Plots.supplyDefaultsUpdateCalc(gd.calcdata, newFullData);
49747+
} else {
49748+
Plots.supplyDefaultsUpdateCalc(gd.calcdata, newFullData);
49749+
}
4974649750

4974749751
// Note: what restyle/relayout use impliedEdits and clearAxisTypes for
4974849752
// must be handled by the user when using Plotly.react.
@@ -54660,8 +54664,8 @@ function getAutoRange(gd, ax) {
5466054664
} else if(dv / axLen > mbest) {
5466154665
// in case of padding longer than the axis
5466254666
// at least include the unpadded data values.
54663-
minbest = {val: minpt.val, pad: 0};
54664-
maxbest = {val: maxpt.val, pad: 0};
54667+
minbest = {val: minpt.val, nopad: 1};
54668+
maxbest = {val: maxpt.val, nopad: 1};
5466554669
mbest = dv / axLen;
5466654670
}
5466754671
}
@@ -54698,17 +54702,17 @@ function getAutoRange(gd, ax) {
5469854702
} else {
5469954703
if(toZero) {
5470054704
if(minbest.val >= 0) {
54701-
minbest = {val: 0, pad: 0};
54705+
minbest = {val: 0, nopad: 1};
5470254706
}
5470354707
if(maxbest.val <= 0) {
54704-
maxbest = {val: 0, pad: 0};
54708+
maxbest = {val: 0, nopad: 1};
5470554709
}
5470654710
} else if(nonNegative) {
5470754711
if(minbest.val - mbest * getPadMin(minbest) < 0) {
54708-
minbest = {val: 0, pad: 0};
54712+
minbest = {val: 0, nopad: 1};
5470954713
}
5471054714
if(maxbest.val <= 0) {
54711-
maxbest = {val: 1, pad: 0};
54715+
maxbest = {val: 1, nopad: 1};
5471254716
}
5471354717
}
5471454718

@@ -54763,14 +54767,10 @@ function makePadFn(fullLayout, ax, max) {
5476354767
if(axReverse) max = !max;
5476454768
}
5476554769

54766-
var A = 0;
54767-
var B = 0;
54770+
var zero = 0;
5476854771
if(!isLinked(fullLayout, ax._id)) {
54769-
A = padInsideLabelsOnAnchorAxis(ax, max);
54770-
B = padInsideLabelsOnThisAxis(ax, max);
54772+
zero = padInsideLabelsOnAnchorAxis(ax, max);
5477154773
}
54772-
54773-
var zero = Math.max(A, B);
5477454774
extrappad = Math.max(zero, extrappad);
5477554775

5477654776
// domain-constrained axes: base extrappad on the unconstrained
@@ -54780,46 +54780,14 @@ function makePadFn(fullLayout, ax, max) {
5478054780
(ax.domain[1] - ax.domain[0]);
5478154781
}
5478254782

54783-
return function getPad(pt) { return pt.pad + (pt.extrapad ? extrappad : zero); };
54783+
return function getPad(pt) {
54784+
if(pt.nopad) return 0;
54785+
return pt.pad + (pt.extrapad ? extrappad : zero);
54786+
};
5478454787
}
5478554788

5478654789
var TEXTPAD = 3;
5478754790

54788-
function padInsideLabelsOnThisAxis(ax, max) {
54789-
var ticklabelposition = ax.ticklabelposition || '';
54790-
var has = function(str) {
54791-
return ticklabelposition.indexOf(str) !== -1;
54792-
};
54793-
54794-
if(!has('inside')) return 0;
54795-
var isTop = has('top');
54796-
var isLeft = has('left');
54797-
var isRight = has('right');
54798-
var isBottom = has('bottom');
54799-
var isAligned = isBottom || isLeft || isTop || isRight;
54800-
54801-
if(
54802-
(max && (isLeft || isBottom)) ||
54803-
(!max && (isRight || isTop))
54804-
) {
54805-
return 0;
54806-
}
54807-
54808-
// increase padding to make more room for inside tick labels of the axis
54809-
var fontSize = ax.tickfont ? ax.tickfont.size : 12;
54810-
var isX = ax._id.charAt(0) === 'x';
54811-
var pad = (isX ? 1.2 : 0.6) * fontSize;
54812-
54813-
if(isAligned) {
54814-
pad *= 2;
54815-
pad += (ax.tickwidth || 0) / 2;
54816-
}
54817-
54818-
pad += TEXTPAD;
54819-
54820-
return pad;
54821-
}
54822-
5482354791
function padInsideLabelsOnAnchorAxis(ax, max) {
5482454792
var pad = 0;
5482554793
var anchorAxis = ax._anchorAxis || {};
@@ -82569,7 +82537,7 @@ module.exports = function handleXYDefaults(traceIn, traceOut, layout, coerce) {
8256982537
'use strict';
8257082538

8257182539
// package version injected by `npm run preprocess`
82572-
exports.version = '1.58.2';
82540+
exports.version = '1.58.3';
8257382541

8257482542
},{}]},{},[4])(4)
8257582543
});

‎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)