Skip to content

Commit 3451056

Browse files
committed
1.54.5
1 parent 12008ca commit 3451056

22 files changed

+293
-141
lines changed

dist/README.md

Lines changed: 22 additions & 22 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.4.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.5.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.4.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
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.4.js
82+
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.54.5.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.3 kB | 7.3 MB |
91+
| 7 MB | 3.3 MB | 987.5 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 kB | 292.9 kB |
117+
| 2.5 MB | 889.1 kB | 292.9 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.4.js |
126-
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.54.4.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 |
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.2 kB | 334.3 kB |
170+
| 2.8 MB | 1020.4 kB | 334.4 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.4.js |
179-
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.54.4.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 |
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.3 kB | 302.5 kB |
223+
| 2.5 MB | 916.4 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.4.js |
232-
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.54.4.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 |
233233

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

@@ -281,8 +281,8 @@ The `gl3d` partial bundle contains trace modules `scatter`, `scatter3d`, `surfac
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.4.js |
285-
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.54.4.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 |
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.4.js |
338-
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.54.4.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 |
339339

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

@@ -387,8 +387,8 @@ The `mapbox` partial bundle contains trace modules `scatter`, `scattermapbox`, `
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.4.js |
391-
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.54.4.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 |
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 | 976.8 kB | 318.1 kB |
435+
| 2.7 MB | 977 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.4.js |
444-
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.54.4.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 |
445445

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

dist/plotly-basic.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v1.54.4
2+
* plotly.js (basic) v1.54.5
33
* Copyright 2012-2020, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -50858,6 +50858,9 @@ var isArrayOrTypedArray = Lib.isArrayOrTypedArray;
5085850858
* error message (shown in console in logger config argument is enable)
5085950859
*/
5086050860
module.exports = function validate(data, layout) {
50861+
if(data === undefined) data = [];
50862+
if(layout === undefined) layout = {};
50863+
5086150864
var schema = PlotSchema.get();
5086250865
var errorList = [];
5086350866
var gd = {_context: Lib.extendFlat({}, dfltConfig)};
@@ -54236,6 +54239,8 @@ function getDividerVals(ax, vals) {
5423654239
var out = [];
5423754240
var i, current;
5423854241

54242+
var reversed = (vals.length && vals[vals.length - 1].x < vals[0].x);
54243+
5423954244
// never used for labels;
5424054245
// no need to worry about the other tickTextObj keys
5424154246
var _push = function(d, bndIndex) {
@@ -54249,11 +54254,11 @@ function getDividerVals(ax, vals) {
5424954254
for(i = 0; i < vals.length; i++) {
5425054255
var d = vals[i];
5425154256
if(d.text2 !== current) {
54252-
_push(d, 0);
54257+
_push(d, reversed ? 1 : 0);
5425354258
}
5425454259
current = d.text2;
5425554260
}
54256-
_push(vals[i - 1], 1);
54261+
_push(vals[i - 1], reversed ? 0 : 1);
5425754262
}
5425854263

5425954264
return out;
@@ -78345,7 +78350,7 @@ module.exports = function handleXYDefaults(traceIn, traceOut, layout, coerce) {
7834578350
'use strict';
7834678351

7834778352
// package version injected by `npm run preprocess`
78348-
exports.version = '1.54.4';
78353+
exports.version = '1.54.5';
7834978354

7835078355
},{}]},{},[4])(4)
7835178356
});

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: 49 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (cartesian) v1.54.4
2+
* plotly.js (cartesian) v1.54.5
33
* Copyright 2012-2020, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -51022,6 +51022,9 @@ var isArrayOrTypedArray = Lib.isArrayOrTypedArray;
5102251022
* error message (shown in console in logger config argument is enable)
5102351023
*/
5102451024
module.exports = function validate(data, layout) {
51025+
if(data === undefined) data = [];
51026+
if(layout === undefined) layout = {};
51027+
5102551028
var schema = PlotSchema.get();
5102651029
var errorList = [];
5102751030
var gd = {_context: Lib.extendFlat({}, dfltConfig)};
@@ -54400,6 +54403,8 @@ function getDividerVals(ax, vals) {
5440054403
var out = [];
5440154404
var i, current;
5440254405

54406+
var reversed = (vals.length && vals[vals.length - 1].x < vals[0].x);
54407+
5440354408
// never used for labels;
5440454409
// no need to worry about the other tickTextObj keys
5440554410
var _push = function(d, bndIndex) {
@@ -54413,11 +54418,11 @@ function getDividerVals(ax, vals) {
5441354418
for(i = 0; i < vals.length; i++) {
5441454419
var d = vals[i];
5441554420
if(d.text2 !== current) {
54416-
_push(d, 0);
54421+
_push(d, reversed ? 1 : 0);
5441754422
}
5441854423
current = d.text2;
5441954424
}
54420-
_push(vals[i - 1], 1);
54425+
_push(vals[i - 1], reversed ? 0 : 1);
5442154426
}
5442254427

5442354428
return out;
@@ -76260,8 +76265,11 @@ function plot(gd, plotinfo, cdbox, boxLayer) {
7626076265
}
7626176266

7626276267
function plotBoxAndWhiskers(sel, axes, trace, t) {
76263-
var posAxis = axes.pos;
76268+
var isHorizontal = trace.orientation === 'h';
7626476269
var valAxis = axes.val;
76270+
var posAxis = axes.pos;
76271+
var posHasRangeBreaks = !!posAxis.rangebreaks;
76272+
7626576273
var bPos = t.bPos;
7626676274
var wdPos = t.wdPos || 0;
7626776275
var bPosPxOffset = t.bPosPxOffset || 0;
@@ -76295,11 +76303,15 @@ function plotBoxAndWhiskers(sel, axes, trace, t) {
7629576303
if(d.empty) return 'M0,0Z';
7629676304

7629776305
var lcenter = posAxis.c2l(d.pos + bPos, true);
76298-
var posc = posAxis.l2p(lcenter) + bPosPxOffset;
76306+
7629976307
var pos0 = posAxis.l2p(lcenter - bdPos0) + bPosPxOffset;
7630076308
var pos1 = posAxis.l2p(lcenter + bdPos1) + bPosPxOffset;
76301-
var posw0 = posAxis.l2p(lcenter - wdPos) + bPosPxOffset;
76302-
var posw1 = posAxis.l2p(lcenter + wdPos) + bPosPxOffset;
76309+
var posc = posHasRangeBreaks ? (pos0 + pos1) / 2 : posAxis.l2p(lcenter) + bPosPxOffset;
76310+
76311+
var r = trace.whiskerwidth;
76312+
var posw0 = posHasRangeBreaks ? pos0 * r + (1 - r) * posc : posAxis.l2p(lcenter - wdPos) + bPosPxOffset;
76313+
var posw1 = posHasRangeBreaks ? pos1 * r + (1 - r) * posc : posAxis.l2p(lcenter + wdPos) + bPosPxOffset;
76314+
7630376315
var posm0 = posAxis.l2p(lcenter - bdPos0 * nw) + bPosPxOffset;
7630476316
var posm1 = posAxis.l2p(lcenter + bdPos1 * nw) + bPosPxOffset;
7630576317
var q1 = valAxis.c2p(d.q1, true);
@@ -76323,30 +76335,45 @@ function plotBoxAndWhiskers(sel, axes, trace, t) {
7632376335
var ln = valAxis.c2p(d.ln, true);
7632476336
var un = valAxis.c2p(d.un, true);
7632576337

76326-
if(trace.orientation === 'h') {
76338+
if(isHorizontal) {
7632776339
d3.select(this).attr('d',
7632876340
'M' + m + ',' + posm0 + 'V' + posm1 + // median line
7632976341
'M' + q1 + ',' + pos0 + 'V' + pos1 + // left edge
76330-
(notched ? 'H' + ln + 'L' + m + ',' + posm1 + 'L' + un + ',' + pos1 : '') + // top notched edge
76342+
(notched ?
76343+
'H' + ln + 'L' + m + ',' + posm1 + 'L' + un + ',' + pos1 :
76344+
''
76345+
) + // top notched edge
7633176346
'H' + q3 + // end of the top edge
7633276347
'V' + pos0 + // right edge
7633376348
(notched ? 'H' + un + 'L' + m + ',' + posm0 + 'L' + ln + ',' + pos0 : '') + // bottom notched edge
7633476349
'Z' + // end of the box
7633576350
'M' + q1 + ',' + posc + 'H' + lf + 'M' + q3 + ',' + posc + 'H' + uf + // whiskers
76336-
((whiskerWidth === 0) ? '' : // whisker caps
76337-
'M' + lf + ',' + posw0 + 'V' + posw1 + 'M' + uf + ',' + posw0 + 'V' + posw1));
76351+
(whiskerWidth === 0 ?
76352+
'' : // whisker caps
76353+
'M' + lf + ',' + posw0 + 'V' + posw1 + 'M' + uf + ',' + posw0 + 'V' + posw1
76354+
)
76355+
);
7633876356
} else {
7633976357
d3.select(this).attr('d',
7634076358
'M' + posm0 + ',' + m + 'H' + posm1 + // median line
7634176359
'M' + pos0 + ',' + q1 + 'H' + pos1 + // top of the box
76342-
(notched ? 'V' + ln + 'L' + posm1 + ',' + m + 'L' + pos1 + ',' + un : '') + // notched right edge
76360+
(notched ?
76361+
'V' + ln + 'L' + posm1 + ',' + m + 'L' + pos1 + ',' + un :
76362+
''
76363+
) + // notched right edge
7634376364
'V' + q3 + // end of the right edge
7634476365
'H' + pos0 + // bottom of the box
76345-
(notched ? 'V' + un + 'L' + posm0 + ',' + m + 'L' + pos0 + ',' + ln : '') + // notched left edge
76366+
(notched ?
76367+
'V' + un + 'L' + posm0 + ',' + m + 'L' + pos0 + ',' + ln :
76368+
''
76369+
) + // notched left edge
7634676370
'Z' + // end of the box
7634776371
'M' + posc + ',' + q1 + 'V' + lf + 'M' + posc + ',' + q3 + 'V' + uf + // whiskers
76348-
((whiskerWidth === 0) ? '' : // whisker caps
76349-
'M' + posw0 + ',' + lf + 'H' + posw1 + 'M' + posw0 + ',' + uf + 'H' + posw1));
76372+
(whiskerWidth === 0 ?
76373+
'' : // whisker caps
76374+
'M' + posw0 + ',' + lf + 'H' + posw1 + 'M' + posw0 + ',' + uf + 'H' + posw1
76375+
)
76376+
);
7635076377
}
7635176378
});
7635276379
}
@@ -76462,8 +76489,10 @@ function plotPoints(sel, axes, trace, t) {
7646276489
}
7646376490

7646476491
function plotBoxMean(sel, axes, trace, t) {
76465-
var posAxis = axes.pos;
7646676492
var valAxis = axes.val;
76493+
var posAxis = axes.pos;
76494+
var posHasRangeBreaks = !!posAxis.rangebreaks;
76495+
7646776496
var bPos = t.bPos;
7646876497
var bPosPxOffset = t.bPosPxOffset || 0;
7646976498

@@ -76497,9 +76526,11 @@ function plotBoxMean(sel, axes, trace, t) {
7649776526

7649876527
paths.each(function(d) {
7649976528
var lcenter = posAxis.c2l(d.pos + bPos, true);
76500-
var posc = posAxis.l2p(lcenter) + bPosPxOffset;
76529+
7650176530
var pos0 = posAxis.l2p(lcenter - bdPos0) + bPosPxOffset;
7650276531
var pos1 = posAxis.l2p(lcenter + bdPos1) + bPosPxOffset;
76532+
var posc = posHasRangeBreaks ? (pos0 + pos1) / 2 : posAxis.l2p(lcenter) + bPosPxOffset;
76533+
7650376534
var m = valAxis.c2p(d.mean, true);
7650476535
var sl = valAxis.c2p(d.mean - d.sd, true);
7650576536
var sh = valAxis.c2p(d.mean + d.sd, true);
@@ -89979,7 +90010,7 @@ module.exports = function style(gd) {
8997990010
'use strict';
8998090011

8998190012
// package version injected by `npm run preprocess`
89982-
exports.version = '1.54.4';
90013+
exports.version = '1.54.5';
8998390014

8998490015
},{}]},{},[11])(11)
8998590016
});

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)