Skip to content

Commit 2cd7ae5

Browse files
committed
Merge remote-tracking branch 'origin/master' into finalist-cluster-scattermapbox
2 parents 1e946a7 + 2f738a4 commit 2cd7ae5

Some content is hidden

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

66 files changed

+98162
-38131
lines changed

.circleci/config.yml

Lines changed: 57 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
version: 2.0
1+
version: 2.1
2+
orbs:
3+
browser-tools: circleci/browser-tools@1.2.2
24

35
# Inspired by:
46
# https://github.com/CircleCI-Public/circleci-demo-workflows/blob/workspace-forwarding/.circleci/config.yml
57
# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs
68
#
79
# For list of official CircleCI node.js images, go to:
8-
# https://hub.docker.com/r/circleci/node/tags/
10+
# https://hub.docker.com/r/cimg/node/tags/
911

1012
jobs:
1113
install-and-cibuild:
1214
docker:
13-
- image: circleci/node:12.22.1
15+
- image: cimg/node:16.8.0
1416
working_directory: ~/plotly.js
1517
steps:
1618
- checkout
@@ -34,9 +36,13 @@ jobs:
3436
timezone-jasmine:
3537
docker:
3638
# need '-browsers' version to test in real (xvfb-wrapped) browsers
37-
- image: circleci/node:12.22.1-browsers
39+
- image: cimg/node:16.8.0-browsers
3840
working_directory: ~/plotly.js
3941
steps:
42+
- browser-tools/install-browser-tools: &browser-versions
43+
chrome-version: 93.0.4577.63
44+
install-firefox: false
45+
install-geckodriver: false
4046
- attach_workspace:
4147
at: ~/
4248
- run:
@@ -63,13 +69,17 @@ jobs:
6369
no-gl-jasmine:
6470
docker:
6571
# need '-browsers' version to test in real (xvfb-wrapped) browsers
66-
- image: circleci/node:12.22.1-browsers
72+
- image: cimg/node:16.8.0-browsers
6773
environment:
6874
# Alaska time (arbitrary timezone to test date logic)
6975
TZ: "America/Anchorage"
7076
parallelism: 8
7177
working_directory: ~/plotly.js
7278
steps:
79+
- browser-tools/install-browser-tools: &browser-versions
80+
chrome-version: 93.0.4577.63
81+
install-firefox: false
82+
install-geckodriver: false
7383
- attach_workspace:
7484
at: ~/
7585
- run:
@@ -79,13 +89,17 @@ jobs:
7989
webgl-jasmine:
8090
docker:
8191
# need '-browsers' version to test in real (xvfb-wrapped) browsers
82-
- image: circleci/node:12.22.1-browsers
92+
- image: cimg/node:16.8.0-browsers
8393
environment:
8494
# Alaska time (arbitrary timezone to test date logic)
8595
TZ: "America/Anchorage"
8696
parallelism: 8
8797
working_directory: ~/plotly.js
8898
steps:
99+
- browser-tools/install-browser-tools: &browser-versions
100+
chrome-version: 93.0.4577.63
101+
install-firefox: false
102+
install-geckodriver: false
89103
- attach_workspace:
90104
at: ~/
91105
- run:
@@ -95,12 +109,16 @@ jobs:
95109
flaky-no-gl-jasmine:
96110
docker:
97111
# need '-browsers' version to test in real (xvfb-wrapped) browsers
98-
- image: circleci/node:12.22.1-browsers
112+
- image: cimg/node:16.8.0-browsers
99113
environment:
100114
# Alaska time (arbitrary timezone to test date logic)
101115
TZ: "America/Anchorage"
102116
working_directory: ~/plotly.js
103117
steps:
118+
- browser-tools/install-browser-tools: &browser-versions
119+
chrome-version: 93.0.4577.63
120+
install-firefox: false
121+
install-geckodriver: false
104122
- attach_workspace:
105123
at: ~/
106124
- run:
@@ -110,18 +128,41 @@ jobs:
110128
bundle-jasmine:
111129
docker:
112130
# need '-browsers' version to test in real (xvfb-wrapped) browsers
113-
- image: circleci/node:12.22.1-browsers
131+
- image: cimg/node:16.8.0-browsers
114132
environment:
115133
# Alaska time (arbitrary timezone to test date logic)
116134
TZ: "America/Anchorage"
117135
working_directory: ~/plotly.js
118136
steps:
137+
- browser-tools/install-browser-tools: &browser-versions
138+
chrome-version: 93.0.4577.63
139+
install-firefox: false
140+
install-geckodriver: false
119141
- attach_workspace:
120142
at: ~/
121143
- run:
122144
name: Run jasmine tests (part D)
123145
command: .circleci/test.sh bundle-jasmine
124146

147+
mathjax-firefox81:
148+
docker:
149+
# need '-browsers' version to test in real (xvfb-wrapped) browsers
150+
- image: cimg/node:16.8.0-browsers
151+
environment:
152+
# Alaska time (arbitrary timezone to test date logic)
153+
TZ: "America/Anchorage"
154+
working_directory: ~/plotly.js
155+
steps:
156+
- browser-tools/install-browser-tools: &browser-versions
157+
firefox-version: '81.0'
158+
install-chrome: false
159+
install-chromedriver: false
160+
- attach_workspace:
161+
at: ~/
162+
- run:
163+
name: Test MathJax on firefox-81
164+
command: .circleci/test.sh mathjax-firefox
165+
125166
make-baselines:
126167
parallelism: 4
127168
docker:
@@ -143,7 +184,7 @@ jobs:
143184

144185
test-baselines:
145186
docker:
146-
- image: circleci/node:12.22.1
187+
- image: circleci/node:16.8.0
147188
working_directory: ~/plotly.js
148189
steps:
149190
- attach_workspace:
@@ -178,7 +219,7 @@ jobs:
178219

179220
test-exports:
180221
docker:
181-
- image: circleci/node:12.22.1
222+
- image: circleci/node:16.8.0
182223
working_directory: ~/plotly.js
183224
steps:
184225
- attach_workspace:
@@ -192,7 +233,7 @@ jobs:
192233

193234
mock-validation:
194235
docker:
195-
- image: circleci/node:12.22.1
236+
- image: cimg/node:16.8.0
196237
working_directory: ~/plotly.js
197238
steps:
198239
- attach_workspace:
@@ -206,7 +247,7 @@ jobs:
206247

207248
source-syntax:
208249
docker:
209-
- image: circleci/node:12.22.1
250+
- image: cimg/node:16.8.0
210251
working_directory: ~/plotly.js
211252
steps:
212253
- attach_workspace:
@@ -217,7 +258,7 @@ jobs:
217258

218259
publish-dist:
219260
docker:
220-
- image: circleci/node:12.22.1
261+
- image: cimg/node:16.8.0
221262
working_directory: ~/plotly.js
222263
steps:
223264
- checkout
@@ -299,6 +340,9 @@ workflows:
299340
- bundle-jasmine:
300341
requires:
301342
- install-and-cibuild
343+
- mathjax-firefox81:
344+
requires:
345+
- install-and-cibuild
302346
- no-gl-jasmine:
303347
requires:
304348
- install-and-cibuild

.circleci/env_build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ export NODE_OPTIONS='--max-old-space-size=4096' && \
33
echo "node version: $(node --version)" && \
44
echo "npm version: $(npm --version)" && \
55
npm ci && \
6-
npm ls || true
6+
npm ls --prod --all

.circleci/test.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ case $1 in
6969
exit $EXIT_STATE
7070
;;
7171

72+
mathjax-firefox)
73+
./node_modules/karma/bin/karma start test/jasmine/karma.conf.js --FF --bundleTest=mathjax --nowatch || EXIT_STATE=$?
74+
exit $EXIT_STATE
75+
;;
76+
7277
make-baselines)
7378
SUITE=$(find $ROOT/test/image/mocks/ -type f -printf "%f\n" | sed 's/\.json$//1' | circleci tests split)
7479
python3 test/image/make_baseline.py $SUITE || EXIT_STATE=$?

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,34 @@ To see all merged commits on the master branch that will be part of the next plo
99

1010
where X.Y.Z is the semver of most recent plotly.js release.
1111

12+
## [2.5.1] -- 2021-09-16
13+
14+
### Fixed
15+
- Reduce bundle sizes by updating `surface-nets`, `robust-determinant`, `robust-linear-solve` modules [[#5934](https://github.com/plotly/plotly.js/pull/5934), [#5935](https://github.com/plotly/plotly.js/pull/5935), [#5936](https://github.com/plotly/plotly.js/pull/5936)]
16+
- Update CONTRIBUTING guidelines to use `npm v7` and `node.js v16` [[#5933](https://github.com/plotly/plotly.js/pull/5933)],
17+
with thanks to @sleighsoft for the contribution!
18+
19+
20+
## [2.5.0] -- 2021-09-03
21+
22+
### Added
23+
- Include `surface`, `isosurface`, `volume`, `streamtube`, `cone`, `mesh3d`, `scatter3d`, `pointcloud`
24+
and `heatmapgl` in the "strict" bundle by avoid function generation for these traces at runtime [[#5888](https://github.com/plotly/plotly.js/pull/5888)]
25+
26+
### Changed
27+
- Use `node.js v16` and `npm v7` in development and upgrade the version of `package-lock.json` [[#5922](https://github.com/plotly/plotly.js/pull/5922), [#5919](https://github.com/plotly/plotly.js/pull/5919)]
28+
29+
### Fixed
30+
- Adjust position of hover in respect to CSS transform [[#5916](https://github.com/plotly/plotly.js/pull/5916)]
31+
32+
33+
## [2.4.2] -- 2021-08-31
34+
35+
### Fixed
36+
- Fix positioning unified hover box when div has zero height
37+
(regression introduced in 2.3.0) [[#5913](https://github.com/plotly/plotly.js/pull/5913)]
38+
39+
1240
## [2.4.1] -- 2021-08-27
1341

1442
### Fixed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ We use the following [labels](https://github.com/plotly/plotly.js/labels) to tra
7777
#### Prerequisites
7878

7979
- git
80-
- [node.js](https://nodejs.org/en/). We recommend using node.js v12.x (LTS).
80+
- [node.js](https://nodejs.org/en/). We recommend using node.js v16.x.
8181
Upgrading and managing node versions can be easily done using
8282
[`nvm`](https://github.com/creationix/nvm) or its Windows alternatives.
83-
- [`npm`](https://www.npmjs.com/) v6.x and up to ensure that the
83+
- [`npm`](https://www.npmjs.com/) v7.x and up to ensure that the
8484
[`package-lock.json`](https://docs.npmjs.com/files/package-lock.json) file is
8585
used and updated correctly.
8686

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo
5555
5656
```html
5757
<head>
58-
<script src="https://cdn.plot.ly/plotly-2.4.1.min.js"></script>
58+
<script src="https://cdn.plot.ly/plotly-2.5.1.min.js"></script>
5959
</head>
6060
<body>
6161
<div id="gd"></div>
@@ -72,7 +72,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo
7272
Alternatively you may consider using [native ES6 import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) in the script tag.
7373
```html
7474
<script type="module">
75-
import "https://cdn.plot.ly/plotly-2.4.1.min.js"
75+
import "https://cdn.plot.ly/plotly-2.5.1.min.js"
7676
Plotly.newPlot("gd", [{ y: [1, 2, 3] }])
7777
</script>
7878
```
@@ -82,7 +82,7 @@ Fastly supports Plotly.js with free CDN service. Read more at <https://www.fastl
8282
### Un-minified versions are also available on CDN
8383
While non-minified source files may contain characters outside UTF-8, it is recommended that you specify the `charset` when loading those bundles.
8484
```html
85-
<script src="https://cdn.plot.ly/plotly-2.4.1.js" charset="utf-8"></script>
85+
<script src="https://cdn.plot.ly/plotly-2.5.1.js" charset="utf-8"></script>
8686
```
8787

8888
> 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.

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
environment:
2-
nodejs_version: "12"
2+
nodejs_version: "16"
33

44
install:
55
- ps: Install-Product node $env:nodejs_version

devtools/test_dashboard/devtools.js

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,16 @@ var fuse = new Fuse(mocks, {
178178
}]
179179
});
180180

181-
var searchBar = document.getElementById('mocks-search');
181+
var transformInput = document.getElementById('css-transform');
182+
var mockInput = document.getElementById('mocks-search');
182183
var mocksList = document.getElementById('mocks-list');
183184
var plotArea = document.getElementById('plots');
184185

185-
searchBar.addEventListener('keyup', debounce(searchMocks, 250));
186+
mockInput.addEventListener('keyup', debounce(searchMocks, 250));
187+
188+
transformInput.addEventListener('keyup', function(e) {
189+
plotArea.style.transform = e.target.value;
190+
});
186191

187192
function debounce(func, wait, immediate) {
188193
var timeout;
@@ -230,7 +235,16 @@ function searchMocks(e) {
230235

231236
var listWidth = mocksList.getBoundingClientRect().width;
232237
var plotAreaWidth = Math.floor(window.innerWidth - listWidth);
233-
plotArea.setAttribute('style', 'width: ' + plotAreaWidth + 'px;');
238+
239+
var allStyles = [
240+
'width: ' + plotAreaWidth + 'px;'
241+
];
242+
243+
if(transformInput.value !== '') {
244+
allStyles.push('transform: ' + transformInput.value + ';');
245+
}
246+
247+
plotArea.setAttribute('style', allStyles.join(' '));
234248
});
235249
}
236250

devtools/test_dashboard/index-strict.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<span id="reload-time"></span>
1414

1515
<input id="mocks-search" type="text" placeholder="mocks search" />
16+
<input id="css-transform" type="text" placeholder="css transform" />
1617
</header>
1718

1819
<section id="mocks-list"></section>

devtools/test_dashboard/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<span id="reload-time"></span>
1212

1313
<input id="mocks-search" type="text" placeholder="mocks search" />
14+
<input id="css-transform" type="text" placeholder="css transform" />
1415
</header>
1516

1617
<section id="mocks-list"></section>

0 commit comments

Comments
 (0)