plotly.js 3.0.0-rc.1 → 3.0.0-rc.2

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,5 +1,5 @@
1
1
  /**
2
- * plotly.js (cartesian) v3.0.0-rc.1
2
+ * plotly.js (cartesian) v3.0.0-rc.2
3
3
  * Copyright 2012-2024, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -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-rc.1";
41
+ exports.version = "3.0.0-rc.2";
42
42
  }
43
43
  });
44
44
 
@@ -22700,8 +22700,10 @@ var Plotly = (() => {
22700
22700
  pointData.distance = 0;
22701
22701
  } else pointData.index = false;
22702
22702
  } else {
22703
- for (var i = 0; i < cd.length; i++) {
22704
- var newDistance = distfn(cd[i]);
22703
+ var newDistance = Infinity;
22704
+ var len = cd.length;
22705
+ for (var i = 0; i < len; i++) {
22706
+ newDistance = distfn(cd[i]);
22705
22707
  if (newDistance <= pointData.distance) {
22706
22708
  pointData.index = i;
22707
22709
  pointData.distance = newDistance;
@@ -46390,7 +46392,10 @@ var Plotly = (() => {
46390
46392
  fullLayout._calcInverseTransform = calcInverseTransform;
46391
46393
  fullLayout._calcInverseTransform(gd);
46392
46394
  fullLayout._container = gd3.selectAll(".plot-container").data([0]);
46393
- fullLayout._container.enter().insert("div", ":first-child").classed("plot-container", true).classed("plotly", true);
46395
+ fullLayout._container.enter().insert("div", ":first-child").classed("plot-container", true).classed("plotly", true).style({
46396
+ width: "100%",
46397
+ height: "100%"
46398
+ });
46394
46399
  fullLayout._paperdiv = fullLayout._container.selectAll(".svg-container").data([0]);
46395
46400
  fullLayout._paperdiv.enter().append("div").classed("user-select-none", true).classed("svg-container", true).style("position", "relative");
46396
46401
  fullLayout._glcontainer = fullLayout._paperdiv.selectAll(".gl-container").data([{}]);