Skip to content

Commit 3c92271

Browse files
committed
2.29.1
1 parent 4072ae5 commit 3c92271

24 files changed

+279
-119
lines changed

dist/README.md

+25-25
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ The main plotly.js bundles weight in at:
4646
| 8.2 MB | 3.5 MB | 1 MB | 8.5 MB |
4747

4848
#### CDN links
49-
> https://cdn.plot.ly/plotly-2.29.0.js
49+
> https://cdn.plot.ly/plotly-2.29.1.js
5050
51-
> https://cdn.plot.ly/plotly-2.29.0.min.js
51+
> https://cdn.plot.ly/plotly-2.29.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 | 984.6 kB | 329.6 kB |
94+
| 2.6 MB | 984.8 kB | 329.7 kB |
9595

9696
#### CDN links
97-
> https://cdn.plot.ly/plotly-basic-2.29.0.js
97+
> https://cdn.plot.ly/plotly-basic-2.29.1.js
9898
99-
> https://cdn.plot.ly/plotly-basic-2.29.0.min.js
99+
> https://cdn.plot.ly/plotly-basic-2.29.1.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 | 417 kB |
117+
| 3.3 MB | 1.2 MB | 417.1 kB |
118118

119119
#### CDN links
120-
> https://cdn.plot.ly/plotly-cartesian-2.29.0.js
120+
> https://cdn.plot.ly/plotly-cartesian-2.29.1.js
121121
122-
> https://cdn.plot.ly/plotly-cartesian-2.29.0.min.js
122+
> https://cdn.plot.ly/plotly-cartesian-2.29.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 | 372.3 kB |
140+
| 3.1 MB | 1.1 MB | 372.4 kB |
141141

142142
#### CDN links
143-
> https://cdn.plot.ly/plotly-geo-2.29.0.js
143+
> https://cdn.plot.ly/plotly-geo-2.29.1.js
144144
145-
> https://cdn.plot.ly/plotly-geo-2.29.0.min.js
145+
> https://cdn.plot.ly/plotly-geo-2.29.1.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.6 MB | 1.5 MB | 493.1 kB |
163+
| 3.6 MB | 1.5 MB | 493.2 kB |
164164

165165
#### CDN links
166-
> https://cdn.plot.ly/plotly-gl3d-2.29.0.js
166+
> https://cdn.plot.ly/plotly-gl3d-2.29.1.js
167167
168-
> https://cdn.plot.ly/plotly-gl3d-2.29.0.min.js
168+
> https://cdn.plot.ly/plotly-gl3d-2.29.1.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-
| 4.4 MB | 1.9 MB | 599.6 kB |
186+
| 4.4 MB | 1.9 MB | 599.7 kB |
187187

188188
#### CDN links
189-
> https://cdn.plot.ly/plotly-gl2d-2.29.0.js
189+
> https://cdn.plot.ly/plotly-gl2d-2.29.1.js
190190
191-
> https://cdn.plot.ly/plotly-gl2d-2.29.0.min.js
191+
> https://cdn.plot.ly/plotly-gl2d-2.29.1.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.4 MB | 1.7 MB | 531.2 kB |
209+
| 4.4 MB | 1.7 MB | 531.3 kB |
210210

211211
#### CDN links
212-
> https://cdn.plot.ly/plotly-mapbox-2.29.0.js
212+
> https://cdn.plot.ly/plotly-mapbox-2.29.1.js
213213
214-
> https://cdn.plot.ly/plotly-mapbox-2.29.0.min.js
214+
> https://cdn.plot.ly/plotly-mapbox-2.29.1.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.8 MB | 1 MB | 358.7 kB |
232+
| 2.8 MB | 1 MB | 358.8 kB |
233233

234234
#### CDN links
235-
> https://cdn.plot.ly/plotly-finance-2.29.0.js
235+
> https://cdn.plot.ly/plotly-finance-2.29.1.js
236236
237-
> https://cdn.plot.ly/plotly-finance-2.29.0.min.js
237+
> https://cdn.plot.ly/plotly-finance-2.29.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.7 MB | 3.8 MB | 1.1 MB |
256256

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

263263
#### npm packages

dist/plotly-basic.js

+23-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v2.29.0
2+
* plotly.js (basic) v2.29.1
33
* Copyright 2012-2024, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -40203,7 +40203,7 @@ function getBoundaryVals(ax, vals) {
4020340203
// boundaryVals are never used for labels;
4020440204
// no need to worry about the other tickTextObj keys
4020540205
var _push = function (d, bndIndex) {
40206-
var xb = d.xbnd[bndIndex];
40206+
var xb = d.xbnd ? d.xbnd[bndIndex] : d.x;
4020740207
if (xb !== null) {
4020840208
out.push(Lib.extendFlat({}, d, {
4020940209
x: xb
@@ -40969,7 +40969,7 @@ axes.drawLabels = function (gd, ax, opts) {
4096940969
// TODO should secondary labels also fall into this fix-overlap regime?
4097040970

4097140971
for (i = 0; i < lbbArray.length; i++) {
40972-
var xbnd = vals[i].xbnd;
40972+
var xbnd = vals && vals[i].xbnd ? vals[i].xbnd : [null, null];
4097340973
var lbb = lbbArray[i];
4097440974
if (xbnd[0] !== null && lbb.left - ax.l2p(xbnd[0]) < gap || xbnd[1] !== null && ax.l2p(xbnd[1]) - lbb.right < gap) {
4097540975
autoangle = 90;
@@ -41086,8 +41086,24 @@ axes.drawLabels = function (gd, ax, opts) {
4108641086
var otherIndex = sgn === 1 ? 0 : 1;
4108741087
var newRange = [];
4108841088
newRange[otherIndex] = anchorAx.range[otherIndex];
41089-
var p0 = anchorAx.d2p(anchorAx.range[index]);
41090-
var p1 = anchorAx.d2p(anchorAx.range[otherIndex]);
41089+
var anchorAxRange = anchorAx.range;
41090+
var p0 = anchorAx.d2p(anchorAxRange[index]);
41091+
var p1 = anchorAx.d2p(anchorAxRange[otherIndex]);
41092+
var _tempNewRange = fullLayout._insideTickLabelsUpdaterange[anchorAx._name + '.range'];
41093+
if (_tempNewRange) {
41094+
// case of having multiple anchored axes having insideticklabel
41095+
var q0 = anchorAx.d2p(_tempNewRange[index]);
41096+
var q1 = anchorAx.d2p(_tempNewRange[otherIndex]);
41097+
var dir = sgn * (ax._id.charAt(0) === 'y' ? 1 : -1);
41098+
if (dir * p0 < dir * q0) {
41099+
p0 = q0;
41100+
newRange[index] = anchorAxRange[index] = _tempNewRange[index];
41101+
}
41102+
if (dir * p1 > dir * q1) {
41103+
p1 = q1;
41104+
newRange[otherIndex] = anchorAxRange[otherIndex] = _tempNewRange[otherIndex];
41105+
}
41106+
}
4109141107
var dist = Math.abs(p1 - p0);
4109241108
if (dist - move > 0) {
4109341109
dist -= move;
@@ -41096,7 +41112,7 @@ axes.drawLabels = function (gd, ax, opts) {
4109641112
move = 0;
4109741113
}
4109841114
if (ax._id.charAt(0) !== 'y') move = -move;
41099-
newRange[index] = anchorAx.p2d(anchorAx.d2p(anchorAx.range[index]) + sgn * move);
41115+
newRange[index] = anchorAx.p2d(anchorAx.d2p(anchorAxRange[index]) + sgn * move);
4110041116

4110141117
// handle partial ranges in insiderange
4110241118
if (anchorAx.autorange === 'min' || anchorAx.autorange === 'max reversed') {
@@ -61331,7 +61347,7 @@ function getSortFunc(opts, d2c) {
6133161347

6133261348

6133361349
// package version injected by `npm run preprocess`
61334-
exports.version = '2.29.0';
61350+
exports.version = '2.29.1';
6133561351

6133661352
/***/ }),
6133761353

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

+23-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (cartesian) v2.29.0
2+
* plotly.js (cartesian) v2.29.1
33
* Copyright 2012-2024, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -40361,7 +40361,7 @@ function getBoundaryVals(ax, vals) {
4036140361
// boundaryVals are never used for labels;
4036240362
// no need to worry about the other tickTextObj keys
4036340363
var _push = function (d, bndIndex) {
40364-
var xb = d.xbnd[bndIndex];
40364+
var xb = d.xbnd ? d.xbnd[bndIndex] : d.x;
4036540365
if (xb !== null) {
4036640366
out.push(Lib.extendFlat({}, d, {
4036740367
x: xb
@@ -41127,7 +41127,7 @@ axes.drawLabels = function (gd, ax, opts) {
4112741127
// TODO should secondary labels also fall into this fix-overlap regime?
4112841128

4112941129
for (i = 0; i < lbbArray.length; i++) {
41130-
var xbnd = vals[i].xbnd;
41130+
var xbnd = vals && vals[i].xbnd ? vals[i].xbnd : [null, null];
4113141131
var lbb = lbbArray[i];
4113241132
if (xbnd[0] !== null && lbb.left - ax.l2p(xbnd[0]) < gap || xbnd[1] !== null && ax.l2p(xbnd[1]) - lbb.right < gap) {
4113341133
autoangle = 90;
@@ -41244,8 +41244,24 @@ axes.drawLabels = function (gd, ax, opts) {
4124441244
var otherIndex = sgn === 1 ? 0 : 1;
4124541245
var newRange = [];
4124641246
newRange[otherIndex] = anchorAx.range[otherIndex];
41247-
var p0 = anchorAx.d2p(anchorAx.range[index]);
41248-
var p1 = anchorAx.d2p(anchorAx.range[otherIndex]);
41247+
var anchorAxRange = anchorAx.range;
41248+
var p0 = anchorAx.d2p(anchorAxRange[index]);
41249+
var p1 = anchorAx.d2p(anchorAxRange[otherIndex]);
41250+
var _tempNewRange = fullLayout._insideTickLabelsUpdaterange[anchorAx._name + '.range'];
41251+
if (_tempNewRange) {
41252+
// case of having multiple anchored axes having insideticklabel
41253+
var q0 = anchorAx.d2p(_tempNewRange[index]);
41254+
var q1 = anchorAx.d2p(_tempNewRange[otherIndex]);
41255+
var dir = sgn * (ax._id.charAt(0) === 'y' ? 1 : -1);
41256+
if (dir * p0 < dir * q0) {
41257+
p0 = q0;
41258+
newRange[index] = anchorAxRange[index] = _tempNewRange[index];
41259+
}
41260+
if (dir * p1 > dir * q1) {
41261+
p1 = q1;
41262+
newRange[otherIndex] = anchorAxRange[otherIndex] = _tempNewRange[otherIndex];
41263+
}
41264+
}
4124941265
var dist = Math.abs(p1 - p0);
4125041266
if (dist - move > 0) {
4125141267
dist -= move;
@@ -41254,7 +41270,7 @@ axes.drawLabels = function (gd, ax, opts) {
4125441270
move = 0;
4125541271
}
4125641272
if (ax._id.charAt(0) !== 'y') move = -move;
41257-
newRange[index] = anchorAx.p2d(anchorAx.d2p(anchorAx.range[index]) + sgn * move);
41273+
newRange[index] = anchorAx.p2d(anchorAx.d2p(anchorAxRange[index]) + sgn * move);
4125841274

4125941275
// handle partial ranges in insiderange
4126041276
if (anchorAx.autorange === 'min' || anchorAx.autorange === 'max reversed') {
@@ -71811,7 +71827,7 @@ function getSortFunc(opts, d2c) {
7181171827

7181271828

7181371829
// package version injected by `npm run preprocess`
71814-
exports.version = '2.29.0';
71830+
exports.version = '2.29.1';
7181571831

7181671832
/***/ }),
7181771833

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

+23-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (finance) v2.29.0
2+
* plotly.js (finance) v2.29.1
33
* Copyright 2012-2024, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -40292,7 +40292,7 @@ function getBoundaryVals(ax, vals) {
4029240292
// boundaryVals are never used for labels;
4029340293
// no need to worry about the other tickTextObj keys
4029440294
var _push = function (d, bndIndex) {
40295-
var xb = d.xbnd[bndIndex];
40295+
var xb = d.xbnd ? d.xbnd[bndIndex] : d.x;
4029640296
if (xb !== null) {
4029740297
out.push(Lib.extendFlat({}, d, {
4029840298
x: xb
@@ -41058,7 +41058,7 @@ axes.drawLabels = function (gd, ax, opts) {
4105841058
// TODO should secondary labels also fall into this fix-overlap regime?
4105941059

4106041060
for (i = 0; i < lbbArray.length; i++) {
41061-
var xbnd = vals[i].xbnd;
41061+
var xbnd = vals && vals[i].xbnd ? vals[i].xbnd : [null, null];
4106241062
var lbb = lbbArray[i];
4106341063
if (xbnd[0] !== null && lbb.left - ax.l2p(xbnd[0]) < gap || xbnd[1] !== null && ax.l2p(xbnd[1]) - lbb.right < gap) {
4106441064
autoangle = 90;
@@ -41175,8 +41175,24 @@ axes.drawLabels = function (gd, ax, opts) {
4117541175
var otherIndex = sgn === 1 ? 0 : 1;
4117641176
var newRange = [];
4117741177
newRange[otherIndex] = anchorAx.range[otherIndex];
41178-
var p0 = anchorAx.d2p(anchorAx.range[index]);
41179-
var p1 = anchorAx.d2p(anchorAx.range[otherIndex]);
41178+
var anchorAxRange = anchorAx.range;
41179+
var p0 = anchorAx.d2p(anchorAxRange[index]);
41180+
var p1 = anchorAx.d2p(anchorAxRange[otherIndex]);
41181+
var _tempNewRange = fullLayout._insideTickLabelsUpdaterange[anchorAx._name + '.range'];
41182+
if (_tempNewRange) {
41183+
// case of having multiple anchored axes having insideticklabel
41184+
var q0 = anchorAx.d2p(_tempNewRange[index]);
41185+
var q1 = anchorAx.d2p(_tempNewRange[otherIndex]);
41186+
var dir = sgn * (ax._id.charAt(0) === 'y' ? 1 : -1);
41187+
if (dir * p0 < dir * q0) {
41188+
p0 = q0;
41189+
newRange[index] = anchorAxRange[index] = _tempNewRange[index];
41190+
}
41191+
if (dir * p1 > dir * q1) {
41192+
p1 = q1;
41193+
newRange[otherIndex] = anchorAxRange[otherIndex] = _tempNewRange[otherIndex];
41194+
}
41195+
}
4118041196
var dist = Math.abs(p1 - p0);
4118141197
if (dist - move > 0) {
4118241198
dist -= move;
@@ -41185,7 +41201,7 @@ axes.drawLabels = function (gd, ax, opts) {
4118541201
move = 0;
4118641202
}
4118741203
if (ax._id.charAt(0) !== 'y') move = -move;
41188-
newRange[index] = anchorAx.p2d(anchorAx.d2p(anchorAx.range[index]) + sgn * move);
41204+
newRange[index] = anchorAx.p2d(anchorAx.d2p(anchorAxRange[index]) + sgn * move);
4118941205

4119041206
// handle partial ranges in insiderange
4119141207
if (anchorAx.autorange === 'min' || anchorAx.autorange === 'max reversed') {
@@ -67667,7 +67683,7 @@ function getSortFunc(opts, d2c) {
6766767683

6766867684

6766967685
// package version injected by `npm run preprocess`
67670-
exports.version = '2.29.0';
67686+
exports.version = '2.29.1';
6767167687

6767267688
/***/ }),
6767367689

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)