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.
@@ -1,6 +1,6 @@
1
1
  /**
2
- * plotly.js (finance) v3.0.0-rc.2
3
- * Copyright 2012-2024, Plotly, Inc.
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-rc.2";
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
- document.querySelectorAll(selector).forEach(function(el) {
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:/home/solarch/plotly/webgl/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css
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:/home/solarch/plotly/webgl/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css"() {
13747
+ "stylePlugin:/Users/alex/plotly/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css"() {
13745
13748
  init_maplibre_gl();
13746
13749
  }
13747
13750
  });
@@ -37158,7 +37161,6 @@ var Plotly = (() => {
37158
37161
  document.querySelectorAll(groupSelector).forEach(function(group) {
37159
37162
  group.style.backgroundColor = style.bgcolor;
37160
37163
  });
37161
- Lib.setStyleOnHover("#" + modeBarId + " .modebar-btn", ".active", ".icon path", "fill: " + style.activecolor, "fill: " + style.color);
37162
37164
  var needsNewButtons = !this.hasButtons(buttons);
37163
37165
  var needsNewLogo = this.hasLogo !== context.displaylogo;
37164
37166
  var needsNewLocale = this.locale !== context.locale;
@@ -37180,6 +37182,7 @@ var Plotly = (() => {
37180
37182
  }
37181
37183
  }
37182
37184
  this.updateActiveButton();
37185
+ Lib.setStyleOnHover("#" + modeBarId + " .modebar-btn", ".active", ".icon path", "fill: " + style.activecolor, "fill: " + style.color, this.element);
37183
37186
  };
37184
37187
  proto.updateButtons = function(buttons) {
37185
37188
  var _this = this;