plotly.js 3.0.0-rc.2 → 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 +4 -4
- package/CITATION.cff +2 -2
- package/README.md +3 -3
- package/dist/README.md +18 -18
- package/dist/plotly-basic.js +11 -8
- package/dist/plotly-basic.min.js +5 -5
- package/dist/plotly-cartesian.js +11 -8
- package/dist/plotly-cartesian.min.js +5 -5
- package/dist/plotly-finance.js +11 -8
- package/dist/plotly-finance.min.js +5 -5
- package/dist/plotly-geo-assets.js +3 -3
- package/dist/plotly-geo.js +11 -8
- package/dist/plotly-geo.min.js +5 -5
- package/dist/plotly-gl2d.js +11 -8
- package/dist/plotly-gl2d.min.js +5 -5
- package/dist/plotly-gl3d.js +11 -8
- package/dist/plotly-gl3d.min.js +5 -5
- package/dist/plotly-mapbox.js +11 -8
- package/dist/plotly-mapbox.min.js +5 -5
- package/dist/plotly-strict.js +11 -8
- package/dist/plotly-strict.min.js +5 -5
- package/dist/plotly-with-meta.js +11 -8
- package/dist/plotly.js +11 -8
- package/dist/plotly.min.js +5 -5
- package/dist/translation-keys.txt +1 -1
- package/package.json +1 -1
- package/src/components/modebar/modebar.js +4 -3
- package/src/lib/dom.js +5 -3
- package/src/version.js +1 -1
package/dist/plotly-strict.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js (strict) v3.0.0
|
|
3
|
-
* Copyright 2012-
|
|
2
|
+
* plotly.js (strict) v3.0.0
|
|
3
|
+
* Copyright 2012-2025, Plotly, Inc.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Licensed under the MIT license
|
|
6
6
|
*/
|
|
@@ -59,7 +59,7 @@ var Plotly = (() => {
|
|
|
59
59
|
var require_version = __commonJS({
|
|
60
60
|
"src/version.js"(exports) {
|
|
61
61
|
"use strict";
|
|
62
|
-
exports.version = "3.0.0
|
|
62
|
+
exports.version = "3.0.0";
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
|
|
@@ -12789,11 +12789,14 @@ var Plotly = (() => {
|
|
|
12789
12789
|
var style = document.getElementById(id);
|
|
12790
12790
|
if (style) removeElement(style);
|
|
12791
12791
|
}
|
|
12792
|
-
function setStyleOnHover(selector, activeSelector, childSelector, activeStyle, inactiveStyle) {
|
|
12792
|
+
function setStyleOnHover(selector, activeSelector, childSelector, activeStyle, inactiveStyle, element) {
|
|
12793
12793
|
var activeStyleParts = activeStyle.split(":");
|
|
12794
12794
|
var inactiveStyleParts = inactiveStyle.split(":");
|
|
12795
12795
|
var eventAddedAttrName = "data-btn-style-event-added";
|
|
12796
|
-
|
|
12796
|
+
if (!element) {
|
|
12797
|
+
element = document;
|
|
12798
|
+
}
|
|
12799
|
+
element.querySelectorAll(selector).forEach(function(el) {
|
|
12797
12800
|
if (!el.getAttribute(eventAddedAttrName)) {
|
|
12798
12801
|
el.addEventListener("mouseenter", function() {
|
|
12799
12802
|
var childEl = this.querySelector(childSelector);
|
|
@@ -13755,10 +13758,10 @@ var Plotly = (() => {
|
|
|
13755
13758
|
}
|
|
13756
13759
|
});
|
|
13757
13760
|
|
|
13758
|
-
// stylePlugin:/
|
|
13761
|
+
// stylePlugin:/Users/alex/plotly/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css
|
|
13759
13762
|
var maplibre_gl_exports = {};
|
|
13760
13763
|
var init_maplibre_gl2 = __esm({
|
|
13761
|
-
"stylePlugin:/
|
|
13764
|
+
"stylePlugin:/Users/alex/plotly/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css"() {
|
|
13762
13765
|
init_maplibre_gl();
|
|
13763
13766
|
}
|
|
13764
13767
|
});
|
|
@@ -37175,7 +37178,6 @@ var Plotly = (() => {
|
|
|
37175
37178
|
document.querySelectorAll(groupSelector).forEach(function(group) {
|
|
37176
37179
|
group.style.backgroundColor = style.bgcolor;
|
|
37177
37180
|
});
|
|
37178
|
-
Lib.setStyleOnHover("#" + modeBarId + " .modebar-btn", ".active", ".icon path", "fill: " + style.activecolor, "fill: " + style.color);
|
|
37179
37181
|
var needsNewButtons = !this.hasButtons(buttons);
|
|
37180
37182
|
var needsNewLogo = this.hasLogo !== context.displaylogo;
|
|
37181
37183
|
var needsNewLocale = this.locale !== context.locale;
|
|
@@ -37197,6 +37199,7 @@ var Plotly = (() => {
|
|
|
37197
37199
|
}
|
|
37198
37200
|
}
|
|
37199
37201
|
this.updateActiveButton();
|
|
37202
|
+
Lib.setStyleOnHover("#" + modeBarId + " .modebar-btn", ".active", ".icon path", "fill: " + style.activecolor, "fill: " + style.color, this.element);
|
|
37200
37203
|
};
|
|
37201
37204
|
proto.updateButtons = function(buttons) {
|
|
37202
37205
|
var _this = this;
|