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-cartesian.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js (cartesian) v3.0.0
|
|
3
|
-
* Copyright 2012-
|
|
2
|
+
* plotly.js (cartesian) v3.0.0
|
|
3
|
+
* Copyright 2012-2025, Plotly, Inc.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Licensed under the MIT license
|
|
6
6
|
*/
|
|
@@ -38,7 +38,7 @@ var Plotly = (() => {
|
|
|
38
38
|
var require_version = __commonJS({
|
|
39
39
|
"src/version.js"(exports) {
|
|
40
40
|
"use strict";
|
|
41
|
-
exports.version = "3.0.0
|
|
41
|
+
exports.version = "3.0.0";
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
|
|
@@ -12768,11 +12768,14 @@ var Plotly = (() => {
|
|
|
12768
12768
|
var style = document.getElementById(id);
|
|
12769
12769
|
if (style) removeElement(style);
|
|
12770
12770
|
}
|
|
12771
|
-
function setStyleOnHover(selector, activeSelector, childSelector, activeStyle, inactiveStyle) {
|
|
12771
|
+
function setStyleOnHover(selector, activeSelector, childSelector, activeStyle, inactiveStyle, element) {
|
|
12772
12772
|
var activeStyleParts = activeStyle.split(":");
|
|
12773
12773
|
var inactiveStyleParts = inactiveStyle.split(":");
|
|
12774
12774
|
var eventAddedAttrName = "data-btn-style-event-added";
|
|
12775
|
-
|
|
12775
|
+
if (!element) {
|
|
12776
|
+
element = document;
|
|
12777
|
+
}
|
|
12778
|
+
element.querySelectorAll(selector).forEach(function(el) {
|
|
12776
12779
|
if (!el.getAttribute(eventAddedAttrName)) {
|
|
12777
12780
|
el.addEventListener("mouseenter", function() {
|
|
12778
12781
|
var childEl = this.querySelector(childSelector);
|
|
@@ -13734,10 +13737,10 @@ var Plotly = (() => {
|
|
|
13734
13737
|
}
|
|
13735
13738
|
});
|
|
13736
13739
|
|
|
13737
|
-
// stylePlugin:/
|
|
13740
|
+
// stylePlugin:/Users/alex/plotly/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css
|
|
13738
13741
|
var maplibre_gl_exports = {};
|
|
13739
13742
|
var init_maplibre_gl2 = __esm({
|
|
13740
|
-
"stylePlugin:/
|
|
13743
|
+
"stylePlugin:/Users/alex/plotly/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css"() {
|
|
13741
13744
|
init_maplibre_gl();
|
|
13742
13745
|
}
|
|
13743
13746
|
});
|
|
@@ -37154,7 +37157,6 @@ var Plotly = (() => {
|
|
|
37154
37157
|
document.querySelectorAll(groupSelector).forEach(function(group) {
|
|
37155
37158
|
group.style.backgroundColor = style.bgcolor;
|
|
37156
37159
|
});
|
|
37157
|
-
Lib.setStyleOnHover("#" + modeBarId + " .modebar-btn", ".active", ".icon path", "fill: " + style.activecolor, "fill: " + style.color);
|
|
37158
37160
|
var needsNewButtons = !this.hasButtons(buttons);
|
|
37159
37161
|
var needsNewLogo = this.hasLogo !== context.displaylogo;
|
|
37160
37162
|
var needsNewLocale = this.locale !== context.locale;
|
|
@@ -37176,6 +37178,7 @@ var Plotly = (() => {
|
|
|
37176
37178
|
}
|
|
37177
37179
|
}
|
|
37178
37180
|
this.updateActiveButton();
|
|
37181
|
+
Lib.setStyleOnHover("#" + modeBarId + " .modebar-btn", ".active", ".icon path", "fill: " + style.activecolor, "fill: " + style.color, this.element);
|
|
37179
37182
|
};
|
|
37180
37183
|
proto.updateButtons = function(buttons) {
|
|
37181
37184
|
var _this = this;
|