Skip to content

Commit c2a703f

Browse files
committed
Merge branch 'master' into volume-dev
2 parents 4542518 + 3a63b18 commit c2a703f

File tree

144 files changed

+300480
-11807
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+300480
-11807
lines changed

.circleci/config.yml

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,19 @@ jobs:
7070
name: Run jasmine tests (batch 2)
7171
command: ./.circleci/test.sh jasmine2
7272

73+
test-jasmine3:
74+
docker:
75+
# need '-browsers' version to test in real (xvfb-wrapped) browsers
76+
- image: circleci/node:10.9.0-browsers
77+
working_directory: ~/plotly.js
78+
steps:
79+
- checkout
80+
- attach_workspace:
81+
at: ~/plotly.js
82+
- run:
83+
name: Run jasmine tests (batch 3)
84+
command: ./.circleci/test.sh jasmine3
85+
7386
test-image:
7487
docker:
7588
- image: plotly/testbed:latest
@@ -131,24 +144,28 @@ jobs:
131144
- attach_workspace:
132145
at: ~/plotly.js
133146
- run:
134-
name: Update plot-schema.json
135-
command: node tasks/bundle_plot_schema.js
147+
name: Build dist/
148+
command: npm run build
136149
- store_artifacts:
137-
path: build/plotly.js
138-
destination: /plotly.js
139-
- store_artifacts:
140-
path: dist/plotly.min.js
141-
destination: /plotly.min.js
150+
path: dist
151+
destination: dist
152+
- run:
153+
name: Pack tarball
154+
command: |
155+
npm pack
156+
version=$(node -e "console.log(require('./package.json').version)")
157+
mv plotly.js-$version.tgz plotly.js.tgz
142158
- store_artifacts:
143-
path: dist/plot-schema.json
144-
destination: /plot-schema.json
159+
path: plotly.js.tgz
160+
destination: /plotly.js.tgz
145161
- run:
146162
name: Show URLs to build files
147163
command: |
148164
PROJECT_NUM=45646037
149-
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/plotly.js
150-
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/plotly.min.js
151-
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/plot-schema.json
165+
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/plotly.js.tgz
166+
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plotly.js
167+
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plotly.min.js
168+
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plot-schema.json
152169
153170
workflows:
154171
version: 2
@@ -161,6 +178,9 @@ workflows:
161178
- test-jasmine2:
162179
requires:
163180
- build
181+
- test-jasmine3:
182+
requires:
183+
- build
164184
- test-image:
165185
requires:
166186
- build

.circleci/test.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ case $1 in
4545
set_tz
4646

4747
npm run test-jasmine -- --skip-tags=gl,noCI,flaky || EXIT_STATE=$?
48-
retry npm run test-jasmine -- --tags=flaky --skip-tags=noCI
4948
npm run test-bundle || EXIT_STATE=$?
5049

5150
exit $EXIT_STATE
@@ -63,6 +62,18 @@ case $1 in
6362
exit $EXIT_STATE
6463
;;
6564

65+
jasmine3)
66+
set_tz
67+
68+
SHARDS=($(node $ROOT/tasks/shard_jasmine_tests.js --tag=flaky))
69+
70+
for s in ${SHARDS[@]}; do
71+
retry npm run test-jasmine -- "$s" --tags=flaky --skip-tags=noCI
72+
done
73+
74+
exit $EXIT_STATE
75+
;;
76+
6677
image)
6778
npm run test-image || EXIT_STATE=$?
6879
exit $EXIT_STATE

CHANGELOG.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,66 @@ https://github.com/plotly/plotly.js/compare/vX.Y.Z...master
1010
where X.Y.Z is the semver of most recent plotly.js release.
1111

1212

13+
## [1.45.1] -- 2019-03-05
14+
15+
### Fixed
16+
- Fix axis automargin pushes for rotated tick labels [#3605]
17+
- Fix automargin logic on (very) small graphs [#3605]
18+
- Fix locales support in `hovertemplate` strings [#3586]
19+
- Fix gl3d reset camera buttons for scenes with orthographic projection [#3597]
20+
- Fix typed array support for `parcoords` dimensions values and `line.color` [#3598]
21+
- Fix `cone` rendering on some older browsers [#3591]
22+
- Fix `lightposition` behavior for `cone` traces [#3591]
23+
- Fix `lightposition` behavior for `streamtube` trace [#3593]
24+
- Remove unused files from `gl-cone3d` dependency [#3591]
25+
- Remove unused files from `gl-streamtube3d` dependency [#3593]
26+
27+
28+
## [1.45.0] -- 2019-02-26
29+
30+
### Added
31+
- Add support for circular networks in `sankey` traces [#3406, #3535, #3564]
32+
- Add matching axes behavior to cartesian axes via new axis attribute and
33+
new splom attribute dimensions attribute `matches` [#3506, #3565]
34+
- Add attributes `alignmentgroup` and `offsetgroup` to `bar`, `histogram`, `box`
35+
and `violin` traces to make cross-trace positioning easier [#3529]
36+
- Add support for orthographic projections in gl3d subplots via new attribute
37+
`scene.camera.projection.type` [#3550]
38+
- Add `cmid` and `zmid` colorscale attributes to pick the middle of the color
39+
range during the auto-colorscale computations [#3549]
40+
- Add support for `sankey` grouping via new attribute `groups` [#3556]
41+
- Add support for `sankey` concentration `colorscales` [#3501]
42+
- Add support for `hovertemplate` for all `gl3d` traces, `contour`,
43+
`heatmap`, `histogram*`, `parcats`, `scattercarpet` and `splom` traces [#3530]
44+
- Add `hovertext` attribute to all traces that support hover 'text',
45+
for consistency with traces that already have an `hovertext` attribute [#3553]
46+
- Add support for layout `meta` templating in trace `name`,
47+
`rangeselector`, `updatemenus` and `sliders` labels as well as
48+
within `hovertemplate` [#3548]
49+
- Add support for `opacity` to `isosurface` traces [#3545]
50+
- Add `mapbox.layers` attributes: `minzoom`, `maxzoom`, `line.dash` and `symbol.placement` [#3399]
51+
52+
### Changed
53+
- More consistency pass down WebGL pixel ratio to gl3d renderers,
54+
this leads to better axis line and error bar rendering on some hardwares [#3573]
55+
- Performance boost for `isosurface` trace generation [#3521]
56+
- Export template string regex of `Lib` [#3548]
57+
- Do no cluster points in `scattergl` trace with less than 1e5 data pts,
58+
this fixes reported "missing data points" scenarios [#3578]
59+
60+
### Fixed
61+
- Fix selection outline clearing during cartesian axis-range relayout calls
62+
(bug introduced in 1.42.0) [#3577]
63+
- Fix modebar interactions on graphs with `scatter3d` traces with
64+
marker colorscales (bug introduced in 1.44.0) [#3554]
65+
- Fix axis `automargin` for superimposed subplots (bug introduced in 1.44.3) [#3566]
66+
- Fix polar angular tick labels placement [#3538]
67+
- Fix `scattergl` updates after selections for trace with on-graph text [#3575]
68+
- Fix `responsive: true` config option for graph with WebGL traces [#3500]
69+
- Fix `modebar.bgcolor` for vertical modebars with wrapped buttons [#3500]
70+
- Fix `ohlc` and `candlestick` auto-range computations [#3544]
71+
72+
1373
## [1.44.4] -- 2019-02-12
1474

1575
### Fixed

dist/README.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ object. This property must be set before the plotly.js script tag, for example:
5151
Plotly.js defaults to US English (en-US) and includes British English (en) in the standard bundle.
5252
Many other localizations are available - here is an example using Swiss-German (de-CH),
5353
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.44.4.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.45.1.js
5555
Note that the file names are all lowercase, even though the region is uppercase when you apply a locale.
5656

5757
*After* the plotly.js script tag, add:
@@ -74,12 +74,12 @@ The main plotly.js bundle includes all the official (non-beta) trace modules.
7474

7575
It be can imported as minified javascript
7676
- 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.44.4.min.js
77+
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.45.1.min.js
7878

7979
or as raw javascript:
8080
- using the `plotly.js-dist` npm package (starting in `v1.39.0`)
8181
- using dist file `dist/plotly.js`
82-
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.44.4.js
82+
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.45.1.js
8383
- using CommonJS with `require('plotly.js')`
8484

8585
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:
8888

8989
| plotly.js | plotly.min.js | plotly.min.js + gzip | plotly-with-meta.js |
9090
|-----------|---------------|----------------------|---------------------|
91-
| 6.1 MB | 2.8 MB | 849.5 kB | 6.3 MB |
91+
| 6.2 MB | 2.9 MB | 865.3 kB | 6.5 MB |
9292

9393
## Partial bundles
9494

@@ -111,16 +111,16 @@ The `basic` partial bundle contains trace modules `scatter`, `bar` and `pie`.
111111

112112
| Raw size | Minified size | Minified + gzip size |
113113
|------|-----------------|------------------------|
114-
| 2.3 MB | 810.9 kB | 264.8 kB |
114+
| 2.3 MB | 817.1 kB | 267 kB |
115115

116116
#### CDN links
117117

118118
| Flavor | URL |
119119
| ------ | --- |
120120
| Latest | https://cdn.plot.ly/plotly-basic-latest.js |
121121
| Latest minified | https://cdn.plot.ly/plotly-basic-latest.min.js |
122-
| Tagged | https://cdn.plot.ly/plotly-basic-1.44.4.js |
123-
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.44.4.min.js |
122+
| Tagged | https://cdn.plot.ly/plotly-basic-1.45.1.js |
123+
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.45.1.min.js |
124124

125125
#### npm package (starting in `v1.39.0`)
126126

@@ -157,16 +157,16 @@ The `cartesian` partial bundle contains trace modules `scatter`, `bar`, `box`, `
157157

158158
| Raw size | Minified size | Minified + gzip size |
159159
|------|-----------------|------------------------|
160-
| 2.6 MB | 924.5 kB | 300.8 kB |
160+
| 2.6 MB | 932.7 kB | 303.4 kB |
161161

162162
#### CDN links
163163

164164
| Flavor | URL |
165165
| ------ | --- |
166166
| Latest | https://cdn.plot.ly/plotly-cartesian-latest.js |
167167
| Latest minified | https://cdn.plot.ly/plotly-cartesian-latest.min.js |
168-
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.44.4.js |
169-
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.44.4.min.js |
168+
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.45.1.js |
169+
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.45.1.min.js |
170170

171171
#### npm package (starting in `v1.39.0`)
172172

@@ -203,16 +203,16 @@ The `geo` partial bundle contains trace modules `scatter`, `scattergeo` and `cho
203203

204204
| Raw size | Minified size | Minified + gzip size |
205205
|------|-----------------|------------------------|
206-
| 2.3 MB | 829.2 kB | 272.9 kB |
206+
| 2.3 MB | 834.4 kB | 274.8 kB |
207207

208208
#### CDN links
209209

210210
| Flavor | URL |
211211
| ------ | --- |
212212
| Latest | https://cdn.plot.ly/plotly-geo-latest.js |
213213
| Latest minified | https://cdn.plot.ly/plotly-geo-latest.min.js |
214-
| Tagged | https://cdn.plot.ly/plotly-geo-1.44.4.js |
215-
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.44.4.min.js |
214+
| Tagged | https://cdn.plot.ly/plotly-geo-1.45.1.js |
215+
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.45.1.min.js |
216216

217217
#### npm package (starting in `v1.39.0`)
218218

@@ -249,16 +249,16 @@ The `gl3d` partial bundle contains trace modules `scatter`, `scatter3d`, `surfac
249249

250250
| Raw size | Minified size | Minified + gzip size |
251251
|------|-----------------|------------------------|
252-
| 3.4 MB | 1.3 MB | 425.2 kB |
252+
| 3.4 MB | 1.3 MB | 425.5 kB |
253253

254254
#### CDN links
255255

256256
| Flavor | URL |
257257
| ------ | --- |
258258
| Latest | https://cdn.plot.ly/plotly-gl3d-latest.js |
259259
| Latest minified | https://cdn.plot.ly/plotly-gl3d-latest.min.js |
260-
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.44.4.js |
261-
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.44.4.min.js |
260+
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.45.1.js |
261+
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.45.1.min.js |
262262

263263
#### npm package (starting in `v1.39.0`)
264264

@@ -295,16 +295,16 @@ The `gl2d` partial bundle contains trace modules `scatter`, `scattergl`, `splom`
295295

296296
| Raw size | Minified size | Minified + gzip size |
297297
|------|-----------------|------------------------|
298-
| 3.4 MB | 1.4 MB | 442.6 kB |
298+
| 3.4 MB | 1.4 MB | 444.6 kB |
299299

300300
#### CDN links
301301

302302
| Flavor | URL |
303303
| ------ | --- |
304304
| Latest | https://cdn.plot.ly/plotly-gl2d-latest.js |
305305
| Latest minified | https://cdn.plot.ly/plotly-gl2d-latest.min.js |
306-
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.44.4.js |
307-
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.44.4.min.js |
306+
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.45.1.js |
307+
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.45.1.min.js |
308308

309309
#### npm package (starting in `v1.39.0`)
310310

@@ -341,16 +341,16 @@ The `mapbox` partial bundle contains trace modules `scatter` and `scattermapbox`
341341

342342
| Raw size | Minified size | Minified + gzip size |
343343
|------|-----------------|------------------------|
344-
| 2.8 MB | 1.4 MB | 410.8 kB |
344+
| 2.8 MB | 1.4 MB | 412.7 kB |
345345

346346
#### CDN links
347347

348348
| Flavor | URL |
349349
| ------ | --- |
350350
| Latest | https://cdn.plot.ly/plotly-mapbox-latest.js |
351351
| Latest minified | https://cdn.plot.ly/plotly-mapbox-latest.min.js |
352-
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.44.4.js |
353-
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.44.4.min.js |
352+
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.45.1.js |
353+
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.45.1.min.js |
354354

355355
#### npm package (starting in `v1.39.0`)
356356

@@ -387,16 +387,16 @@ The `finance` partial bundle contains trace modules `scatter`, `bar`, `histogram
387387

388388
| Raw size | Minified size | Minified + gzip size |
389389
|------|-----------------|------------------------|
390-
| 2.4 MB | 843.5 kB | 274.9 kB |
390+
| 2.4 MB | 850.7 kB | 277.3 kB |
391391

392392
#### CDN links
393393

394394
| Flavor | URL |
395395
| ------ | --- |
396396
| Latest | https://cdn.plot.ly/plotly-finance-latest.js |
397397
| Latest minified | https://cdn.plot.ly/plotly-finance-latest.min.js |
398-
| Tagged | https://cdn.plot.ly/plotly-finance-1.44.4.js |
399-
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.44.4.min.js |
398+
| Tagged | https://cdn.plot.ly/plotly-finance-1.45.1.js |
399+
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.45.1.min.js |
400400

401401
#### npm package (starting in `v1.39.0`)
402402

0 commit comments

Comments
 (0)