plotly.js 2.10.0 → 2.11.1
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 +19 -0
- package/CONTRIBUTING.md +17 -0
- package/README.md +3 -3
- package/dist/README.md +23 -23
- package/dist/plotly-basic.js +2 -2
- package/dist/plotly-basic.min.js +2 -2
- package/dist/plotly-cartesian.js +2 -2
- package/dist/plotly-cartesian.min.js +2 -2
- package/dist/plotly-finance.js +2 -2
- package/dist/plotly-finance.min.js +2 -2
- package/dist/plotly-geo-assets.js +2 -2
- package/dist/plotly-geo.js +2 -2
- package/dist/plotly-geo.min.js +2 -2
- package/dist/plotly-gl2d.js +429 -352
- package/dist/plotly-gl2d.min.js +10 -10
- package/dist/plotly-gl3d.js +51 -10
- package/dist/plotly-gl3d.min.js +3 -3
- package/dist/plotly-mapbox.js +2 -2
- package/dist/plotly-mapbox.min.js +2 -2
- package/dist/plotly-strict.js +39790 -947
- package/dist/plotly-strict.min.js +11 -11
- package/dist/plotly-with-meta.js +705 -623
- package/dist/plotly.js +676 -594
- package/dist/plotly.min.js +4 -4
- package/lib/index-strict.js +5 -0
- package/package.json +9 -8
- package/src/generated/regl-codegen/30680f8f6712ef1af5cf7547e0af35b036fb300c67b07967cf448492ff4de4d0 +658 -0
- package/src/generated/regl-codegen/3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b +457 -0
- package/src/generated/regl-codegen/3fd666968f3ce90d1c048b7a9aab515f3ce387a5401a10f8b66121c9469d1c0d +2050 -0
- package/src/generated/regl-codegen/453a70fefa48db31713162aeb1ac438cb8579f54504f3b23acf32128df3dfd45 +452 -0
- package/src/generated/regl-codegen/49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210 +1423 -0
- package/src/generated/regl-codegen/6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923 +2184 -0
- package/src/generated/regl-codegen/8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034 +2000 -0
- package/src/generated/regl-codegen/8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623 +637 -0
- package/src/generated/regl-codegen/a3970baf1d8cac9305ee830c7026550387343d4dde2353dd86a4d082c97d3470 +635 -0
- package/src/generated/regl-codegen/bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019 +3311 -0
- package/src/generated/regl-codegen/cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81 +660 -0
- package/src/generated/regl-codegen/db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d +2700 -0
- package/src/generated/regl-codegen/dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5 +3325 -0
- package/src/generated/regl-codegen/fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7 +2436 -0
- package/src/lib/prepare_regl.js +7 -3
- package/src/traces/parcoords/base_index.js +24 -0
- package/src/traces/parcoords/index.js +4 -22
- package/src/traces/parcoords/plot-strict.js +9 -0
- package/src/traces/parcoords/plot.js +5 -2
- package/src/traces/parcoords/regl_precompiled.js +12 -0
- package/src/traces/parcoords/strict.js +7 -0
- package/src/traces/scattergl/base_index.js +29 -0
- package/src/traces/scattergl/index.js +3 -26
- package/src/traces/scattergl/plot.js +5 -2
- package/src/traces/scattergl/plot_strict.js +9 -0
- package/src/traces/scattergl/regl_precompiled.js +24 -0
- package/src/traces/scattergl/strict.js +7 -0
- package/src/traces/scatterpolargl/base_index.js +29 -0
- package/src/traces/scatterpolargl/index.js +3 -26
- package/src/traces/scatterpolargl/plot.js +4 -0
- package/src/traces/scatterpolargl/plot_strict.js +13 -0
- package/src/traces/scatterpolargl/regl_precompiled.js +24 -0
- package/src/traces/scatterpolargl/strict.js +7 -0
- package/src/traces/splom/base_index.js +36 -0
- package/src/traces/splom/base_plot.js +5 -2
- package/src/traces/splom/base_plot_strict.js +9 -0
- package/src/traces/splom/index.js +3 -33
- package/src/traces/splom/regl_precompiled.js +24 -0
- package/src/traces/splom/strict.js +7 -0
- package/src/version.js +1 -1
- package/stackgl_modules/index.js +49 -8
- package/stackgl_modules/package-lock.json +10 -10
- package/stackgl_modules/package.json +2 -2
- package/tasks/bundle.js +18 -0
- package/tasks/partial_bundle.js +26 -23
- package/tasks/stats.js +3 -3
- package/tasks/util/constants.js +13 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,25 @@ 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.11.1] -- 2022-03-15
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
- Regenerate functions of regl-based traces in the "strict" bundle [[#6141](https://github.com/plotly/plotly.js/pull/6141)]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## [2.11.0] -- 2022-03-11
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
- Add a CSP complaint variation of regl-based traces i.e. `parcoords`, `splom`, `scattergl`, `scatterpolargl` to the "strict" bundle [[#6083](https://github.com/plotly/plotly.js/pull/6083)]
|
|
22
|
+
- Add `scattersmith` trace to the "strict" bundle [[#6135](https://github.com/plotly/plotly.js/pull/6135)]
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [2.10.1] -- 2022-03-08
|
|
26
|
+
|
|
27
|
+
### Fixed
|
|
28
|
+
- Fix `mesh3d` generation when `alphahull` is a positive number (regression introduced in 2.5.1) [[#6133](https://github.com/plotly/plotly.js/pull/6133)]
|
|
29
|
+
|
|
30
|
+
|
|
12
31
|
## [2.10.0] -- 2022-03-04
|
|
13
32
|
|
|
14
33
|
### Added
|
package/CONTRIBUTING.md
CHANGED
|
@@ -162,6 +162,23 @@ npm run schema
|
|
|
162
162
|
|
|
163
163
|
**IMPORTANT:** please do not change and commit any files in the "dist" folder
|
|
164
164
|
|
|
165
|
+
#### Step 9: REGL - Review & commit potential changes to precompiled regl shaders
|
|
166
|
+
|
|
167
|
+
If you are implementing a new feature that involves regl shaders, or if you are
|
|
168
|
+
making changes that affect the usage of regl shaders, you would need to run
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
npm run regl-codegen
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
to regenerate the regl code. This opens a browser window, runs through all
|
|
175
|
+
traces with 'regl' in the tags, and stores the captured code into
|
|
176
|
+
[src/generated/regl-codegen](https://github.com/plotly/plotly.js/blob/master/src/generated/regl-codegen). If no updates are necessary, it would be a no-op, but
|
|
177
|
+
if there are changes, you would need to commit them.
|
|
178
|
+
|
|
179
|
+
This is needed because regl performs codegen in runtime which breaks CSP
|
|
180
|
+
compliance, and so for strict builds we pre-generate regl shader code here.
|
|
181
|
+
|
|
165
182
|
#### Other npm scripts that may be of interest in development
|
|
166
183
|
|
|
167
184
|
- `npm run preprocess`: pre-processes the css and svg source file in js. This
|
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.
|
|
58
|
+
<script src="https://cdn.plot.ly/plotly-2.11.1.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.
|
|
75
|
+
import "https://cdn.plot.ly/plotly-2.11.1.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.
|
|
85
|
+
<script src="https://cdn.plot.ly/plotly-2.11.1.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.3 MB | 3.5 MB | 1 MB | 8.6 MB |
|
|
47
47
|
|
|
48
48
|
#### CDN links
|
|
49
|
-
> https://cdn.plot.ly/plotly-2.
|
|
49
|
+
> https://cdn.plot.ly/plotly-2.11.1.js
|
|
50
50
|
|
|
51
|
-
> https://cdn.plot.ly/plotly-2.
|
|
51
|
+
> https://cdn.plot.ly/plotly-2.11.1.min.js
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
#### npm packages
|
|
@@ -79,7 +79,7 @@ plotly.js also ships with several _partial_ bundles:
|
|
|
79
79
|
|
|
80
80
|
> The minified version of each partial bundle is also published to npm in a separate "dist-min" package.
|
|
81
81
|
|
|
82
|
-
> The strict
|
|
82
|
+
> The strict bundle now includes all traces, but the regl-based traces are built differently to avoid function constructors. This results in about a 10% larger bundle size, which is why this method is not used by default. Over time we intend to use the strict bundle to work on other strict CSP issues such as inline CSS.
|
|
83
83
|
|
|
84
84
|
---
|
|
85
85
|
|
|
@@ -94,9 +94,9 @@ The `basic` partial bundle contains trace modules `bar`, `pie` and `scatter`.
|
|
|
94
94
|
| 2.7 MB | 977.9 kB | 318.5 kB |
|
|
95
95
|
|
|
96
96
|
#### CDN links
|
|
97
|
-
> https://cdn.plot.ly/plotly-basic-2.
|
|
97
|
+
> https://cdn.plot.ly/plotly-basic-2.11.1.js
|
|
98
98
|
|
|
99
|
-
> https://cdn.plot.ly/plotly-basic-2.
|
|
99
|
+
> https://cdn.plot.ly/plotly-basic-2.11.1.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.3 MB | 1.2 MB | 391.5 kB |
|
|
118
118
|
|
|
119
119
|
#### CDN links
|
|
120
|
-
> https://cdn.plot.ly/plotly-cartesian-2.
|
|
120
|
+
> https://cdn.plot.ly/plotly-cartesian-2.11.1.js
|
|
121
121
|
|
|
122
|
-
> https://cdn.plot.ly/plotly-cartesian-2.
|
|
122
|
+
> https://cdn.plot.ly/plotly-cartesian-2.11.1.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 | 361.2 kB |
|
|
141
141
|
|
|
142
142
|
#### CDN links
|
|
143
|
-
> https://cdn.plot.ly/plotly-geo-2.
|
|
143
|
+
> https://cdn.plot.ly/plotly-geo-2.11.1.js
|
|
144
144
|
|
|
145
|
-
> https://cdn.plot.ly/plotly-geo-2.
|
|
145
|
+
> https://cdn.plot.ly/plotly-geo-2.11.1.min.js
|
|
146
146
|
|
|
147
147
|
|
|
148
148
|
#### npm packages
|
|
@@ -160,12 +160,12 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`,
|
|
|
160
160
|
|
|
161
161
|
| Raw size | Minified size | Minified + gzip size |
|
|
162
162
|
|------|-----------------|------------------------|
|
|
163
|
-
| 3.9 MB | 1.5 MB |
|
|
163
|
+
| 3.9 MB | 1.5 MB | 482.2 kB |
|
|
164
164
|
|
|
165
165
|
#### CDN links
|
|
166
|
-
> https://cdn.plot.ly/plotly-gl3d-2.
|
|
166
|
+
> https://cdn.plot.ly/plotly-gl3d-2.11.1.js
|
|
167
167
|
|
|
168
|
-
> https://cdn.plot.ly/plotly-gl3d-2.
|
|
168
|
+
> https://cdn.plot.ly/plotly-gl3d-2.11.1.min.js
|
|
169
169
|
|
|
170
170
|
|
|
171
171
|
#### npm packages
|
|
@@ -183,12 +183,12 @@ The `gl2d` partial bundle contains trace modules `heatmapgl`, `parcoords`, `poin
|
|
|
183
183
|
|
|
184
184
|
| Raw size | Minified size | Minified + gzip size |
|
|
185
185
|
|------|-----------------|------------------------|
|
|
186
|
-
| 4.4 MB | 1.8 MB |
|
|
186
|
+
| 4.4 MB | 1.8 MB | 574.4 kB |
|
|
187
187
|
|
|
188
188
|
#### CDN links
|
|
189
|
-
> https://cdn.plot.ly/plotly-gl2d-2.
|
|
189
|
+
> https://cdn.plot.ly/plotly-gl2d-2.11.1.js
|
|
190
190
|
|
|
191
|
-
> https://cdn.plot.ly/plotly-gl2d-2.
|
|
191
|
+
> https://cdn.plot.ly/plotly-gl2d-2.11.1.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.3 MB | 1.7 MB | 515.4 kB |
|
|
210
210
|
|
|
211
211
|
#### CDN links
|
|
212
|
-
> https://cdn.plot.ly/plotly-mapbox-2.
|
|
212
|
+
> https://cdn.plot.ly/plotly-mapbox-2.11.1.js
|
|
213
213
|
|
|
214
|
-
> https://cdn.plot.ly/plotly-mapbox-2.
|
|
214
|
+
> https://cdn.plot.ly/plotly-mapbox-2.11.1.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
|
| 2.9 MB | 1.1 MB | 351.2 kB |
|
|
233
233
|
|
|
234
234
|
#### CDN links
|
|
235
|
-
> https://cdn.plot.ly/plotly-finance-2.
|
|
235
|
+
> https://cdn.plot.ly/plotly-finance-2.11.1.js
|
|
236
236
|
|
|
237
|
-
> https://cdn.plot.ly/plotly-finance-2.
|
|
237
|
+
> https://cdn.plot.ly/plotly-finance-2.11.1.min.js
|
|
238
238
|
|
|
239
239
|
|
|
240
240
|
#### npm packages
|
|
@@ -246,18 +246,18 @@ The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funne
|
|
|
246
246
|
|
|
247
247
|
### plotly.js strict
|
|
248
248
|
|
|
249
|
-
The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `candlestick`, `carpet`, `choropleth`, `choroplethmapbox`, `cone`, `contour`, `contourcarpet`, `densitymapbox`, `funnel`, `funnelarea`, `heatmap`, `heatmapgl`, `histogram`, `histogram2d`, `histogram2dcontour`, `icicle`, `image`, `indicator`, `isosurface`, `mesh3d`, `ohlc`, `parcats`, `pie`, `pointcloud`, `sankey`, `scatter`, `
|
|
249
|
+
The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `candlestick`, `carpet`, `choropleth`, `choroplethmapbox`, `cone`, `contour`, `contourcarpet`, `densitymapbox`, `funnel`, `funnelarea`, `heatmap`, `heatmapgl`, `histogram`, `histogram2d`, `histogram2dcontour`, `icicle`, `image`, `indicator`, `isosurface`, `mesh3d`, `ohlc`, `parcats`, `parcoords`, `pie`, `pointcloud`, `sankey`, `scatter`, `scattergl`, `scatter3d`, `scattercarpet`, `scattergeo`, `scattermapbox`, `scatterpolar`, `scatterpolargl`, `scattersmith`, `scatterternary`, `splom`, `streamtube`, `sunburst`, `surface`, `table`, `treemap`, `violin`, `volume` and `waterfall`.
|
|
250
250
|
|
|
251
251
|
#### Stats
|
|
252
252
|
|
|
253
253
|
| Raw size | Minified size | Minified + gzip size |
|
|
254
254
|
|------|-----------------|------------------------|
|
|
255
|
-
|
|
|
255
|
+
| 8.7 MB | 3.8 MB | 1.1 MB |
|
|
256
256
|
|
|
257
257
|
#### CDN links
|
|
258
|
-
> https://cdn.plot.ly/plotly-strict-2.
|
|
258
|
+
> https://cdn.plot.ly/plotly-strict-2.11.1.js
|
|
259
259
|
|
|
260
|
-
> https://cdn.plot.ly/plotly-strict-2.
|
|
260
|
+
> https://cdn.plot.ly/plotly-strict-2.11.1.min.js
|
|
261
261
|
|
|
262
262
|
|
|
263
263
|
#### npm packages
|
package/dist/plotly-basic.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js (basic) v2.
|
|
2
|
+
* plotly.js (basic) v2.11.1
|
|
3
3
|
* Copyright 2012-2022, Plotly, Inc.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Licensed under the MIT license
|
|
@@ -82787,7 +82787,7 @@ function getSortFunc(opts, d2c) {
|
|
|
82787
82787
|
'use strict';
|
|
82788
82788
|
|
|
82789
82789
|
// package version injected by `npm run preprocess`
|
|
82790
|
-
exports.version = '2.
|
|
82790
|
+
exports.version = '2.11.1';
|
|
82791
82791
|
|
|
82792
82792
|
},{}]},{},[8])(8)
|
|
82793
82793
|
});
|