Skip to content

Commit 13947fc

Browse files
committedJun 22, 2020
1.54.4
1 parent 32a352d commit 13947fc

22 files changed

+4530
-4637
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.54.3.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.4.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.3.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
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.3.js
82+
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.54.4.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 | 988.2 kB | 7.3 MB |
91+
| 7 MB | 3.3 MB | 987.3 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 | 888.8 kB | 292.8 kB |
117+
| 2.5 MB | 889 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.3.js |
126-
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.54.3.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 |
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 kB | 334.2 kB |
170+
| 2.8 MB | 1020.2 kB | 334.3 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.3.js |
179-
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.54.3.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 |
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.1 kB | 302.4 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.3.js |
232-
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.54.3.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 |
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 | 451.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.3.js |
285-
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.54.3.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 |
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 | 473 kB |
329+
| 3.6 MB | 1.4 MB | 472.8 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.3.js |
338-
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.54.3.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 |
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.3 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.3.js |
391-
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.54.3.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 |
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.6 kB | 318 kB |
435+
| 2.7 MB | 976.8 kB | 318.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.54.3.js |
444-
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.54.3.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 |
445445

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

‎dist/plotly-basic.js

+48-25
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v1.54.3
2+
* plotly.js (basic) v1.54.4
33
* Copyright 2012-2020, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -37277,58 +37277,81 @@ exports.valObjectMeta = {
3727737277
* as a convenience, returns the value it finally set
3727837278
*/
3727937279
exports.coerce = function(containerIn, containerOut, attributes, attribute, dflt) {
37280-
var opts = nestedProperty(attributes, attribute).get();
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+
3728137290
var propIn = nestedProperty(containerIn, attribute);
3728237291
var propOut = nestedProperty(containerOut, attribute);
37283-
var v = propIn.get();
37292+
var valIn = propIn.get();
3728437293

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

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

37305-
var coerceFunction = exports.valObjectMeta[opts.valType].coerceFunction;
37306-
coerceFunction(v, propOut, dflt, opts);
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);
3730737323

37308-
var out = propOut.get();
3730937324
// in case v was provided but invalid, try the template again so it still
3731037325
// overrides the regular default
37311-
if(template && out === dflt && !validate(v, opts)) {
37312-
v = nestedProperty(template, attribute).get();
37313-
coerceFunction(v, propOut, dflt, opts);
37314-
out = propOut.get();
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);
3731537332
}
37316-
return out;
37317-
};
37333+
37334+
return {
37335+
inp: valIn,
37336+
val: valOut,
37337+
src: src
37338+
};
37339+
}
3731837340

3731937341
/**
3732037342
* Variation on coerce
37343+
* useful when setting an attribute to a valid value
37344+
* can change the default for another attribute.
3732137345
*
3732237346
* Uses coerce to get attribute value if user input is valid,
3732337347
* returns attribute default if user input it not valid or
3732437348
* returns false if there is no user input.
3732537349
*/
3732637350
exports.coerce2 = function(containerIn, containerOut, attributes, attribute, dflt) {
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;
37351+
var out = _coerce(containerIn, containerOut, attributes, attribute, dflt, {
37352+
shouldValidate: true
37353+
});
37354+
return (out.src && out.inp !== undefined) ? out.val : false;
3733237355
};
3733337356

3733437357
/*
@@ -78322,7 +78345,7 @@ module.exports = function handleXYDefaults(traceIn, traceOut, layout, coerce) {
7832278345
'use strict';
7832378346

7832478347
// package version injected by `npm run preprocess`
78325-
exports.version = '1.54.3';
78348+
exports.version = '1.54.4';
7832678349

7832778350
},{}]},{},[4])(4)
7832878351
});

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