Skip to content

Commit 3cafc65

Browse files
committed
3.0.0-rc.1
1 parent a143e3d commit 3cafc65

24 files changed

+614
-374
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
| 10.3 MB | 4.4 MB | 1.4 MB | 10.6 MB |
4747

4848
#### CDN links
49-
> https://cdn.plot.ly/plotly-3.0.0-rc.0.js
49+
> https://cdn.plot.ly/plotly-3.0.0-rc.1.js
5050
51-
> https://cdn.plot.ly/plotly-3.0.0-rc.0.min.js
51+
> https://cdn.plot.ly/plotly-3.0.0-rc.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 | 1008.4 kB | 349.2 kB |
94+
| 2.6 MB | 1008.7 kB | 349.3 kB |
9595

9696
#### CDN links
97-
> https://cdn.plot.ly/plotly-basic-3.0.0-rc.0.js
97+
> https://cdn.plot.ly/plotly-basic-3.0.0-rc.1.js
9898
99-
> https://cdn.plot.ly/plotly-basic-3.0.0-rc.0.min.js
99+
> https://cdn.plot.ly/plotly-basic-3.0.0-rc.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.3 MB | 446.4 kB |
117+
| 3.3 MB | 1.3 MB | 446.5 kB |
118118

119119
#### CDN links
120-
> https://cdn.plot.ly/plotly-cartesian-3.0.0-rc.0.js
120+
> https://cdn.plot.ly/plotly-cartesian-3.0.0-rc.1.js
121121
122-
> https://cdn.plot.ly/plotly-cartesian-3.0.0-rc.0.min.js
122+
> https://cdn.plot.ly/plotly-cartesian-3.0.0-rc.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-
| 2.9 MB | 1.1 MB | 398.7 kB |
140+
| 2.9 MB | 1.1 MB | 398.8 kB |
141141

142142
#### CDN links
143-
> https://cdn.plot.ly/plotly-geo-3.0.0-rc.0.js
143+
> https://cdn.plot.ly/plotly-geo-3.0.0-rc.1.js
144144
145-
> https://cdn.plot.ly/plotly-geo-3.0.0-rc.0.min.js
145+
> https://cdn.plot.ly/plotly-geo-3.0.0-rc.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-
| 4.1 MB | 1.5 MB | 513.6 kB |
163+
| 4.1 MB | 1.5 MB | 513.8 kB |
164164

165165
#### CDN links
166-
> https://cdn.plot.ly/plotly-gl3d-3.0.0-rc.0.js
166+
> https://cdn.plot.ly/plotly-gl3d-3.0.0-rc.1.js
167167
168-
> https://cdn.plot.ly/plotly-gl3d-3.0.0-rc.0.min.js
168+
> https://cdn.plot.ly/plotly-gl3d-3.0.0-rc.1.min.js
169169
170170

171171
#### npm packages
@@ -183,12 +183,12 @@ The `gl2d` partial bundle contains trace modules `parcoords`, `scatter`, `scatte
183183

184184
| Raw size | Minified size | Minified + gzip size |
185185
|------|-----------------|------------------------|
186-
| 3.4 MB | 1.3 MB | 468.9 kB |
186+
| 3.4 MB | 1.3 MB | 469 kB |
187187

188188
#### CDN links
189-
> https://cdn.plot.ly/plotly-gl2d-3.0.0-rc.0.js
189+
> https://cdn.plot.ly/plotly-gl2d-3.0.0-rc.1.js
190190
191-
> https://cdn.plot.ly/plotly-gl2d-3.0.0-rc.0.min.js
191+
> https://cdn.plot.ly/plotly-gl2d-3.0.0-rc.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.8 MB | 564.3 kB |
209+
| 4.4 MB | 1.8 MB | 564.4 kB |
210210

211211
#### CDN links
212-
> https://cdn.plot.ly/plotly-mapbox-3.0.0-rc.0.js
212+
> https://cdn.plot.ly/plotly-mapbox-3.0.0-rc.1.js
213213
214-
> https://cdn.plot.ly/plotly-mapbox-3.0.0-rc.0.min.js
214+
> https://cdn.plot.ly/plotly-mapbox-3.0.0-rc.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.1 MB | 382.8 kB |
232+
| 2.8 MB | 1.1 MB | 383 kB |
233233

234234
#### CDN links
235-
> https://cdn.plot.ly/plotly-finance-3.0.0-rc.0.js
235+
> https://cdn.plot.ly/plotly-finance-3.0.0-rc.1.js
236236
237-
> https://cdn.plot.ly/plotly-finance-3.0.0-rc.0.min.js
237+
> https://cdn.plot.ly/plotly-finance-3.0.0-rc.1.min.js
238238
239239

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

257257
#### CDN links
258-
> https://cdn.plot.ly/plotly-strict-3.0.0-rc.0.js
258+
> https://cdn.plot.ly/plotly-strict-3.0.0-rc.1.js
259259
260-
> https://cdn.plot.ly/plotly-strict-3.0.0-rc.0.min.js
260+
> https://cdn.plot.ly/plotly-strict-3.0.0-rc.1.min.js
261261
262262

263263
#### npm packages

dist/plotly-basic.js

+32-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v3.0.0-rc.0
2+
* plotly.js (basic) v3.0.0-rc.1
33
* Copyright 2012-2024, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -38,7 +38,7 @@ var Plotly = (() => {
3838
var require_version = __commonJS({
3939
"src/version.js"(exports) {
4040
"use strict";
41-
exports.version = "3.0.0-rc.0";
41+
exports.version = "3.0.0-rc.1";
4242
}
4343
});
4444

@@ -45835,6 +45835,24 @@ var Plotly = (() => {
4583545835
function getLayoutValObject(parts) {
4583645836
return PlotSchema.getLayoutValObject(newFullLayout, parts);
4583745837
}
45838+
for (var key in newFullLayout) {
45839+
if (!key.startsWith("xaxis") && !key.startsWith("yaxis")) {
45840+
continue;
45841+
}
45842+
if (!oldFullLayout[key]) {
45843+
continue;
45844+
}
45845+
var newDomain = newFullLayout[key].domain;
45846+
var oldDomain = oldFullLayout[key].domain;
45847+
var oldInputDomain = oldFullLayout[key]._inputDomain;
45848+
if (oldFullLayout[key]._inputDomain) {
45849+
if (newDomain[0] === oldInputDomain[0] && newDomain[1] === oldInputDomain[1]) {
45850+
newFullLayout[key].domain = oldFullLayout[key].domain;
45851+
} else if (newDomain[0] !== oldDomain[0] || newDomain[1] !== oldDomain[1]) {
45852+
newFullLayout[key]._inputDomain = null;
45853+
}
45854+
}
45855+
}
4583845856
var diffOpts = {
4583945857
getValObject: getLayoutValObject,
4584045858
flags,
@@ -45874,9 +45892,6 @@ var Plotly = (() => {
4587445892
if (AX_RANGE_RE.test(astr) || AX_AUTORANGE_RE.test(astr)) {
4587545893
flags.rangesAltered[outerparts[0]] = 1;
4587645894
}
45877-
if (AX_DOMAIN_RE.test(astr)) {
45878-
nestedProperty(newContainer, "_inputDomain").set(null);
45879-
}
4588045895
if (key === "datarevision") {
4588145896
flags.newDataRevision = 1;
4588245897
}
@@ -54107,8 +54122,14 @@ var Plotly = (() => {
5410754122
gd
5410854123
);
5410954124
}
54110-
var imagesBelow = fullLayout._imageLowerLayer.selectAll("image").data(imageDataBelow);
54111-
var imagesAbove = fullLayout._imageUpperLayer.selectAll("image").data(imageDataAbove);
54125+
function imgDataFunc(d) {
54126+
return [d.xref, d.x, d.sizex, d.yref, d.y, d.sizey].join("_");
54127+
}
54128+
function imgSort(a, b) {
54129+
return a._index - b._index;
54130+
}
54131+
var imagesBelow = fullLayout._imageLowerLayer.selectAll("image").data(imageDataBelow, imgDataFunc);
54132+
var imagesAbove = fullLayout._imageUpperLayer.selectAll("image").data(imageDataAbove, imgDataFunc);
5411254133
imagesBelow.enter().append("image");
5411354134
imagesAbove.enter().append("image");
5411454135
imagesBelow.exit().remove();
@@ -54121,18 +54142,21 @@ var Plotly = (() => {
5412154142
setImage.bind(this)(d);
5412254143
applyAttributes.bind(this)(d);
5412354144
});
54145+
imagesBelow.sort(imgSort);
54146+
imagesAbove.sort(imgSort);
5412454147
var allSubplots = Object.keys(fullLayout._plots);
5412554148
for (i = 0; i < allSubplots.length; i++) {
5412654149
subplot = allSubplots[i];
5412754150
var subplotObj = fullLayout._plots[subplot];
5412854151
if (!subplotObj.imagelayer) continue;
54129-
var imagesOnSubplot = subplotObj.imagelayer.selectAll("image").data(imageDataSubplot[subplot] || []);
54152+
var imagesOnSubplot = subplotObj.imagelayer.selectAll("image").data(imageDataSubplot[subplot] || [], imgDataFunc);
5413054153
imagesOnSubplot.enter().append("image");
5413154154
imagesOnSubplot.exit().remove();
5413254155
imagesOnSubplot.each(function(d) {
5413354156
setImage.bind(this)(d);
5413454157
applyAttributes.bind(this)(d);
5413554158
});
54159+
imagesOnSubplot.sort(imgSort);
5413654160
}
5413754161
};
5413854162
}

dist/plotly-basic.min.js

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

dist/plotly-cartesian.js

+32-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (cartesian) v3.0.0-rc.0
2+
* plotly.js (cartesian) v3.0.0-rc.1
33
* Copyright 2012-2024, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -38,7 +38,7 @@ var Plotly = (() => {
3838
var require_version = __commonJS({
3939
"src/version.js"(exports) {
4040
"use strict";
41-
exports.version = "3.0.0-rc.0";
41+
exports.version = "3.0.0-rc.1";
4242
}
4343
});
4444

@@ -45835,6 +45835,24 @@ var Plotly = (() => {
4583545835
function getLayoutValObject(parts) {
4583645836
return PlotSchema.getLayoutValObject(newFullLayout, parts);
4583745837
}
45838+
for (var key in newFullLayout) {
45839+
if (!key.startsWith("xaxis") && !key.startsWith("yaxis")) {
45840+
continue;
45841+
}
45842+
if (!oldFullLayout[key]) {
45843+
continue;
45844+
}
45845+
var newDomain = newFullLayout[key].domain;
45846+
var oldDomain = oldFullLayout[key].domain;
45847+
var oldInputDomain = oldFullLayout[key]._inputDomain;
45848+
if (oldFullLayout[key]._inputDomain) {
45849+
if (newDomain[0] === oldInputDomain[0] && newDomain[1] === oldInputDomain[1]) {
45850+
newFullLayout[key].domain = oldFullLayout[key].domain;
45851+
} else if (newDomain[0] !== oldDomain[0] || newDomain[1] !== oldDomain[1]) {
45852+
newFullLayout[key]._inputDomain = null;
45853+
}
45854+
}
45855+
}
4583845856
var diffOpts = {
4583945857
getValObject: getLayoutValObject,
4584045858
flags,
@@ -45874,9 +45892,6 @@ var Plotly = (() => {
4587445892
if (AX_RANGE_RE.test(astr) || AX_AUTORANGE_RE.test(astr)) {
4587545893
flags.rangesAltered[outerparts[0]] = 1;
4587645894
}
45877-
if (AX_DOMAIN_RE.test(astr)) {
45878-
nestedProperty(newContainer, "_inputDomain").set(null);
45879-
}
4588045895
if (key === "datarevision") {
4588145896
flags.newDataRevision = 1;
4588245897
}
@@ -54107,8 +54122,14 @@ var Plotly = (() => {
5410754122
gd
5410854123
);
5410954124
}
54110-
var imagesBelow = fullLayout._imageLowerLayer.selectAll("image").data(imageDataBelow);
54111-
var imagesAbove = fullLayout._imageUpperLayer.selectAll("image").data(imageDataAbove);
54125+
function imgDataFunc(d) {
54126+
return [d.xref, d.x, d.sizex, d.yref, d.y, d.sizey].join("_");
54127+
}
54128+
function imgSort(a, b) {
54129+
return a._index - b._index;
54130+
}
54131+
var imagesBelow = fullLayout._imageLowerLayer.selectAll("image").data(imageDataBelow, imgDataFunc);
54132+
var imagesAbove = fullLayout._imageUpperLayer.selectAll("image").data(imageDataAbove, imgDataFunc);
5411254133
imagesBelow.enter().append("image");
5411354134
imagesAbove.enter().append("image");
5411454135
imagesBelow.exit().remove();
@@ -54121,18 +54142,21 @@ var Plotly = (() => {
5412154142
setImage.bind(this)(d);
5412254143
applyAttributes.bind(this)(d);
5412354144
});
54145+
imagesBelow.sort(imgSort);
54146+
imagesAbove.sort(imgSort);
5412454147
var allSubplots = Object.keys(fullLayout._plots);
5412554148
for (i = 0; i < allSubplots.length; i++) {
5412654149
subplot = allSubplots[i];
5412754150
var subplotObj = fullLayout._plots[subplot];
5412854151
if (!subplotObj.imagelayer) continue;
54129-
var imagesOnSubplot = subplotObj.imagelayer.selectAll("image").data(imageDataSubplot[subplot] || []);
54152+
var imagesOnSubplot = subplotObj.imagelayer.selectAll("image").data(imageDataSubplot[subplot] || [], imgDataFunc);
5413054153
imagesOnSubplot.enter().append("image");
5413154154
imagesOnSubplot.exit().remove();
5413254155
imagesOnSubplot.each(function(d) {
5413354156
setImage.bind(this)(d);
5413454157
applyAttributes.bind(this)(d);
5413554158
});
54159+
imagesOnSubplot.sort(imgSort);
5413654160
}
5413754161
};
5413854162
}

dist/plotly-cartesian.min.js

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

0 commit comments

Comments
 (0)