Skip to content

Commit 2c71a39

Browse files
committed
before
1 parent 1436b9c commit 2c71a39

23 files changed

+468800
-297877
lines changed

dist/README.md

+67-9
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ The main plotly.js bundle weights in at:
7979

8080
| plotly.js | plotly.min.js | plotly.min.js + gzip | plotly-with-meta.js |
8181
|-----------|---------------|----------------------|---------------------|
82-
| 7.2 MB | 3.3 MB | 1007.2 kB | 7.5 MB |
82+
| 7.2 MB | 3.3 MB | 1005.4 kB | 7.5 MB |
8383

8484
## Partial bundles
8585

@@ -92,11 +92,16 @@ Starting in `v1.15.0`, plotly.js also ships with several _partial_ bundles:
9292
- [gl2d](#plotlyjs-gl2d)
9393
- [mapbox](#plotlyjs-mapbox)
9494
- [finance](#plotlyjs-finance)
95+
- [strict](#plotlyjs-strict)
9596

9697
Starting in `v1.39.0`, each plotly.js partial bundle has a corresponding npm package with no dependencies.
9798

9899
Starting in `v1.50.0`, the minified version of each partial bundle is also published to npm in a separate "dist min" package.
99100

101+
Starting in `v2.0.0`, the strict partial bundle includes everything except the traces that require function constructors.
102+
Over time we hope to include more of the remaining trace types here, after which we intend to work on other strict CSP issues
103+
such as inline CSS that we may not be able to include in the main bundle.
104+
100105
### plotly.js basic
101106

102107
The `basic` partial bundle contains trace modules `scatter`, `bar` and `pie`.
@@ -105,7 +110,7 @@ The `basic` partial bundle contains trace modules `scatter`, `bar` and `pie`.
105110

106111
| Raw size | Minified size | Minified + gzip size |
107112
|------|-----------------|------------------------|
108-
| 2.6 MB | 937.1 kB | 307.9 kB |
113+
| 2.8 MB | 994 kB | 322.9 kB |
109114

110115
#### CDN links
111116

@@ -158,7 +163,7 @@ The `cartesian` partial bundle contains trace modules `scatter`, `bar`, `box`, `
158163

159164
| Raw size | Minified size | Minified + gzip size |
160165
|------|-----------------|------------------------|
161-
| 3 MB | 1.1 MB | 361.6 kB |
166+
| 3.4 MB | 1.2 MB | 391.6 kB |
162167

163168
#### CDN links
164169

@@ -211,7 +216,7 @@ The `geo` partial bundle contains trace modules `scatter`, `scattergeo` and `cho
211216

212217
| Raw size | Minified size | Minified + gzip size |
213218
|------|-----------------|------------------------|
214-
| 2.7 MB | 963.7 kB | 317.3 kB |
219+
| 2.8 MB | 1020.6 kB | 332.8 kB |
215220

216221
#### CDN links
217222

@@ -264,7 +269,7 @@ The `gl3d` partial bundle contains trace modules `scatter`, `scatter3d`, `surfac
264269

265270
| Raw size | Minified size | Minified + gzip size |
266271
|------|-----------------|------------------------|
267-
| 3.7 MB | 1.4 MB | 463.2 kB |
272+
| 3.8 MB | 1.5 MB | 478.4 kB |
268273

269274
#### CDN links
270275

@@ -311,13 +316,13 @@ npm install plotly.js-gl3d-dist-min
311316

312317
### plotly.js gl2d
313318

314-
The `gl2d` partial bundle contains trace modules `scatter`, `scattergl`, `splom`, `pointcloud`, `heatmapgl`, `contourgl` and `parcoords`.
319+
The `gl2d` partial bundle contains trace modules `scatter`, `scattergl`, `splom`, `heatmapgl` and `parcoords`.
315320

316321
#### Stats
317322

318323
| Raw size | Minified size | Minified + gzip size |
319324
|------|-----------------|------------------------|
320-
| 3.7 MB | 1.5 MB | 488.6 kB |
325+
| 3.8 MB | 1.5 MB | 496.1 kB |
321326

322327
#### CDN links
323328

@@ -370,7 +375,7 @@ The `mapbox` partial bundle contains trace modules `scatter`, `scattermapbox`, `
370375

371376
| Raw size | Minified size | Minified + gzip size |
372377
|------|-----------------|------------------------|
373-
| 3.4 MB | 1.7 MB | 504.4 kB |
378+
| 3.6 MB | 1.7 MB | 519.7 kB |
374379

375380
#### CDN links
376381

@@ -423,7 +428,7 @@ The `finance` partial bundle contains trace modules `scatter`, `bar`, `histogram
423428

424429
| Raw size | Minified size | Minified + gzip size |
425430
|------|-----------------|------------------------|
426-
| 2.8 MB | 1 MB | 333.8 kB |
431+
| 3 MB | 1.1 MB | 348.7 kB |
427432

428433
#### CDN links
429434

@@ -468,6 +473,59 @@ npm install plotly.js-finance-dist-min
468473
| CommonJS | `require('plotly.js/lib/index-finance')` |
469474

470475

476+
### plotly.js strict
477+
478+
The `strict` partial bundle contains trace modules `scatter`, `bar`, `box`, `heatmap`, `histogram`, `histogram2d`, `histogram2dcontour`, `contour`, `scatterternary`, `violin`, `funnel`, `waterfall`, `image`, `pie`, `sunburst`, `treemap`, `funnelarea`, `scattergeo`, `choropleth`, `parcoords`, `parcats`, `scattermapbox`, `choroplethmapbox`, `densitymapbox`, `sankey`, `indicator`, `table`, `carpet`, `scattercarpet`, `contourcarpet`, `ohlc`, `candlestick`, `scatterpolar` and `barpolar`.
479+
480+
#### Stats
481+
482+
| Raw size | Minified size | Minified + gzip size |
483+
|------|-----------------|------------------------|
484+
| 5.6 MB | 2.6 MB | 773.6 kB |
485+
486+
#### CDN links
487+
488+
| Flavor | URL |
489+
| ------ | --- |
490+
| Latest | https://cdn.plot.ly/plotly-strict-latest.js |
491+
| Latest minified | https://cdn.plot.ly/plotly-strict-latest.min.js |
492+
| Tagged | https://cdn.plot.ly/plotly-strict-1.58.4.js |
493+
| Tagged minified | https://cdn.plot.ly/plotly-strict-1.58.4.min.js |
494+
495+
#### npm package (starting in `v1.39.0`)
496+
497+
Install [`plotly.js-strict-dist`](https://www.npmjs.com/package/plotly.js-strict-dist) with
498+
```
499+
npm install plotly.js-strict-dist
500+
```
501+
502+
ES6 module usage:
503+
```js
504+
import Plotly from 'plotly.js-strict-dist'
505+
```
506+
507+
CommonJS usage:
508+
```js
509+
var Plotly = require('plotly.js-strict-dist');
510+
```
511+
512+
#### dist min npm package (starting in `v1.50.0`)
513+
514+
Install [`plotly.js-strict-dist-min`](https://www.npmjs.com/package/plotly.js-strict-dist-min) with
515+
```
516+
npm install plotly.js-strict-dist-min
517+
```
518+
519+
#### Other plotly.js entry points
520+
521+
| Flavor | Location |
522+
|---------------|----------|
523+
| dist bundle | `dist/plotly-strict.js` |
524+
| dist bundle (minified) | `dist/plotly-strict.min.js` |
525+
| ES6 module | `import Plotly from 'plotly.js/lib/index-strict'` |
526+
| CommonJS | `require('plotly.js/lib/index-strict')` |
527+
528+
471529
----------------
472530

473531
_This file is auto-generated by `npm run stats`. Please do not edit this file directly._

0 commit comments

Comments
 (0)