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 (strict) v3.0.0-rc.2
3
- * Copyright 2012-2024, Plotly, Inc.
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-rc.2";
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
- document.querySelectorAll(selector).forEach(function(el) {
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:/home/solarch/plotly/webgl/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css
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:/home/solarch/plotly/webgl/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css"() {
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;