Skip to content

Commit d5af662

Browse files
committed
Merge remote-tracking branch 'origin/master' into gl3d-without-function-constructors
2 parents 1a65950 + 88e0524 commit d5af662

Some content is hidden

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

65 files changed

+2748
-1257
lines changed

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,37 @@ 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.4.2] -- 2021-08-31
13+
14+
### Fixed
15+
- Fix positioning unified hover box when div has zero height
16+
(regression introduced in 2.3.0) [[#5913](https://github.com/plotly/plotly.js/pull/5913)]
17+
18+
19+
## [2.4.1] -- 2021-08-27
20+
21+
### Fixed
22+
- Fix double click legends when `groupclick` is set to "toggleitem" [[#5909](https://github.com/plotly/plotly.js/pull/5909)]
23+
24+
25+
## [2.4.0] -- 2021-08-27
26+
27+
### Added
28+
- Add `legend.groupclick` options [[#5849](https://github.com/plotly/plotly.js/pull/5849), [#5906](https://github.com/plotly/plotly.js/pull/5906)],
29+
with thanks to @brussee for the contribution!
30+
- Add touch support to `slider` component [[#5856](https://github.com/plotly/plotly.js/pull/5856)],
31+
with thanks to @keul for the contribution!
32+
- Provide `bbox` of hover items in event data [[#5512](https://github.com/plotly/plotly.js/pull/5512)]
33+
34+
### Changed
35+
- Upgrade `regl` module from version 1.6.1 to version 2.1.0 [[#5870](https://github.com/plotly/plotly.js/pull/5870)]
36+
37+
### Fixed
38+
- Fix invalid call to `lib.promiseError` in lib.syncOrAsync [[#5878](https://github.com/plotly/plotly.js/pull/5878)],
39+
with thanks to @jklimke for the contribution!
40+
- Use `hoverlabel.font` for group titles in unified hover modes [[#5895](https://github.com/plotly/plotly.js/pull/5895)]
41+
42+
1243
## [2.3.1] -- 2021-07-30
1344

1445
### Fixed

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

dist/README.md

Lines changed: 26 additions & 26 deletions
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.3.1.js
49+
> https://cdn.plot.ly/plotly-2.4.2.js
5050
51-
> https://cdn.plot.ly/plotly-2.3.1.min.js
51+
> https://cdn.plot.ly/plotly-2.4.2.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.7 MB | 971.4 kB | 315.8 kB |
94+
| 2.7 MB | 972.6 kB | 316.4 kB |
9595

9696
#### CDN links
97-
> https://cdn.plot.ly/plotly-basic-2.3.1.js
97+
> https://cdn.plot.ly/plotly-basic-2.4.2.js
9898
99-
> https://cdn.plot.ly/plotly-basic-2.3.1.min.js
99+
> https://cdn.plot.ly/plotly-basic-2.4.2.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.3 MB | 1.2 MB | 387.3 kB |
117+
| 3.3 MB | 1.2 MB | 387.9 kB |
118118

119119
#### CDN links
120-
> https://cdn.plot.ly/plotly-cartesian-2.3.1.js
120+
> https://cdn.plot.ly/plotly-cartesian-2.4.2.js
121121
122-
> https://cdn.plot.ly/plotly-cartesian-2.3.1.min.js
122+
> https://cdn.plot.ly/plotly-cartesian-2.4.2.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 MB | 1.1 MB | 358.7 kB |
140+
| 3 MB | 1.1 MB | 359.2 kB |
141141

142142
#### CDN links
143-
> https://cdn.plot.ly/plotly-geo-2.3.1.js
143+
> https://cdn.plot.ly/plotly-geo-2.4.2.js
144144
145-
> https://cdn.plot.ly/plotly-geo-2.3.1.min.js
145+
> https://cdn.plot.ly/plotly-geo-2.4.2.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.7 MB | 1.5 MB | 471.1 kB |
163+
| 3.7 MB | 1.5 MB | 471.6 kB |
164164

165165
#### CDN links
166-
> https://cdn.plot.ly/plotly-gl3d-2.3.1.js
166+
> https://cdn.plot.ly/plotly-gl3d-2.4.2.js
167167
168-
> https://cdn.plot.ly/plotly-gl3d-2.3.1.min.js
168+
> https://cdn.plot.ly/plotly-gl3d-2.4.2.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-
| 3.8 MB | 1.5 MB | 491.9 kB |
186+
| 3.8 MB | 1.5 MB | 493.6 kB |
187187

188188
#### CDN links
189-
> https://cdn.plot.ly/plotly-gl2d-2.3.1.js
189+
> https://cdn.plot.ly/plotly-gl2d-2.4.2.js
190190
191-
> https://cdn.plot.ly/plotly-gl2d-2.3.1.min.js
191+
> https://cdn.plot.ly/plotly-gl2d-2.4.2.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 | 513 kB |
209+
| 4.3 MB | 1.7 MB | 513.4 kB |
210210

211211
#### CDN links
212-
> https://cdn.plot.ly/plotly-mapbox-2.3.1.js
212+
> https://cdn.plot.ly/plotly-mapbox-2.4.2.js
213213
214-
> https://cdn.plot.ly/plotly-mapbox-2.3.1.min.js
214+
> https://cdn.plot.ly/plotly-mapbox-2.4.2.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.9 MB | 1.1 MB | 348.4 kB |
232+
| 2.9 MB | 1.1 MB | 348.9 kB |
233233

234234
#### CDN links
235-
> https://cdn.plot.ly/plotly-finance-2.3.1.js
235+
> https://cdn.plot.ly/plotly-finance-2.4.2.js
236236
237-
> https://cdn.plot.ly/plotly-finance-2.3.1.min.js
237+
> https://cdn.plot.ly/plotly-finance-2.4.2.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-
| 6.3 MB | 2.5 MB | 763.6 kB |
255+
| 6.3 MB | 2.5 MB | 764.2 kB |
256256

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

263263
#### npm packages

dist/plot-schema.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2683,8 +2683,18 @@
26832683
"valType": "number"
26842684
}
26852685
},
2686+
"groupclick": {
2687+
"description": "Determines the behavior on legend group item click. *toggleitem* toggles the visibility of the individual item clicked on the graph. *togglegroup* toggles the visibility of all items in the same legendgroup as the item clicked on the graph.",
2688+
"dflt": "togglegroup",
2689+
"editType": "legend",
2690+
"valType": "enumerated",
2691+
"values": [
2692+
"toggleitem",
2693+
"togglegroup"
2694+
]
2695+
},
26862696
"itemclick": {
2687-
"description": "Determines the behavior on legend item click. *toggle* toggles the visibility of the item clicked on the graph. *toggleothers* makes the clicked item the sole visible item on the graph. *false* disable legend item click interactions.",
2697+
"description": "Determines the behavior on legend item click. *toggle* toggles the visibility of the item clicked on the graph. *toggleothers* makes the clicked item the sole visible item on the graph. *false* disables legend item click interactions.",
26882698
"dflt": "toggle",
26892699
"editType": "legend",
26902700
"valType": "enumerated",
@@ -2695,7 +2705,7 @@
26952705
]
26962706
},
26972707
"itemdoubleclick": {
2698-
"description": "Determines the behavior on legend item double-click. *toggle* toggles the visibility of the item clicked on the graph. *toggleothers* makes the clicked item the sole visible item on the graph. *false* disable legend item double-click interactions.",
2708+
"description": "Determines the behavior on legend item double-click. *toggle* toggles the visibility of the item clicked on the graph. *toggleothers* makes the clicked item the sole visible item on the graph. *false* disables legend item double-click interactions.",
26992709
"dflt": "toggleothers",
27002710
"editType": "legend",
27012711
"valType": "enumerated",

0 commit comments

Comments
 (0)