Skip to content

Commit 7655664

Browse files
committed
Merge remote-tracking branch 'origin/master' into waterfall-new-trace
2 parents 1721ab7 + a4c185a commit 7655664

File tree

131 files changed

+11683
-5470
lines changed

Some content is hidden

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

131 files changed

+11683
-5470
lines changed

.circleci/config.yml

+44-25
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,10 @@ jobs:
1414
working_directory: ~/plotly.js
1515
steps:
1616
- checkout
17-
- restore_cache:
18-
keys:
19-
- v{{ .Environment.CIRCLE_CACHE_VERSION }}-deps-{{ .Branch }}-{{ checksum "package-lock.json" }}
20-
- v{{ .Environment.CIRCLE_CACHE_VERSION }}-deps-master-{{ checksum "package-lock.json" }}
2117
- run:
2218
name: Install dependencies
2319
command: |
24-
npm install
20+
npm ci
2521
- run:
2622
name: List dependency versions
2723
command: |
@@ -33,26 +29,22 @@ jobs:
3329
command: |
3430
npm run pretest
3531
npm run cibuild
36-
- save_cache:
37-
paths:
38-
- node_modules
39-
key: v{{ .Environment.CIRCLE_CACHE_VERSION }}-deps-{{ .Branch }}-{{ checksum "package.json" }}
32+
- run:
33+
command: rm -rf .git
4034
- persist_to_workspace:
41-
root: .
35+
root: /home/circleci
4236
paths:
43-
- node_modules
44-
- build
45-
- dist
37+
- plotly.js
4638

4739
test-jasmine:
4840
docker:
4941
# need '-browsers' version to test in real (xvfb-wrapped) browsers
5042
- image: circleci/node:10.9.0-browsers
43+
parallelism: 2
5144
working_directory: ~/plotly.js
5245
steps:
53-
- checkout
5446
- attach_workspace:
55-
at: ~/plotly.js
47+
at: ~/
5648
- run:
5749
name: Run jasmine tests (batch 1)
5850
command: ./.circleci/test.sh jasmine
@@ -61,23 +53,35 @@ jobs:
6153
docker:
6254
# need '-browsers' version to test in real (xvfb-wrapped) browsers
6355
- image: circleci/node:10.9.0-browsers
56+
parallelism: 2
6457
working_directory: ~/plotly.js
6558
steps:
66-
- checkout
6759
- attach_workspace:
68-
at: ~/plotly.js
60+
at: ~/
6961
- run:
7062
name: Run jasmine tests (batch 2)
7163
command: ./.circleci/test.sh jasmine2
7264

65+
test-jasmine3:
66+
docker:
67+
# need '-browsers' version to test in real (xvfb-wrapped) browsers
68+
- image: circleci/node:10.9.0-browsers
69+
working_directory: ~/plotly.js
70+
steps:
71+
- attach_workspace:
72+
at: ~/
73+
- run:
74+
name: Run jasmine tests (batch 3)
75+
command: ./.circleci/test.sh jasmine3
76+
7377
test-image:
7478
docker:
7579
- image: plotly/testbed:latest
80+
parallelism: 4
7681
working_directory: /var/www/streambed/image_server/plotly.js/
7782
steps:
78-
- checkout
7983
- attach_workspace:
80-
at: /var/www/streambed/image_server/plotly.js/
84+
at: /var/www/streambed/image_server/
8185
- run:
8286
name: Run and setup container
8387
command: |
@@ -95,9 +99,8 @@ jobs:
9599
- image: plotly/testbed:latest
96100
working_directory: /var/www/streambed/image_server/plotly.js/
97101
steps:
98-
- checkout
99102
- attach_workspace:
100-
at: /var/www/streambed/image_server/plotly.js/
103+
at: /var/www/streambed/image_server/
101104
- run:
102105
name: Run and setup container
103106
command: |
@@ -115,21 +118,31 @@ jobs:
115118
- image: circleci/node:10.9.0
116119
working_directory: ~/plotly.js
117120
steps:
118-
- checkout
119121
- attach_workspace:
120-
at: ~/plotly.js
122+
at: ~/
121123
- run:
122124
name: Run syntax tests
123125
command: ./.circleci/test.sh syntax
124126

127+
test-bundle:
128+
docker:
129+
# need '-browsers' version to test in real (xvfb-wrapped) browsers
130+
- image: circleci/node:10.9.0-browsers
131+
working_directory: ~/plotly.js
132+
steps:
133+
- attach_workspace:
134+
at: ~/
135+
- run:
136+
name: Run test-bundle
137+
command: ./.circleci/test.sh bundle
138+
125139
publish:
126140
docker:
127141
- image: circleci/node:10.9.0
128142
working_directory: ~/plotly.js
129143
steps:
130-
- checkout
131144
- attach_workspace:
132-
at: ~/plotly.js
145+
at: ~/
133146
- run:
134147
name: Build dist/
135148
command: npm run build
@@ -159,12 +172,18 @@ workflows:
159172
build-and-test:
160173
jobs:
161174
- build
175+
- test-bundle:
176+
requires:
177+
- build
162178
- test-jasmine:
163179
requires:
164180
- build
165181
- test-jasmine2:
166182
requires:
167183
- build
184+
- test-jasmine3:
185+
requires:
186+
- build
168187
- test-image:
169188
requires:
170189
- build

.circleci/test.sh

+24-7
Original file line numberDiff line numberDiff line change
@@ -44,33 +44,50 @@ case $1 in
4444
jasmine)
4545
set_tz
4646

47-
npm run test-jasmine -- --skip-tags=gl,noCI,flaky || EXIT_STATE=$?
48-
retry npm run test-jasmine -- --tags=flaky --skip-tags=noCI
49-
npm run test-bundle || EXIT_STATE=$?
47+
SUITE=$(circleci tests glob "$ROOT/test/jasmine/tests/*" | circleci tests split)
48+
npm run test-jasmine -- $SUITE --skip-tags=gl,noCI,flaky --showSkipped || EXIT_STATE=$?
5049

5150
exit $EXIT_STATE
5251
;;
5352

5453
jasmine2)
5554
set_tz
5655

57-
SHARDS=($(node $ROOT/tasks/shard_jasmine_tests.js --tag=gl))
56+
SHARDS=($(node $ROOT/tasks/shard_jasmine_tests.js --tag=gl | circleci tests split))
5857

5958
for s in ${SHARDS[@]}; do
60-
retry npm run test-jasmine -- "$s" --tags=gl --skip-tags=noCI
59+
retry npm run test-jasmine -- "$s" --tags=gl --skip-tags=noCI --showSkipped
60+
done
61+
62+
exit $EXIT_STATE
63+
;;
64+
65+
jasmine3)
66+
set_tz
67+
68+
SHARDS=($(node $ROOT/tasks/shard_jasmine_tests.js --tag=flaky | circleci tests split))
69+
70+
for s in ${SHARDS[@]}; do
71+
retry npm run test-jasmine -- "$s" --tags=flaky --skip-tags=noCI --showSkipped
6172
done
6273

6374
exit $EXIT_STATE
6475
;;
6576

6677
image)
67-
npm run test-image || EXIT_STATE=$?
78+
SUITE=$(find $ROOT/test/image/mocks/ -type f -printf "%f\n" | circleci tests split)
79+
npm run test-image -- $SUITE --filter || EXIT_STATE=$?
6880
exit $EXIT_STATE
6981
;;
7082

7183
image2)
7284
npm run test-export || EXIT_STATE=$?
73-
npm run test-image-gl2d || EXIT_STATE=$?
85+
exit $EXIT_STATE
86+
;;
87+
88+
bundle)
89+
set_tz
90+
npm run test-bundle || EXIT_STATE=$?
7491
exit $EXIT_STATE
7592
;;
7693

CHANGELOG.md

+33
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,39 @@ 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.3] -- 2019-03-19
14+
15+
### Fixed
16+
- Fix legend click dispatch on legend item symbols (bug introduced in 1.44.0) [#3635]
17+
- Fix overlapping of "very close" hover labels [#3645]
18+
- Fix `hovermode` default logic for stacked `scatter` traces [#3646]
19+
- Fix `glPixelRatio` handling in `surface` contour lines [#3641]
20+
- Fix `gl2d` subplot zoombox appearance (bug introduced in 1.32.0) [#3647]
21+
- Fix axis label updates on `gl2d` subplots on scroll (bug introduced in 1.32.0) [#3647]
22+
- Fix `dragmode` relayout calls on `gl2d` subplots [#3647]
23+
- Improve info about `<extra>` in `hovertemplate` description [#3623]
24+
25+
26+
## [1.45.2] -- 2019-03-07
27+
28+
### Fixed
29+
- Fix webpack builds that include `sankey` by upgrading d3-sankey-circular to 0.33.0 (bug introduced in 1.45.0) [#3611]
30+
31+
## [1.45.1] -- 2019-03-05
32+
33+
### Fixed
34+
- Fix axis automargin pushes for rotated tick labels [#3605]
35+
- Fix automargin logic on (very) small graphs [#3605]
36+
- Fix locales support in `hovertemplate` strings [#3586]
37+
- Fix gl3d reset camera buttons for scenes with orthographic projection [#3597]
38+
- Fix typed array support for `parcoords` dimensions values and `line.color` [#3598]
39+
- Fix `cone` rendering on some older browsers [#3591]
40+
- Fix `lightposition` behavior for `cone` traces [#3591]
41+
- Fix `lightposition` behavior for `streamtube` trace [#3593]
42+
- Remove unused files from `gl-cone3d` dependency [#3591]
43+
- Remove unused files from `gl-streamtube3d` dependency [#3593]
44+
45+
1346
## [1.45.0] -- 2019-02-26
1447

1548
### Added

build/plotcss.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var rules = {
3131
"X .cursor-n-resize": "cursor:n-resize;",
3232
"X .cursor-ne-resize": "cursor:ne-resize;",
3333
"X .cursor-grab": "cursor:-webkit-grab;cursor:grab;",
34-
"X .modebar": "position:absolute;top:2px;right:2px;z-index:1001;",
34+
"X .modebar": "position:absolute;top:2px;right:2px;",
3535
"X .ease-bg": "-webkit-transition:background-color 0.3s ease 0s;-moz-transition:background-color 0.3s ease 0s;-ms-transition:background-color 0.3s ease 0s;-o-transition:background-color 0.3s ease 0s;transition:background-color 0.3s ease 0s;",
3636
"X .modebar--hover>:not(.watermark)": "opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.3s ease 0s;",
3737
"X:hover .modebar--hover .modebar-group": "opacity:1;",

0 commit comments

Comments
 (0)