Skip to content

Commit 216b587

Browse files
committed
1.52.1
1 parent c3ae074 commit 216b587

23 files changed

+126
-63
lines changed

dist/README.md

+19-19
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.52.0.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.52.1.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.52.0.min.js
77+
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.52.1.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.52.0.js
82+
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.52.1.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.9 MB | 3.2 MB | 955.9 kB | 7.2 MB |
91+
| 6.9 MB | 3.2 MB | 956 kB | 7.2 MB |
9292

9393
## Partial bundles
9494

@@ -122,8 +122,8 @@ The `basic` partial bundle contains trace modules `scatter`, `bar` and `pie`.
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.52.0.js |
126-
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.52.0.min.js |
125+
| Tagged | https://cdn.plot.ly/plotly-basic-1.52.1.js |
126+
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.52.1.min.js |
127127

128128
#### npm package (starting in `v1.39.0`)
129129

@@ -175,8 +175,8 @@ The `cartesian` partial bundle contains trace modules `scatter`, `bar`, `box`, `
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.52.0.js |
179-
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.52.0.min.js |
178+
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.52.1.js |
179+
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.52.1.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.4 MB | 879.5 kB | 289.5 kB |
223+
| 2.4 MB | 879.8 kB | 289.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.52.0.js |
232-
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.52.0.min.js |
231+
| Tagged | https://cdn.plot.ly/plotly-geo-1.52.1.js |
232+
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.52.1.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.52.0.js |
285-
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.52.0.min.js |
284+
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.52.1.js |
285+
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.52.1.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.52.0.js |
338-
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.52.0.min.js |
337+
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.52.1.js |
338+
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.52.1.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.52.0.js |
391-
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.52.0.min.js |
390+
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.52.1.js |
391+
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.52.1.min.js |
392392

393393
#### npm package (starting in `v1.39.0`)
394394

@@ -440,8 +440,8 @@ The `finance` partial bundle contains trace modules `scatter`, `bar`, `histogram
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.52.0.js |
444-
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.52.0.min.js |
443+
| Tagged | https://cdn.plot.ly/plotly-finance-1.52.1.js |
444+
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.52.1.min.js |
445445

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

dist/plotly-basic.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v1.52.0
2+
* plotly.js (basic) v1.52.1
33
* Copyright 2012-2020, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -34317,7 +34317,7 @@ exports.svgAttrs = {
3431734317
'use strict';
3431834318

3431934319
// package version injected by `npm run preprocess`
34320-
exports.version = '1.52.0';
34320+
exports.version = '1.52.1';
3432134321

3432234322
// inject promise polyfill
3432334323
_dereq_('es6-promise').polyfill();

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.

dist/plotly-cartesian.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (cartesian) v1.52.0
2+
* plotly.js (cartesian) v1.52.1
33
* Copyright 2012-2020, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -34481,7 +34481,7 @@ exports.svgAttrs = {
3448134481
'use strict';
3448234482

3448334483
// package version injected by `npm run preprocess`
34484-
exports.version = '1.52.0';
34484+
exports.version = '1.52.1';
3448534485

3448634486
// inject promise polyfill
3448734487
_dereq_('es6-promise').polyfill();

dist/plotly-cartesian.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-finance.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (finance) v1.52.0
2+
* plotly.js (finance) v1.52.1
33
* Copyright 2012-2020, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -34437,7 +34437,7 @@ exports.svgAttrs = {
3443734437
'use strict';
3443834438

3443934439
// package version injected by `npm run preprocess`
34440-
exports.version = '1.52.0';
34440+
exports.version = '1.52.1';
3444134441

3444234442
// inject promise polyfill
3444334443
_dereq_('es6-promise').polyfill();

dist/plotly-finance.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-geo-assets.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-geo.js

+24-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (geo) v1.52.0
2+
* plotly.js (geo) v1.52.1
33
* Copyright 2012-2020, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -37155,7 +37155,7 @@ exports.svgAttrs = {
3715537155
'use strict';
3715637156

3715737157
// package version injected by `npm run preprocess`
37158-
exports.version = '1.52.0';
37158+
exports.version = '1.52.1';
3715937159

3716037160
// inject promise polyfill
3716137161
_dereq_('es6-promise').polyfill();
@@ -64975,9 +64975,30 @@ function handleGeoDefaults(geoLayoutIn, geoLayoutOut, coerce, opts) {
6497564975
var isConic = geoLayoutOut._isConic = projType.indexOf('conic') !== -1;
6497664976
var isClipped = geoLayoutOut._isClipped = !!constants.lonaxisSpan[projType];
6497764977

64978+
if(geoLayoutIn.visible === false) {
64979+
// should override template.layout.geo.show* - see issue 4482
64980+
64981+
// make a copy
64982+
var newTemplate = Lib.extendDeep({}, geoLayoutOut._template);
64983+
64984+
// override show*
64985+
newTemplate.showcoastlines = false;
64986+
newTemplate.showcountries = false;
64987+
newTemplate.showframe = false;
64988+
newTemplate.showlakes = false;
64989+
newTemplate.showland = false;
64990+
newTemplate.showocean = false;
64991+
newTemplate.showrivers = false;
64992+
newTemplate.showsubunits = false;
64993+
if(newTemplate.lonaxis) newTemplate.lonaxis.showgrid = false;
64994+
if(newTemplate.lataxis) newTemplate.lataxis.showgrid = false;
64995+
64996+
// set ref to copy
64997+
geoLayoutOut._template = newTemplate;
64998+
}
6497864999
var visible = coerce('visible');
64979-
var show;
6498065000

65001+
var show;
6498165002
for(var i = 0; i < axesNames.length; i++) {
6498265003
var axisName = axesNames[i];
6498365004
var dtickDflt = [30, 10][i];

dist/plotly-geo.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-gl2d.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (gl2d) v1.52.0
2+
* plotly.js (gl2d) v1.52.1
33
* Copyright 2012-2020, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -67751,7 +67751,7 @@ exports.svgAttrs = {
6775167751
'use strict';
6775267752

6775367753
// package version injected by `npm run preprocess`
67754-
exports.version = '1.52.0';
67754+
exports.version = '1.52.1';
6775567755

6775667756
// inject promise polyfill
6775767757
_dereq_('es6-promise').polyfill();

dist/plotly-gl2d.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-gl3d.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (gl3d) v1.52.0
2+
* plotly.js (gl3d) v1.52.1
33
* Copyright 2012-2020, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -73176,7 +73176,7 @@ exports.svgAttrs = {
7317673176
'use strict';
7317773177

7317873178
// package version injected by `npm run preprocess`
73179-
exports.version = '1.52.0';
73179+
exports.version = '1.52.1';
7318073180

7318173181
// inject promise polyfill
7318273182
_dereq_('es6-promise').polyfill();

dist/plotly-gl3d.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-mapbox.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (mapbox) v1.52.0
2+
* plotly.js (mapbox) v1.52.1
33
* Copyright 2012-2020, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -36691,7 +36691,7 @@ exports.svgAttrs = {
3669136691
'use strict';
3669236692

3669336693
// package version injected by `npm run preprocess`
36694-
exports.version = '1.52.0';
36694+
exports.version = '1.52.1';
3669536695

3669636696
// inject promise polyfill
3669736697
_dereq_('es6-promise').polyfill();

dist/plotly-mapbox.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-with-meta.js

+24-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js v1.52.0
2+
* plotly.js v1.52.1
33
* Copyright 2012-2020, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -103639,7 +103639,7 @@ exports.svgAttrs = {
103639103639
'use strict';
103640103640

103641103641
// package version injected by `npm run preprocess`
103642-
exports.version = '1.52.0';
103642+
exports.version = '1.52.1';
103643103643

103644103644
// inject promise polyfill
103645103645
_dereq_('es6-promise').polyfill();
@@ -132613,9 +132613,30 @@ function handleGeoDefaults(geoLayoutIn, geoLayoutOut, coerce, opts) {
132613132613
var isConic = geoLayoutOut._isConic = projType.indexOf('conic') !== -1;
132614132614
var isClipped = geoLayoutOut._isClipped = !!constants.lonaxisSpan[projType];
132615132615

132616+
if(geoLayoutIn.visible === false) {
132617+
// should override template.layout.geo.show* - see issue 4482
132618+
132619+
// make a copy
132620+
var newTemplate = Lib.extendDeep({}, geoLayoutOut._template);
132621+
132622+
// override show*
132623+
newTemplate.showcoastlines = false;
132624+
newTemplate.showcountries = false;
132625+
newTemplate.showframe = false;
132626+
newTemplate.showlakes = false;
132627+
newTemplate.showland = false;
132628+
newTemplate.showocean = false;
132629+
newTemplate.showrivers = false;
132630+
newTemplate.showsubunits = false;
132631+
if(newTemplate.lonaxis) newTemplate.lonaxis.showgrid = false;
132632+
if(newTemplate.lataxis) newTemplate.lataxis.showgrid = false;
132633+
132634+
// set ref to copy
132635+
geoLayoutOut._template = newTemplate;
132636+
}
132616132637
var visible = coerce('visible');
132617-
var show;
132618132638

132639+
var show;
132619132640
for(var i = 0; i < axesNames.length; i++) {
132620132641
var axisName = axesNames[i];
132621132642
var dtickDflt = [30, 10][i];

dist/plotly.js

+25-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js v1.52.0
2+
* plotly.js v1.52.1
33
* Copyright 2012-2020, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -43755,7 +43755,7 @@ var createShader = _dereq_('gl-shader')
4375543755

4375643756
var vertSrc = glslify(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, nextPosition;\nattribute float arcLength, lineWidth;\nattribute vec4 color;\n\nuniform vec2 screenShape;\nuniform float pixelRatio;\nuniform mat4 model, view, projection;\n\nvarying vec4 fragColor;\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\n\nvec4 project(vec3 p) {\n return projection * view * model * vec4(p, 1.0);\n}\n\nvoid main() {\n vec4 startPoint = project(position);\n vec4 endPoint = project(nextPosition);\n\n vec2 A = startPoint.xy / startPoint.w;\n vec2 B = endPoint.xy / endPoint.w;\n\n float clipAngle = atan(\n (B.y - A.y) * screenShape.y,\n (B.x - A.x) * screenShape.x\n );\n\n vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(\n sin(clipAngle),\n -cos(clipAngle)\n ) / screenShape;\n\n gl_Position = vec4(startPoint.xy + startPoint.w * offset, startPoint.zw);\n\n worldPosition = position;\n pixelArcLength = arcLength;\n fragColor = color;\n}\n"])
4375743757
var forwardFrag = glslify(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform sampler2D dashTexture;\nuniform float dashScale;\nuniform float opacity;\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n if (\n outOfRange(clipBounds[0], clipBounds[1], worldPosition) ||\n fragColor.a * opacity == 0.\n ) discard;\n\n float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r;\n if(dashWeight < 0.5) {\n discard;\n }\n gl_FragColor = fragColor * opacity;\n}\n"])
43758-
var pickFrag = glslify(["precision highp float;\n#define GLSLIFY 1\n\n#define FLOAT_MAX 1.70141184e38\n#define FLOAT_MIN 1.17549435e-38\n\nlowp vec4 encode_float_1540259130(highp float v) {\n highp float av = abs(v);\n\n //Handle special cases\n if(av < FLOAT_MIN) {\n return vec4(0.0, 0.0, 0.0, 0.0);\n } else if(v > FLOAT_MAX) {\n return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;\n } else if(v < -FLOAT_MAX) {\n return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;\n }\n\n highp vec4 c = vec4(0,0,0,0);\n\n //Compute exponent and mantissa\n highp float e = floor(log2(av));\n highp float m = av * pow(2.0, -e) - 1.0;\n \n //Unpack mantissa\n c[1] = floor(128.0 * m);\n m -= c[1] / 128.0;\n c[2] = floor(32768.0 * m);\n m -= c[2] / 32768.0;\n c[3] = floor(8388608.0 * m);\n \n //Unpack exponent\n highp float ebias = e + 127.0;\n c[0] = floor(ebias / 2.0);\n ebias -= c[0] * 2.0;\n c[1] += floor(ebias) * 128.0; \n\n //Unpack sign bit\n c[0] += 128.0 * step(0.0, -v);\n\n //Scale back to range\n return c / 255.0;\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform float pickId;\nuniform vec3 clipBounds[2];\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;\n\n gl_FragColor = vec4(pickId/255.0, encode_float_1540259130(pixelArcLength).xyz);\n}"])
43758+
var pickFrag = glslify(["precision highp float;\n#define GLSLIFY 1\n\n#define FLOAT_MAX 1.70141184e38\n#define FLOAT_MIN 1.17549435e-38\n\nlowp vec4 encode_float_1604150559(highp float v) {\n highp float av = abs(v);\n\n //Handle special cases\n if(av < FLOAT_MIN) {\n return vec4(0.0, 0.0, 0.0, 0.0);\n } else if(v > FLOAT_MAX) {\n return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;\n } else if(v < -FLOAT_MAX) {\n return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;\n }\n\n highp vec4 c = vec4(0,0,0,0);\n\n //Compute exponent and mantissa\n highp float e = floor(log2(av));\n highp float m = av * pow(2.0, -e) - 1.0;\n \n //Unpack mantissa\n c[1] = floor(128.0 * m);\n m -= c[1] / 128.0;\n c[2] = floor(32768.0 * m);\n m -= c[2] / 32768.0;\n c[3] = floor(8388608.0 * m);\n \n //Unpack exponent\n highp float ebias = e + 127.0;\n c[0] = floor(ebias / 2.0);\n ebias -= c[0] * 2.0;\n c[1] += floor(ebias) * 128.0; \n\n //Unpack sign bit\n c[0] += 128.0 * step(0.0, -v);\n\n //Scale back to range\n return c / 255.0;\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform float pickId;\nuniform vec3 clipBounds[2];\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;\n\n gl_FragColor = vec4(pickId/255.0, encode_float_1604150559(pixelArcLength).xyz);\n}"])
4375943759

4376043760
var ATTRIBUTES = [
4376143761
{name: 'position', type: 'vec3'},
@@ -102766,7 +102766,7 @@ exports.svgAttrs = {
102766102766
'use strict';
102767102767

102768102768
// package version injected by `npm run preprocess`
102769-
exports.version = '1.52.0';
102769+
exports.version = '1.52.1';
102770102770

102771102771
// inject promise polyfill
102772102772
_dereq_('es6-promise').polyfill();
@@ -130883,9 +130883,30 @@ function handleGeoDefaults(geoLayoutIn, geoLayoutOut, coerce, opts) {
130883130883
var isConic = geoLayoutOut._isConic = projType.indexOf('conic') !== -1;
130884130884
var isClipped = geoLayoutOut._isClipped = !!constants.lonaxisSpan[projType];
130885130885

130886+
if(geoLayoutIn.visible === false) {
130887+
// should override template.layout.geo.show* - see issue 4482
130888+
130889+
// make a copy
130890+
var newTemplate = Lib.extendDeep({}, geoLayoutOut._template);
130891+
130892+
// override show*
130893+
newTemplate.showcoastlines = false;
130894+
newTemplate.showcountries = false;
130895+
newTemplate.showframe = false;
130896+
newTemplate.showlakes = false;
130897+
newTemplate.showland = false;
130898+
newTemplate.showocean = false;
130899+
newTemplate.showrivers = false;
130900+
newTemplate.showsubunits = false;
130901+
if(newTemplate.lonaxis) newTemplate.lonaxis.showgrid = false;
130902+
if(newTemplate.lataxis) newTemplate.lataxis.showgrid = false;
130903+
130904+
// set ref to copy
130905+
geoLayoutOut._template = newTemplate;
130906+
}
130886130907
var visible = coerce('visible');
130887-
var show;
130888130908

130909+
var show;
130889130910
for(var i = 0; i < axesNames.length; i++) {
130890130911
var axisName = axesNames[i];
130891130912
var dtickDflt = [30, 10][i];

dist/plotly.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "plotly.js",
3-
"version": "1.52.0",
3+
"version": "1.52.1",
44
"description": "The open source javascript graphing library that powers plotly",
55
"license": "MIT",
66
"main": "./lib/index.js",

0 commit comments

Comments
 (0)