8000 2.8.2 · plotly/plotly.js@19efc29 · GitHub
[go: up one dir, main page]

Skip to content

Commit 19efc29

Browse files
committed
2.8.2
1 parent e14ebcb commit 19efc29

24 files changed

+125
-83
lines changed

dist/README.md

Lines changed: 21 additions & 21 deletions
123
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ The main plotly.js bundles weight in at:
4646
| 8.3 MB | 3.5 MB | 1 MB | 8.6 MB |
4747

4848
#### CDN links
49-
> https://cdn.plot.ly/plotly-2.8.1.js
49+
> https://cdn.plot.ly/plotly-2.8.2.js
5050
51-
> https://cdn.plot.ly/plotly-2.8.1.min.js
51+
> https://cdn.plot.ly/plotly-2.8.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 | 976.4 kB | 318 kB |
94+
| 2.7 MB | 976.6 kB | 318.1 kB |
9595

9696
#### CDN links
97-
> https://cdn.plot.ly/plotly-basic-2.8.1.js
97+
> https://cdn.plot.ly/plotly-basic-2.8.2.js
9898
99-
> https://cdn.plot.ly/plotly-basic-2.8.1.min.js
99+
> https://cdn.plot.ly/plotly-basic-2.8.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 | 390.8 kB |
117+
| 3.3 MB | 1.2 MB | 391 kB |
118118

119119
#### CDN links
120-
> https://cdn.plot.ly/plotly-cartesian-2.8.1.js
120+
> https://cdn.plot.ly/plotly-cartesian-2.8.2.js
121121
122-
> https://cdn.plot.ly/plotly-cartesian-2.8.1.min.js
122+
> https://cdn.plot.ly/plotly-cartesian-2.8.2.min.js
123
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 | 360.7 kB |
141141

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

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

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

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

188188
#### CDN links
189-
> https://cdn.plot.ly/plotly-gl2d-2.8.1.js
189+
> https://cdn.plot.ly/plotly-gl2d-2.8.2.js
190190
191-
> https://cdn.plot.ly/plotly-gl2d-2.8.1.min.js
191+
> https://cdn.plot.ly/plotly-gl2d-2.8.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 | 514.9 kB |
210210

211211
#### CDN links
212-
> https://cdn.plot.ly/plotly-mapbox-2.8.1.js
212+
> https://cdn.plot.ly/plotly-mapbox-2.8.2.js
213213
214-
> https://cdn.plot.ly/plotly-mapbox-2.8.1.min.js
214+
> https://cdn.plot.ly/plotly-mapbox-2.8.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 | 350.7 kB |
232+
| 2.9 MB | 1.1 MB | 350.8 kB |
233233

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

240240
#### npm packages
@@ -255,9 +255,9 @@ The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `ca
255255
| 7.7 MB | 3.2 MB | 958.6 kB |
256256

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

263263
#### npm packages

dist/plotly-basic.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v2.8.1
2+
* plotly.js (basic) v2.8.2
33
* Copyright 2012-2021, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -76124,10 +76124,11 @@ function calcTexttemplate(fullLayout, cd, index, xa, ya) {
7612476124
if(!texttemplate) return '';
7612576125
var isWaterfall = (trace.type === 'waterfall');
7612676126
var isFunnel = (trace.type === 'funnel');
76127+
var isHorizontal = trace.orientation === 'h';
7612776128

7612876129
var pLetter, pAxis;
7612976130
var vLetter, vAxis;
76130-
if(trace.orientation === 'h') {
76131+
if(isHorizontal) {
7613176132
pLetter = 'y';
7613276133
pAxis = ya;
7613376134
vLetter = 'x';
@@ -76162,6 +76163,11 @@ function calcTexttemplate(fullLayout, cd, index, xa, ya) {
7616276163
var pt = {};
7616376164
appendArrayPointValue(pt, trace, cdi.i);
7616476165

76166+
if(pt.x === undefined) pt.x = isHorizontal ? obj.value : obj.label;
76167+
if(pt.y === undefined) pt.y = isHorizontal ? obj.label : obj.value;
76168+
if(pt.xLabel === undefined) pt.xLabel = isHorizontal ? obj.valueLabel : obj.labelLabel;
76169+
if(pt.yLabel === undefined) pt.yLabel = isHorizontal ? obj.labelLabel : obj.valueLabel;
76170+
7616576171
if(isWaterfall) {
7616676172
obj.delta = +cdi.rawS || cdi.s;
7616776173
obj.deltaLabel = formatNumber(obj.delta);
@@ -82624,7 +82630,7 @@ function getSortFunc(opts, d2c) {
8262482630
'use strict';
8262582631

8262682632
// package version injected by `npm run preprocess`
82627-
exports.version = '2.8.1';
82633+
exports.version = '2.8.2';
8262882634

8262982635
},{}]},{},[8])(8)
8263082636
});

dist/plotly-basic.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-cartesian.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (cartesian) v2.8.1
2+
* plotly.js (cartesian) v2.8.2
33
* Copyright 2012-2021, Plotly, Inc.
4 F987 4
* All rights reserved.
55
* Licensed under the MIT license
@@ -86419,10 +86419,11 @@ function calcTexttemplate(fullLayout, cd, index, xa, ya) {
8641986419
if(!texttemplate) return '';
8642086420
var isWaterfall = (trace.type === 'waterfall');
8642186421
var isFunnel = (trace.type === 'funnel');
86422+
var isHorizontal = trace.orientation === 'h';
8642286423

8642386424
var pLetter, pAxis;
8642486425
var vLetter, vAxis;
86425-
if(trace.orientation === 'h') {
86426+
if(isHorizontal) {
8642686427
pLetter = 'y';
8642786428
pAxis = ya;
8642886429
vLetter = 'x';
@@ -86457,6 +86458,11 @@ function calcTexttemplate(fullLayout, cd, index, xa, ya) {
8645786458
var pt = {};
8645886459
appendArrayPointValue(pt, trace, cdi.i);
8645986460

86461+
if(pt.x === undefined) pt.x = isHorizontal ? obj.value : obj.label;
86462+
if(pt.y === undefined) pt.y = isHorizontal ? obj.label : obj.value;
86463+
if(pt.xLabel === undefined) pt.xLabel = isHorizontal ? obj.valueLabel : obj.labelLabel;
86464+
if(pt.yLabel === undefined) pt.yLabel = isHorizontal ? obj.labelLabel : obj.valueLabel;
86465+
8646086466
if(isWaterfall) {
8646186467
obj.delta = +cdi.rawS || cdi.s;
8646286468
obj.deltaLabel = formatNumber(obj.delta);
@@ -93399,8 +93405,9 @@ var getBinSpanLabelRound = _dereq_('./bin_label_vals');
9339993405
function calc(gd, trace) {
9340093406
var pos = [];
9340193407
var size = [];
93402-
var pa = Axes.getFromId(gd, trace.orientation === 'h' ? trace.yaxis : trace.xaxis);
93403-
var mainData = trace.orientation === 'h' ? 'y' : 'x';
93408+
var isHorizontal = trace.orientation === 'h';
93409+
var pa = Axes.getFromId(gd, isHorizontal ? trace.yaxis : trace.xaxis);
93410+
var mainData = isHorizontal ? 'y' : 'x';
9340493411
var counterData = {x: 'y', y: 'x'}[mainData];
9340593412
var calendar = trace[mainData + 'calendar'];
9340693413
var cumulativeSpec = trace.cumulative;
@@ -102809,7 +102816,7 @@ function getSortFunc(opts, d2c) {
102809102816
'use strict';
102810102817

102811102818
// package version injected by `npm run preprocess`
102812-
exports.version = '2.8.1';
102819+
exports.version = '2.8.2';
102813102820

102814102821
},{}]},{},[15])(15)
102815102822
});

dist/plotly-cartesian.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-finance.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (finance) v2.8.1
2+
* plotly.js (finance) v2.8.2
33
* Copyright 2012-2021, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -77358,10 +77358,11 @@ function calcTexttemplate(fullLayout, cd, index, xa, ya) {
7735877358
if(!texttemplate) return '';
7735977359
var isWaterfall = (trace.type === 'waterfall');
7736077360
var isFunnel = (trace.type === 'funnel');
77361+
var isHorizontal = trace.orientation === 'h';
7736177362

7736277363
var pLetter, pAxis;
7736377364
var vLetter, vAxis;
77364-
if(trace.orientation === 'h') {
77365+
if(isHorizontal) {
7736577366
pLetter = 'y';
7736677367
pAxis = ya;
7736777368
vLetter = 'x';
@@ -77396,6 +77397,11 @@ function calcTexttemplate(fullLayout, cd, index, xa, ya) {
7739677397
var pt = {};
7739777398
appendArrayPointValue(pt, trace, cdi.i);
7739877399

77400+
if(pt.x === undefined) pt.x = isHorizontal ? obj.value : obj.label;
77401+
if(pt.y === undefined) pt.y = isHorizontal ? obj.label : obj.value;
77402+
if(pt.xLabel === undefined) pt.xLabel = isHorizontal ? obj.valueLabel : obj.labelLabel;
77403+
if(pt.yLabel === undefined) pt.yLabel = isHorizontal ? obj.labelLabel : obj.valueLabel;
77404+
7739977405
if(isWaterfall) {
7740077406
obj.delta = +cdi.rawS || cdi.s;
7740177407
obj.deltaLabel = formatNumber(obj.delta);
@@ -80830,8 +80836,9 @@ var getBinSpanLabelRound = _dereq_('./bin_label_vals');
8083080836
function calc(gd, trace) {
8083180837
var pos = [];
8083280838
var size = [];
80833-
var pa = Axes.getFromId(gd, trace.orientation === 'h' ? trace.yaxis : trace.xaxis);
80834-
var mainData = trace.orientation === 'h' ? 'y' : 'x';
80839+
var isHorizontal = trace.orientation === 'h';
80840+
var pa = Axes.getFromId(gd, isHorizontal ? trace.yaxis : trace.xaxis);
80841+
var mainData = isHorizontal ? 'y' : 'x';
8083580842
var counterData = {x: 'y', y: 'x'}[mainData];
8083680843
var calendar = trace[mainData + 'calendar'];
8083780844
var cumulativeSpec = trace.cumulative;
@@ -90610,7 +90617,7 @@ function getSortFunc(opts, d2c) {
9061090617
'use strict';
9061190618

9061290619
// package version injected by `npm run preprocess`
90613-
exports.version = '2.8.1';
90620+
exports.version = '2.8.2';
9061490621

9061590622
},{}]},{},[12])(12)
9061690623
});

dist/plotly-finance.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-geo-assets.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-geo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (geo) v2.8.1
2+
* plotly.js (geo) v2.8.2
33
* Copyright 2012-2021, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -95378,7 +95378,7 @@ function getSortFunc(opts, d2c) {
9537895378
'use strict';
9537995379

9538095380
// package version injected by `npm run preprocess`
95381-
exports.version = '2.8.1';
95381+
exports.version = '2.8.2';
9538295382

9538395383
},{}]},{},[8])(8)
9538495384
});

dist/plotly-geo.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-gl2d.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (gl2d) v2.8.1
2+
* plotly.js (gl2d) v2.8.2
33
* Copyright 2012-2021, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -90287,8 +90287,9 @@ var getBinSpanLabelRound = _dereq_('./bin_label_vals');
9028790287
function calc(gd, trace) {
9028890288
var pos = [];
9028990289
var size = [];
90290-
var pa = Axes.getFromId(gd, trace.orientation === 'h' ? trace.yaxis : trace.xaxis);
90291-
var mainData = trace.orientation === 'h' ? 'y' : 'x';
90290+
var isHorizontal = trace.orientation === 'h';
90291+
var pa = Axes.getFromId(gd, isHorizontal ? trace.yaxis : trace.xaxis);
90292+
var mainData = isHorizontal ? 'y' : 'x';
9029290293
var counterData = {x: 'y', y: 'x'}[mainData];
9029390294
var calendar = trace[mainData + 'calendar'];
9029490295
var cumulativeSpec = trace.cumulative;
@@ -100909,7 +100910,7 @@ function getSortFunc(opts, d2c) {
100909100910
'use strict';
100910100911

100911100912
// package version injected by `npm run preprocess`
100912-
exports.version = '2.8.1';
100913+
exports.version = '2.8.2';
100913100914

100914100915
},{}],588:[function(_dereq_,module,exports){
100915100916
(function (global){(function (){

dist/plotly-gl2d.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-gl3d.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (gl3d) v2.8.1
2+
* plotly.js (gl3d) v2.8.2
33
* Copyright 2012-2021, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -86285,7 +86285,7 @@ function getSortFunc(opts, d2c) {
8628586285
'use strict';
8628686286

8628786287
// package version injected by `npm run preprocess`
86288-
exports.version = '2.8.1';
86288+
exports.version = '2.8.2';
8628986289

8629086290
},{}],435:[function(_dereq_,module,exports){
8629186291
(function (global){(function (){

dist/plotly-gl3d.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-mapbox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (mapbox) v2.8.1
2+
* plotly.js (mapbox) v2.8.2
33
* Copyright 2012-2021, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -129839,7 +129839,7 @@ function getSortFunc(opts, d2c) {
129839129839
'use strict';
129840129840

129841129841
// package version injected by `npm run preprocess`
129842-
exports.version = '2.8.1';
129842+
exports.version = '2.8.2';
129843129843

129844129844
},{}]},{},[9])(9)
129845129845
});

dist/plotly-mapbox.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
0