Skip to content

Commit 74f8ee2

Browse files
committed
Merge remote-tracking branch 'origin/master' into handle-coded-typed-arrays
2 parents 8bba7f8 + 7d16f39 commit 74f8ee2

File tree

126 files changed

+15764
-8769
lines changed

Some content is hidden

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

126 files changed

+15764
-8769
lines changed

.eslintrc

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"no-floating-decimal": [2],
6060
"space-infix-ops": [2, {"int32Hint": true}],
6161
"quotes": [2, "single"],
62+
"quote-props": ["error", "as-needed"],
6263
"dot-notation": [2],
6364
"dot-location": [2, "property"],
6465
"operator-linebreak": [2, "after"],

CHANGELOG.md

+18-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,27 @@ 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.19.0] -- 2023-03-13
13+
14+
### Added
15+
- Add `label` attribute to shapes [[#6454](https://github.com/plotly/plotly.js/pull/6454)],
16+
with thanks to the [Volkswagen](https://www.volkswagenag.com) Center of Excellence for Battery Cells for sponsoring development!
17+
- Add `labelalias` to various axes namely cartesian, gl3d, polar, smith, ternary, carpet,
18+
indicator and colorbar [[#6481](https://github.com/plotly/plotly.js/pull/6481)],
19+
this feature was anonymously sponsored: thank you to our sponsor!
20+
21+
### Changed
22+
- Upgrade `is-mobile` dependency [[#6517](https://github.com/plotly/plotly.js/pull/6517)]
23+
24+
### Fixed
25+
- Avoid overlap of point and axis hover labels for `hovermode: 'x'|'y'` [[#6442](https://github.com/plotly/plotly.js/pull/6442)],
26+
with thanks to @dagroe for the contribution!
27+
28+
1229
## [2.18.2] -- 2023-02-15
1330

1431
### Fixed
15-
- Avoid attaching internal d3 object to the window (regression introduced in 2.17.0) [#6487](https://github.com/plotly/plotly.js/pull/6487)
32+
- Avoid attaching internal d3 object to the window (regression introduced in 2.17.0) [[#6487](https://github.com/plotly/plotly.js/pull/6487)]
1633
- Correct the order of lower fence and upper fence in the French locale (fr) [[#6476](https://github.com/plotly/plotly.js/pull/6476)],
1734
with thanks to @Gagaro for the contribution!
1835
- Correct formats in the Peruvian locale (es-pe) [[#6451](https://github.com/plotly/plotly.js/pull/6451)],

README.md

+3-3
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.18.2.min.js" charset="utf-8"></script>
58+
<script src="https://cdn.plot.ly/plotly-2.19.0.min.js" charset="utf-8"></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.18.2.min.js"
75+
import "https://cdn.plot.ly/plotly-2.19.0.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.18.2.js" charset="utf-8"></script>
85+
<script src="https://cdn.plot.ly/plotly-2.19.0.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.

devtools/regl_codegen/server.js

+10-2
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,17 @@ function handleCodegen(data) {
207207
var pathToReglCodegenSrc = constants.pathToReglCodegenSrc;
208208
var pathToReglPrecompiledSrc = path.join(constants.pathToSrc, 'traces', trace, 'regl_precompiled.js');
209209

210-
var header = '\'use strict\';\n';
210+
var header = [
211+
'\'use strict\';',
212+
'',
213+
].join('\n');
211214
var imports = '';
212-
var exports = '\nmodule.exports = {\n';
215+
var exports = [
216+
'',
217+
'/* eslint-disable quote-props */',
218+
'module.exports = {',
219+
'',
220+
].join('\n');
213221
var varId = 0;
214222

215223
Object.entries(generated).forEach(function(kv) {

devtools/test_dashboard/server.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ var minimist = require('minimist');
99
var constants = require('../../tasks/util/constants');
1010
var config = require('../../webpack.config.js');
1111
config.optimization = { minimize: false };
12-
config.mode = 'development';
13-
config.devtool = 'eval';
1412

1513
var args = minimist(process.argv.slice(2), {});
1614
var PORT = args.port || 3000;
@@ -20,6 +18,12 @@ var mathjax3chtml = args.mathjax3chtml;
2018

2119
if(strict) config.entry = './lib/index-strict.js';
2220

21+
if(!strict) {
22+
config.mode = 'development';
23+
config.devtool = 'eval';
24+
}
25+
26+
2327
// mock list
2428
getMockFiles()
2529
.then(readFiles)

dist/README.md

+26-26
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ The main plotly.js bundles weight in at:
4646
| 8.1 MB | 3.4 MB | 1 MB | 8.4 MB |
4747

4848
#### CDN links
49-
> https://cdn.plot.ly/plotly-2.18.2.js
49+
> https://cdn.plot.ly/plotly-2.19.0.js
5050
51-
> https://cdn.plot.ly/plotly-2.18.2.min.js
51+
> https://cdn.plot.ly/plotly-2.19.0.min.js
5252
5353

5454
#### npm packages
@@ -91,12 +91,12 @@ The `basic` partial bundle contains trace modules `bar`, `pie` and `scatter`.
9191

9292
| Raw size | Minified size | Minified + gzip size |
9393
|------|-----------------|------------------------|
94-
| 2.5 MB | 953.4 kB | 318.7 kB |
94+
| 2.6 MB | 959.5 kB | 320.6 kB |
9595

9696
#### CDN links
97-
> https://cdn.plot.ly/plotly-basic-2.18.2.js
97+
> https://cdn.plot.ly/plotly-basic-2.19.0.js
9898
99-
> https://cdn.plot.ly/plotly-basic-2.18.2.min.js
99+
> https://cdn.plot.ly/plotly-basic-2.19.0.min.js
100100
101101

102102
#### npm packages
@@ -114,12 +114,12 @@ The `cartesian` partial bundle contains trace modules `bar`, `box`, `contour`, `
114114

115115
| Raw size | Minified size | Minified + gzip size |
116116
|------|-----------------|------------------------|
117-
| 3.2 MB | 1.2 MB | 404.9 kB |
117+
| 3.2 MB | 1.2 MB | 406.4 kB |
118118

119119
#### CDN links
120-
> https://cdn.plot.ly/plotly-cartesian-2.18.2.js
120+
> https://cdn.plot.ly/plotly-cartesian-2.19.0.js
121121
122-
> https://cdn.plot.ly/plotly-cartesian-2.18.2.min.js
122+
> https://cdn.plot.ly/plotly-cartesian-2.19.0.min.js
123123
124124

125125
#### npm packages
@@ -137,12 +137,12 @@ The `geo` partial bundle contains trace modules `choropleth`, `scatter` and `sca
137137

138138
| Raw size | Minified size | Minified + gzip size |
139139
|------|-----------------|------------------------|
140-
| 3.1 MB | 1.1 MB | 362.6 kB |
140+
| 3.1 MB | 1.1 MB | 364.5 kB |
141141

142142
#### CDN links
143-
> https://cdn.plot.ly/plotly-geo-2.18.2.js
143+
> https://cdn.plot.ly/plotly-geo-2.19.0.js
144144
145-
> https://cdn.plot.ly/plotly-geo-2.18.2.min.js
145+
> https://cdn.plot.ly/plotly-geo-2.19.0.min.js
146146
147147

148148
#### npm packages
@@ -160,12 +160,12 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`,
160160

161161
| Raw size | Minified size | Minified + gzip size |
162162
|------|-----------------|------------------------|
163-
| 3.5 MB | 1.5 MB | 482.9 kB |
163+
| 3.5 MB | 1.5 MB | 485.1 kB |
164164

165165
#### CDN links
166-
> https://cdn.plot.ly/plotly-gl3d-2.18.2.js
166+
> https://cdn.plot.ly/plotly-gl3d-2.19.0.js
167167
168-
> https://cdn.plot.ly/plotly-gl3d-2.18.2.min.js
168+
> https://cdn.plot.ly/plotly-gl3d-2.19.0.min.js
169169
170170

171171
#### npm packages
@@ -183,12 +183,12 @@ The `gl2d` partial bundle contains trace modules `heatmapgl`, `parcoords`, `poin
183183

184184
| Raw size | Minified size | Minified + gzip size |
185185
|------|-----------------|------------------------|
186-
| 4.3 MB | 1.8 MB | 589.8 kB |
186+
| 4.3 MB | 1.8 MB | 590.9 kB |
187187

188188
#### CDN links
189-
> https://cdn.plot.ly/plotly-gl2d-2.18.2.js
189+
> https://cdn.plot.ly/plotly-gl2d-2.19.0.js
190190
191-
> https://cdn.plot.ly/plotly-gl2d-2.18.2.min.js
191+
> https://cdn.plot.ly/plotly-gl2d-2.19.0.min.js
192192
193193

194194
#### npm packages
@@ -206,12 +206,12 @@ The `mapbox` partial bundle contains trace modules `choroplethmapbox`, `densitym
206206

207207
| Raw size | Minified size | Minified + gzip size |
208208
|------|-----------------|------------------------|
209-
| 4.3 MB | 1.7 MB | 519.5 kB |
209+
| 4.3 MB | 1.7 MB | 521.4 kB |
210210

211211
#### CDN links
212-
> https://cdn.plot.ly/plotly-mapbox-2.18.2.js
212+
> https://cdn.plot.ly/plotly-mapbox-2.19.0.js
213213
214-
> https://cdn.plot.ly/plotly-mapbox-2.18.2.min.js
214+
> https://cdn.plot.ly/plotly-mapbox-2.19.0.min.js
215215
216216

217217
#### npm packages
@@ -229,12 +229,12 @@ The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funne
229229

230230
| Raw size | Minified size | Minified + gzip size |
231231
|------|-----------------|------------------------|
232-
| 2.8 MB | 1 MB | 347.4 kB |
232+
| 2.8 MB | 1 MB | 349.2 kB |
233233

234234
#### CDN links
235-
> https://cdn.plot.ly/plotly-finance-2.18.2.js
235+
> https://cdn.plot.ly/plotly-finance-2.19.0.js
236236
237-
> https://cdn.plot.ly/plotly-finance-2.18.2.min.js
237+
> https://cdn.plot.ly/plotly-finance-2.19.0.min.js
238238
239239

240240
#### npm packages
@@ -252,12 +252,12 @@ The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `ca
252252

253253
| Raw size | Minified size | Minified + gzip size |
254254
|------|-----------------|------------------------|
255-
| 8.5 MB | 3.7 MB | 1.1 MB |
255+
| 8.6 MB | 3.7 MB | 1.1 MB |
256256

257257
#### CDN links
258-
> https://cdn.plot.ly/plotly-strict-2.18.2.js
258+
> https://cdn.plot.ly/plotly-strict-2.19.0.js
259259
260-
> https://cdn.plot.ly/plotly-strict-2.18.2.min.js
260+
> https://cdn.plot.ly/plotly-strict-2.19.0.min.js
261261
262262

263263
#### npm packages

0 commit comments

Comments
 (0)