plotly.js 3.0.0-rc.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +51 -3
- package/CITATION.cff +2 -2
- package/CONTRIBUTING.md +1 -1
- package/README.md +3 -3
- package/dist/README.md +20 -20
- package/dist/plotly-basic.js +19 -11
- package/dist/plotly-basic.min.js +6 -6
- package/dist/plotly-cartesian.js +19 -11
- package/dist/plotly-cartesian.min.js +6 -6
- package/dist/plotly-finance.js +19 -11
- package/dist/plotly-finance.min.js +6 -6
- package/dist/plotly-geo-assets.js +3 -3
- package/dist/plotly-geo.js +19 -11
- package/dist/plotly-geo.min.js +6 -6
- package/dist/plotly-gl2d.js +19 -11
- package/dist/plotly-gl2d.min.js +6 -6
- package/dist/plotly-gl3d.js +19 -11
- package/dist/plotly-gl3d.min.js +6 -6
- package/dist/plotly-mapbox.js +19 -11
- package/dist/plotly-mapbox.min.js +6 -6
- package/dist/plotly-strict.js +58 -16
- package/dist/plotly-strict.min.js +7 -7
- package/dist/plotly-with-meta.js +58 -16
- package/dist/plotly.js +58 -16
- package/dist/plotly.min.js +47 -47
- package/dist/translation-keys.txt +1 -1
- package/package.json +1 -1
- package/src/components/fx/helpers.js +7 -2
- package/src/components/modebar/modebar.js +4 -3
- package/src/lib/dom.js +5 -3
- package/src/plot_api/plot_api.js +19 -1
- package/src/plot_api/subroutines.js +8 -0
- package/src/traces/sankey/render.js +156 -109
- package/src/version.js +1 -1
package/dist/plotly-finance.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js (finance) v3.0.0
|
|
3
|
-
* Copyright 2012-
|
|
2
|
+
* plotly.js (finance) v3.0.0
|
|
3
|
+
* Copyright 2012-2025, Plotly, Inc.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Licensed under the MIT license
|
|
6
6
|
*/
|
|
@@ -42,7 +42,7 @@ var Plotly = (() => {
|
|
|
42
42
|
var require_version = __commonJS({
|
|
43
43
|
"src/version.js"(exports) {
|
|
44
44
|
"use strict";
|
|
45
|
-
exports.version = "3.0.0
|
|
45
|
+
exports.version = "3.0.0";
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
|
|
@@ -12772,11 +12772,14 @@ var Plotly = (() => {
|
|
|
12772
12772
|
var style = document.getElementById(id);
|
|
12773
12773
|
if (style) removeElement(style);
|
|
12774
12774
|
}
|
|
12775
|
-
function setStyleOnHover(selector, activeSelector, childSelector, activeStyle, inactiveStyle) {
|
|
12775
|
+
function setStyleOnHover(selector, activeSelector, childSelector, activeStyle, inactiveStyle, element) {
|
|
12776
12776
|
var activeStyleParts = activeStyle.split(":");
|
|
12777
12777
|
var inactiveStyleParts = inactiveStyle.split(":");
|
|
12778
12778
|
var eventAddedAttrName = "data-btn-style-event-added";
|
|
12779
|
-
|
|
12779
|
+
if (!element) {
|
|
12780
|
+
element = document;
|
|
12781
|
+
}
|
|
12782
|
+
element.querySelectorAll(selector).forEach(function(el) {
|
|
12780
12783
|
if (!el.getAttribute(eventAddedAttrName)) {
|
|
12781
12784
|
el.addEventListener("mouseenter", function() {
|
|
12782
12785
|
var childEl = this.querySelector(childSelector);
|
|
@@ -13738,10 +13741,10 @@ var Plotly = (() => {
|
|
|
13738
13741
|
}
|
|
13739
13742
|
});
|
|
13740
13743
|
|
|
13741
|
-
// stylePlugin:/
|
|
13744
|
+
// stylePlugin:/Users/alex/plotly/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css
|
|
13742
13745
|
var maplibre_gl_exports = {};
|
|
13743
13746
|
var init_maplibre_gl2 = __esm({
|
|
13744
|
-
"stylePlugin:/
|
|
13747
|
+
"stylePlugin:/Users/alex/plotly/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css"() {
|
|
13745
13748
|
init_maplibre_gl();
|
|
13746
13749
|
}
|
|
13747
13750
|
});
|
|
@@ -22704,8 +22707,10 @@ var Plotly = (() => {
|
|
|
22704
22707
|
pointData.distance = 0;
|
|
22705
22708
|
} else pointData.index = false;
|
|
22706
22709
|
} else {
|
|
22707
|
-
|
|
22708
|
-
|
|
22710
|
+
var newDistance = Infinity;
|
|
22711
|
+
var len = cd.length;
|
|
22712
|
+
for (var i = 0; i < len; i++) {
|
|
22713
|
+
newDistance = distfn(cd[i]);
|
|
22709
22714
|
if (newDistance <= pointData.distance) {
|
|
22710
22715
|
pointData.index = i;
|
|
22711
22716
|
pointData.distance = newDistance;
|
|
@@ -37156,7 +37161,6 @@ var Plotly = (() => {
|
|
|
37156
37161
|
document.querySelectorAll(groupSelector).forEach(function(group) {
|
|
37157
37162
|
group.style.backgroundColor = style.bgcolor;
|
|
37158
37163
|
});
|
|
37159
|
-
Lib.setStyleOnHover("#" + modeBarId + " .modebar-btn", ".active", ".icon path", "fill: " + style.activecolor, "fill: " + style.color);
|
|
37160
37164
|
var needsNewButtons = !this.hasButtons(buttons);
|
|
37161
37165
|
var needsNewLogo = this.hasLogo !== context.displaylogo;
|
|
37162
37166
|
var needsNewLocale = this.locale !== context.locale;
|
|
@@ -37178,6 +37182,7 @@ var Plotly = (() => {
|
|
|
37178
37182
|
}
|
|
37179
37183
|
}
|
|
37180
37184
|
this.updateActiveButton();
|
|
37185
|
+
Lib.setStyleOnHover("#" + modeBarId + " .modebar-btn", ".active", ".icon path", "fill: " + style.activecolor, "fill: " + style.color, this.element);
|
|
37181
37186
|
};
|
|
37182
37187
|
proto.updateButtons = function(buttons) {
|
|
37183
37188
|
var _this = this;
|
|
@@ -46394,7 +46399,10 @@ var Plotly = (() => {
|
|
|
46394
46399
|
fullLayout._calcInverseTransform = calcInverseTransform;
|
|
46395
46400
|
fullLayout._calcInverseTransform(gd);
|
|
46396
46401
|
fullLayout._container = gd3.selectAll(".plot-container").data([0]);
|
|
46397
|
-
fullLayout._container.enter().insert("div", ":first-child").classed("plot-container", true).classed("plotly", true)
|
|
46402
|
+
fullLayout._container.enter().insert("div", ":first-child").classed("plot-container", true).classed("plotly", true).style({
|
|
46403
|
+
width: "100%",
|
|
46404
|
+
height: "100%"
|
|
46405
|
+
});
|
|
46398
46406
|
fullLayout._paperdiv = fullLayout._container.selectAll(".svg-container").data([0]);
|
|
46399
46407
|
fullLayout._paperdiv.enter().append("div").classed("user-select-none", true).classed("svg-container", true).style("position", "relative");
|
|
46400
46408
|
fullLayout._glcontainer = fullLayout._paperdiv.selectAll(".gl-container").data([{}]);
|