Skip to content

Commit 1169948

Browse files
committed
2.14.0
1 parent 895ad77 commit 1169948

26 files changed

+387
-170
lines changed

dist/README.md

+19-19
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ The main plotly.js bundles weight in at:
4646
| 8.4 MB | 3.5 MB | 1 MB | 8.7 MB |
4747

4848
#### CDN links
49-
> https://cdn.plot.ly/plotly-2.13.3.js
49+
> https://cdn.plot.ly/plotly-2.14.0.js
5050
51-
> https://cdn.plot.ly/plotly-2.13.3.min.js
51+
> https://cdn.plot.ly/plotly-2.14.0.min.js
5252
5353

5454
#### npm packages
@@ -91,12 +91,12 @@ The `basic` partial bundle contains trace modules `bar`, `pie` and `scatter`.
9191

9292
| Raw size | Minified size | Minified + gzip size |
9393
|------|-----------------|------------------------|
94-
| 2.7 MB | 998.2 kB | 324.6 kB |
94+
| 2.7 MB | 998.4 kB | 324.6 kB |
9595

9696
#### CDN links
97-
> https://cdn.plot.ly/plotly-basic-2.13.3.js
97+
> https://cdn.plot.ly/plotly-basic-2.14.0.js
9898
99-
> https://cdn.plot.ly/plotly-basic-2.13.3.min.js
99+
> https://cdn.plot.ly/plotly-basic-2.14.0.min.js
100100
101101

102102
#### npm packages
@@ -117,9 +117,9 @@ The `cartesian` partial bundle contains trace modules `bar`, `box`, `contour`, `
117117
| 3.4 MB | 1.2 MB | 397.7 kB |
118118

119119
#### CDN links
120-
> https://cdn.plot.ly/plotly-cartesian-2.13.3.js
120+
> https://cdn.plot.ly/plotly-cartesian-2.14.0.js
121121
122-
> https://cdn.plot.ly/plotly-cartesian-2.13.3.min.js
122+
> https://cdn.plot.ly/plotly-cartesian-2.14.0.min.js
123123
124124

125125
#### npm packages
@@ -140,9 +140,9 @@ The `geo` partial bundle contains trace modules `choropleth`, `scatter` and `sca
140140
| 3.1 MB | 1.1 MB | 367.3 kB |
141141

142142
#### CDN links
143-
> https://cdn.plot.ly/plotly-geo-2.13.3.js
143+
> https://cdn.plot.ly/plotly-geo-2.14.0.js
144144
145-
> https://cdn.plot.ly/plotly-geo-2.13.3.min.js
145+
> https://cdn.plot.ly/plotly-geo-2.14.0.min.js
146146
147147

148148
#### npm packages
@@ -163,9 +163,9 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`,
163163
| 3.9 MB | 1.5 MB | 488.4 kB |
164164

165165
#### CDN links
166-
> https://cdn.plot.ly/plotly-gl3d-2.13.3.js
166+
> https://cdn.plot.ly/plotly-gl3d-2.14.0.js
167167
168-
> https://cdn.plot.ly/plotly-gl3d-2.13.3.min.js
168+
> https://cdn.plot.ly/plotly-gl3d-2.14.0.min.js
169169
170170

171171
#### npm packages
@@ -186,9 +186,9 @@ The `gl2d` partial bundle contains trace modules `heatmapgl`, `parcoords`, `poin
186186
| 4.4 MB | 1.8 MB | 580.6 kB |
187187

188188
#### CDN links
189-
> https://cdn.plot.ly/plotly-gl2d-2.13.3.js
189+
> https://cdn.plot.ly/plotly-gl2d-2.14.0.js
190190
191-
> https://cdn.plot.ly/plotly-gl2d-2.13.3.min.js
191+
> https://cdn.plot.ly/plotly-gl2d-2.14.0.min.js
192192
193193

194194
#### npm packages
@@ -209,9 +209,9 @@ The `mapbox` partial bundle contains trace modules `choroplethmapbox`, `densitym
209209
| 4.4 MB | 1.7 MB | 521.5 kB |
210210

211211
#### CDN links
212-
> https://cdn.plot.ly/plotly-mapbox-2.13.3.js
212+
> https://cdn.plot.ly/plotly-mapbox-2.14.0.js
213213
214-
> https://cdn.plot.ly/plotly-mapbox-2.13.3.min.js
214+
> https://cdn.plot.ly/plotly-mapbox-2.14.0.min.js
215215
216216

217217
#### npm packages
@@ -232,9 +232,9 @@ The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funne
232232
| 3 MB | 1.1 MB | 357.3 kB |
233233

234234
#### CDN links
235-
> https://cdn.plot.ly/plotly-finance-2.13.3.js
235+
> https://cdn.plot.ly/plotly-finance-2.14.0.js
236236
237-
> https://cdn.plot.ly/plotly-finance-2.13.3.min.js
237+
> https://cdn.plot.ly/plotly-finance-2.14.0.min.js
238238
239239

240240
#### npm packages
@@ -255,9 +255,9 @@ The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `ca
255255
| 8.8 MB | 3.9 MB | 1.1 MB |
256256

257257
#### CDN links
258-
> https://cdn.plot.ly/plotly-strict-2.13.3.js
258+
> https://cdn.plot.ly/plotly-strict-2.14.0.js
259259
260-
> https://cdn.plot.ly/plotly-strict-2.13.3.min.js
260+
> https://cdn.plot.ly/plotly-strict-2.14.0.min.js
261261
262262

263263
#### npm packages

dist/plot-schema.json

+12
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@
199199
"valType": "boolean"
200200
}
201201
},
202+
"editSelection": {
203+
"description": "Enables moving selections.",
204+
"dflt": true,
205+
"valType": "boolean"
206+
},
202207
"fillFrame": {
203208
"description": "When `layout.autosize` is turned on, determines whether the graph fills the container (the default) or the screen (if set to *true*).",
204209
"dflt": false,
@@ -42051,6 +42056,13 @@
4205142056
"valType": "number"
4205242057
},
4205342058
"link": {
42059+
"arrowlen": {
42060+
"description": "Sets the length (in px) of the links arrow, if 0 no arrow will be drawn.",
42061+
"dflt": 0,
42062+
"editType": "calc",
42063+
"min": 0,
42064+
"valType": "number"
42065+
},
4205442066
"color": {
4205542067
"arrayOk": true,
4205642068
"description": "Sets the `link` color. It can be a single value, or an array for specifying color for each `link`. If `link.color` is omitted, then by default, a translucent grey link will be used.",

dist/plotly-basic.js

+18-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v2.13.3
2+
* plotly.js (basic) v2.14.0
33
* Copyright 2012-2022, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -36135,6 +36135,10 @@ function draw(gd) {
3613536135
}
3613636136
}
3613736137

36138+
function couldHaveActiveSelection(gd) {
36139+
return gd._context.editSelection;
36140+
}
36141+
3613836142
function drawOne(gd, index) {
3613936143
// remove the existing selection if there is one.
3614036144
// because indices can change, we need to look in all selection layers
@@ -36171,7 +36175,7 @@ function drawOne(gd, index) {
3617136175
lineDash = 'solid';
3617236176
}
3617336177

36174-
var isActiveSelection =
36178+
var isActiveSelection = couldHaveActiveSelection(gd) &&
3617536179
gd._fullLayout._activeSelectionIndex === index;
3617636180

3617736181
if(isActiveSelection) {
@@ -36238,6 +36242,8 @@ function setClipPath(selectionPath, gd, selectionOptions) {
3623836242

3623936243

3624036244
function activateSelection(gd, path) {
36245+
if(!couldHaveActiveSelection(gd)) return;
36246+
3624136247
var element = path.node();
3624236248
var id = +element.getAttribute('data-index');
3624336249
if(id >= 0) {
@@ -36254,13 +36260,17 @@ function activateSelection(gd, path) {
3625436260
}
3625536261

3625636262
function activateLastSelection(gd) {
36263+
if(!couldHaveActiveSelection(gd)) return;
36264+
3625736265
var id = gd._fullLayout.selections.length - 1;
3625836266
gd._fullLayout._activeSelectionIndex = id;
3625936267
gd._fullLayout._deactivateSelection = deactivateSelection;
3626036268
draw(gd);
3626136269
}
3626236270

3626336271
function deactivateSelection(gd) {
36272+
if(!couldHaveActiveSelection(gd)) return;
36273+
3626436274
var id = gd._fullLayout._activeSelectionIndex;
3626536275
if(id >= 0) {
3626636276
clearOutlineControllers(gd);
@@ -55535,6 +55545,11 @@ var configAttributes = {
5553555545
}
5553655546
},
5553755547

55548+
editSelection: {
55549+
valType: 'boolean',
55550+
dflt: true,
55551+
},
55552+
5553855553
autosizable: {
5553955554
valType: 'boolean',
5554055555
dflt: false,
@@ -84709,7 +84724,7 @@ function getSortFunc(opts, d2c) {
8470984724
'use strict';
8471084725

8471184726
// package version injected by `npm run preprocess`
84712-
exports.version = '2.13.3';
84727+
exports.version = '2.14.0';
8471384728

8471484729
},{}]},{},[8])(8)
8471584730
});

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

+18-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (cartesian) v2.13.3
2+
* plotly.js (cartesian) v2.14.0
33
* Copyright 2012-2022, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -45305,6 +45305,10 @@ function draw(gd) {
4530545305
}
4530645306
}
4530745307

45308+
function couldHaveActiveSelection(gd) {
45309+
return gd._context.editSelection;
45310+
}
45311+
4530845312
function drawOne(gd, index) {
4530945313
// remove the existing selection if there is one.
4531045314
// because indices can change, we need to look in all selection layers
@@ -45341,7 +45345,7 @@ function drawOne(gd, index) {
4534145345
lineDash = 'solid';
4534245346
}
4534345347

45344-
var isActiveSelection =
45348+
var isActiveSelection = couldHaveActiveSelection(gd) &&
4534545349
gd._fullLayout._activeSelectionIndex === index;
4534645350

4534745351
if(isActiveSelection) {
@@ -45408,6 +45412,8 @@ function setClipPath(selectionPath, gd, selectionOptions) {
4540845412

4540945413

4541045414
function activateSelection(gd, path) {
45415+
if(!couldHaveActiveSelection(gd)) return;
45416+
4541145417
var element = path.node();
4541245418
var id = +element.getAttribute('data-index');
4541345419
if(id >= 0) {
@@ -45424,13 +45430,17 @@ function activateSelection(gd, path) {
4542445430
}
4542545431

4542645432
function activateLastSelection(gd) {
45433+
if(!couldHaveActiveSelection(gd)) return;
45434+
4542745435
var id = gd._fullLayout.selections.length - 1;
4542845436
gd._fullLayout._activeSelectionIndex = id;
4542945437
gd._fullLayout._deactivateSelection = deactivateSelection;
4543045438
draw(gd);
4543145439
}
4543245440

4543345441
function deactivateSelection(gd) {
45442+
if(!couldHaveActiveSelection(gd)) return;
45443+
4543445444
var id = gd._fullLayout._activeSelectionIndex;
4543545445
if(id >= 0) {
4543645446
clearOutlineControllers(gd);
@@ -64705,6 +64715,11 @@ var configAttributes = {
6470564715
}
6470664716
},
6470764717

64718+
editSelection: {
64719+
valType: 'boolean',
64720+
dflt: true,
64721+
},
64722+
6470864723
autosizable: {
6470964724
valType: 'boolean',
6471064725
dflt: false,
@@ -104934,7 +104949,7 @@ function getSortFunc(opts, d2c) {
104934104949
'use strict';
104935104950

104936104951
// package version injected by `npm run preprocess`
104937-
exports.version = '2.13.3';
104952+
exports.version = '2.14.0';
104938104953

104939104954
},{}]},{},[15])(15)
104940104955
});

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

+18-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (finance) v2.13.3
2+
* plotly.js (finance) v2.14.0
33
* Copyright 2012-2022, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -37355,6 +37355,10 @@ function draw(gd) {
3735537355
}
3735637356
}
3735737357

37358+
function couldHaveActiveSelection(gd) {
37359+
return gd._context.editSelection;
37360+
}
37361+
3735837362
function drawOne(gd, index) {
3735937363
// remove the existing selection if there is one.
3736037364
// because indices can change, we need to look in all selection layers
@@ -37391,7 +37395,7 @@ function drawOne(gd, index) {
3739137395
lineDash = 'solid';
3739237396
}
3739337397

37394-
var isActiveSelection =
37398+
var isActiveSelection = couldHaveActiveSelection(gd) &&
3739537399
gd._fullLayout._activeSelectionIndex === index;
3739637400

3739737401
if(isActiveSelection) {
@@ -37458,6 +37462,8 @@ function setClipPath(selectionPath, gd, selectionOptions) {
3745837462

3745937463

3746037464
function activateSelection(gd, path) {
37465+
if(!couldHaveActiveSelection(gd)) return;
37466+
3746137467
var element = path.node();
3746237468
var id = +element.getAttribute('data-index');
3746337469
if(id >= 0) {
@@ -37474,13 +37480,17 @@ function activateSelection(gd, path) {
3747437480
}
3747537481

3747637482
function activateLastSelection(gd) {
37483+
if(!couldHaveActiveSelection(gd)) return;
37484+
3747737485
var id = gd._fullLayout.selections.length - 1;
3747837486
gd._fullLayout._activeSelectionIndex = id;
3747937487
gd._fullLayout._deactivateSelection = deactivateSelection;
3748037488
draw(gd);
3748137489
}
3748237490

3748337491
function deactivateSelection(gd) {
37492+
if(!couldHaveActiveSelection(gd)) return;
37493+
3748437494
var id = gd._fullLayout._activeSelectionIndex;
3748537495
if(id >= 0) {
3748637496
clearOutlineControllers(gd);
@@ -56769,6 +56779,11 @@ var configAttributes = {
5676956779
}
5677056780
},
5677156781

56782+
editSelection: {
56783+
valType: 'boolean',
56784+
dflt: true,
56785+
},
56786+
5677256787
autosizable: {
5677356788
valType: 'boolean',
5677456789
dflt: false,
@@ -92712,7 +92727,7 @@ function getSortFunc(opts, d2c) {
9271292727
'use strict';
9271392728

9271492729
// package version injected by `npm run preprocess`
92715-
exports.version = '2.13.3';
92730+
exports.version = '2.14.0';
9271692731

9271792732
},{}]},{},[12])(12)
9271892733
});

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.

0 commit comments

Comments
 (0)