Skip to content

Commit 2ddfa84

Browse files
committed
1.54.7
1 parent be1fc3c commit 2ddfa84

22 files changed

+289
-496
lines changed

dist/README.md

Lines changed: 25 additions & 25 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.6.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.7.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.6.min.js
77+
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.54.7.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.6.js
82+
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.54.7.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.7 kB | 7.3 MB |
91+
| 7 MB | 3.3 MB | 987.6 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.3 kB | 293 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.6.js |
126-
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.54.6.min.js |
125+
| Tagged | https://cdn.plot.ly/plotly-basic-1.54.7.js |
126+
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.54.7.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.6 kB | 334.5 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.6.js |
179-
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.54.6.min.js |
178+
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.54.7.js |
179+
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.54.7.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.5 kB | 302.6 kB |
223+
| 2.5 MB | 916.3 kB | 302.5 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.6.js |
232-
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.54.6.min.js |
231+
| Tagged | https://cdn.plot.ly/plotly-geo-1.54.7.js |
232+
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.54.7.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.9 kB |
276+
| 3.5 MB | 1.4 MB | 450.8 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.6.js |
285-
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.54.6.min.js |
284+
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.54.7.js |
285+
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.54.7.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.6 MB | 1.4 MB | 472.8 kB |
329+
| 3.6 MB | 1.4 MB | 472.7 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.54.6.js |
338-
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.54.6.min.js |
337+
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.54.7.js |
338+
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.54.7.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.5 kB |
382+
| 3.3 MB | 1.6 MB | 489.4 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.6.js |
391-
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.54.6.min.js |
390+
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.54.7.js |
391+
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.54.7.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.2 kB | 318.3 kB |
435+
| 2.7 MB | 977 kB | 318.2 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.6.js |
444-
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.54.6.min.js |
443+
| Tagged | https://cdn.plot.ly/plotly-finance-1.54.7.js |
444+
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.54.7.min.js |
445445

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

dist/plotly-basic.js

Lines changed: 27 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v1.54.6
2+
* plotly.js (basic) v1.54.7
33
* Copyright 2012-2020, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -37277,81 +37277,58 @@ exports.valObjectMeta = {
3727737277
* as a convenience, returns the value it finally set
3727837278
*/
3727937279
exports.coerce = function(containerIn, containerOut, attributes, attribute, dflt) {
37280-
return _coerce(containerIn, containerOut, attributes, attribute, dflt).val;
37281-
};
37282-
37283-
function _coerce(containerIn, containerOut, attributes, attribute, dflt, opts) {
37284-
var shouldValidate = (opts || {}).shouldValidate;
37285-
37286-
var attr = nestedProperty(attributes, attribute).get();
37287-
if(dflt === undefined) dflt = attr.dflt;
37288-
var src = false;
37289-
37280+
var opts = nestedProperty(attributes, attribute).get();
3729037281
var propIn = nestedProperty(containerIn, attribute);
3729137282
var propOut = nestedProperty(containerOut, attribute);
37292-
var valIn = propIn.get();
37283+
var v = propIn.get();
3729337284

3729437285
var template = containerOut._template;
37295-
if(valIn === undefined && template) {
37296-
valIn = nestedProperty(template, attribute).get();
37297-
src = (valIn !== undefined);
37298-
37286+
if(v === undefined && template) {
37287+
v = nestedProperty(template, attribute).get();
3729937288
// already used the template value, so short-circuit the second check
3730037289
template = 0;
3730137290
}
3730237291

37292+
if(dflt === undefined) dflt = opts.dflt;
37293+
3730337294
/**
3730437295
* arrayOk: value MAY be an array, then we do no value checking
3730537296
* at this point, because it can be more complicated than the
3730637297
* individual form (eg. some array vals can be numbers, even if the
3730737298
* single values must be color strings)
3730837299
*/
37309-
if(attr.arrayOk && isArrayOrTypedArray(valIn)) {
37310-
propOut.set(valIn);
37311-
return {
37312-
inp: valIn,
37313-
val: valIn,
37314-
src: true
37315-
};
37300+
if(opts.arrayOk && isArrayOrTypedArray(v)) {
37301+
propOut.set(v);
37302+
return v;
3731637303
}
3731737304

37318-
var coerceFunction = exports.valObjectMeta[attr.valType].coerceFunction;
37319-
coerceFunction(valIn, propOut, dflt, attr);
37320-
37321-
var valOut = propOut.get();
37322-
src = (valOut !== undefined) && shouldValidate && validate(valIn, attr);
37305+
var coerceFunction = exports.valObjectMeta[opts.valType].coerceFunction;
37306+
coerceFunction(v, propOut, dflt, opts);
3732337307

37308+
var out = propOut.get();
3732437309
// in case v was provided but invalid, try the template again so it still
3732537310
// overrides the regular default
37326-
if(template && valOut === dflt && !validate(valIn, attr)) {
37327-
valIn = nestedProperty(template, attribute).get();
37328-
coerceFunction(valIn, propOut, dflt, attr);
37329-
valOut = propOut.get();
37330-
37331-
src = (valOut !== undefined) && shouldValidate && validate(valIn, attr);
37311+
if(template && out === dflt && !validate(v, opts)) {
37312+
v = nestedProperty(template, attribute).get();
37313+
coerceFunction(v, propOut, dflt, opts);
37314+
out = propOut.get();
3733237315
}
37333-
37334-
return {
37335-
inp: valIn,
37336-
val: valOut,
37337-
src: src
37338-
};
37339-
}
37316+
return out;
37317+
};
3734037318

3734137319
/**
3734237320
* Variation on coerce
37343-
* useful when setting an attribute to a valid value
37344-
* can change the default for another attribute.
3734537321
*
3734637322
* Uses coerce to get attribute value if user input is valid,
3734737323
* returns attribute default if user input it not valid or
3734837324
* returns false if there is no user input.
3734937325
*/
3735037326
exports.coerce2 = function(containerIn, containerOut, attributes, attribute, dflt) {
37351-
var out = _coerce(containerIn, containerOut, attributes, attribute, dflt, {
37352-
shouldValidate: true
37353-
});
37354-
return (out.src && out.inp !== undefined) ? out.val : false;
37327+
var propIn = nestedProperty(containerIn, attribute);
37328+
var propOut = exports.coerce(containerIn, containerOut, attributes, attribute, dflt);
37329+
var valIn = propIn.get();
37330+
37331+
return (valIn !== undefined && valIn !== null) ? propOut : false;
3735537332
};
3735637333

3735737334
/*
@@ -37567,14 +37544,14 @@ var MIN_MS, MAX_MS;
3756737544
* you can use a gregorian date string prefixed with 'G' or 'g'.
3756837545
*
3756937546
* Where to cut off 2-digit years between 1900s and 2000s?
37570-
* from http://support.microsoft.com/kb/244664:
37547+
* from https://docs.microsoft.com/en-us/office/troubleshoot/excel/two-digit-year-numbers#the-2029-rule:
3757137548
* 1930-2029 (the most retro of all...)
3757237549
* but in my mac chrome from eg. d=new Date(Date.parse('8/19/50')):
3757337550
* 1950-2049
3757437551
* by Java, from http://stackoverflow.com/questions/2024273/:
3757537552
* now-80 - now+19
3757637553
* or FileMaker Pro, from
37577-
* http://www.filemaker.com/12help/html/add_view_data.4.21.html:
37554+
* https://fmhelp.filemaker.com/help/18/fmp/en/index.html#page/FMP_Help/dates-with-two-digit-years.html:
3757837555
* now-70 - now+29
3757937556
* but python strptime etc, via
3758037557
* http://docs.python.org/py3k/library/time.html:
@@ -78355,7 +78332,7 @@ module.exports = function handleXYDefaults(traceIn, traceOut, layout, coerce) {
7835578332
'use strict';
7835678333

7835778334
// package version injected by `npm run preprocess`
78358-
exports.version = '1.54.6';
78335+
exports.version = '1.54.7';
7835978336

7836078337
},{}]},{},[4])(4)
7836178338
});

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.

0 commit comments

Comments
 (0)