Skip to content

Commit 9a34ac0

Browse files
committed
1.57.1
1 parent a2f0b6d commit 9a34ac0

22 files changed

+1710
-1615
lines changed

dist/README.md

Lines changed: 24 additions & 24 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.57.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.57.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.57.0.min.js
77+
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.57.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.57.0.js
82+
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.57.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://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.1 MB | 3.3 MB | 1000.8 kB | 7.4 MB |
91+
| 7.1 MB | 3.3 MB | 1000.9 kB | 7.4 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 | 914.4 kB | 300.5 kB |
117+
| 2.5 MB | 914.5 kB | 300.5 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.57.0.js |
126-
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.57.0.min.js |
125+
| Tagged | https://cdn.plot.ly/plotly-basic-1.57.1.js |
126+
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.57.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.57.0.js |
179-
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.57.0.min.js |
178+
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.57.1.js |
179+
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.57.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.6 MB | 941 kB | 309.8 kB |
223+
| 2.6 MB | 941.1 kB | 309.9 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.57.0.js |
232-
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.57.0.min.js |
231+
| Tagged | https://cdn.plot.ly/plotly-geo-1.57.1.js |
232+
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.57.1.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 | 458.1 kB |
276+
| 3.6 MB | 1.4 MB | 458.3 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.57.0.js |
285-
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.57.0.min.js |
284+
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.57.1.js |
285+
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.57.1.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.5 MB | 480.8 kB |
329+
| 3.6 MB | 1.5 MB | 480.9 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.57.0.js |
338-
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.57.0.min.js |
337+
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.57.1.js |
338+
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.57.1.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 | 496.7 kB |
382+
| 3.3 MB | 1.6 MB | 496.8 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.57.0.js |
391-
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.57.0.min.js |
390+
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.57.1.js |
391+
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.57.1.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 | 1003.9 kB | 326.3 kB |
435+
| 2.7 MB | 1004 kB | 326.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.57.0.js |
444-
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.57.0.min.js |
443+
| Tagged | https://cdn.plot.ly/plotly-finance-1.57.1.js |
444+
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.57.1.min.js |
445445

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

dist/plotly-basic.js

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v1.57.0
2+
* plotly.js (basic) v1.57.1
33
* Copyright 2012-2020, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -18809,6 +18809,7 @@ function drawColorBar(g, opts, gd) {
1880918809

1881018810
var fills = g.select('.' + cn.cbfills)
1881118811
.selectAll('rect.' + cn.cbfill)
18812+
.attr('style', '')
1881218813
.data(fillLevels);
1881318814
fills.enter().append('rect')
1881418815
.classed(cn.cbfill, true)
@@ -27588,11 +27589,14 @@ function setupTraceToggle(g, gd) {
2758827589
var numClicks = 1;
2758927590

2759027591
var traceToggle = Lib.ensureSingle(g, 'rect', 'legendtoggle', function(s) {
27591-
s.style('cursor', 'pointer')
27592-
.attr('pointer-events', 'all')
27593-
.call(Color.fill, 'rgba(0,0,0,0)');
27592+
if(!gd._context.staticPlot) {
27593+
s.style('cursor', 'pointer').attr('pointer-events', 'all');
27594+
}
27595+
s.call(Color.fill, 'rgba(0,0,0,0)');
2759427596
});
2759527597

27598+
if(gd._context.staticPlot) return;
27599+
2759627600
traceToggle.on('mousedown', function() {
2759727601
newMouseDownTime = (new Date()).getTime();
2759827602
if(newMouseDownTime - gd._legendMouseDownTime < doubleClickDelay) {
@@ -31406,6 +31410,8 @@ module.exports = function(gd) {
3140631410
};
3140731411

3140831412
function setupDragElement(rangeSlider, gd, axisOpts, opts) {
31413+
if(gd._context.staticPlot) return;
31414+
3140931415
var slideBox = rangeSlider.select('rect.' + constants.slideBoxClassName).node();
3141031416
var grabAreaMin = rangeSlider.select('rect.' + constants.grabAreaMinClassName).node();
3141131417
var grabAreaMax = rangeSlider.select('rect.' + constants.grabAreaMaxClassName).node();
@@ -31793,14 +31799,12 @@ function drawGrabbers(rangeSlider, gd, axisOpts, opts) {
3179331799
handleMax.attr(handleDynamicAttrs);
3179431800

3179531801
// <g grabarea />
31796-
if(gd._context.staticPlot) return;
31797-
3179831802
var grabAreaFixAttrs = {
3179931803
width: constants.grabAreaWidth,
3180031804
x: 0,
3180131805
y: 0,
3180231806
fill: constants.grabAreaFill,
31803-
cursor: constants.grabAreaCursor
31807+
cursor: !gd._context.staticPlot ? constants.grabAreaCursor : undefined,
3180431808
};
3180531809

3180631810
var grabAreaMin = Lib.ensureSingle(grabberMin, 'rect', constants.grabAreaMinClassName, function(s) {
@@ -67623,6 +67627,7 @@ plots.doAutoMargin = function(gd) {
6762367627
if(fullLayout._redrawFromAutoMarginCount < maxNumberOfRedraws) {
6762467628
return Registry.call('plot', gd);
6762567629
} else {
67630+
fullLayout._size = oldMargins;
6762667631
Lib.warn('Too many auto-margin redraws.');
6762767632
}
6762867633
}
@@ -73658,6 +73663,7 @@ function hoverOnBars(pointData, xval, yval, hovermode) {
7365873663

7365973664
pointData.labelLabel = hoverLabelText(pa, pointData[posLetter + 'LabelVal']);
7366073665
pointData.valueLabel = hoverLabelText(sa, pointData[sizeLetter + 'LabelVal']);
73666+
pointData.baseLabel = hoverLabelText(sa, di.b);
7366173667

7366273668
// spikelines always want "closest" distance regardless of hovermode
7366373669
pointData.spikeDistance = (sizeFn(di) + thisBarPositionFn(di)) / 2 - maxHoverDistance;
@@ -80399,7 +80405,7 @@ module.exports = function handleXYDefaults(traceIn, traceOut, layout, coerce) {
8039980405
'use strict';
8040080406

8040180407
// package version injected by `npm run preprocess`
80402-
exports.version = '1.57.0';
80408+
exports.version = '1.57.1';
8040380409

8040480410
},{}]},{},[4])(4)
8040580411
});

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: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (cartesian) v1.57.0
2+
* plotly.js (cartesian) v1.57.1
33
* Copyright 2012-2020, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -22242,6 +22242,7 @@ function drawColorBar(g, opts, gd) {
2224222242

2224322243
var fills = g.select('.' + cn.cbfills)
2224422244
.selectAll('rect.' + cn.cbfill)
22245+
.attr('style', '')
2224522246
.data(fillLevels);
2224622247
fills.enter().append('rect')
2224722248
.classed(cn.cbfill, true)
@@ -31021,11 +31022,14 @@ function setupTraceToggle(g, gd) {
3102131022
var numClicks = 1;
3102231023

3102331024
var traceToggle = Lib.ensureSingle(g, 'rect', 'legendtoggle', function(s) {
31024-
s.style('cursor', 'pointer')
31025-
.attr('pointer-events', 'all')
31026-
.call(Color.fill, 'rgba(0,0,0,0)');
31025+
if(!gd._context.staticPlot) {
31026+
s.style('cursor', 'pointer').attr('pointer-events', 'all');
31027+
}
31028+
s.call(Color.fill, 'rgba(0,0,0,0)');
3102731029
});
3102831030

31031+
if(gd._context.staticPlot) return;
31032+
3102931033
traceToggle.on('mousedown', function() {
3103031034
newMouseDownTime = (new Date()).getTime();
3103131035
if(newMouseDownTime - gd._legendMouseDownTime < doubleClickDelay) {
@@ -34839,6 +34843,8 @@ module.exports = function(gd) {
3483934843
};
3484034844

3484134845
function setupDragElement(rangeSlider, gd, axisOpts, opts) {
34846+
if(gd._context.staticPlot) return;
34847+
3484234848
var slideBox = rangeSlider.select('rect.' + constants.slideBoxClassName).node();
3484334849
var grabAreaMin = rangeSlider.select('rect.' + constants.grabAreaMinClassName).node();
3484434850
var grabAreaMax = rangeSlider.select('rect.' + constants.grabAreaMaxClassName).node();
@@ -35226,14 +35232,12 @@ function drawGrabbers(rangeSlider, gd, axisOpts, opts) {
3522635232
handleMax.attr(handleDynamicAttrs);
3522735233

3522835234
// <g grabarea />
35229-
if(gd._context.staticPlot) return;
35230-
3523135235
var grabAreaFixAttrs = {
3523235236
width: constants.grabAreaWidth,
3523335237
x: 0,
3523435238
y: 0,
3523535239
fill: constants.grabAreaFill,
35236-
cursor: constants.grabAreaCursor
35240+
cursor: !gd._context.staticPlot ? constants.grabAreaCursor : undefined,
3523735241
};
3523835242

3523935243
var grabAreaMin = Lib.ensureSingle(grabberMin, 'rect', constants.grabAreaMinClassName, function(s) {
@@ -71094,6 +71098,7 @@ plots.doAutoMargin = function(gd) {
7109471098
if(fullLayout._redrawFromAutoMarginCount < maxNumberOfRedraws) {
7109571099
return Registry.call('plot', gd);
7109671100
} else {
71101+
fullLayout._size = oldMargins;
7109771102
Lib.warn('Too many auto-margin redraws.');
7109871103
}
7109971104
}
@@ -78306,6 +78311,7 @@ function hoverOnBars(pointData, xval, yval, hovermode) {
7830678311

7830778312
pointData.labelLabel = hoverLabelText(pa, pointData[posLetter + 'LabelVal']);
7830878313
pointData.valueLabel = hoverLabelText(sa, pointData[sizeLetter + 'LabelVal']);
78314+
pointData.baseLabel = hoverLabelText(sa, di.b);
7830978315

7831078316
// spikelines always want "closest" distance regardless of hovermode
7831178317
pointData.spikeDistance = (sizeFn(di) + thisBarPositionFn(di)) / 2 - maxHoverDistance;
@@ -95603,7 +95609,7 @@ module.exports = function style(gd) {
9560395609
'use strict';
9560495610

9560595611
// package version injected by `npm run preprocess`
95606-
exports.version = '1.57.0';
95612+
exports.version = '1.57.1';
9560795613

9560895614
},{}]},{},[11])(11)
9560995615
});

0 commit comments

Comments
 (0)