Skip to content

Commit

Permalink
3.0.0-rc.1
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Nov 27, 2024
1 parent a143e3d commit 3cafc65
Show file tree
Hide file tree
Showing 24 changed files with 614 additions and 374 deletions.
50 changes: 25 additions & 25 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ The main plotly.js bundles weight in at:
| 10.3 MB | 4.4 MB | 1.4 MB | 10.6 MB |

#### CDN links
> https://cdn.plot.ly/plotly-3.0.0-rc.0.js
> https://cdn.plot.ly/plotly-3.0.0-rc.1.js
> https://cdn.plot.ly/plotly-3.0.0-rc.0.min.js
> https://cdn.plot.ly/plotly-3.0.0-rc.1.min.js

#### npm packages
Expand Down Expand Up @@ -91,12 +91,12 @@ The `basic` partial bundle contains trace modules `bar`, `pie` and `scatter`.

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.6 MB | 1008.4 kB | 349.2 kB |
| 2.6 MB | 1008.7 kB | 349.3 kB |

#### CDN links
> https://cdn.plot.ly/plotly-basic-3.0.0-rc.0.js
> https://cdn.plot.ly/plotly-basic-3.0.0-rc.1.js
> https://cdn.plot.ly/plotly-basic-3.0.0-rc.0.min.js
> https://cdn.plot.ly/plotly-basic-3.0.0-rc.1.min.js

#### npm packages
Expand All @@ -114,12 +114,12 @@ The `cartesian` partial bundle contains trace modules `bar`, `box`, `contour`, `

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.3 MB | 1.3 MB | 446.4 kB |
| 3.3 MB | 1.3 MB | 446.5 kB |

#### CDN links
> https://cdn.plot.ly/plotly-cartesian-3.0.0-rc.0.js
> https://cdn.plot.ly/plotly-cartesian-3.0.0-rc.1.js
> https://cdn.plot.ly/plotly-cartesian-3.0.0-rc.0.min.js
> https://cdn.plot.ly/plotly-cartesian-3.0.0-rc.1.min.js

#### npm packages
Expand All @@ -137,12 +137,12 @@ The `geo` partial bundle contains trace modules `choropleth`, `scatter` and `sca

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.9 MB | 1.1 MB | 398.7 kB |
| 2.9 MB | 1.1 MB | 398.8 kB |

#### CDN links
> https://cdn.plot.ly/plotly-geo-3.0.0-rc.0.js
> https://cdn.plot.ly/plotly-geo-3.0.0-rc.1.js
> https://cdn.plot.ly/plotly-geo-3.0.0-rc.0.min.js
> https://cdn.plot.ly/plotly-geo-3.0.0-rc.1.min.js

#### npm packages
Expand All @@ -160,12 +160,12 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`,

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 4.1 MB | 1.5 MB | 513.6 kB |
| 4.1 MB | 1.5 MB | 513.8 kB |

#### CDN links
> https://cdn.plot.ly/plotly-gl3d-3.0.0-rc.0.js
> https://cdn.plot.ly/plotly-gl3d-3.0.0-rc.1.js
> https://cdn.plot.ly/plotly-gl3d-3.0.0-rc.0.min.js
> https://cdn.plot.ly/plotly-gl3d-3.0.0-rc.1.min.js

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

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.4 MB | 1.3 MB | 468.9 kB |
| 3.4 MB | 1.3 MB | 469 kB |

#### CDN links
> https://cdn.plot.ly/plotly-gl2d-3.0.0-rc.0.js
> https://cdn.plot.ly/plotly-gl2d-3.0.0-rc.1.js
> https://cdn.plot.ly/plotly-gl2d-3.0.0-rc.0.min.js
> https://cdn.plot.ly/plotly-gl2d-3.0.0-rc.1.min.js

#### npm packages
Expand All @@ -206,12 +206,12 @@ The `mapbox` partial bundle contains trace modules `choroplethmapbox`, `densitym

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 4.4 MB | 1.8 MB | 564.3 kB |
| 4.4 MB | 1.8 MB | 564.4 kB |

#### CDN links
> https://cdn.plot.ly/plotly-mapbox-3.0.0-rc.0.js
> https://cdn.plot.ly/plotly-mapbox-3.0.0-rc.1.js
> https://cdn.plot.ly/plotly-mapbox-3.0.0-rc.0.min.js
> https://cdn.plot.ly/plotly-mapbox-3.0.0-rc.1.min.js

#### npm packages
Expand All @@ -229,12 +229,12 @@ The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funne

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.8 MB | 1.1 MB | 382.8 kB |
| 2.8 MB | 1.1 MB | 383 kB |

#### CDN links
> https://cdn.plot.ly/plotly-finance-3.0.0-rc.0.js
> https://cdn.plot.ly/plotly-finance-3.0.0-rc.1.js
> https://cdn.plot.ly/plotly-finance-3.0.0-rc.0.min.js
> https://cdn.plot.ly/plotly-finance-3.0.0-rc.1.min.js

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

#### CDN links
> https://cdn.plot.ly/plotly-strict-3.0.0-rc.0.js
> https://cdn.plot.ly/plotly-strict-3.0.0-rc.1.js
> https://cdn.plot.ly/plotly-strict-3.0.0-rc.0.min.js
> https://cdn.plot.ly/plotly-strict-3.0.0-rc.1.min.js

#### npm packages
Expand Down
40 changes: 32 additions & 8 deletions dist/plotly-basic.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* plotly.js (basic) v3.0.0-rc.0
* plotly.js (basic) v3.0.0-rc.1
* Copyright 2012-2024, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
Expand Down Expand Up @@ -38,7 +38,7 @@ var Plotly = (() => {
var require_version = __commonJS({
"src/version.js"(exports) {
"use strict";
exports.version = "3.0.0-rc.0";
exports.version = "3.0.0-rc.1";
}
});

Expand Down Expand Up @@ -45835,6 +45835,24 @@ var Plotly = (() => {
function getLayoutValObject(parts) {
return PlotSchema.getLayoutValObject(newFullLayout, parts);
}
for (var key in newFullLayout) {
if (!key.startsWith("xaxis") && !key.startsWith("yaxis")) {
continue;
}
if (!oldFullLayout[key]) {
continue;
}
var newDomain = newFullLayout[key].domain;
var oldDomain = oldFullLayout[key].domain;
var oldInputDomain = oldFullLayout[key]._inputDomain;
if (oldFullLayout[key]._inputDomain) {
if (newDomain[0] === oldInputDomain[0] && newDomain[1] === oldInputDomain[1]) {
newFullLayout[key].domain = oldFullLayout[key].domain;
} else if (newDomain[0] !== oldDomain[0] || newDomain[1] !== oldDomain[1]) {
newFullLayout[key]._inputDomain = null;
}
}
}
var diffOpts = {
getValObject: getLayoutValObject,
flags,
Expand Down Expand Up @@ -45874,9 +45892,6 @@ var Plotly = (() => {
if (AX_RANGE_RE.test(astr) || AX_AUTORANGE_RE.test(astr)) {
flags.rangesAltered[outerparts[0]] = 1;
}
if (AX_DOMAIN_RE.test(astr)) {
nestedProperty(newContainer, "_inputDomain").set(null);
}
if (key === "datarevision") {
flags.newDataRevision = 1;
}
Expand Down Expand Up @@ -54107,8 +54122,14 @@ var Plotly = (() => {
gd
);
}
var imagesBelow = fullLayout._imageLowerLayer.selectAll("image").data(imageDataBelow);
var imagesAbove = fullLayout._imageUpperLayer.selectAll("image").data(imageDataAbove);
function imgDataFunc(d) {
return [d.xref, d.x, d.sizex, d.yref, d.y, d.sizey].join("_");
}
function imgSort(a, b) {
return a._index - b._index;
}
var imagesBelow = fullLayout._imageLowerLayer.selectAll("image").data(imageDataBelow, imgDataFunc);
var imagesAbove = fullLayout._imageUpperLayer.selectAll("image").data(imageDataAbove, imgDataFunc);
imagesBelow.enter().append("image");
imagesAbove.enter().append("image");
imagesBelow.exit().remove();
Expand All @@ -54121,18 +54142,21 @@ var Plotly = (() => {
setImage.bind(this)(d);
applyAttributes.bind(this)(d);
});
imagesBelow.sort(imgSort);
imagesAbove.sort(imgSort);
var allSubplots = Object.keys(fullLayout._plots);
for (i = 0; i < allSubplots.length; i++) {
subplot = allSubplots[i];
var subplotObj = fullLayout._plots[subplot];
if (!subplotObj.imagelayer) continue;
var imagesOnSubplot = subplotObj.imagelayer.selectAll("image").data(imageDataSubplot[subplot] || []);
var imagesOnSubplot = subplotObj.imagelayer.selectAll("image").data(imageDataSubplot[subplot] || [], imgDataFunc);
imagesOnSubplot.enter().append("image");
imagesOnSubplot.exit().remove();
imagesOnSubplot.each(function(d) {
setImage.bind(this)(d);
applyAttributes.bind(this)(d);
});
imagesOnSubplot.sort(imgSort);
}
};
}
Expand Down
16 changes: 8 additions & 8 deletions dist/plotly-basic.min.js

Large diffs are not rendered by default.

40 changes: 32 additions & 8 deletions dist/plotly-cartesian.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* plotly.js (cartesian) v3.0.0-rc.0
* plotly.js (cartesian) v3.0.0-rc.1
* Copyright 2012-2024, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
Expand Down Expand Up @@ -38,7 +38,7 @@ var Plotly = (() => {
var require_version = __commonJS({
"src/version.js"(exports) {
"use strict";
exports.version = "3.0.0-rc.0";
exports.version = "3.0.0-rc.1";
}
});

Expand Down Expand Up @@ -45835,6 +45835,24 @@ var Plotly = (() => {
function getLayoutValObject(parts) {
return PlotSchema.getLayoutValObject(newFullLayout, parts);
}
for (var key in newFullLayout) {
if (!key.startsWith("xaxis") && !key.startsWith("yaxis")) {
continue;
}
if (!oldFullLayout[key]) {
continue;
}
var newDomain = newFullLayout[key].domain;
var oldDomain = oldFullLayout[key].domain;
var oldInputDomain = oldFullLayout[key]._inputDomain;
if (oldFullLayout[key]._inputDomain) {
if (newDomain[0] === oldInputDomain[0] && newDomain[1] === oldInputDomain[1]) {
newFullLayout[key].domain = oldFullLayout[key].domain;
} else if (newDomain[0] !== oldDomain[0] || newDomain[1] !== oldDomain[1]) {
newFullLayout[key]._inputDomain = null;
}
}
}
var diffOpts = {
getValObject: getLayoutValObject,
flags,
Expand Down Expand Up @@ -45874,9 +45892,6 @@ var Plotly = (() => {
if (AX_RANGE_RE.test(astr) || AX_AUTORANGE_RE.test(astr)) {
flags.rangesAltered[outerparts[0]] = 1;
}
if (AX_DOMAIN_RE.test(astr)) {
nestedProperty(newContainer, "_inputDomain").set(null);
}
if (key === "datarevision") {
flags.newDataRevision = 1;
}
Expand Down Expand Up @@ -54107,8 +54122,14 @@ var Plotly = (() => {
gd
);
}
var imagesBelow = fullLayout._imageLowerLayer.selectAll("image").data(imageDataBelow);
var imagesAbove = fullLayout._imageUpperLayer.selectAll("image").data(imageDataAbove);
function imgDataFunc(d) {
return [d.xref, d.x, d.sizex, d.yref, d.y, d.sizey].join("_");
}
function imgSort(a, b) {
return a._index - b._index;
}
var imagesBelow = fullLayout._imageLowerLayer.selectAll("image").data(imageDataBelow, imgDataFunc);
var imagesAbove = fullLayout._imageUpperLayer.selectAll("image").data(imageDataAbove, imgDataFunc);
imagesBelow.enter().append("image");
imagesAbove.enter().append("image");
imagesBelow.exit().remove();
Expand All @@ -54121,18 +54142,21 @@ var Plotly = (() => {
setImage.bind(this)(d);
applyAttributes.bind(this)(d);
});
imagesBelow.sort(imgSort);
imagesAbove.sort(imgSort);
var allSubplots = Object.keys(fullLayout._plots);
for (i = 0; i < allSubplots.length; i++) {
subplot = allSubplots[i];
var subplotObj = fullLayout._plots[subplot];
if (!subplotObj.imagelayer) continue;
var imagesOnSubplot = subplotObj.imagelayer.selectAll("image").data(imageDataSubplot[subplot] || []);
var imagesOnSubplot = subplotObj.imagelayer.selectAll("image").data(imageDataSubplot[subplot] || [], imgDataFunc);
imagesOnSubplot.enter().append("image");
imagesOnSubplot.exit().remove();
imagesOnSubplot.each(function(d) {
setImage.bind(this)(d);
applyAttributes.bind(this)(d);
});
imagesOnSubplot.sort(imgSort);
}
};
}
Expand Down
48 changes: 24 additions & 24 deletions dist/plotly-cartesian.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 3cafc65

Please sign in to comment.