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 v3.0.0-rc.2
3
- * Copyright 2012-2024, Plotly, Inc.
2
+ * plotly.js 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
 
@@ -13365,11 +13365,14 @@ var Plotly = (() => {
13365
13365
  var style = document.getElementById(id);
13366
13366
  if (style) removeElement(style);
13367
13367
  }
13368
- function setStyleOnHover(selector, activeSelector, childSelector, activeStyle, inactiveStyle) {
13368
+ function setStyleOnHover(selector, activeSelector, childSelector, activeStyle, inactiveStyle, element) {
13369
13369
  var activeStyleParts = activeStyle.split(":");
13370
13370
  var inactiveStyleParts = inactiveStyle.split(":");
13371
13371
  var eventAddedAttrName = "data-btn-style-event-added";
13372
- document.querySelectorAll(selector).forEach(function(el) {
13372
+ if (!element) {
13373
+ element = document;
13374
+ }
13375
+ element.querySelectorAll(selector).forEach(function(el) {
13373
13376
  if (!el.getAttribute(eventAddedAttrName)) {
13374
13377
  el.addEventListener("mouseenter", function() {
13375
13378
  var childEl = this.querySelector(childSelector);
@@ -14825,10 +14828,10 @@ var Plotly = (() => {
14825
14828
  }
14826
14829
  });
14827
14830
 
14828
- // stylePlugin:/home/solarch/plotly/webgl/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css
14831
+ // stylePlugin:/Users/alex/plotly/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css
14829
14832
  var maplibre_gl_exports = {};
14830
14833
  var init_maplibre_gl2 = __esm({
14831
- "stylePlugin:/home/solarch/plotly/webgl/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css"() {
14834
+ "stylePlugin:/Users/alex/plotly/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css"() {
14832
14835
  init_maplibre_gl();
14833
14836
  }
14834
14837
  });
@@ -39178,7 +39181,6 @@ var Plotly = (() => {
39178
39181
  document.querySelectorAll(groupSelector).forEach(function(group) {
39179
39182
  group.style.backgroundColor = style.bgcolor;
39180
39183
  });
39181
- Lib.setStyleOnHover("#" + modeBarId + " .modebar-btn", ".active", ".icon path", "fill: " + style.activecolor, "fill: " + style.color);
39182
39184
  var needsNewButtons = !this.hasButtons(buttons);
39183
39185
  var needsNewLogo = this.hasLogo !== context.displaylogo;
39184
39186
  var needsNewLocale = this.locale !== context.locale;
@@ -39200,6 +39202,7 @@ var Plotly = (() => {
39200
39202
  }
39201
39203
  }
39202
39204
  this.updateActiveButton();
39205
+ Lib.setStyleOnHover("#" + modeBarId + " .modebar-btn", ".active", ".icon path", "fill: " + style.activecolor, "fill: " + style.color, this.element);
39203
39206
  };
39204
39207
  proto.updateButtons = function(buttons) {
39205
39208
  var _this = this;
package/dist/plotly.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * plotly.js v3.0.0-rc.2
3
- * Copyright 2012-2024, Plotly, Inc.
2
+ * plotly.js 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;