plotly.js 1.52.1 → 1.52.2

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.
Files changed (43) hide show
  1. package/.fossa.yml +58 -0
  2. package/.ignore +3 -0
  3. package/CHANGELOG.md +21 -0
  4. package/dist/README.md +25 -25
  5. package/dist/plot-schema.json +8 -8
  6. package/dist/plotly-basic.js +187 -54
  7. package/dist/plotly-basic.min.js +2 -2
  8. package/dist/plotly-cartesian.js +187 -54
  9. package/dist/plotly-cartesian.min.js +2 -2
  10. package/dist/plotly-finance.js +187 -54
  11. package/dist/plotly-finance.min.js +2 -2
  12. package/dist/plotly-geo-assets.js +2 -2
  13. package/dist/plotly-geo.js +168 -49
  14. package/dist/plotly-geo.min.js +2 -2
  15. package/dist/plotly-gl2d.js +173 -51
  16. package/dist/plotly-gl2d.min.js +2 -2
  17. package/dist/plotly-gl3d.js +668 -449
  18. package/dist/plotly-gl3d.min.js +2 -2
  19. package/dist/plotly-mapbox.js +170 -50
  20. package/dist/plotly-mapbox.min.js +2 -2
  21. package/dist/plotly-with-meta.js +823 -533
  22. package/dist/plotly.js +814 -525
  23. package/dist/plotly.min.js +2 -2
  24. package/package.json +24 -23
  25. package/src/assets/geo_assets.js +1 -1
  26. package/src/components/annotations/attributes.js +1 -1
  27. package/src/core.js +1 -1
  28. package/src/lib/index.js +6 -3
  29. package/src/plot_api/subroutines.js +6 -0
  30. package/src/plot_api/validate.js +4 -3
  31. package/src/plots/cartesian/axes.js +6 -2
  32. package/src/plots/cartesian/constants.js +1 -2
  33. package/src/plots/cartesian/layout_defaults.js +112 -27
  34. package/src/plots/gl3d/scene.js +361 -323
  35. package/src/plots/layout_attributes.js +2 -2
  36. package/src/plots/mapbox/layers.js +2 -1
  37. package/src/plots/plots.js +30 -9
  38. package/src/traces/bar/hover.js +6 -1
  39. package/src/traces/bar/plot.js +13 -4
  40. package/src/traces/mesh3d/convert.js +9 -5
  41. package/src/traces/pie/attributes.js +7 -6
  42. package/src/traces/treemap/plot.js +2 -0
  43. package/tasks/test_syntax.js +1 -1
package/.fossa.yml ADDED
@@ -0,0 +1,58 @@
1
+ # Generated by FOSSA CLI (https://github.com/fossas/fossa-cli)
2
+ # Visit https://fossa.com to learn more
3
+
4
+ version: 2
5
+ cli:
6
+ server: https://app.fossa.com
7
+ fetcher: custom
8
+ project: git@github.com:plotly/plotly.js.git
9
+ analyze:
10
+ modules:
11
+ - name: plotly.js
12
+ type: bower
13
+ target: bower.json
14
+ path: .
15
+ - name: plotly/plotly.js
16
+ type: composer
17
+ target: composer.json
18
+ path: .
19
+ - name: plotly.js-basic-dist
20
+ type: npm
21
+ target: build/plotly.js-basic-dist
22
+ path: build/plotly.js-basic-dist
23
+ - name: plotly.js-cartesian-dist
24
+ type: npm
25
+ target: build/plotly.js-cartesian-dist
26
+ path: build/plotly.js-cartesian-dist
27
+ - name: plotly.js-dist
28
+ type: npm
29
+ target: build/plotly.js-dist
30
+ path: build/plotly.js-dist
31
+ - name: plotly.js-finance-dist
32
+ type: npm
33
+ target: build/plotly.js-finance-dist
34
+ path: build/plotly.js-finance-dist
35
+ - name: plotly.js-geo-dist
36
+ type: npm
37
+ target: build/plotly.js-geo-dist
38
+ path: build/plotly.js-geo-dist
39
+ - name: plotly.js-gl2d-dist
40
+ type: npm
41
+ target: build/plotly.js-gl2d-dist
42
+ path: build/plotly.js-gl2d-dist
43
+ - name: plotly.js-gl3d-dist
44
+ type: npm
45
+ target: build/plotly.js-gl3d-dist
46
+ path: build/plotly.js-gl3d-dist
47
+ - name: plotly.js-locales
48
+ type: npm
49
+ target: build/plotly.js-locales
50
+ path: build/plotly.js-locales
51
+ - name: plotly.js-mapbox-dist
52
+ type: npm
53
+ target: build/plotly.js-mapbox-dist
54
+ path: build/plotly.js-mapbox-dist
55
+ - name: .
56
+ type: npm
57
+ target: .
58
+ path: .
package/.ignore ADDED
@@ -0,0 +1,3 @@
1
+ node_modules/
2
+ dist/
3
+ build/
package/CHANGELOG.md CHANGED
@@ -10,6 +10,27 @@ https://github.com/plotly/plotly.js/compare/vX.Y.Z...master
10
10
  where X.Y.Z is the semver of most recent plotly.js release.
11
11
 
12
12
 
13
+ ## [1.52.2] -- 2020-02-03
14
+
15
+ ## Fixed
16
+ - Handle 'missing' matching axes [#4529]
17
+ - Fix hover for `mesh3d`, `isosurface` and `volume`
18
+ when using `plotGlPixelRatio > 1` (bug introduced in 1.45.0) [#4534]
19
+ - Fix hover of `mesh3d` traces with `facecolor` and `intensitymode: 'cell'` [#4539]
20
+ - Fix gl3d rendering on iPad Pro & iPad 7th + iOs v13 + Safari [#4360, #4546]
21
+ - Fix pixel-rounding logic for blank bars [#4522]
22
+ - Fix `pathbar.visible` updates in `treemap` traces [#4516]
23
+ - Fix `waterfall` `'closest'` hover when cursor is below the size axis [#4537]
24
+ - Fix mapbox layout layer opacity for raster types [#4525]
25
+ - Allow `0` in `grouby` transform `nameformat` templates [#4526]
26
+ - Fix `Plotly.validate` for `valType:'any'` attributes [#4526]
27
+ - Bump `d3-interpolate` to v1.4.0 [#4475]
28
+ - Bump `d3-hierarchy` to v1.1.9 [#4475]
29
+ - Fix typo in annotation `align` attribute description [#4528]
30
+ - Fix `plot_bgcolor` and `paper_bgcolor` attribute description [#4536]
31
+ - Fix `insidetextorientation` description for pie and sunburst traces [#4523]
32
+
33
+
13
34
  ## [1.52.1] -- 2020-01-13
14
35
 
15
36
  ### Fixed
package/dist/README.md CHANGED
@@ -51,7 +51,7 @@ object. This property must be set before the plotly.js script tag, for example:
51
51
  Plotly.js defaults to US English (en-US) and includes British English (en) in the standard bundle.
52
52
  Many other localizations are available - here is an example using Swiss-German (de-CH),
53
53
  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.52.1.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.52.2.js
55
55
  Note that the file names are all lowercase, even though the region is uppercase when you apply a locale.
56
56
 
57
57
  *After* the plotly.js script tag, add:
@@ -74,12 +74,12 @@ The main plotly.js bundle includes all the official (non-beta) trace modules.
74
74
 
75
75
  It be can imported as minified javascript
76
76
  - 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.52.1.min.js
77
+ - using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.52.2.min.js
78
78
 
79
79
  or as raw javascript:
80
80
  - using the `plotly.js-dist` npm package (starting in `v1.39.0`)
81
81
  - using dist file `dist/plotly.js`
82
- - using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.52.1.js
82
+ - using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.52.2.js
83
83
  - using CommonJS with `require('plotly.js')`
84
84
 
85
85
  If you would like to have access to the attribute meta information (including attribute descriptions as on the [schema reference page](https://plot.ly/javascript/reference/)), use dist file `dist/plotly-with-meta.js`
@@ -88,7 +88,7 @@ The main plotly.js bundle weights in at:
88
88
 
89
89
  | plotly.js | plotly.min.js | plotly.min.js + gzip | plotly-with-meta.js |
90
90
  |-----------|---------------|----------------------|---------------------|
91
- | 6.9 MB | 3.2 MB | 956 kB | 7.2 MB |
91
+ | 6.9 MB | 3.2 MB | 957 kB | 7.2 MB |
92
92
 
93
93
  ## Partial bundles
94
94
 
@@ -114,7 +114,7 @@ The `basic` partial bundle contains trace modules `scatter`, `bar` and `pie`.
114
114
 
115
115
  | Raw size | Minified size | Minified + gzip size |
116
116
  |------|-----------------|------------------------|
117
- | 2.4 MB | 852.6 kB | 280 kB |
117
+ | 2.4 MB | 853.5 kB | 280.4 kB |
118
118
 
119
119
  #### CDN links
120
120
 
@@ -122,8 +122,8 @@ The `basic` partial bundle contains trace modules `scatter`, `bar` and `pie`.
122
122
  | ------ | --- |
123
123
  | Latest | https://cdn.plot.ly/plotly-basic-latest.js |
124
124
  | Latest minified | https://cdn.plot.ly/plotly-basic-latest.min.js |
125
- | Tagged | https://cdn.plot.ly/plotly-basic-1.52.1.js |
126
- | Tagged minified | https://cdn.plot.ly/plotly-basic-1.52.1.min.js |
125
+ | Tagged | https://cdn.plot.ly/plotly-basic-1.52.2.js |
126
+ | Tagged minified | https://cdn.plot.ly/plotly-basic-1.52.2.min.js |
127
127
 
128
128
  #### npm package (starting in `v1.39.0`)
129
129
 
@@ -167,7 +167,7 @@ The `cartesian` partial bundle contains trace modules `scatter`, `bar`, `box`, `
167
167
 
168
168
  | Raw size | Minified size | Minified + gzip size |
169
169
  |------|-----------------|------------------------|
170
- | 2.7 MB | 982.5 kB | 321 kB |
170
+ | 2.7 MB | 983.4 kB | 321.4 kB |
171
171
 
172
172
  #### CDN links
173
173
 
@@ -175,8 +175,8 @@ The `cartesian` partial bundle contains trace modules `scatter`, `bar`, `box`, `
175
175
  | ------ | --- |
176
176
  | Latest | https://cdn.plot.ly/plotly-cartesian-latest.js |
177
177
  | Latest minified | https://cdn.plot.ly/plotly-cartesian-latest.min.js |
178
- | Tagged | https://cdn.plot.ly/plotly-cartesian-1.52.1.js |
179
- | Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.52.1.min.js |
178
+ | Tagged | https://cdn.plot.ly/plotly-cartesian-1.52.2.js |
179
+ | Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.52.2.min.js |
180
180
 
181
181
  #### npm package (starting in `v1.39.0`)
182
182
 
@@ -220,7 +220,7 @@ The `geo` partial bundle contains trace modules `scatter`, `scattergeo` and `cho
220
220
 
221
221
  | Raw size | Minified size | Minified + gzip size |
222
222
  |------|-----------------|------------------------|
223
- | 2.4 MB | 879.8 kB | 289.6 kB |
223
+ | 2.4 MB | 880.7 kB | 289.9 kB |
224
224
 
225
225
  #### CDN links
226
226
 
@@ -228,8 +228,8 @@ The `geo` partial bundle contains trace modules `scatter`, `scattergeo` and `cho
228
228
  | ------ | --- |
229
229
  | Latest | https://cdn.plot.ly/plotly-geo-latest.js |
230
230
  | Latest minified | https://cdn.plot.ly/plotly-geo-latest.min.js |
231
- | Tagged | https://cdn.plot.ly/plotly-geo-1.52.1.js |
232
- | Tagged minified | https://cdn.plot.ly/plotly-geo-1.52.1.min.js |
231
+ | Tagged | https://cdn.plot.ly/plotly-geo-1.52.2.js |
232
+ | Tagged minified | https://cdn.plot.ly/plotly-geo-1.52.2.min.js |
233
233
 
234
234
  #### npm package (starting in `v1.39.0`)
235
235
 
@@ -273,7 +273,7 @@ The `gl3d` partial bundle contains trace modules `scatter`, `scatter3d`, `surfac
273
273
 
274
274
  | Raw size | Minified size | Minified + gzip size |
275
275
  |------|-----------------|------------------------|
276
- | 3.5 MB | 1.4 MB | 438.3 kB |
276
+ | 3.5 MB | 1.4 MB | 438.9 kB |
277
277
 
278
278
  #### CDN links
279
279
 
@@ -281,8 +281,8 @@ The `gl3d` partial bundle contains trace modules `scatter`, `scatter3d`, `surfac
281
281
  | ------ | --- |
282
282
  | Latest | https://cdn.plot.ly/plotly-gl3d-latest.js |
283
283
  | Latest minified | https://cdn.plot.ly/plotly-gl3d-latest.min.js |
284
- | Tagged | https://cdn.plot.ly/plotly-gl3d-1.52.1.js |
285
- | Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.52.1.min.js |
284
+ | Tagged | https://cdn.plot.ly/plotly-gl3d-1.52.2.js |
285
+ | Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.52.2.min.js |
286
286
 
287
287
  #### npm package (starting in `v1.39.0`)
288
288
 
@@ -326,7 +326,7 @@ The `gl2d` partial bundle contains trace modules `scatter`, `scattergl`, `splom`
326
326
 
327
327
  | Raw size | Minified size | Minified + gzip size |
328
328
  |------|-----------------|------------------------|
329
- | 3.5 MB | 1.4 MB | 457.8 kB |
329
+ | 3.5 MB | 1.4 MB | 458.2 kB |
330
330
 
331
331
  #### CDN links
332
332
 
@@ -334,8 +334,8 @@ The `gl2d` partial bundle contains trace modules `scatter`, `scattergl`, `splom`
334
334
  | ------ | --- |
335
335
  | Latest | https://cdn.plot.ly/plotly-gl2d-latest.js |
336
336
  | Latest minified | https://cdn.plot.ly/plotly-gl2d-latest.min.js |
337
- | Tagged | https://cdn.plot.ly/plotly-gl2d-1.52.1.js |
338
- | Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.52.1.min.js |
337
+ | Tagged | https://cdn.plot.ly/plotly-gl2d-1.52.2.js |
338
+ | Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.52.2.min.js |
339
339
 
340
340
  #### npm package (starting in `v1.39.0`)
341
341
 
@@ -379,7 +379,7 @@ The `mapbox` partial bundle contains trace modules `scatter`, `scattermapbox`, `
379
379
 
380
380
  | Raw size | Minified size | Minified + gzip size |
381
381
  |------|-----------------|------------------------|
382
- | 3.1 MB | 1.5 MB | 461.4 kB |
382
+ | 3.1 MB | 1.5 MB | 461.8 kB |
383
383
 
384
384
  #### CDN links
385
385
 
@@ -387,8 +387,8 @@ The `mapbox` partial bundle contains trace modules `scatter`, `scattermapbox`, `
387
387
  | ------ | --- |
388
388
  | Latest | https://cdn.plot.ly/plotly-mapbox-latest.js |
389
389
  | Latest minified | https://cdn.plot.ly/plotly-mapbox-latest.min.js |
390
- | Tagged | https://cdn.plot.ly/plotly-mapbox-1.52.1.js |
391
- | Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.52.1.min.js |
390
+ | Tagged | https://cdn.plot.ly/plotly-mapbox-1.52.2.js |
391
+ | Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.52.2.min.js |
392
392
 
393
393
  #### npm package (starting in `v1.39.0`)
394
394
 
@@ -432,7 +432,7 @@ The `finance` partial bundle contains trace modules `scatter`, `bar`, `histogram
432
432
 
433
433
  | Raw size | Minified size | Minified + gzip size |
434
434
  |------|-----------------|------------------------|
435
- | 2.6 MB | 939.7 kB | 305 kB |
435
+ | 2.6 MB | 940.6 kB | 305.4 kB |
436
436
 
437
437
  #### CDN links
438
438
 
@@ -440,8 +440,8 @@ The `finance` partial bundle contains trace modules `scatter`, `bar`, `histogram
440
440
  | ------ | --- |
441
441
  | Latest | https://cdn.plot.ly/plotly-finance-latest.js |
442
442
  | Latest minified | https://cdn.plot.ly/plotly-finance-latest.min.js |
443
- | Tagged | https://cdn.plot.ly/plotly-finance-1.52.1.js |
444
- | Tagged minified | https://cdn.plot.ly/plotly-finance-1.52.1.min.js |
443
+ | Tagged | https://cdn.plot.ly/plotly-finance-1.52.2.js |
444
+ | Tagged minified | https://cdn.plot.ly/plotly-finance-1.52.2.min.js |
445
445
 
446
446
  #### npm package (starting in `v1.39.0`)
447
447
 
@@ -17621,7 +17621,7 @@
17621
17621
  ],
17622
17622
  "dflt": "auto",
17623
17623
  "editType": "plot",
17624
- "description": "Determines the orientation of text inside slices. With *auto* the texts may automatically be rotated to fit with the maximum size inside the slice. Using *horizontal* option forces text to be horizontal. Using *radial* option forces text to be radial. Using *tangential* option forces text to be tangential."
17624
+ "description": "Controls the orientation of the text inside chart sectors. When set to *auto*, text may be oriented in any direction in order to be as big as possible in the middle of a sector. The *horizontal* option orients text to be parallel with the bottom of the chart, and may make text smaller in order to achieve that goal. The *radial* option orients text along the radius of the sector. The *tangential* option orients text perpendicular to the radius of the sector."
17625
17625
  },
17626
17626
  "insidetextfont": {
17627
17627
  "family": {
@@ -19077,7 +19077,7 @@
19077
19077
  ],
19078
19078
  "dflt": "auto",
19079
19079
  "editType": "plot",
19080
- "description": "Determines the orientation of text inside slices. With *auto* the texts may automatically be rotated to fit with the maximum size inside the slice. Using *horizontal* option forces text to be horizontal. Using *radial* option forces text to be radial. Using *tangential* option forces text to be tangential."
19080
+ "description": "Controls the orientation of the text inside chart sectors. When set to *auto*, text may be oriented in any direction in order to be as big as possible in the middle of a sector. The *horizontal* option orients text to be parallel with the bottom of the chart, and may make text smaller in order to achieve that goal. The *radial* option orients text along the radius of the sector. The *tangential* option orients text perpendicular to the radius of the sector."
19081
19081
  },
19082
19082
  "insidetextfont": {
19083
19083
  "family": {
@@ -46206,7 +46206,7 @@
46206
46206
  "dflt": "center",
46207
46207
  "role": "style",
46208
46208
  "editType": "calc",
46209
- "description": "Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans more two or more lines (i.e. `text` contains one or more <br> HTML tags) or if an explicit width is set to override the text width.",
46209
+ "description": "Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans two or more lines (i.e. `text` contains one or more <br> HTML tags) or if an explicit width is set to override the text width.",
46210
46210
  "arrayOk": true
46211
46211
  },
46212
46212
  "line": {
@@ -46383,7 +46383,7 @@
46383
46383
  "dflt": "center",
46384
46384
  "role": "style",
46385
46385
  "editType": "calc",
46386
- "description": "Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans more two or more lines (i.e. `text` contains one or more <br> HTML tags) or if an explicit width is set to override the text width.",
46386
+ "description": "Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans two or more lines (i.e. `text` contains one or more <br> HTML tags) or if an explicit width is set to override the text width.",
46387
46387
  "arrayOk": true
46388
46388
  },
46389
46389
  "line": {
@@ -57324,14 +57324,14 @@
57324
57324
  "role": "style",
57325
57325
  "dflt": "#fff",
57326
57326
  "editType": "plot",
57327
- "description": "Sets the color of paper where the graph is drawn."
57327
+ "description": "Sets the background color of the paper where the graph is drawn."
57328
57328
  },
57329
57329
  "plot_bgcolor": {
57330
57330
  "valType": "color",
57331
57331
  "role": "style",
57332
57332
  "dflt": "#fff",
57333
57333
  "editType": "layoutstyle",
57334
- "description": "Sets the color of plotting area in-between x and y axes."
57334
+ "description": "Sets the background color of the plotting area in-between x and y axes."
57335
57335
  },
57336
57336
  "separators": {
57337
57337
  "valType": "string",
@@ -63397,7 +63397,7 @@
63397
63397
  "dflt": "center",
63398
63398
  "role": "style",
63399
63399
  "editType": "calc",
63400
- "description": "Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans more two or more lines (i.e. `text` contains one or more <br> HTML tags) or if an explicit width is set to override the text width."
63400
+ "description": "Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans two or more lines (i.e. `text` contains one or more <br> HTML tags) or if an explicit width is set to override the text width."
63401
63401
  },
63402
63402
  "valign": {
63403
63403
  "valType": "enumerated",
@@ -66133,7 +66133,7 @@
66133
66133
  "dflt": "center",
66134
66134
  "role": "style",
66135
66135
  "editType": "arraydraw",
66136
- "description": "Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans more two or more lines (i.e. `text` contains one or more <br> HTML tags) or if an explicit width is set to override the text width."
66136
+ "description": "Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans two or more lines (i.e. `text` contains one or more <br> HTML tags) or if an explicit width is set to override the text width."
66137
66137
  },
66138
66138
  "valign": {
66139
66139
  "valType": "enumerated",