Skip to content

Commit 8f58763

Browse files
committed
1.48.2
1 parent 20187fe commit 8f58763

25 files changed

+535
-501
lines changed

dist/README.md

Lines changed: 21 additions & 21 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.48.1.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.48.2.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.48.1.min.js
77+
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.48.2.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.48.1.js
82+
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.48.2.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://plot.ly/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-
| 6.4 MB | 2.9 MB | 892.7 kB | 6.7 MB |
91+
| 6.4 MB | 2.9 MB | 892.8 kB | 6.7 MB |
9292

9393
## Partial bundles
9494

@@ -119,8 +119,8 @@ The `basic` partial bundle contains trace modules `scatter`, `bar` and `pie`.
119119
| ------ | --- |
120120
| Latest | https://cdn.plot.ly/plotly-basic-latest.js |
121121
| Latest minified | https://cdn.plot.ly/plotly-basic-latest.min.js |
122-
| Tagged | https://cdn.plot.ly/plotly-basic-1.48.1.js |
123-
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.48.1.min.js |
122+
| Tagged | https://cdn.plot.ly/plotly-basic-1.48.2.js |
123+
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.48.2.min.js |
124124

125125
#### npm package (starting in `v1.39.0`)
126126

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

158158
| Raw size | Minified size | Minified + gzip size |
159159
|------|-----------------|------------------------|
160-
| 2.6 MB | 948.3 kB | 309.8 kB |
160+
| 2.6 MB | 948.5 kB | 309.9 kB |
161161

162162
#### CDN links
163163

164164
| Flavor | URL |
165165
| ------ | --- |
166166
| Latest | https://cdn.plot.ly/plotly-cartesian-latest.js |
167167
| Latest minified | https://cdn.plot.ly/plotly-cartesian-latest.min.js |
168-
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.48.1.js |
169-
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.48.1.min.js |
168+
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.48.2.js |
169+
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.48.2.min.js |
170170

171171
#### npm package (starting in `v1.39.0`)
172172

@@ -211,8 +211,8 @@ The `geo` partial bundle contains trace modules `scatter`, `scattergeo` and `cho
211211
| ------ | --- |
212212
| Latest | https://cdn.plot.ly/plotly-geo-latest.js |
213213
| Latest minified | https://cdn.plot.ly/plotly-geo-latest.min.js |
214-
| Tagged | https://cdn.plot.ly/plotly-geo-1.48.1.js |
215-
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.48.1.min.js |
214+
| Tagged | https://cdn.plot.ly/plotly-geo-1.48.2.js |
215+
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.48.2.min.js |
216216

217217
#### npm package (starting in `v1.39.0`)
218218

@@ -257,8 +257,8 @@ The `gl3d` partial bundle contains trace modules `scatter`, `scatter3d`, `surfac
257257
| ------ | --- |
258258
| Latest | https://cdn.plot.ly/plotly-gl3d-latest.js |
259259
| Latest minified | https://cdn.plot.ly/plotly-gl3d-latest.min.js |
260-
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.48.1.js |
261-
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.48.1.min.js |
260+
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.48.2.js |
261+
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.48.2.min.js |
262262

263263
#### npm package (starting in `v1.39.0`)
264264

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

296296
| Raw size | Minified size | Minified + gzip size |
297297
|------|-----------------|------------------------|
298-
| 3.4 MB | 1.4 MB | 450.7 kB |
298+
| 3.4 MB | 1.4 MB | 450.8 kB |
299299

300300
#### CDN links
301301

302302
| Flavor | URL |
303303
| ------ | --- |
304304
| Latest | https://cdn.plot.ly/plotly-gl2d-latest.js |
305305
| Latest minified | https://cdn.plot.ly/plotly-gl2d-latest.min.js |
306-
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.48.1.js |
307-
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.48.1.min.js |
306+
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.48.2.js |
307+
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.48.2.min.js |
308308

309309
#### npm package (starting in `v1.39.0`)
310310

@@ -349,8 +349,8 @@ The `mapbox` partial bundle contains trace modules `scatter` and `scattermapbox`
349349
| ------ | --- |
350350
| Latest | https://cdn.plot.ly/plotly-mapbox-latest.js |
351351
| Latest minified | https://cdn.plot.ly/plotly-mapbox-latest.min.js |
352-
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.48.1.js |
353-
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.48.1.min.js |
352+
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.48.2.js |
353+
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.48.2.min.js |
354354

355355
#### npm package (starting in `v1.39.0`)
356356

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

388388
| Raw size | Minified size | Minified + gzip size |
389389
|------|-----------------|------------------------|
390-
| 2.5 MB | 893.2 kB | 290.2 kB |
390+
| 2.5 MB | 893.4 kB | 290.2 kB |
391391

392392
#### CDN links
393393

394394
| Flavor | URL |
395395
| ------ | --- |
396396
| Latest | https://cdn.plot.ly/plotly-finance-latest.js |
397397
| Latest minified | https://cdn.plot.ly/plotly-finance-latest.min.js |
398-
| Tagged | https://cdn.plot.ly/plotly-finance-1.48.1.js |
399-
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.48.1.min.js |
398+
| Tagged | https://cdn.plot.ly/plotly-finance-1.48.2.js |
399+
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.48.2.min.js |
400400

401401
#### npm package (starting in `v1.39.0`)
402402

dist/plot-schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36337,13 +36337,13 @@
3633736337
"tickvals": {
3633836338
"valType": "data_array",
3633936339
"editType": "calc",
36340-
"description": "Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to *array*. Used with `ticktext`.",
36340+
"description": "Sets the values at which ticks on this axis appear.",
3634136341
"role": "data"
3634236342
},
3634336343
"ticktext": {
3634436344
"valType": "data_array",
3634536345
"editType": "calc",
36346-
"description": "Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to *array*. Used with `tickvals`.",
36346+
"description": "Sets the text displayed at the ticks position via `tickvals`.",
3634736347
"role": "data"
3634836348
},
3634936349
"tickformat": {

dist/plotly-basic.js

Lines changed: 36 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v1.48.1
2+
* plotly.js (basic) v1.48.2
33
* Copyright 2012-2019, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -11499,30 +11499,30 @@ return Promise;
1149911499

1150011500
}).call(this,_dereq_('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
1150111501
},{"_process":25}],10:[function(_dereq_,module,exports){
11502-
/**
11503-
* inspired by is-number <https://github.com/jonschlinkert/is-number>
11504-
* but significantly simplified and sped up by ignoring number and string constructors
11505-
* ie these return false:
11506-
* new Number(1)
11507-
* new String('1')
11508-
*/
11509-
11510-
'use strict';
11511-
11512-
var allBlankCharCodes = _dereq_('is-string-blank');
11513-
11514-
module.exports = function(n) {
11515-
var type = typeof n;
11516-
if(type === 'string') {
11517-
var original = n;
11518-
n = +n;
11519-
// whitespace strings cast to zero - filter them out
11520-
if(n===0 && allBlankCharCodes(original)) return false;
11521-
}
11522-
else if(type !== 'number') return false;
11523-
11524-
return n - n < 1;
11525-
};
11502+
/**
11503+
* inspired by is-number <https://github.com/jonschlinkert/is-number>
11504+
* but significantly simplified and sped up by ignoring number and string constructors
11505+
* ie these return false:
11506+
* new Number(1)
11507+
* new String('1')
11508+
*/
11509+
11510+
'use strict';
11511+
11512+
var allBlankCharCodes = _dereq_('is-string-blank');
11513+
11514+
module.exports = function(n) {
11515+
var type = typeof n;
11516+
if(type === 'string') {
11517+
var original = n;
11518+
n = +n;
11519+
// whitespace strings cast to zero - filter them out
11520+
if(n===0 && allBlankCharCodes(original)) return false;
11521+
}
11522+
else if(type !== 'number') return false;
11523+
11524+
return n - n < 1;
11525+
};
1152611526

1152711527
},{"is-string-blank":15}],11:[function(_dereq_,module,exports){
1152811528
module.exports = fromQuat;
@@ -34082,7 +34082,7 @@ exports.svgAttrs = {
3408234082
'use strict';
3408334083

3408434084
// package version injected by `npm run preprocess`
34085-
exports.version = '1.48.1';
34085+
exports.version = '1.48.2';
3408634086

3408734087
// inject promise polyfill
3408834088
_dereq_('es6-promise').polyfill();
@@ -53608,7 +53608,7 @@ function makeDragBox(gd, plotinfo, x, y, w, h, ns, ew) {
5360853608
// graph-wide optimization flags
5360953609
var hasScatterGl, hasSplom, hasSVG;
5361053610
// collected changes to be made to the plot by relayout at the end
53611-
var updates = {};
53611+
var updates;
5361253612

5361353613
function recomputeAxisLists() {
5361453614
xa0 = plotinfo.xaxis;
@@ -53938,6 +53938,8 @@ function makeDragBox(gd, plotinfo, x, y, w, h, ns, ew) {
5393853938
}
5393953939

5394053940
function computeZoomUpdates() {
53941+
updates = {};
53942+
5394153943
// TODO: edit linked axes in zoomAxRanges and in dragTail
5394253944
if(zoomMode === 'xy' || zoomMode === 'x') {
5394353945
zoomAxRanges(xaxes, box.l / pw, box.r / pw, updates, links.xaxes);
@@ -53950,8 +53952,6 @@ function makeDragBox(gd, plotinfo, x, y, w, h, ns, ew) {
5395053952
}
5395153953

5395253954
function zoomDone() {
53953-
updates = {};
53954-
5395553955
// more strict than dragged, which allows you to come back to where you started
5395653956
// and still count as dragged
5395753957
if(Math.min(box.h, box.w) < MINDRAG * 2) {
@@ -54177,12 +54177,12 @@ function makeDragBox(gd, plotinfo, x, y, w, h, ns, ew) {
5417754177
var ax2 = constrainedAxes[0] || xaHash[axId2] || yaHash[axId2];
5417854178

5417954179
if(ax2) {
54180-
var rng = ax2.range;
5418154180
if(out) {
54182-
out[ax._name + '.range[0]'] = rng[0];
54183-
out[ax._name + '.range[1]'] = rng[1];
54181+
// zoombox case - don't mutate 'range', just add keys in 'updates'
54182+
out[ax._name + '.range[0]'] = out[ax2._name + '.range[0]'];
54183+
out[ax._name + '.range[1]'] = out[ax2._name + '.range[1]'];
5418454184
} else {
54185-
ax.range = rng;
54185+
ax.range = ax2.range.slice();
5418654186
}
5418754187
}
5418854188
}
@@ -54518,19 +54518,14 @@ function zoomAxRanges(axList, r0Fraction, r1Fraction, updates, linkedAxes) {
5451854518

5451954519
var axRangeLinear0 = axi._rl[0];
5452054520
var axRangeLinearSpan = axi._rl[1] - axRangeLinear0;
54521-
axi.range = [
54522-
axi.l2r(axRangeLinear0 + axRangeLinearSpan * r0Fraction),
54523-
axi.l2r(axRangeLinear0 + axRangeLinearSpan * r1Fraction)
54524-
];
54525-
54526-
updates[axi._name + '.range[0]'] = axi.range[0];
54527-
updates[axi._name + '.range[1]'] = axi.range[1];
54521+
updates[axi._name + '.range[0]'] = axi.l2r(axRangeLinear0 + axRangeLinearSpan * r0Fraction);
54522+
updates[axi._name + '.range[1]'] = axi.l2r(axRangeLinear0 + axRangeLinearSpan * r1Fraction);
5452854523
}
5452954524

5453054525
// zoom linked axes about their centers
5453154526
if(linkedAxes && linkedAxes.length) {
5453254527
var linkedR0Fraction = (r0Fraction + (1 - r1Fraction)) / 2;
54533-
zoomAxRanges(linkedAxes, linkedR0Fraction, 1 - linkedR0Fraction, updates, [], []);
54528+
zoomAxRanges(linkedAxes, linkedR0Fraction, 1 - linkedR0Fraction, updates, []);
5453454529
}
5453554530
}
5453654531

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)