Skip to content

Commit 5342fe4

Browse files
committed
2.24.1
1 parent e2bb658 commit 5342fe4

24 files changed

+204
-144
lines changed

dist/README.md

+20-20
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.24.0.js
49+
> https://cdn.plot.ly/plotly-2.24.1.js
5050
51-
> https://cdn.plot.ly/plotly-2.24.0.min.js
51+
> https://cdn.plot.ly/plotly-2.24.1.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.6 MB | 966.7 kB | 323.3 kB |
94+
| 2.6 MB | 966.8 kB | 323.4 kB |
9595

9696
#### CDN links
97-
> https://cdn.plot.ly/plotly-basic-2.24.0.js
97+
> https://cdn.plot.ly/plotly-basic-2.24.1.js
9898
99-
> https://cdn.plot.ly/plotly-basic-2.24.0.min.js
99+
> https://cdn.plot.ly/plotly-basic-2.24.1.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 | 409.2 kB |
118118

119119
#### CDN links
120-
> https://cdn.plot.ly/plotly-cartesian-2.24.0.js
120+
> https://cdn.plot.ly/plotly-cartesian-2.24.1.js
121121
122-
> https://cdn.plot.ly/plotly-cartesian-2.24.0.min.js
122+
> https://cdn.plot.ly/plotly-cartesian-2.24.1.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 | 367.3 kB |
140+
| 3.1 MB | 1.1 MB | 367.4 kB |
141141

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

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

165165
#### CDN links
166-
> https://cdn.plot.ly/plotly-gl3d-2.24.0.js
166+
> https://cdn.plot.ly/plotly-gl3d-2.24.1.js
167167
168-
> https://cdn.plot.ly/plotly-gl3d-2.24.0.min.js
168+
> https://cdn.plot.ly/plotly-gl3d-2.24.1.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 | 593.7 kB |
187187

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

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

217217
#### npm packages
@@ -232,9 +232,9 @@ The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funne
232232
| 2.8 MB | 1 MB | 352 kB |
233233

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

240240
#### npm packages
@@ -255,9 +255,9 @@ The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `ca
255255
| 8.6 MB | 3.7 MB | 1.1 MB |
256256

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

263263
#### npm packages

dist/plotly-basic.js

+16-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v2.24.0
2+
* plotly.js (basic) v2.24.1
33
* Copyright 2012-2023, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -12658,16 +12658,17 @@ module.exports = function style(s, gd, legend) {
1265812658
if (pts.size()) {
1265912659
var cont = trace.marker || {};
1266012660
var lw = boundLineWidth(pieCastOption(cont.line.width, d0.pts), cont.line, MAX_MARKER_LINE_WIDTH, CST_MARKER_LINE_WIDTH);
12661+
var opt = 'pieLike';
1266112662
var tMod = Lib.minExtend(trace, {
1266212663
marker: {
1266312664
line: {
1266412665
width: lw
1266512666
}
1266612667
}
12667-
}, true);
12668+
}, opt);
1266812669
var d0Mod = Lib.minExtend(d0, {
1266912670
trace: tMod
12670-
}, true);
12671+
}, opt);
1267112672
stylePie(pts, d0Mod, tMod, gd);
1267212673
}
1267312674
}
@@ -25503,24 +25504,28 @@ lib.getTargetArray = function (trace, transformOpts) {
2550325504
* because extend-like algorithms are hella slow
2550425505
* obj2 is assumed to already be clean of these things (including no arrays)
2550525506
*/
25506-
lib.minExtend = function (obj1, obj2, isPie) {
25507+
function minExtend(obj1, obj2, opt) {
2550725508
var objOut = {};
2550825509
if (typeof obj2 !== 'object') obj2 = {};
25509-
var arrayLen = isPie = 3;
25510+
var arrayLen = opt === 'pieLike' ? -1 : 3;
2551025511
var keys = Object.keys(obj1);
2551125512
var i, k, v;
2551225513
for (i = 0; i < keys.length; i++) {
2551325514
k = keys[i];
2551425515
v = obj1[k];
2551525516
if (k.charAt(0) === '_' || typeof v === 'function') continue;else if (k === 'module') objOut[k] = v;else if (Array.isArray(v)) {
25516-
if (isPie || k === 'colorscale') {
25517+
if (k === 'colorscale' || arrayLen === -1) {
2551725518
objOut[k] = v.slice();
2551825519
} else {
2551925520
objOut[k] = v.slice(0, arrayLen);
2552025521
}
2552125522
} else if (lib.isTypedArray(v)) {
25522-
objOut[k] = v.subarray(0, arrayLen);
25523-
} else if (v && typeof v === 'object') objOut[k] = lib.minExtend(obj1[k], obj2[k]);else objOut[k] = v;
25523+
if (arrayLen === -1) {
25524+
objOut[k] = v.subarray();
25525+
} else {
25526+
objOut[k] = v.subarray(0, arrayLen);
25527+
}
25528+
} else if (v && typeof v === 'object') objOut[k] = minExtend(obj1[k], obj2[k], opt);else objOut[k] = v;
2552425529
}
2552525530
keys = Object.keys(obj2);
2552625531
for (i = 0; i < keys.length; i++) {
@@ -25531,7 +25536,8 @@ lib.minExtend = function (obj1, obj2, isPie) {
2553125536
}
2553225537
}
2553325538
return objOut;
25534-
};
25539+
}
25540+
lib.minExtend = minExtend;
2553525541
lib.titleCase = function (s) {
2553625542
return s.charAt(0).toUpperCase() + s.substr(1);
2553725543
};
@@ -60103,7 +60109,7 @@ function getSortFunc(opts, d2c) {
6010360109

6010460110

6010560111
// package version injected by `npm run preprocess`
60106-
exports.version = '2.24.0';
60112+
exports.version = '2.24.1';
6010760113

6010860114
/***/ }),
6010960115

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

+16-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (cartesian) v2.24.0
2+
* plotly.js (cartesian) v2.24.1
33
* Copyright 2012-2023, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -12748,16 +12748,17 @@ module.exports = function style(s, gd, legend) {
1274812748
if (pts.size()) {
1274912749
var cont = trace.marker || {};
1275012750
var lw = boundLineWidth(pieCastOption(cont.line.width, d0.pts), cont.line, MAX_MARKER_LINE_WIDTH, CST_MARKER_LINE_WIDTH);
12751+
var opt = 'pieLike';
1275112752
var tMod = Lib.minExtend(trace, {
1275212753
marker: {
1275312754
line: {
1275412755
width: lw
1275512756
}
1275612757
}
12757-
}, true);
12758+
}, opt);
1275812759
var d0Mod = Lib.minExtend(d0, {
1275912760
trace: tMod
12760-
}, true);
12761+
}, opt);
1276112762
stylePie(pts, d0Mod, tMod, gd);
1276212763
}
1276312764
}
@@ -25612,24 +25613,28 @@ lib.getTargetArray = function (trace, transformOpts) {
2561225613
* because extend-like algorithms are hella slow
2561325614
* obj2 is assumed to already be clean of these things (including no arrays)
2561425615
*/
25615-
lib.minExtend = function (obj1, obj2, isPie) {
25616+
function minExtend(obj1, obj2, opt) {
2561625617
var objOut = {};
2561725618
if (typeof obj2 !== 'object') obj2 = {};
25618-
var arrayLen = isPie = 3;
25619+
var arrayLen = opt === 'pieLike' ? -1 : 3;
2561925620
var keys = Object.keys(obj1);
2562025621
var i, k, v;
2562125622
for (i = 0; i < keys.length; i++) {
2562225623
k = keys[i];
2562325624
v = obj1[k];
2562425625
if (k.charAt(0) === '_' || typeof v === 'function') continue;else if (k === 'module') objOut[k] = v;else if (Array.isArray(v)) {
25625-
if (isPie || k === 'colorscale') {
25626+
if (k === 'colorscale' || arrayLen === -1) {
2562625627
objOut[k] = v.slice();
2562725628
} else {
2562825629
objOut[k] = v.slice(0, arrayLen);
2562925630
}
2563025631
} else if (lib.isTypedArray(v)) {
25631-
objOut[k] = v.subarray(0, arrayLen);
25632-
} else if (v && typeof v === 'object') objOut[k] = lib.minExtend(obj1[k], obj2[k]);else objOut[k] = v;
25632+
if (arrayLen === -1) {
25633+
objOut[k] = v.subarray();
25634+
} else {
25635+
objOut[k] = v.subarray(0, arrayLen);
25636+
}
25637+
} else if (v && typeof v === 'object') objOut[k] = minExtend(obj1[k], obj2[k], opt);else objOut[k] = v;
2563325638
}
2563425639
keys = Object.keys(obj2);
2563525640
for (i = 0; i < keys.length; i++) {
@@ -25640,7 +25645,8 @@ lib.minExtend = function (obj1, obj2, isPie) {
2564025645
}
2564125646
}
2564225647
return objOut;
25643-
};
25648+
}
25649+
lib.minExtend = minExtend;
2564425650
lib.titleCase = function (s) {
2564525651
return s.charAt(0).toUpperCase() + s.substr(1);
2564625652
};
@@ -70493,7 +70499,7 @@ function getSortFunc(opts, d2c) {
7049370499

7049470500

7049570501
// package version injected by `npm run preprocess`
70496-
exports.version = '2.24.0';
70502+
exports.version = '2.24.1';
7049770503

7049870504
/***/ }),
7049970505

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.

dist/plotly-finance.js

+16-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (finance) v2.24.0
2+
* plotly.js (finance) v2.24.1
33
* Copyright 2012-2023, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -12728,16 +12728,17 @@ module.exports = function style(s, gd, legend) {
1272812728
if (pts.size()) {
1272912729
var cont = trace.marker || {};
1273012730
var lw = boundLineWidth(pieCastOption(cont.line.width, d0.pts), cont.line, MAX_MARKER_LINE_WIDTH, CST_MARKER_LINE_WIDTH);
12731+
var opt = 'pieLike';
1273112732
var tMod = Lib.minExtend(trace, {
1273212733
marker: {
1273312734
line: {
1273412735
width: lw
1273512736
}
1273612737
}
12737-
}, true);
12738+
}, opt);
1273812739
var d0Mod = Lib.minExtend(d0, {
1273912740
trace: tMod
12740-
}, true);
12741+
}, opt);
1274112742
stylePie(pts, d0Mod, tMod, gd);
1274212743
}
1274312744
}
@@ -25592,24 +25593,28 @@ lib.getTargetArray = function (trace, transformOpts) {
2559225593
* because extend-like algorithms are hella slow
2559325594
* obj2 is assumed to already be clean of these things (including no arrays)
2559425595
*/
25595-
lib.minExtend = function (obj1, obj2, isPie) {
25596+
function minExtend(obj1, obj2, opt) {
2559625597
var objOut = {};
2559725598
if (typeof obj2 !== 'object') obj2 = {};
25598-
var arrayLen = isPie = 3;
25599+
var arrayLen = opt === 'pieLike' ? -1 : 3;
2559925600
var keys = Object.keys(obj1);
2560025601
var i, k, v;
2560125602
for (i = 0; i < keys.length; i++) {
2560225603
k = keys[i];
2560325604
v = obj1[k];
2560425605
if (k.charAt(0) === '_' || typeof v === 'function') continue;else if (k === 'module') objOut[k] = v;else if (Array.isArray(v)) {
25605-
if (isPie || k === 'colorscale') {
25606+
if (k === 'colorscale' || arrayLen === -1) {
2560625607
objOut[k] = v.slice();
2560725608
} else {
2560825609
objOut[k] = v.slice(0, arrayLen);
2560925610
}
2561025611
} else if (lib.isTypedArray(v)) {
25611-
objOut[k] = v.subarray(0, arrayLen);
25612-
} else if (v && typeof v === 'object') objOut[k] = lib.minExtend(obj1[k], obj2[k]);else objOut[k] = v;
25612+
if (arrayLen === -1) {
25613+
objOut[k] = v.subarray();
25614+
} else {
25615+
objOut[k] = v.subarray(0, arrayLen);
25616+
}
25617+
} else if (v && typeof v === 'object') objOut[k] = minExtend(obj1[k], obj2[k], opt);else objOut[k] = v;
2561325618
}
2561425619
keys = Object.keys(obj2);
2561525620
for (i = 0; i < keys.length; i++) {
@@ -25620,7 +25625,8 @@ lib.minExtend = function (obj1, obj2, isPie) {
2562025625
}
2562125626
}
2562225627
return objOut;
25623-
};
25628+
}
25629+
lib.minExtend = minExtend;
2562425630
lib.titleCase = function (s) {
2562525631
return s.charAt(0).toUpperCase() + s.substr(1);
2562625632
};
@@ -66412,7 +66418,7 @@ function getSortFunc(opts, d2c) {
6641266418

6641366419

6641466420
// package version injected by `npm run preprocess`
66415-
exports.version = '2.24.0';
66421+
exports.version = '2.24.1';
6641666422

6641766423
/***/ }),
6641866424

dist/plotly-finance.min.js

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

dist/plotly-geo-assets.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)