Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 36b478d

Browse files
committed
1.54.1
1 parent e6e6f86 commit 36b478d

22 files changed

+10193
-9251
lines changed

dist/README.md

Lines changed: 22 additions & 22 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.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.54.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.54.0.min.js
77+
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.54.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.54.0.js
82+
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.54.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 MB | 3.3 MB | 985.5 kB | 7.3 MB |
91+
| 7 MB | 3.3 MB | 986.3 kB | 7.3 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.54.0.js |
126-
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.54.0.min.js |
125+
| Tagged | https://cdn.plot.ly/plotly-basic-1.54.1.js |
126+
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.54.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.54.0.js |
179-
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.54.0.min.js |
178+
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.54.1.js |
179+
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.54.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.5 MB | 915.2 kB | 302.1 kB |
223+
| 2.5 MB | 915.3 kB | 302.2 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.0.js |
232-
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.54.0.min.js |
231+
| Tagged | https://cdn.plot.ly/plotly-geo-1.54.1.js |
232+
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.54.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.5 MB | 1.4 MB | 451.3 kB |
276+
| 3.6 MB | 1.4 MB | 451.6 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.0.js |
285-
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.54.0.min.js |
284+
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.54.1.js |
285+
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.54.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.4 MB | 470.4 kB |
329+
| 3.6 MB | 1.4 MB | 471.2 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.0.js |
338-
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.54.0.min.js |
337+
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.54.1.js |
338+
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.54.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.54.0.js |
391-
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.54.0.min.js |
390+
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.54.1.js |
391+
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.54.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 | 975.7 kB | 317.7 kB |
435+
| 2.7 MB | 975.8 kB | 317.7 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.0.js |
444-
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.54.0.min.js |
443+
| Tagged | https://cdn.plot.ly/plotly-finance-1.54.1.js |
444+
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.54.1.min.js |
445445

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

dist/plotly-basic.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v1.54.0
2+
* plotly.js (basic) v1.54.1
33
* Copyright 2012-2020, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -31240,6 +31240,11 @@ function drawOne(gd, index) {
3124031240
var lineColor = options.line.width ? options.line.color : 'rgba(0,0,0,0)';
3124131241
var lineWidth = options.line.width;
3124231242
var lineDash = options.line.dash;
31243+
if(!lineWidth && options.editable === true) {
31244+
// ensure invisible border to activate the shape
31245+
lineWidth = 5;
31246+
lineDash = 'solid';
31247+
}
3124331248

3124431249
var isOpen = d[d.length - 1] !== 'Z';
3124531250

@@ -31284,15 +31289,11 @@ function drawOne(gd, index) {
3128431289
} else {
3128531290
if(gd._context.edits.shapePosition) {
3128631291
setupDragElement(gd, path, options, index, shapeLayer, editHelpers);
31292+
} else if(options.editable === true) {
31293+
path.style('pointer-events',
31294+
(isOpen || Color.opacity(fillColor) * opacity <= 0.5) ? 'stroke' : 'all'
31295+
);
3128731296
}
31288-
31289-
path.style('pointer-events',
31290-
!couldHaveActiveShape(gd) || (
31291-
lineWidth < 2 || ( // not has a remarkable border
31292-
!isOpen && Color.opacity(fillColor) * opacity > 0.5 // not too transparent
31293-
)
31294-
) ? 'all' : 'stroke'
31295-
);
3129631297
}
3129731298

3129831299
path.node().addEventListener('click', function() { return activateShape(gd, path); });
@@ -78245,7 +78246,7 @@ module.exports = function handleXYDefaults(traceIn, traceOut, layout, coerce) {
7824578246
'use strict';
7824678247

7824778248
// package version injected by `npm run preprocess`
78248-
exports.version = '1.54.0';
78249+
exports.version = '1.54.1';
7824978250

7825078251
},{}]},{},[4])(4)
7825178252
});

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: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (cartesian) v1.54.0
2+
* plotly.js (cartesian) v1.54.1
33
* Copyright 2012-2020, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -31366,6 +31366,11 @@ function drawOne(gd, index) {
3136631366
var lineColor = options.line.width ? options.line.color : 'rgba(0,0,0,0)';
3136731367
var lineWidth = options.line.width;
3136831368
var lineDash = options.line.dash;
31369+
if(!lineWidth && options.editable === true) {
31370+
// ensure invisible border to activate the shape
31371+
lineWidth = 5;
31372+
lineDash = 'solid';
31373+
}
3136931374

3137031375
var isOpen = d[d.length - 1] !== 'Z';
3137131376

@@ -31410,15 +31415,11 @@ function drawOne(gd, index) {
3141031415
} else {
3141131416
if(gd._context.edits.shapePosition) {
3141231417
setupDragElement(gd, path, options, index, shapeLayer, editHelpers);
31418+
} else if(options.editable === true) {
31419+
path.style('pointer-events',
31420+
(isOpen || Color.opacity(fillColor) * opacity <= 0.5) ? 'stroke' : 'all'
31421+
);
3141331422
}
31414-
31415-
path.style('pointer-events',
31416-
!couldHaveActiveShape(gd) || (
31417-
lineWidth < 2 || ( // not has a remarkable border
31418-
!isOpen && Color.opacity(fillColor) * opacity > 0.5 // not too transparent
31419-
)
31420-
) ? 'all' : 'stroke'
31421-
);
3142231423
}
3142331424

3142431425
path.node().addEventListener('click', function() { return activateShape(gd, path); });
@@ -89837,7 +89838,7 @@ module.exports = function style(gd) {
8983789838
'use strict';
8983889839

8983989840
// package version injected by `npm run preprocess`
89840-
exports.version = '1.54.0';
89841+
exports.version = '1.54.1';
8984189842

8984289843
},{}]},{},[11])(11)
8984389844
});

dist/plotly-cartesian.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-finance.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (finance) v1.54.0
2+
* plotly.js (finance) v1.54.1
33
* Copyright 2012-2020, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -31338,6 +31338,11 @@ function drawOne(gd, index) {
3133831338
var lineColor = options.line.width ? options.line.color : 'rgba(0,0,0,0)';
3133931339
var lineWidth = options.line.width;
3134031340
var lineDash = options.line.dash;
31341+
if(!lineWidth && options.editable === true) {
31342+
// ensure invisible border to activate the shape
31343+
lineWidth = 5;
31344+
lineDash = 'solid';
31345+
}
3134131346

3134231347
var isOpen = d[d.length - 1] !== 'Z';
3134331348

@@ -31382,15 +31387,11 @@ function drawOne(gd, index) {
3138231387
} else {
3138331388
if(gd._context.edits.shapePosition) {
3138431389
setupDragElement(gd, path, options, index, shapeLayer, editHelpers);
31390+
} else if(options.editable === true) {
31391+
path.style('pointer-events',
31392+
(isOpen || Color.opacity(fillColor) * opacity <= 0.5) ? 'stroke' : 'all'
31393+
);
3138531394
}
31386-
31387-
path.style('pointer-events',
31388-
!couldHaveActiveShape(gd) || (
31389-
lineWidth < 2 || ( // not has a remarkable border
31390-
!isOpen && Color.opacity(fillColor) * opacity > 0.5 // not too transparent
31391-
)
31392-
) ? 'all' : 'stroke'
31393-
);
3139431395
}
3139531396

3139631397
path.node().addEventListener('click', function() { return activateShape(gd, path); });
@@ -85733,7 +85734,7 @@ module.exports = {
8573385734
'use strict';
8573485735

8573585736
// package version injected by `npm run preprocess`
85736-
exports.version = '1.54.0';
85737+
exports.version = '1.54.1';
8573785738

8573885739
},{}]},{},[8])(8)
8573985740
});

dist/plotly-finance.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-geo-assets.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-geo.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (geo) v1.54.0
2+
* plotly.js (geo) v1.54.1
33
* Copyright 2012-2020, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -34068,6 +34068,11 @@ function drawOne(gd, index) {
3406834068
var lineColor = options.line.width ? options.line.color : 'rgba(0,0,0,0)';
3406934069
var lineWidth = options.line.width;
3407034070
var lineDash = options.line.dash;
34071+
if(!lineWidth && options.editable === true) {
34072+
// ensure invisible border to activate the shape
34073+
lineWidth = 5;
34074+
lineDash = 'solid';
34075+
}
3407134076

3407234077
var isOpen = d[d.length - 1] !== 'Z';
3407334078

@@ -34112,15 +34117,11 @@ function drawOne(gd, index) {
3411234117
} else {
3411334118
if(gd._context.edits.shapePosition) {
3411434119
setupDragElement(gd, path, options, index, shapeLayer, editHelpers);
34120+
} else if(options.editable === true) {
34121+
path.style('pointer-events',
34122+
(isOpen || Color.opacity(fillColor) * opacity <= 0.5) ? 'stroke' : 'all'
34123+
);
3411534124
}
34116-
34117-
path.style('pointer-events',
34118-
!couldHaveActiveShape(gd) || (
34119-
lineWidth < 2 || ( // not has a remarkable border
34120-
!isOpen && Color.opacity(fillColor) * opacity > 0.5 // not too transparent
34121-
)
34122-
) ? 'all' : 'stroke'
34123-
);
3412434125
}
3412534126

3412634127
path.node().addEventListener('click', function() { return activateShape(gd, path); });
@@ -80588,7 +80589,7 @@ function styleTrace(gd, calcTrace) {
8058880589
'use strict';
8058980590

8059080591
// package version injected by `npm run preprocess`
80591-
exports.version = '1.54.0';
80592+
exports.version = '1.54.1';
8059280593

8059380594
},{}]},{},[4])(4)
8059480595
});

dist/plotly-geo.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)