plotly.js 2.13.3 → 2.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -9,6 +9,18 @@ To see all merged commits on the master branch that will be part of the next plo
9
9
 
10
10
  where X.Y.Z is the semver of most recent plotly.js release.
11
11
 
12
+ ## [2.14.0] -- 2022-08-10
13
+
14
+ ### Added
15
+ - Add support for sankey links with arrows [[#6276](https://github.com/plotly/plotly.js/pull/6276)],
16
+ with thanks to @Andy2003 for the contribution!
17
+ - Add `editSelection` option to config [[#6285](https://github.com/plotly/plotly.js/pull/6285)]
18
+
19
+ ### Changed
20
+ - Update dutch translations and fix dateMonth format for `nl` locale to confirm with expected nl format [[#6261](https://github.com/plotly/plotly.js/pull/6261)],
21
+ with thanks to @eirvandelden for the contribution!
22
+
23
+
12
24
  ## [2.13.3] -- 2022-07-25
13
25
 
14
26
  ### Fixed
package/README.md CHANGED
@@ -55,7 +55,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo
55
55
 
56
56
  ```html
57
57
  <head>
58
- <script src="https://cdn.plot.ly/plotly-2.13.3.min.js"></script>
58
+ <script src="https://cdn.plot.ly/plotly-2.14.0.min.js"></script>
59
59
  </head>
60
60
  <body>
61
61
  <div id="gd"></div>
@@ -72,7 +72,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo
72
72
  Alternatively you may consider using [native ES6 import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) in the script tag.
73
73
  ```html
74
74
  <script type="module">
75
- import "https://cdn.plot.ly/plotly-2.13.3.min.js"
75
+ import "https://cdn.plot.ly/plotly-2.14.0.min.js"
76
76
  Plotly.newPlot("gd", [{ y: [1, 2, 3] }])
77
77
  </script>
78
78
  ```
@@ -82,7 +82,7 @@ Fastly supports Plotly.js with free CDN service. Read more at <https://www.fastl
82
82
  ### Un-minified versions are also available on CDN
83
83
  While non-minified source files may contain characters outside UTF-8, it is recommended that you specify the `charset` when loading those bundles.
84
84
  ```html
85
- <script src="https://cdn.plot.ly/plotly-2.13.3.js" charset="utf-8"></script>
85
+ <script src="https://cdn.plot.ly/plotly-2.14.0.js" charset="utf-8"></script>
86
86
  ```
87
87
 
88
88
  > Please note that as of v2 the "plotly-latest" outputs (e.g. https://cdn.plot.ly/plotly-latest.min.js) will no longer be updated on the CDN, and will stay at the last v1 patch v1.58.5. Therefore, to use the CDN with plotly.js v2 and higher, you must specify an exact plotly.js version.
package/dist/README.md CHANGED
@@ -46,9 +46,9 @@ The main plotly.js bundles weight in at:
46
46
  | 8.4 MB | 3.5 MB | 1 MB | 8.7 MB |
47
47
 
48
48
  #### CDN links
49
- > https://cdn.plot.ly/plotly-2.13.3.js
49
+ > https://cdn.plot.ly/plotly-2.14.0.js
50
50
 
51
- > https://cdn.plot.ly/plotly-2.13.3.min.js
51
+ > https://cdn.plot.ly/plotly-2.14.0.min.js
52
52
 
53
53
 
54
54
  #### npm packages
@@ -91,12 +91,12 @@ The `basic` partial bundle contains trace modules `bar`, `pie` and `scatter`.
91
91
 
92
92
  | Raw size | Minified size | Minified + gzip size |
93
93
  |------|-----------------|------------------------|
94
- | 2.7 MB | 998.2 kB | 324.6 kB |
94
+ | 2.7 MB | 998.4 kB | 324.6 kB |
95
95
 
96
96
  #### CDN links
97
- > https://cdn.plot.ly/plotly-basic-2.13.3.js
97
+ > https://cdn.plot.ly/plotly-basic-2.14.0.js
98
98
 
99
- > https://cdn.plot.ly/plotly-basic-2.13.3.min.js
99
+ > https://cdn.plot.ly/plotly-basic-2.14.0.min.js
100
100
 
101
101
 
102
102
  #### npm packages
@@ -117,9 +117,9 @@ The `cartesian` partial bundle contains trace modules `bar`, `box`, `contour`, `
117
117
  | 3.4 MB | 1.2 MB | 397.7 kB |
118
118
 
119
119
  #### CDN links
120
- > https://cdn.plot.ly/plotly-cartesian-2.13.3.js
120
+ > https://cdn.plot.ly/plotly-cartesian-2.14.0.js
121
121
 
122
- > https://cdn.plot.ly/plotly-cartesian-2.13.3.min.js
122
+ > https://cdn.plot.ly/plotly-cartesian-2.14.0.min.js
123
123
 
124
124
 
125
125
  #### npm packages
@@ -140,9 +140,9 @@ The `geo` partial bundle contains trace modules `choropleth`, `scatter` and `sca
140
140
  | 3.1 MB | 1.1 MB | 367.3 kB |
141
141
 
142
142
  #### CDN links
143
- > https://cdn.plot.ly/plotly-geo-2.13.3.js
143
+ > https://cdn.plot.ly/plotly-geo-2.14.0.js
144
144
 
145
- > https://cdn.plot.ly/plotly-geo-2.13.3.min.js
145
+ > https://cdn.plot.ly/plotly-geo-2.14.0.min.js
146
146
 
147
147
 
148
148
  #### npm packages
@@ -163,9 +163,9 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`,
163
163
  | 3.9 MB | 1.5 MB | 488.4 kB |
164
164
 
165
165
  #### CDN links
166
- > https://cdn.plot.ly/plotly-gl3d-2.13.3.js
166
+ > https://cdn.plot.ly/plotly-gl3d-2.14.0.js
167
167
 
168
- > https://cdn.plot.ly/plotly-gl3d-2.13.3.min.js
168
+ > https://cdn.plot.ly/plotly-gl3d-2.14.0.min.js
169
169
 
170
170
 
171
171
  #### npm packages
@@ -186,9 +186,9 @@ The `gl2d` partial bundle contains trace modules `heatmapgl`, `parcoords`, `poin
186
186
  | 4.4 MB | 1.8 MB | 580.6 kB |
187
187
 
188
188
  #### CDN links
189
- > https://cdn.plot.ly/plotly-gl2d-2.13.3.js
189
+ > https://cdn.plot.ly/plotly-gl2d-2.14.0.js
190
190
 
191
- > https://cdn.plot.ly/plotly-gl2d-2.13.3.min.js
191
+ > https://cdn.plot.ly/plotly-gl2d-2.14.0.min.js
192
192
 
193
193
 
194
194
  #### npm packages
@@ -209,9 +209,9 @@ The `mapbox` partial bundle contains trace modules `choroplethmapbox`, `densitym
209
209
  | 4.4 MB | 1.7 MB | 521.5 kB |
210
210
 
211
211
  #### CDN links
212
- > https://cdn.plot.ly/plotly-mapbox-2.13.3.js
212
+ > https://cdn.plot.ly/plotly-mapbox-2.14.0.js
213
213
 
214
- > https://cdn.plot.ly/plotly-mapbox-2.13.3.min.js
214
+ > https://cdn.plot.ly/plotly-mapbox-2.14.0.min.js
215
215
 
216
216
 
217
217
  #### npm packages
@@ -232,9 +232,9 @@ The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funne
232
232
  | 3 MB | 1.1 MB | 357.3 kB |
233
233
 
234
234
  #### CDN links
235
- > https://cdn.plot.ly/plotly-finance-2.13.3.js
235
+ > https://cdn.plot.ly/plotly-finance-2.14.0.js
236
236
 
237
- > https://cdn.plot.ly/plotly-finance-2.13.3.min.js
237
+ > https://cdn.plot.ly/plotly-finance-2.14.0.min.js
238
238
 
239
239
 
240
240
  #### npm packages
@@ -255,9 +255,9 @@ The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `ca
255
255
  | 8.8 MB | 3.9 MB | 1.1 MB |
256
256
 
257
257
  #### CDN links
258
- > https://cdn.plot.ly/plotly-strict-2.13.3.js
258
+ > https://cdn.plot.ly/plotly-strict-2.14.0.js
259
259
 
260
- > https://cdn.plot.ly/plotly-strict-2.13.3.min.js
260
+ > https://cdn.plot.ly/plotly-strict-2.14.0.min.js
261
261
 
262
262
 
263
263
  #### npm packages
@@ -199,6 +199,11 @@
199
199
  "valType": "boolean"
200
200
  }
201
201
  },
202
+ "editSelection": {
203
+ "description": "Enables moving selections.",
204
+ "dflt": true,
205
+ "valType": "boolean"
206
+ },
202
207
  "fillFrame": {
203
208
  "description": "When `layout.autosize` is turned on, determines whether the graph fills the container (the default) or the screen (if set to *true*).",
204
209
  "dflt": false,
@@ -42051,6 +42056,13 @@
42051
42056
  "valType": "number"
42052
42057
  },
42053
42058
  "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
+ },
42054
42066
  "color": {
42055
42067
  "arrayOk": true,
42056
42068
  "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.",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * plotly.js (basic) v2.13.3
2
+ * plotly.js (basic) v2.14.0
3
3
  * Copyright 2012-2022, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -36135,6 +36135,10 @@ function draw(gd) {
36135
36135
  }
36136
36136
  }
36137
36137
 
36138
+ function couldHaveActiveSelection(gd) {
36139
+ return gd._context.editSelection;
36140
+ }
36141
+
36138
36142
  function drawOne(gd, index) {
36139
36143
  // remove the existing selection if there is one.
36140
36144
  // because indices can change, we need to look in all selection layers
@@ -36171,7 +36175,7 @@ function drawOne(gd, index) {
36171
36175
  lineDash = 'solid';
36172
36176
  }
36173
36177
 
36174
- var isActiveSelection =
36178
+ var isActiveSelection = couldHaveActiveSelection(gd) &&
36175
36179
  gd._fullLayout._activeSelectionIndex === index;
36176
36180
 
36177
36181
  if(isActiveSelection) {
@@ -36238,6 +36242,8 @@ function setClipPath(selectionPath, gd, selectionOptions) {
36238
36242
 
36239
36243
 
36240
36244
  function activateSelection(gd, path) {
36245
+ if(!couldHaveActiveSelection(gd)) return;
36246
+
36241
36247
  var element = path.node();
36242
36248
  var id = +element.getAttribute('data-index');
36243
36249
  if(id >= 0) {
@@ -36254,6 +36260,8 @@ function activateSelection(gd, path) {
36254
36260
  }
36255
36261
 
36256
36262
  function activateLastSelection(gd) {
36263
+ if(!couldHaveActiveSelection(gd)) return;
36264
+
36257
36265
  var id = gd._fullLayout.selections.length - 1;
36258
36266
  gd._fullLayout._activeSelectionIndex = id;
36259
36267
  gd._fullLayout._deactivateSelection = deactivateSelection;
@@ -36261,6 +36269,8 @@ function activateLastSelection(gd) {
36261
36269
  }
36262
36270
 
36263
36271
  function deactivateSelection(gd) {
36272
+ if(!couldHaveActiveSelection(gd)) return;
36273
+
36264
36274
  var id = gd._fullLayout._activeSelectionIndex;
36265
36275
  if(id >= 0) {
36266
36276
  clearOutlineControllers(gd);
@@ -55535,6 +55545,11 @@ var configAttributes = {
55535
55545
  }
55536
55546
  },
55537
55547
 
55548
+ editSelection: {
55549
+ valType: 'boolean',
55550
+ dflt: true,
55551
+ },
55552
+
55538
55553
  autosizable: {
55539
55554
  valType: 'boolean',
55540
55555
  dflt: false,
@@ -84709,7 +84724,7 @@ function getSortFunc(opts, d2c) {
84709
84724
  'use strict';
84710
84725
 
84711
84726
  // package version injected by `npm run preprocess`
84712
- exports.version = '2.13.3';
84727
+ exports.version = '2.14.0';
84713
84728
 
84714
84729
  },{}]},{},[8])(8)
84715
84730
  });