Skip to content

Commit d5a0474

Browse files
committed
Merge branch 'master' of github.com:plotly/plotly.js into marthacryan-patch-1
2 parents f8065b8 + 5cfd6ad commit d5a0474

File tree

253 files changed

+71589
-9038
lines changed

Some content is hidden

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

253 files changed

+71589
-9038
lines changed

.circleci/config.yml

Lines changed: 27 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
install-and-cibuild: # main cibuild using node 16 & npm 7
3030
docker:
31-
- image: cimg/node:16.17.1
31+
- image: cimg/node:16.20.2
3232
working_directory: ~/plotly.js
3333
steps:
3434
- checkout
@@ -52,7 +52,7 @@ jobs:
5252
timezone-jasmine:
5353
docker:
5454
# need '-browsers' version to test in real (xvfb-wrapped) browsers
55-
- image: cimg/node:16.17.1-browsers
55+
- image: cimg/node:16.20.2-browsers
5656
working_directory: ~/plotly.js
5757
steps:
5858
- browser-tools/install-browser-tools: &browser-versions
@@ -84,7 +84,7 @@ jobs:
8484
no-gl-jasmine:
8585
docker:
8686
# need '-browsers' version to test in real (xvfb-wrapped) browsers
87-
- image: cimg/node:16.17.1-browsers
87+
- image: cimg/node:16.20.2-browsers
8888
environment:
8989
# Alaska time (arbitrary timezone to test date logic)
9090
TZ: "America/Anchorage"
@@ -103,7 +103,7 @@ jobs:
103103
webgl-jasmine:
104104
docker:
105105
# need '-browsers' version to test in real (xvfb-wrapped) browsers
106-
- image: cimg/node:16.17.1-browsers
106+
- image: cimg/node:16.20.2-browsers
107107
environment:
108108
# Alaska time (arbitrary timezone to test date logic)
109109
TZ: "America/Anchorage"
@@ -122,7 +122,7 @@ jobs:
122122
virtual-webgl-jasmine:
123123
docker:
124124
# need '-browsers' version to test in real (xvfb-wrapped) browsers
125-
- image: cimg/node:16.17.1-browsers
125+
- image: cimg/node:16.20.2-browsers
126126
environment:
127127
# Alaska time (arbitrary timezone to test date logic)
128128
TZ: "America/Anchorage"
@@ -141,7 +141,7 @@ jobs:
141141
flaky-no-gl-jasmine:
142142
docker:
143143
# need '-browsers' version to test in real (xvfb-wrapped) browsers
144-
- image: cimg/node:16.17.1-browsers
144+
- image: cimg/node:16.20.2-browsers
145145
environment:
146146
# Alaska time (arbitrary timezone to test date logic)
147147
TZ: "America/Anchorage"
@@ -159,7 +159,7 @@ jobs:
159159
bundle-jasmine:
160160
docker:
161161
# need '-browsers' version to test in real (xvfb-wrapped) browsers
162-
- image: cimg/node:16.17.1-browsers
162+
- image: cimg/node:16.20.2-browsers
163163
environment:
164164
# Alaska time (arbitrary timezone to test date logic)
165165
TZ: "America/Anchorage"
@@ -174,48 +174,10 @@ jobs:
174174
name: Run jasmine tests (part D)
175175
command: .circleci/test.sh bundle-jasmine
176176

177-
mathjax-firefox81:
178-
docker:
179-
# need '-browsers' version to test in real (xvfb-wrapped) browsers
180-
- image: cimg/node:16.17.1-browsers
181-
environment:
182-
# Alaska time (arbitrary timezone to test date logic)
183-
TZ: "America/Anchorage"
184-
working_directory: ~/plotly.js
185-
steps:
186-
- browser-tools/install-browser-tools: &browser-versions
187-
firefox-version: '81.0'
188-
install-chrome: false
189-
install-chromedriver: false
190-
- attach_workspace:
191-
at: ~/
192-
- run:
193-
name: Test MathJax on firefox-81
194-
command: .circleci/test.sh mathjax-firefox
195-
196-
mathjax-firefox82:
197-
docker:
198-
# need '-browsers' version to test in real (xvfb-wrapped) browsers
199-
- image: cimg/node:16.17.1-browsers
200-
environment:
201-
# Alaska time (arbitrary timezone to test date logic)
202-
TZ: "America/Anchorage"
203-
working_directory: ~/plotly.js
204-
steps:
205-
- browser-tools/install-browser-tools: &browser-versions
206-
firefox-version: '82.0'
207-
install-chrome: false
208-
install-chromedriver: false
209-
- attach_workspace:
210-
at: ~/
211-
- run:
212-
name: Test MathJax on firefox-82
213-
command: .circleci/test.sh mathjax-firefox82+
214-
215177
mathjax-firefoxLatest:
216178
docker:
217179
# need '-browsers' version to test in real (xvfb-wrapped) browsers
218-
- image: cimg/node:16.17.1-browsers
180+
- image: cimg/node:16.20.2-browsers
219181
environment:
220182
# Alaska time (arbitrary timezone to test date logic)
221183
TZ: "America/Anchorage"
@@ -228,10 +190,10 @@ jobs:
228190
at: ~/
229191
- run:
230192
name: Test MathJax on firefox-latest
231-
command: .circleci/test.sh mathjax-firefox82+
193+
command: .circleci/test.sh mathjax-firefox
232194

233195
make-baselines-virtual-webgl:
234-
parallelism: 4
196+
parallelism: 8
235197
docker:
236198
- image: circleci/python:3.8.9
237199
working_directory: ~/plotly.js
@@ -268,7 +230,7 @@ jobs:
268230
- plotly.js
269231

270232
make-baselines:
271-
parallelism: 4
233+
parallelism: 12
272234
docker:
273235
- image: circleci/python:3.8.9
274236
working_directory: ~/plotly.js
@@ -287,7 +249,7 @@ jobs:
287249
- plotly.js
288250

289251
make-baselines-b64:
290-
parallelism: 4
252+
parallelism: 12
291253
docker:
292254
- image: circleci/python:3.8.9
293255
working_directory: ~/plotly.js
@@ -307,7 +269,7 @@ jobs:
307269

308270
test-baselines:
309271
docker:
310-
- image: circleci/node:16.9.0
272+
- image: cimg/node:16.20.2
311273
working_directory: ~/plotly.js
312274
steps:
313275
- attach_workspace:
@@ -321,7 +283,7 @@ jobs:
321283

322284
test-baselines-virtual-webgl:
323285
docker:
324-
- image: circleci/node:16.9.0
286+
- image: cimg/node:16.20.2
325287
working_directory: ~/plotly.js
326288
steps:
327289
- attach_workspace:
@@ -335,7 +297,7 @@ jobs:
335297

336298
test-baselines-b64:
337299
docker:
338-
- image: circleci/node:16.9.0
300+
- image: cimg/node:16.20.2
339301
working_directory: ~/plotly.js
340302
steps:
341303
- attach_workspace:
@@ -349,7 +311,7 @@ jobs:
349311

350312
test-baselines-mathjax3:
351313
docker:
352-
- image: circleci/node:16.9.0
314+
- image: cimg/node:16.20.2
353315
working_directory: ~/plotly.js
354316
steps:
355317
- attach_workspace:
@@ -386,7 +348,7 @@ jobs:
386348

387349
test-exports:
388350
docker:
389-
- image: circleci/node:16.9.0
351+
- image: cimg/node:16.20.2
390352
working_directory: ~/plotly.js
391353
steps:
392354
- attach_workspace:
@@ -400,7 +362,7 @@ jobs:
400362

401363
mock-validation:
402364
docker:
403-
- image: cimg/node:16.17.1
365+
- image: cimg/node:16.20.2
404366
working_directory: ~/plotly.js
405367
steps:
406368
- attach_workspace:
@@ -414,7 +376,7 @@ jobs:
414376

415377
source-syntax:
416378
docker:
417-
- image: cimg/node:16.17.1
379+
- image: cimg/node:16.20.2
418380
working_directory: ~/plotly.js
419381
steps:
420382
- attach_workspace:
@@ -425,7 +387,7 @@ jobs:
425387

426388
publish-dist:
427389
docker:
428-
- image: cimg/node:16.17.1
390+
- image: cimg/node:16.20.2
429391
working_directory: ~/plotly.js
430392
steps:
431393
- checkout
@@ -486,16 +448,16 @@ jobs:
486448
- run:
487449
name: Test plotly.min.js import using requirejs
488450
command: npm run test-requirejs
489-
- run:
490-
name: Test plotly bundles against es6
491-
command: npm run no-es6-dist
492-
- run:
493-
name: Display function constructors in all bundles
494-
command: npm run no-new-func
451+
# - run:
452+
# name: Test plotly bundles against es6
453+
# command: npm run no-es6-dist
454+
# - run:
455+
# name: Display function constructors in all bundles
456+
# command: npm run no-new-func
495457

496458
test-stackgl-bundle:
497459
docker:
498-
- image: cimg/node:16.17.1
460+
- image: cimg/node:16.20.2
499461
working_directory: ~/plotly.js
500462
steps:
501463
- checkout
@@ -525,12 +487,6 @@ workflows:
525487
- bundle-jasmine:
526488
requires:
527489
- install-and-cibuild
528-
- mathjax-firefox81:
529-
requires:
530-
- install-and-cibuild
531-
- mathjax-firefox82:
532-
requires:
533-
- install-and-cibuild
534490
- mathjax-firefoxLatest:
535491
requires:
536492
- install-and-cibuild

.circleci/test.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ case $1 in
8484
exit $EXIT_STATE
8585
;;
8686

87-
mathjax-firefox82+)
88-
./node_modules/karma/bin/karma start test/jasmine/karma.conf.js --FF --bundleTest=mathjax --skip-tags=noFF82 --nowatch &&
89-
./node_modules/karma/bin/karma start test/jasmine/karma.conf.js --FF --bundleTest=mathjax --mathjax3 --skip-tags=noFF82 --nowatch &&
87+
mathjax-firefox)
88+
./node_modules/karma/bin/karma start test/jasmine/karma.conf.js --FF --bundleTest=mathjax --nowatch &&
89+
./node_modules/karma/bin/karma start test/jasmine/karma.conf.js --FF --bundleTest=mathjax --mathjax3 --nowatch &&
9090
./node_modules/karma/bin/karma start test/jasmine/karma.conf.js --FF --bundleTest=mathjax_config --mathjax3 --nowatch &&
9191
./node_modules/karma/bin/karma start test/jasmine/karma.conf.js --FF --bundleTest=mathjax_config --nowatch || EXIT_STATE=$?
9292
exit $EXIT_STATE
@@ -95,14 +95,14 @@ case $1 in
9595
make-baselines-virtual-webgl)
9696
SUITE=$({\
9797
find $ROOT/test/image/mocks/gl* -type f -printf "%f\n"; \
98-
find $ROOT/test/image/mocks/mapbox* -type f -printf "%f\n"; \
98+
find $ROOT/test/image/mocks/map* -type f -printf "%f\n"; \
9999
} | sed 's/\.json$//1' | circleci tests split)
100100
python3 test/image/make_baseline.py virtual-webgl $SUITE || EXIT_STATE=$?
101101
exit $EXIT_STATE
102102
;;
103103

104104
make-baselines-mathjax3)
105-
python3 test/image/make_baseline.py mathjax3 legend_mathjax_title_and_items mathjax parcats_grid_subplots table_latex_multitrace_scatter table_plain_birds table_wrapped_birds ternary-mathjax || EXIT_STATE=$?
105+
python3 test/image/make_baseline.py mathjax3 legend_mathjax_title_and_items mathjax parcats_grid_subplots table_latex_multitrace_scatter table_plain_birds table_wrapped_birds ternary-mathjax ternary-mathjax-title-place-subtitle || EXIT_STATE=$?
106106
exit $EXIT_STATE
107107
;;
108108

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,31 @@ 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.34.0] -- 2024-07-18
13+
14+
### Added
15+
- Add `subtitle` attribute to `layout.title` to enable adding subtitles to plots [[#7012](https://github.com/plotly/plotly.js/pull/7012)]
16+
- Introduce "u" and "s" pseudo html tags to add partial underline and strike-through styles to SVG text elements [[#7043](https://github.com/plotly/plotly.js/pull/7043)]
17+
- Add geometric mean functionality and 'geometric mean ascending' + 'geometric mean descending' to `category_order` on cartesian axes [[#6223](https://github.com/plotly/plotly.js/pull/6223)],
18+
with thanks to @acxz and @prabhathc for the contribution!
19+
- Add axis property `ticklabelindex` for drawing the label for each minor tick n positions away from a major tick,
20+
with thanks to @my-tien for the contribution! [[#7036](https://github.com/plotly/plotly.js/pull/7036)]
21+
- Add property `ticklabelstandoff` and `ticklabelshift` to cartesian axes to adjust positioning of tick labels,
22+
with thanks to @my-tien for the contribution! [[#7006](https://github.com/plotly/plotly.js/pull/7006)]
23+
- Add `x0shift`, `x1shift`, `y0shift`, `y1shift` to shapes to add control over positioning of shape vertices on (multi-)category axes,
24+
with thanks to @my-tien for the contribution! [[#7005](https://github.com/plotly/plotly.js/pull/7005)]
25+
26+
### Fixed
27+
- Fix displaying scattergl traces while zooming or panning (regression introduced in 2.26.0) [[#7018](https://github.com/plotly/plotly.js/pull/7018)],
28+
with thanks to @eiriklv for the contribution!
29+
- Fix for excessive hoverlabel removal and overlap for plots with both scatter and bar traces [[#6954](https://github.com/plotly/plotly.js/pull/6954)],
30+
with thanks to @mbant for the contribution!
31+
- Fix adding cartesian "togglehover" when included in `modebar.add` [[#5879](https://github.com/plotly/plotly.js/pull/5879)],
32+
with thanks to @Sizurka for the contribution!
33+
- Handle `zorder` between overlaying cartesian subplots [[#7032](https://github.com/plotly/plotly.js/pull/7032)],
34+
This feature was anonymously sponsored: thank you to our sponsor!
35+
36+
1237
## [2.33.0] -- 2024-05-29
1338

1439
### Added

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo
6262
6363
```html
6464
<head>
65-
<script src="https://cdn.plot.ly/plotly-2.33.0.min.js" charset="utf-8"></script>
65+
<script src="https://cdn.plot.ly/plotly-2.34.0.min.js" charset="utf-8"></script>
6666
</head>
6767
<body>
6868
<div id="gd"></div>
@@ -79,7 +79,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo
7979
Alternatively you may consider using [native ES6 import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) in the script tag.
8080
```html
8181
<script type="module">
82-
import "https://cdn.plot.ly/plotly-2.33.0.min.js"
82+
import "https://cdn.plot.ly/plotly-2.34.0.min.js"
8383
Plotly.newPlot("gd", [{ y: [1, 2, 3] }])
8484
</script>
8585
```
@@ -89,7 +89,7 @@ Fastly supports Plotly.js with free CDN service. Read more at <https://www.fastl
8989
### Un-minified versions are also available on CDN
9090
While non-minified source files may contain characters outside UTF-8, it is recommended that you specify the `charset` when loading those bundles.
9191
```html
92-
<script src="https://cdn.plot.ly/plotly-2.33.0.js" charset="utf-8"></script>
92+
<script src="https://cdn.plot.ly/plotly-2.34.0.js" charset="utf-8"></script>
9393
```
9494

9595
> 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.
@@ -149,22 +149,23 @@ Plotly.js is at the core of a large and dynamic ecosystem with many contributors
149149
|---|--------|---------|--------|
150150
|**Alex C. Johnson**| [@alexcjohnson](https://github.com/alexcjohnson) | | Active, Maintainer |
151151
|**Mojtaba Samimi** | [@archmoj](https://github.com/archmoj) | [@solarchvision](https://twitter.com/solarchvision) | Active, Maintainer |
152-
|**Antoine Roy-Gobeil** | [@antoinerg](https://github.com/antoinerg) | | Active, Maintainer |
153152
|**Emily Kellison-Linn** | [@emilykl](https://github.com/emilykl) | | Active, Maintainer |
154-
|**Hannah Ker** | [@hannahker](https://github.com/hannahker) | [@hannahker11](https://twitter.com/hannahker11)| Active, Maintainer |
153+
|**My-Tien Nguyen**| [@my-tien](https://github.com/my-tien) | | Active, Community Contributor |
155154
|**Étienne Tétreault-Pinard**| [@etpinard](https://github.com/etpinard) | [@etpinard](https://twitter.com/etpinard) | Hall of Fame |
155+
|**Antoine Roy-Gobeil** | [@antoinerg](https://github.com/antoinerg) | | Hall of Fame |
156+
|**Jack Parmer**| [@jackparmer](https://github.com/jackparmer) | | Hall of Fame |
156157
|**Nicolas Kruchten** | [@nicolaskruchten](https://github.com/nicolaskruchten) | [@nicolaskruchten](https://twitter.com/nicolaskruchten) | Hall of Fame |
157-
|**Jon Mease** | [@jonmmease](https://github.com/jonmmease) | [@jonmmease](https://twitter.com/jonmmease) | Hall of Fame |
158158
|**Mikola Lysenko**| [@mikolalysenko](https://github.com/mikolalysenko) | [@MikolaLysenko](https://twitter.com/MikolaLysenko) | Hall of Fame |
159159
|**Ricky Reusser**| [@rreusser](https://github.com/rreusser) | [@rickyreusser](https://twitter.com/rickyreusser) | Hall of Fame |
160160
|**Dmitry Yv.** | [@dy](https://github.com/dy) | [@DimaYv](https://twitter.com/dimayv)| Hall of Fame |
161+
|**Jon Mease** | [@jonmmease](https://github.com/jonmmease) | [@jonmmease](https://twitter.com/jonmmease) | Hall of Fame |
161162
|**Robert Monfera**| [@monfera](https://github.com/monfera) | [@monfera](https://twitter.com/monfera) | Hall of Fame |
162163
|**Robert Möstl** | [@rmoestl](https://github.com/rmoestl) | [@rmoestl](https://twitter.com/rmoestl) | Hall of Fame |
163164
|**Nicolas Riesco**| [@n-riesco](https://github.com/n-riesco) | | Hall of Fame |
164165
|**Miklós Tusz**| [@mdtusz](https://github.com/mdtusz) | [@mdtusz](https://twitter.com/mdtusz)| Hall of Fame |
165166
|**Chelsea Douglas**| [@cldougl](https://github.com/cldougl) | | Hall of Fame |
166167
|**Ben Postlethwaite**| [@bpostlethwaite](https://github.com/bpostlethwaite) | | Hall of Fame |
167-
|**Jack Parmer**| [@jackparmer](https://github.com/jackparmer) | | Hall of Fame |
168+
|**Hannah Ker** | [@hannahker](https://github.com/hannahker) | [@hannahker11](https://twitter.com/hannahker11)| Hall of Fame |
168169
|**Chris Parmer**| [@chriddyp](https://github.com/chriddyp) | | Hall of Fame |
169170
|**Alex Vados**| [@alexander-daniel](https://github.com/alexander-daniel) | | Hall of Fame |
170171

0 commit comments

Comments
 (0)