Skip to content

Commit 2083dfb

Browse files
author
xhlulu
committed
npm run build
1 parent 3533631 commit 2083dfb

20 files changed

+529
-63
lines changed

dist/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ 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 | 971.9 kB | 316 kB |
9595

9696
#### CDN links
9797
> https://cdn.plot.ly/plotly-basic-2.3.1.js
@@ -114,7 +114,7 @@ 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.8 kB |
118118

119119
#### CDN links
120120
> https://cdn.plot.ly/plotly-cartesian-2.3.1.js
@@ -137,7 +137,7 @@ 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 | 358.9 kB |
141141

142142
#### CDN links
143143
> https://cdn.plot.ly/plotly-geo-2.3.1.js
@@ -160,7 +160,7 @@ 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.3 kB |
164164

165165
#### CDN links
166166
> https://cdn.plot.ly/plotly-gl3d-2.3.1.js
@@ -183,7 +183,7 @@ 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 | 492 kB |
187187

188188
#### CDN links
189189
> https://cdn.plot.ly/plotly-gl2d-2.3.1.js
@@ -206,7 +206,7 @@ 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.1 kB |
210210

211211
#### CDN links
212212
> https://cdn.plot.ly/plotly-mapbox-2.3.1.js
@@ -229,7 +229,7 @@ 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.7 kB |
233233

234234
#### CDN links
235235
> https://cdn.plot.ly/plotly-finance-2.3.1.js
@@ -252,7 +252,7 @@ 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 kB |
256256

257257
#### CDN links
258258
> https://cdn.plot.ly/plotly-strict-2.3.1.js

dist/plotly-basic.js

Lines changed: 48 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26887,6 +26887,11 @@ exports.makeEventData = function(pt, trace, cd) {
2688726887
if('yVal' in pt) out.y = pt.yVal;
2688826888
else if('y' in pt) out.y = pt.y;
2688926889

26890+
if ('x0' in pt) out.x0 = pt.x0;
26891+
if ('x1' in pt) out.x1 = pt.x1;
26892+
if ('y0' in pt) out.y0 = pt.y0;
26893+
if ('y1' in pt) out.y1 = pt.y1;
26894+
2689026895
if(pt.xa) out.xaxis = pt.xa;
2689126896
if(pt.ya) out.yaxis = pt.ya;
2689226897
if(pt.zLabelVal !== undefined) out.z = pt.zLabelVal;
@@ -27735,6 +27740,12 @@ function _hover(gd, evt, subplot, noHoverEvent) {
2773527740
var oldhoverdata = gd._hoverdata;
2773627741
var newhoverdata = [];
2773727742

27743+
// Top/left hover offsets relative to graph div. As long as hover content is
27744+
// a sibling of the graph div, it will be positioned correctly relative to
27745+
// the offset parent, whatever that may be.
27746+
var hot = gd.offsetTop + gd.clientTop;
27747+
var hol = gd.offsetLeft + gd.clientLeft;
27748+
2773827749
// pull out just the data that's useful to
2773927750
// other people and send it to the event
2774027751
for(itemnum = 0; itemnum < hoverData.length; itemnum++) {
@@ -27749,6 +27760,14 @@ function _hover(gd, evt, subplot, noHoverEvent) {
2774927760
pt.hovertemplate = ht || pt.trace.hovertemplate || false;
2775027761
}
2775127762

27763+
var bbox = {};
27764+
eventData.bbox = bbox;
27765+
27766+
if ('x0' in pt) bbox.x0 = hol + pt.x0 + pt.xa._offset;
27767+
if ('x1' in pt) bbox.x1 = hol + pt.x1 + pt.xa._offset;
27768+
if ('y0' in pt) bbox.y0 = hot + pt.y0 + pt.ya._offset;
27769+
if ('y1' in pt) bbox.y1 = hot + pt.y1 + pt.ya._offset;
27770+
2775227771
pt.eventData = [eventData];
2775327772
newhoverdata.push(eventData);
2775427773
}
@@ -74555,6 +74574,11 @@ module.exports = function eventData(out, pt, trace) {
7455574574
if(pt.xa) out.xaxis = pt.xa;
7455674575
if(pt.ya) out.yaxis = pt.ya;
7455774576

74577+
if ('x0' in pt) out.x0 = pt.x0;
74578+
if ('x1' in pt) out.x1 = pt.x1;
74579+
if ('y0' in pt) out.y0 = pt.y0;
74580+
if ('y1' in pt) out.y1 = pt.y1;
74581+
7455874582
if(trace.orientation === 'h') {
7455974583
out.label = out.y;
7456074584
out.value = out.x;
@@ -76750,7 +76774,16 @@ module.exports = function eventData(pt, trace) {
7675076774
text: pt.text,
7675176775

7675276776
// pt.v (and pt.i below) for backward compatibility
76753-
v: pt.v
76777+
v: pt.v,
76778+
76779+
// TODO: These coordinates aren't quite correct and don't take into account some offset
76780+
// I still haven't quite located (similar to xa._offset)
76781+
bbox: {
76782+
x0: pt.x0,
76783+
x1: pt.x1,
76784+
y0: pt.y0,
76785+
y1: pt.y1,
76786+
},
7675476787
};
7675576788

7675676789
// Only include pointNumber if it's unambiguous
@@ -77252,12 +77285,20 @@ function attachFxHandlers(sliceTop, gd, cd) {
7725277285

7725377286
if(hoverinfo === 'all') hoverinfo = 'label+text+value+percent+name';
7725477287

77288+
// If hoverinfo === 'none', we still want the *coordinates* of hover to be
77289+
// output, just not the hover to actually display
77290+
var rInscribed = pt.rInscribed || 0;
77291+
var hoverCenterX = cx + pt.pxmid[0] * (1 - rInscribed);
77292+
var hoverCenterY = cy + pt.pxmid[1] * (1 - rInscribed);
77293+
pt.x0 = hoverCenterX - rInscribed * cd0.r;
77294+
pt.x1 = hoverCenterX + rInscribed * cd0.r;
77295+
pt.y0 = hoverCenterY;
77296+
pt.y1 = hoverCenterY;
77297+
7725577298
// in case we dragged over the pie from another subplot,
7725677299
// or if hover is turned off
7725777300
if(trace2.hovertemplate || (hoverinfo !== 'none' && hoverinfo !== 'skip' && hoverinfo)) {
77258-
var rInscribed = pt.rInscribed || 0;
77259-
var hoverCenterX = cx + pt.pxmid[0] * (1 - rInscribed);
77260-
var hoverCenterY = cy + pt.pxmid[1] * (1 - rInscribed);
77301+
7726177302
var separators = fullLayout2.separators;
7726277303
var text = [];
7726377304

@@ -77279,9 +77320,9 @@ function attachFxHandlers(sliceTop, gd, cd) {
7727977320

7728077321
Fx.loneHover({
7728177322
trace: trace,
77282-
x0: hoverCenterX - rInscribed * cd0.r,
77283-
x1: hoverCenterX + rInscribed * cd0.r,
77284-
y: hoverCenterY,
77323+
x0: pt.x0,
77324+
x1: pt.x1,
77325+
y: pt.y0,
7728577326
text: text.join('<br>'),
7728677327
name: (trace2.hovertemplate || hoverinfo.indexOf('name') !== -1) ? trace2.name : undefined,
7728777328
idealAlign: pt.pxmid[0] < 0 ? 'left' : 'right',

dist/plotly-basic.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-cartesian.js

Lines changed: 69 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36046,6 +36046,11 @@ exports.makeEventData = function(pt, trace, cd) {
3604636046
if('yVal' in pt) out.y = pt.yVal;
3604736047
else if('y' in pt) out.y = pt.y;
3604836048

36049+
if ('x0' in pt) out.x0 = pt.x0;
36050+
if ('x1' in pt) out.x1 = pt.x1;
36051+
if ('y0' in pt) out.y0 = pt.y0;
36052+
if ('y1' in pt) out.y1 = pt.y1;
36053+
3604936054
if(pt.xa) out.xaxis = pt.xa;
3605036055
if(pt.ya) out.yaxis = pt.ya;
3605136056
if(pt.zLabelVal !== undefined) out.z = pt.zLabelVal;
@@ -36894,6 +36899,12 @@ function _hover(gd, evt, subplot, noHoverEvent) {
3689436899
var oldhoverdata = gd._hoverdata;
3689536900
var newhoverdata = [];
3689636901

36902+
// Top/left hover offsets relative to graph div. As long as hover content is
36903+
// a sibling of the graph div, it will be positioned correctly relative to
36904+
// the offset parent, whatever that may be.
36905+
var hot = gd.offsetTop + gd.clientTop;
36906+
var hol = gd.offsetLeft + gd.clientLeft;
36907+
3689736908
// pull out just the data that's useful to
3689836909
// other people and send it to the event
3689936910
for(itemnum = 0; itemnum < hoverData.length; itemnum++) {
@@ -36908,6 +36919,14 @@ function _hover(gd, evt, subplot, noHoverEvent) {
3690836919
pt.hovertemplate = ht || pt.trace.hovertemplate || false;
3690936920
}
3691036921

36922+
var bbox = {};
36923+
eventData.bbox = bbox;
36924+
36925+
if ('x0' in pt) bbox.x0 = hol + pt.x0 + pt.xa._offset;
36926+
if ('x1' in pt) bbox.x1 = hol + pt.x1 + pt.xa._offset;
36927+
if ('y0' in pt) bbox.y0 = hot + pt.y0 + pt.ya._offset;
36928+
if ('y1' in pt) bbox.y1 = hot + pt.y1 + pt.ya._offset;
36929+
3691136930
pt.eventData = [eventData];
3691236931
newhoverdata.push(eventData);
3691336932
}
@@ -84849,6 +84868,11 @@ module.exports = function eventData(out, pt, trace) {
8484984868
if(pt.xa) out.xaxis = pt.xa;
8485084869
if(pt.ya) out.yaxis = pt.ya;
8485184870

84871+
if ('x0' in pt) out.x0 = pt.x0;
84872+
if ('x1' in pt) out.x1 = pt.x1;
84873+
if ('y0' in pt) out.y0 = pt.y0;
84874+
if ('y1' in pt) out.y1 = pt.y1;
84875+
8485284876
if(trace.orientation === 'h') {
8485384877
out.label = out.y;
8485484878
out.value = out.x;
@@ -87725,6 +87749,11 @@ module.exports = function eventData(out, pt) {
8772587749
if(pt.xa) out.xaxis = pt.xa;
8772687750
if(pt.ya) out.yaxis = pt.ya;
8772787751

87752+
if ('x0' in pt) out.x0 = pt.x0;
87753+
if ('x1' in pt) out.x1 = pt.x1;
87754+
if ('y0' in pt) out.y0 = pt.y0;
87755+
if ('y1' in pt) out.y1 = pt.y1;
87756+
8772887757
return out;
8772987758
};
8773087759

@@ -93502,6 +93531,11 @@ module.exports = function eventData(out, pt, trace, cd, pointNumber) {
9350293531
if(pt.xa) out.xaxis = pt.xa;
9350393532
if(pt.ya) out.yaxis = pt.ya;
9350493533

93534+
if ('x0' in pt) out.x0 = pt.x0;
93535+
if ('x1' in pt) out.x1 = pt.x1;
93536+
if ('y0' in pt) out.y0 = pt.y0;
93537+
if ('y1' in pt) out.y1 = pt.y1;
93538+
9350593539
// specific to histogram - CDFs do not have pts (yet?)
9350693540
if(!(trace.cumulative || {}).enabled) {
9350793541
var pts = Array.isArray(pointNumber) ?
@@ -94413,6 +94447,12 @@ module.exports = function supplyDefaults(traceIn, traceOut) {
9441394447
module.exports = function eventData(out, pt) {
9441494448
if('xVal' in pt) out.x = pt.xVal;
9441594449
if('yVal' in pt) out.y = pt.yVal;
94450+
94451+
if ('x0' in pt) out.x0 = pt.x0;
94452+
if ('x1' in pt) out.x1 = pt.x1;
94453+
if ('y0' in pt) out.y0 = pt.y0;
94454+
if ('y1' in pt) out.y1 = pt.y1;
94455+
9441694456
if(pt.xa) out.xaxis = pt.xa;
9441794457
if(pt.ya) out.yaxis = pt.ya;
9441894458
out.color = pt.color;
@@ -95331,7 +95371,16 @@ module.exports = function eventData(pt, trace) {
9533195371
text: pt.text,
9533295372

9533395373
// pt.v (and pt.i below) for backward compatibility
95334-
v: pt.v
95374+
v: pt.v,
95375+
95376+
// TODO: These coordinates aren't quite correct and don't take into account some offset
95377+
// I still haven't quite located (similar to xa._offset)
95378+
bbox: {
95379+
x0: pt.x0,
95380+
x1: pt.x1,
95381+
y0: pt.y0,
95382+
y1: pt.y1,
95383+
},
9533595384
};
9533695385

9533795386
// Only include pointNumber if it's unambiguous
@@ -95833,12 +95882,20 @@ function attachFxHandlers(sliceTop, gd, cd) {
9583395882

9583495883
if(hoverinfo === 'all') hoverinfo = 'label+text+value+percent+name';
9583595884

95885+
// If hoverinfo === 'none', we still want the *coordinates* of hover to be
95886+
// output, just not the hover to actually display
95887+
var rInscribed = pt.rInscribed || 0;
95888+
var hoverCenterX = cx + pt.pxmid[0] * (1 - rInscribed);
95889+
var hoverCenterY = cy + pt.pxmid[1] * (1 - rInscribed);
95890+
pt.x0 = hoverCenterX - rInscribed * cd0.r;
95891+
pt.x1 = hoverCenterX + rInscribed * cd0.r;
95892+
pt.y0 = hoverCenterY;
95893+
pt.y1 = hoverCenterY;
95894+
9583695895
// in case we dragged over the pie from another subplot,
9583795896
// or if hover is turned off
9583895897
if(trace2.hovertemplate || (hoverinfo !== 'none' && hoverinfo !== 'skip' && hoverinfo)) {
95839-
var rInscribed = pt.rInscribed || 0;
95840-
var hoverCenterX = cx + pt.pxmid[0] * (1 - rInscribed);
95841-
var hoverCenterY = cy + pt.pxmid[1] * (1 - rInscribed);
95898+
9584295899
var separators = fullLayout2.separators;
9584395900
var text = [];
9584495901

@@ -95860,9 +95917,9 @@ function attachFxHandlers(sliceTop, gd, cd) {
9586095917

9586195918
Fx.loneHover({
9586295919
trace: trace,
95863-
x0: hoverCenterX - rInscribed * cd0.r,
95864-
x1: hoverCenterX + rInscribed * cd0.r,
95865-
y: hoverCenterY,
95920+
x0: pt.x0,
95921+
x1: pt.x1,
95922+
y: pt.y0,
9586695923
text: text.join('<br>'),
9586795924
name: (trace2.hovertemplate || hoverinfo.indexOf('name') !== -1) ? trace2.name : undefined,
9586895925
idealAlign: pt.pxmid[0] < 0 ? 'left' : 'right',
@@ -99876,6 +99933,11 @@ module.exports = function eventData(out, pt, trace, cd, pointNumber) {
9987699933
if(pt.xa) out.xaxis = pt.xa;
9987799934
if(pt.ya) out.yaxis = pt.ya;
9987899935

99936+
if ('x0' in pt) out.x0 = pt.x0;
99937+
if ('x1' in pt) out.x1 = pt.x1;
99938+
if ('y0' in pt) out.y0 = pt.y0;
99939+
if ('y1' in pt) out.y1 = pt.y1;
99940+
9987999941
if(cd[pointNumber]) {
9988099942
var cdi = cd[pointNumber];
9988199943

dist/plotly-cartesian.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)