Skip to content

Commit 88e0524

Browse files
committed
2.4.2
1 parent 72203f5 commit 88e0524

24 files changed

+214
-244
lines changed

dist/README.md

+21-21
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.4.1.js
49+
> https://cdn.plot.ly/plotly-2.4.2.js
5050
51-
> https://cdn.plot.ly/plotly-2.4.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 | 972.7 kB | 316.4 kB |
94+
| 2.7 MB | 972.6 kB | 316.4 kB |
9595

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

102102
#### npm packages
@@ -117,9 +117,9 @@ The `cartesian` partial bundle contains trace modules `bar`, `box`, `contour`, `
117117
| 3.3 MB | 1.2 MB | 387.9 kB |
118118

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

125125
#### npm packages
@@ -140,9 +140,9 @@ The `geo` partial bundle contains trace modules `choropleth`, `scatter` and `sca
140140
| 3 MB | 1.1 MB | 359.2 kB |
141141

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

148148
#### npm packages
@@ -163,9 +163,9 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`,
163163
| 3.7 MB | 1.5 MB | 471.6 kB |
164164

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

171171
#### npm packages
@@ -186,9 +186,9 @@ The `gl2d` partial bundle contains trace modules `heatmapgl`, `parcoords`, `poin
186186
| 3.8 MB | 1.5 MB | 493.6 kB |
187187

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

194194
#### npm packages
@@ -209,9 +209,9 @@ The `mapbox` partial bundle contains trace modules `choroplethmapbox`, `densitym
209209
| 4.3 MB | 1.7 MB | 513.4 kB |
210210

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

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

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

263263
#### npm packages

dist/plotly-basic.js

+17-20
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v2.4.1
2+
* plotly.js (basic) v2.4.2
33
* Copyright 2012-2021, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -27208,18 +27208,16 @@ exports.loneHover = function loneHover(hoverItems, opts) {
2720827208
};
2720927209
});
2721027210

27211-
var container3 = d3.select(opts.container);
27212-
var outerContainer3 = opts.outerContainer ? d3.select(opts.outerContainer) : container3;
27211+
var rotateLabels = false;
2721327212

27214-
var fullOpts = {
27213+
var hoverLabel = createHoverText(pointsData, {
27214+
gd: gd,
2721527215
hovermode: 'closest',
27216-
rotateLabels: false,
27216+
rotateLabels: rotateLabels,
2721727217
bgColor: opts.bgColor || Color.background,
27218-
container: container3,
27219-
outerContainer: outerContainer3
27220-
};
27221-
27222-
var hoverLabel = createHoverText(pointsData, fullOpts, gd);
27218+
container: d3.select(opts.container),
27219+
outerContainer: opts.outerContainer || opts.container
27220+
});
2722327221

2722427222
// Fix vertical overlap
2722527223
var tooltipSpacing = 5;
@@ -27246,7 +27244,7 @@ exports.loneHover = function loneHover(hoverItems, opts) {
2724627244

2724727245
var scaleX = gd._fullLayout._invScaleX;
2724827246
var scaleY = gd._fullLayout._invScaleY;
27249-
alignHoverText(hoverLabel, fullOpts.rotateLabels, scaleX, scaleY);
27247+
alignHoverText(hoverLabel, rotateLabels, scaleX, scaleY);
2725027248

2725127249
return multiHover ? hoverLabel : hoverLabel.node();
2725227250
};
@@ -27660,7 +27658,6 @@ function _hover(gd, evt, subplot, noHoverEvent) {
2766027658
var spikelineOpts = {
2766127659
fullLayout: fullLayout,
2766227660
container: fullLayout._hoverlayer,
27663-
outerContainer: fullLayout._paperdiv,
2766427661
event: evt
2766527662
};
2766627663
var oldspikepoints = gd._spikepoints;
@@ -27829,17 +27826,16 @@ function _hover(gd, evt, subplot, noHoverEvent) {
2782927826
fullLayout.paper_bgcolor
2783027827
);
2783127828

27832-
var labelOpts = {
27829+
var hoverLabels = createHoverText(hoverData, {
27830+
gd: gd,
2783327831
hovermode: hovermode,
2783427832
rotateLabels: rotateLabels,
2783527833
bgColor: bgColor,
2783627834
container: fullLayout._hoverlayer,
27837-
outerContainer: fullLayout._paperdiv,
27835+
outerContainer: fullLayout._paper.node(),
2783827836
commonLabelOpts: fullLayout.hoverlabel,
2783927837
hoverdistance: fullLayout.hoverdistance
27840-
};
27841-
27842-
var hoverLabels = createHoverText(hoverData, labelOpts, gd);
27838+
});
2784327839

2784427840
if(!helpers.isUnifiedHover(hovermode)) {
2784527841
hoverAvoidOverlaps(hoverLabels, rotateLabels ? 'xa' : 'ya', fullLayout);
@@ -27877,7 +27873,8 @@ function hoverDataKey(d) {
2787727873

2787827874
var EXTRA_STRING_REGEX = /<extra>([\s\S]*)<\/extra>/;
2787927875

27880-
function createHoverText(hoverData, opts, gd) {
27876+
function createHoverText(hoverData, opts) {
27877+
var gd = opts.gd;
2788127878
var fullLayout = gd._fullLayout;
2788227879
var hovermode = opts.hovermode;
2788327880
var rotateLabels = opts.rotateLabels;
@@ -27897,7 +27894,7 @@ function createHoverText(hoverData, opts, gd) {
2789727894
var ya = c0.ya;
2789827895
var axLetter = hovermode.charAt(0);
2789927896
var t0 = c0[axLetter + 'Label'];
27900-
var outerContainerBB = outerContainer.node().getBoundingClientRect();
27897+
var outerContainerBB = outerContainer.getBoundingClientRect();
2790127898
var outerTop = outerContainerBB.top;
2790227899
var outerWidth = outerContainerBB.width;
2790327900
var outerHeight = outerContainerBB.height;
@@ -82204,7 +82201,7 @@ function getSortFunc(opts, d2c) {
8220482201
'use strict';
8220582202

8220682203
// package version injected by `npm run preprocess`
82207-
exports.version = '2.4.1';
82204+
exports.version = '2.4.2';
8220882205

8220982206
},{}]},{},[8])(8)
8221082207
});

dist/plotly-basic.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-cartesian.js

+17-20
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (cartesian) v2.4.1
2+
* plotly.js (cartesian) v2.4.2
33
* Copyright 2012-2021, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -36367,18 +36367,16 @@ exports.loneHover = function loneHover(hoverItems, opts) {
3636736367
};
3636836368
});
3636936369

36370-
var container3 = d3.select(opts.container);
36371-
var outerContainer3 = opts.outerContainer ? d3.select(opts.outerContainer) : container3;
36370+
var rotateLabels = false;
3637236371

36373-
var fullOpts = {
36372+
var hoverLabel = createHoverText(pointsData, {
36373+
gd: gd,
3637436374
hovermode: 'closest',
36375-
rotateLabels: false,
36375+
rotateLabels: rotateLabels,
3637636376
bgColor: opts.bgColor || Color.background,
36377-
container: container3,
36378-
outerContainer: outerContainer3
36379-
};
36380-
36381-
var hoverLabel = createHoverText(pointsData, fullOpts, gd);
36377+
container: d3.select(opts.container),
36378+
outerContainer: opts.outerContainer || opts.container
36379+
});
3638236380

3638336381
// Fix vertical overlap
3638436382
var tooltipSpacing = 5;
@@ -36405,7 +36403,7 @@ exports.loneHover = function loneHover(hoverItems, opts) {
3640536403

3640636404
var scaleX = gd._fullLayout._invScaleX;
3640736405
var scaleY = gd._fullLayout._invScaleY;
36408-
alignHoverText(hoverLabel, fullOpts.rotateLabels, scaleX, scaleY);
36406+
alignHoverText(hoverLabel, rotateLabels, scaleX, scaleY);
3640936407

3641036408
return multiHover ? hoverLabel : hoverLabel.node();
3641136409
};
@@ -36819,7 +36817,6 @@ function _hover(gd, evt, subplot, noHoverEvent) {
3681936817
var spikelineOpts = {
3682036818
fullLayout: fullLayout,
3682136819
container: fullLayout._hoverlayer,
36822-
outerContainer: fullLayout._paperdiv,
3682336820
event: evt
3682436821
};
3682536822
var oldspikepoints = gd._spikepoints;
@@ -36988,17 +36985,16 @@ function _hover(gd, evt, subplot, noHoverEvent) {
3698836985
fullLayout.paper_bgcolor
3698936986
);
3699036987

36991-
var labelOpts = {
36988+
var hoverLabels = createHoverText(hoverData, {
36989+
gd: gd,
3699236990
hovermode: hovermode,
3699336991
rotateLabels: rotateLabels,
3699436992
bgColor: bgColor,
3699536993
container: fullLayout._hoverlayer,
36996-
outerContainer: fullLayout._paperdiv,
36994+
outerContainer: fullLayout._paper.node(),
3699736995
commonLabelOpts: fullLayout.hoverlabel,
3699836996
hoverdistance: fullLayout.hoverdistance
36999-
};
37000-
37001-
var hoverLabels = createHoverText(hoverData, labelOpts, gd);
36997+
});
3700236998

3700336999
if(!helpers.isUnifiedHover(hovermode)) {
3700437000
hoverAvoidOverlaps(hoverLabels, rotateLabels ? 'xa' : 'ya', fullLayout);
@@ -37036,7 +37032,8 @@ function hoverDataKey(d) {
3703637032

3703737033
var EXTRA_STRING_REGEX = /<extra>([\s\S]*)<\/extra>/;
3703837034

37039-
function createHoverText(hoverData, opts, gd) {
37035+
function createHoverText(hoverData, opts) {
37036+
var gd = opts.gd;
3704037037
var fullLayout = gd._fullLayout;
3704137038
var hovermode = opts.hovermode;
3704237039
var rotateLabels = opts.rotateLabels;
@@ -37056,7 +37053,7 @@ function createHoverText(hoverData, opts, gd) {
3705637053
var ya = c0.ya;
3705737054
var axLetter = hovermode.charAt(0);
3705837055
var t0 = c0[axLetter + 'Label'];
37059-
var outerContainerBB = outerContainer.node().getBoundingClientRect();
37056+
var outerContainerBB = outerContainer.getBoundingClientRect();
3706037057
var outerTop = outerContainerBB.top;
3706137058
var outerWidth = outerContainerBB.width;
3706237059
var outerHeight = outerContainerBB.height;
@@ -102065,7 +102062,7 @@ function getSortFunc(opts, d2c) {
102065102062
'use strict';
102066102063

102067102064
// package version injected by `npm run preprocess`
102068-
exports.version = '2.4.1';
102065+
exports.version = '2.4.2';
102069102066

102070102067
},{}]},{},[15])(15)
102071102068
});

dist/plotly-cartesian.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)