@equinor/esv-intersection 3.0.3 → 3.0.6

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.
Files changed (141) hide show
  1. package/README.md +18 -3
  2. package/dist/components/axis.d.ts +1 -0
  3. package/dist/components/axis.d.ts.map +1 -0
  4. package/dist/components/index.d.ts +1 -0
  5. package/dist/components/index.d.ts.map +1 -0
  6. package/dist/constants.d.ts +1 -0
  7. package/dist/constants.d.ts.map +1 -0
  8. package/dist/control/ExtendedCurveInterpolator.d.ts +1 -0
  9. package/dist/control/ExtendedCurveInterpolator.d.ts.map +1 -0
  10. package/dist/control/IntersectionReferenceSystem.d.ts +1 -0
  11. package/dist/control/IntersectionReferenceSystem.d.ts.map +1 -0
  12. package/dist/control/LayerManager.d.ts +1 -0
  13. package/dist/control/LayerManager.d.ts.map +1 -0
  14. package/dist/control/MainController.d.ts +1 -0
  15. package/dist/control/MainController.d.ts.map +1 -0
  16. package/dist/control/ZoomPanHandler.d.ts +1 -0
  17. package/dist/control/ZoomPanHandler.d.ts.map +1 -0
  18. package/dist/control/index.d.ts +1 -0
  19. package/dist/control/index.d.ts.map +1 -0
  20. package/dist/control/interfaces.d.ts +1 -0
  21. package/dist/control/interfaces.d.ts.map +1 -0
  22. package/dist/control/overlay.d.ts +1 -0
  23. package/dist/control/overlay.d.ts.map +1 -0
  24. package/dist/datautils/colortable.d.ts +1 -0
  25. package/dist/datautils/colortable.d.ts.map +1 -0
  26. package/dist/datautils/findsample.d.ts +1 -0
  27. package/dist/datautils/findsample.d.ts.map +1 -0
  28. package/dist/datautils/index.d.ts +1 -0
  29. package/dist/datautils/index.d.ts.map +1 -0
  30. package/dist/datautils/interfaces.d.ts +2 -1
  31. package/dist/datautils/interfaces.d.ts.map +1 -0
  32. package/dist/datautils/picks.d.ts +1 -0
  33. package/dist/datautils/picks.d.ts.map +1 -0
  34. package/dist/datautils/schematicShapeGenerator.d.ts +1 -0
  35. package/dist/datautils/schematicShapeGenerator.d.ts.map +1 -0
  36. package/dist/datautils/seismicimage.d.ts +2 -1
  37. package/dist/datautils/seismicimage.d.ts.map +1 -0
  38. package/dist/datautils/surfacedata.d.ts +1 -0
  39. package/dist/datautils/surfacedata.d.ts.map +1 -0
  40. package/dist/datautils/trajectory.d.ts +1 -0
  41. package/dist/datautils/trajectory.d.ts.map +1 -0
  42. package/dist/index.cjs +1 -1
  43. package/dist/index.cjs.map +1 -1
  44. package/dist/index.d.ts +1 -0
  45. package/dist/index.d.ts.map +1 -0
  46. package/dist/index.mjs +142 -145
  47. package/dist/index.mjs.map +1 -1
  48. package/dist/index.umd.js +1 -1
  49. package/dist/index.umd.js.map +1 -1
  50. package/dist/interfaces.d.ts +1 -0
  51. package/dist/interfaces.d.ts.map +1 -0
  52. package/dist/layers/CalloutCanvasLayer.d.ts +1 -0
  53. package/dist/layers/CalloutCanvasLayer.d.ts.map +1 -0
  54. package/dist/layers/CustomDisplayObjects/ComplexRope.d.ts +2 -2
  55. package/dist/layers/CustomDisplayObjects/ComplexRope.d.ts.map +1 -0
  56. package/dist/layers/CustomDisplayObjects/ComplexRopeGeometry.d.ts +2 -5
  57. package/dist/layers/CustomDisplayObjects/ComplexRopeGeometry.d.ts.map +1 -0
  58. package/dist/layers/CustomDisplayObjects/FixedWidthSimpleRope.d.ts +1 -0
  59. package/dist/layers/CustomDisplayObjects/FixedWidthSimpleRope.d.ts.map +1 -0
  60. package/dist/layers/CustomDisplayObjects/FixedWidthSimpleRopeGeometry.d.ts +1 -0
  61. package/dist/layers/CustomDisplayObjects/FixedWidthSimpleRopeGeometry.d.ts.map +1 -0
  62. package/dist/layers/CustomDisplayObjects/UniformTextureStretchRope.d.ts +1 -0
  63. package/dist/layers/CustomDisplayObjects/UniformTextureStretchRope.d.ts.map +1 -0
  64. package/dist/layers/CustomDisplayObjects/UniformTextureStretchRopeGeometry.d.ts +1 -0
  65. package/dist/layers/CustomDisplayObjects/UniformTextureStretchRopeGeometry.d.ts.map +1 -0
  66. package/dist/layers/GeomodelCanvasLayer.d.ts +1 -0
  67. package/dist/layers/GeomodelCanvasLayer.d.ts.map +1 -0
  68. package/dist/layers/GeomodelLabelsLayer.d.ts +2 -1
  69. package/dist/layers/GeomodelLabelsLayer.d.ts.map +1 -0
  70. package/dist/layers/GeomodelLayerV2.d.ts +1 -0
  71. package/dist/layers/GeomodelLayerV2.d.ts.map +1 -0
  72. package/dist/layers/GridLayer.d.ts +1 -0
  73. package/dist/layers/GridLayer.d.ts.map +1 -0
  74. package/dist/layers/ImageCanvasLayer.d.ts +1 -0
  75. package/dist/layers/ImageCanvasLayer.d.ts.map +1 -0
  76. package/dist/layers/ReferenceLineLayer.d.ts +1 -0
  77. package/dist/layers/ReferenceLineLayer.d.ts.map +1 -0
  78. package/dist/layers/SchematicLayer.d.ts +1 -0
  79. package/dist/layers/SchematicLayer.d.ts.map +1 -0
  80. package/dist/layers/SeismicCanvasLayer.d.ts +1 -0
  81. package/dist/layers/SeismicCanvasLayer.d.ts.map +1 -0
  82. package/dist/layers/WellborePathLayer.d.ts +1 -0
  83. package/dist/layers/WellborePathLayer.d.ts.map +1 -0
  84. package/dist/layers/base/CanvasLayer.d.ts +1 -0
  85. package/dist/layers/base/CanvasLayer.d.ts.map +1 -0
  86. package/dist/layers/base/HTMLLayer.d.ts +1 -0
  87. package/dist/layers/base/HTMLLayer.d.ts.map +1 -0
  88. package/dist/layers/base/Layer.d.ts +1 -0
  89. package/dist/layers/base/Layer.d.ts.map +1 -0
  90. package/dist/layers/base/PixiLayer.d.ts +1 -0
  91. package/dist/layers/base/PixiLayer.d.ts.map +1 -0
  92. package/dist/layers/base/SVGLayer.d.ts +1 -0
  93. package/dist/layers/base/SVGLayer.d.ts.map +1 -0
  94. package/dist/layers/base/index.d.ts +1 -0
  95. package/dist/layers/base/index.d.ts.map +1 -0
  96. package/dist/layers/index.d.ts +1 -0
  97. package/dist/layers/index.d.ts.map +1 -0
  98. package/dist/layers/schematicInterfaces.d.ts +1 -0
  99. package/dist/layers/schematicInterfaces.d.ts.map +1 -0
  100. package/dist/utils/arc-length.d.ts +1 -0
  101. package/dist/utils/arc-length.d.ts.map +1 -0
  102. package/dist/utils/binary-search.d.ts +1 -0
  103. package/dist/utils/binary-search.d.ts.map +1 -0
  104. package/dist/utils/color.d.ts +1 -0
  105. package/dist/utils/color.d.ts.map +1 -0
  106. package/dist/utils/index.d.ts +1 -0
  107. package/dist/utils/index.d.ts.map +1 -0
  108. package/dist/utils/root-finder.d.ts +1 -0
  109. package/dist/utils/root-finder.d.ts.map +1 -0
  110. package/dist/utils/text.d.ts +1 -0
  111. package/dist/utils/text.d.ts.map +1 -0
  112. package/dist/utils/vectorUtils.d.ts +1 -0
  113. package/dist/utils/vectorUtils.d.ts.map +1 -0
  114. package/dist/vendor/pixi-dashed-line/index.d.ts +1 -1
  115. package/dist/vendor/pixi-dashed-line/index.d.ts.map +1 -0
  116. package/package.json +30 -23
  117. package/src/.eslintrc.json +5 -0
  118. package/src/control/ExtendedCurveInterpolator.ts +1 -1
  119. package/src/datautils/interfaces.ts +1 -1
  120. package/src/datautils/seismicimage.ts +7 -7
  121. package/src/datautils/surfacedata.ts +0 -1
  122. package/src/layers/CalloutCanvasLayer.ts +2 -2
  123. package/src/layers/CustomDisplayObjects/ComplexRope.ts +3 -4
  124. package/src/layers/CustomDisplayObjects/ComplexRopeGeometry.ts +1 -7
  125. package/src/layers/CustomDisplayObjects/FixedWidthSimpleRope.ts +1 -1
  126. package/src/layers/CustomDisplayObjects/UniformTextureStretchRope.ts +1 -1
  127. package/src/layers/GeomodelCanvasLayer.ts +2 -2
  128. package/src/layers/GeomodelLabelsLayer.ts +9 -13
  129. package/src/layers/GeomodelLayerV2.ts +6 -5
  130. package/src/layers/GridLayer.ts +2 -2
  131. package/src/layers/ImageCanvasLayer.ts +3 -3
  132. package/src/layers/ReferenceLineLayer.ts +3 -3
  133. package/src/layers/SchematicLayer.ts +3 -5
  134. package/src/layers/SeismicCanvasLayer.ts +3 -3
  135. package/src/layers/WellborePathLayer.ts +2 -2
  136. package/src/layers/base/CanvasLayer.ts +6 -6
  137. package/src/layers/base/HTMLLayer.ts +4 -4
  138. package/src/layers/base/PixiLayer.ts +5 -5
  139. package/src/layers/base/SVGLayer.ts +4 -4
  140. package/src/tsconfig.json +9 -0
  141. package/src/vendor/pixi-dashed-line/index.ts +2 -6
package/dist/index.mjs CHANGED
@@ -22,15 +22,15 @@ function gs() {
22
22
  function ji(e, t) {
23
23
  var n = [], i = null, r = null, s = 6, o = 6, a = 3, c = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, h = e === Ve || e === ne ? -1 : 1, l = e === ne || e === he ? "x" : "y", u = e === Ve || e === nn ? us : fs;
24
24
  function f(p) {
25
- var d = i ?? (t.ticks ? t.ticks.apply(t, n) : t.domain()), g = r ?? (t.tickFormat ? t.tickFormat.apply(t, n) : ls), y = Math.max(s, 0) + a, _ = t.range(), x = +_[0] + c, v = +_[_.length - 1] + c, A = (t.bandwidth ? ps : ds)(t.copy(), c), b = p.selection ? p.selection() : p, S = b.selectAll(".domain").data([null]), T = b.selectAll(".tick").data(d, t).order(), F = T.exit(), L = T.enter().append("g").attr("class", "tick"), D = T.select("line"), C = T.select("text");
26
- S = S.merge(S.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), T = T.merge(L), D = D.merge(L.append("line").attr("stroke", "currentColor").attr(l + "2", h * s)), C = C.merge(L.append("text").attr("fill", "currentColor").attr(l, h * y).attr("dy", e === Ve ? "0em" : e === nn ? "0.71em" : "0.32em")), p !== b && (S = S.transition(p), T = T.transition(p), D = D.transition(p), C = C.transition(p), F = F.transition(p).attr("opacity", Jn).attr("transform", function(I) {
25
+ var d = i ?? (t.ticks ? t.ticks.apply(t, n) : t.domain()), g = r ?? (t.tickFormat ? t.tickFormat.apply(t, n) : ls), y = Math.max(s, 0) + a, _ = t.range(), x = +_[0] + c, v = +_[_.length - 1] + c, A = (t.bandwidth ? ps : ds)(t.copy(), c), b = p.selection ? p.selection() : p, S = b.selectAll(".domain").data([null]), T = b.selectAll(".tick").data(d, t).order(), F = T.exit(), L = T.enter().append("g").attr("class", "tick"), O = T.select("line"), C = T.select("text");
26
+ S = S.merge(S.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), T = T.merge(L), O = O.merge(L.append("line").attr("stroke", "currentColor").attr(l + "2", h * s)), C = C.merge(L.append("text").attr("fill", "currentColor").attr(l, h * y).attr("dy", e === Ve ? "0em" : e === nn ? "0.71em" : "0.32em")), p !== b && (S = S.transition(p), T = T.transition(p), O = O.transition(p), C = C.transition(p), F = F.transition(p).attr("opacity", Jn).attr("transform", function(I) {
27
27
  return isFinite(I = A(I)) ? u(I + c) : this.getAttribute("transform");
28
28
  }), L.attr("opacity", Jn).attr("transform", function(I) {
29
29
  var N = this.parentNode.__axis;
30
30
  return u((N && isFinite(N = N(I)) ? N : A(I)) + c);
31
31
  })), F.remove(), S.attr("d", e === ne || e === he ? o ? "M" + h * o + "," + x + "H" + c + "V" + v + "H" + h * o : "M" + c + "," + x + "V" + v : o ? "M" + x + "," + h * o + "V" + c + "H" + v + "V" + h * o : "M" + x + "," + c + "H" + v), T.attr("opacity", 1).attr("transform", function(I) {
32
32
  return u(A(I) + c);
33
- }), D.attr(l + "2", h * s), C.attr(l, h * y).text(g), b.filter(gs).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", e === he ? "start" : e === ne ? "end" : "middle"), b.each(function() {
33
+ }), O.attr(l + "2", h * s), C.attr(l, h * y).text(g), b.filter(gs).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", e === he ? "start" : e === ne ? "end" : "middle"), b.each(function() {
34
34
  this.__axis = A;
35
35
  });
36
36
  }
@@ -255,7 +255,7 @@ function Ji(e, t) {
255
255
  }
256
256
  function te() {
257
257
  }
258
- var jt = 0.7, ye = 1 / jt, It = "\\s*([+-]?\\d+)\\s*", Zt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", ot = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Fs = /^#([0-9a-f]{3,8})$/, Rs = new RegExp(`^rgb\\(${It},${It},${It}\\)$`), Is = new RegExp(`^rgb\\(${ot},${ot},${ot}\\)$`), zs = new RegExp(`^rgba\\(${It},${It},${It},${Zt}\\)$`), Os = new RegExp(`^rgba\\(${ot},${ot},${ot},${Zt}\\)$`), Ds = new RegExp(`^hsl\\(${Zt},${ot},${ot}\\)$`), Ns = new RegExp(`^hsla\\(${Zt},${ot},${ot},${Zt}\\)$`), ii = {
258
+ var jt = 0.7, ye = 1 / jt, It = "\\s*([+-]?\\d+)\\s*", Zt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", ot = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Fs = /^#([0-9a-f]{3,8})$/, Rs = new RegExp(`^rgb\\(${It},${It},${It}\\)$`), Is = new RegExp(`^rgb\\(${ot},${ot},${ot}\\)$`), zs = new RegExp(`^rgba\\(${It},${It},${It},${Zt}\\)$`), Ds = new RegExp(`^rgba\\(${ot},${ot},${ot},${Zt}\\)$`), Os = new RegExp(`^hsl\\(${Zt},${ot},${ot}\\)$`), Ns = new RegExp(`^hsla\\(${Zt},${ot},${ot},${Zt}\\)$`), ii = {
259
259
  aliceblue: 15792383,
260
260
  antiquewhite: 16444375,
261
261
  aqua: 65535,
@@ -434,7 +434,7 @@ function si() {
434
434
  }
435
435
  function ft(e) {
436
436
  var t, n;
437
- return e = (e + "").trim().toLowerCase(), (t = Fs.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? oi(t) : n === 3 ? new Y(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? ie(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? ie(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = Rs.exec(e)) ? new Y(t[1], t[2], t[3], 1) : (t = Is.exec(e)) ? new Y(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = zs.exec(e)) ? ie(t[1], t[2], t[3], t[4]) : (t = Os.exec(e)) ? ie(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Ds.exec(e)) ? hi(t[1], t[2] / 100, t[3] / 100, 1) : (t = Ns.exec(e)) ? hi(t[1], t[2] / 100, t[3] / 100, t[4]) : ii.hasOwnProperty(e) ? oi(ii[e]) : e === "transparent" ? new Y(NaN, NaN, NaN, 0) : null;
437
+ return e = (e + "").trim().toLowerCase(), (t = Fs.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? oi(t) : n === 3 ? new Y(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? ie(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? ie(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = Rs.exec(e)) ? new Y(t[1], t[2], t[3], 1) : (t = Is.exec(e)) ? new Y(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = zs.exec(e)) ? ie(t[1], t[2], t[3], t[4]) : (t = Ds.exec(e)) ? ie(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Os.exec(e)) ? hi(t[1], t[2] / 100, t[3] / 100, 1) : (t = Ns.exec(e)) ? hi(t[1], t[2] / 100, t[3] / 100, t[4]) : ii.hasOwnProperty(e) ? oi(ii[e]) : e === "transparent" ? new Y(NaN, NaN, NaN, 0) : null;
438
438
  }
439
439
  function oi(e) {
440
440
  return new Y(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
@@ -739,10 +739,10 @@ const co = function e(t, n, i) {
739
739
  else {
740
740
  var x = Math.sqrt(g), v = (f * f - h * h + i * g) / (2 * h * n * x), A = (f * f - h * h - i * g) / (2 * f * n * x), b = Math.log(Math.sqrt(v * v + 1) - v), S = Math.log(Math.sqrt(A * A + 1) - A);
741
741
  _ = (S - b) / t, y = function(T) {
742
- var F = T * _, L = fi(b), D = h / (n * x) * (L * ao(t * F + b) - oo(b));
742
+ var F = T * _, L = fi(b), O = h / (n * x) * (L * ao(t * F + b) - oo(b));
743
743
  return [
744
- a + D * p,
745
- c + D * d,
744
+ a + O * p,
745
+ c + O * d,
746
746
  h * L / fi(t * F + b)
747
747
  ];
748
748
  };
@@ -944,7 +944,7 @@ function Mo(e) {
944
944
  b === "n" ? (x = !0, b = "g") : gi[b] || (v === void 0 && (v = 12), A = !0, b = "g"), (y || f === "0" && p === "=") && (y = !0, f = "0", p = "=");
945
945
  var S = g === "$" ? n : g === "#" && /[boxX]/.test(b) ? "0" + b.toLowerCase() : "", T = g === "$" ? i : /[%p]/.test(b) ? o : "", F = gi[b], L = /[defgprs%]/.test(b);
946
946
  v = v === void 0 ? 6 : /[gprs]/.test(b) ? Math.max(1, Math.min(21, v)) : Math.max(0, Math.min(20, v));
947
- function D(C) {
947
+ function O(C) {
948
948
  var I = S, N = T, m, M, w;
949
949
  if (b === "c")
950
950
  N = F(C) + N, C = "";
@@ -977,9 +977,9 @@ function Mo(e) {
977
977
  }
978
978
  return s(C);
979
979
  }
980
- return D.toString = function() {
980
+ return O.toString = function() {
981
981
  return u + "";
982
- }, D;
982
+ }, O;
983
983
  }
984
984
  function l(u, f) {
985
985
  var p = h((u = ve(u), u.type = "f", u)), d = Math.max(-8, Math.min(8, Math.floor(zt(f) / 3))) * 3, g = Math.pow(10, -d), y = _i[8 + d / 3];
@@ -1197,14 +1197,14 @@ function Ut(e) {
1197
1197
  function vi(e, t) {
1198
1198
  t === void 0 && (t = e);
1199
1199
  var n = Ut(e);
1200
- return n === 0 ? Oo(0, t) : bt(e, 1 / n, t);
1200
+ return n === 0 ? Do(0, t) : bt(e, 1 / n, t);
1201
1201
  }
1202
- function Oo(e, t) {
1202
+ function Do(e, t) {
1203
1203
  for (var n = 0; n < t.length; n++)
1204
1204
  t[n] = e;
1205
1205
  return t;
1206
1206
  }
1207
- function Do(e, t) {
1207
+ function Oo(e, t) {
1208
1208
  for (var n = 0, i = 0; i < e.length; i++)
1209
1209
  n += Math.pow(t[i] - e[i], 2);
1210
1210
  return n === 0 ? n : Math.sqrt(n);
@@ -1245,7 +1245,7 @@ function Ht(e, t) {
1245
1245
  var n = Math.atan2(t[1], t[0]) - Math.atan2(e[1], e[0]);
1246
1246
  return n > Math.PI ? n -= 2 * Math.PI : n <= -Math.PI && (n += 2 * Math.PI), n;
1247
1247
  }
1248
- var O = function() {
1248
+ var D = function() {
1249
1249
  function e(t) {
1250
1250
  for (var n = [], i = 1; i < arguments.length; i++)
1251
1251
  n[i - 1] = arguments[i];
@@ -1314,7 +1314,7 @@ var O = function() {
1314
1314
  }, e.prototype.normalized = function() {
1315
1315
  return vi(this, e.zero);
1316
1316
  }, e.distance = function(t, n) {
1317
- return Do(t, n);
1317
+ return Oo(t, n);
1318
1318
  }, e.dot = function(t, n) {
1319
1319
  return No(t, n);
1320
1320
  }, e.cross = function(t, n) {
@@ -1763,7 +1763,7 @@ var lr = function() {
1763
1763
  var h = o - a;
1764
1764
  return (c + this.computeArcLength(a, 0, h)) / s;
1765
1765
  }, t;
1766
- }(lr), On = function() {
1766
+ }(lr), Dn = function() {
1767
1767
  function e(t, n) {
1768
1768
  n === void 0 && (n = {});
1769
1769
  var i = this;
@@ -1851,8 +1851,8 @@ var lr = function() {
1851
1851
  var A = h * s - (_ - 1), b = h * o - (_ - 1), S = function(L) {
1852
1852
  return L > -it && L <= 1 + it && (_ - 1 !== l || L > A) && (_ !== u || L < b);
1853
1853
  }, T = d._curveMapper.getCoefficients(_ - 1), F = function(L) {
1854
- var D = T[L];
1855
- cr(3 * D[0], 2 * D[1], D[2]).filter(S).forEach(function(C) {
1854
+ var O = T[L];
1855
+ cr(3 * O[0], 2 * O[1], O[2]).filter(S).forEach(function(C) {
1856
1856
  var I = Ft(C, T[L]);
1857
1857
  I < i[L] && (i[L] = I), I > r[L] && (r[L] = I);
1858
1858
  });
@@ -2062,7 +2062,7 @@ var lr = function() {
2062
2062
  var r = e.prototype.getBoundingBox.call(this, n, i);
2063
2063
  return { x1: r.min[0], x2: r.max[0], y1: r.min[1], y2: r.max[1], min: r.min, max: r.max };
2064
2064
  }, t;
2065
- })(On);
2065
+ })(Dn);
2066
2066
  class Se {
2067
2067
  /**
2068
2068
  * Find root using newthons method
@@ -2128,12 +2128,12 @@ class ta {
2128
2128
  */
2129
2129
  static bisect(t, n = 0, i = 1, r = 5e-3, s = 4, o = 10) {
2130
2130
  const a = (f, p, d, g, y, _, x = 0) => {
2131
- const v = (f + p) / 2, A = t(v), b = O.distance(d, A), S = O.distance(A, g), T = b + S;
2131
+ const v = (f + p) / 2, A = t(v), b = D.distance(d, A), S = D.distance(A, g), T = b + S;
2132
2132
  if (x >= s && Math.abs(T - y) < _ || x >= o)
2133
2133
  return T;
2134
2134
  const F = _ / 2, L = x + 1;
2135
2135
  return a(f, v, d, A, b, F, L) + a(v, p, A, g, S, F, L);
2136
- }, c = t(n), h = t(i), l = O.distance(c, h);
2136
+ }, c = t(n), h = t(i), l = D.distance(c, h);
2137
2137
  return a(n, i, c, h, l, r);
2138
2138
  }
2139
2139
  /**
@@ -2147,7 +2147,7 @@ class ta {
2147
2147
  let s = 0, o = t(n);
2148
2148
  const a = (i - n) / (r - 1);
2149
2149
  for (let c = 1; c < r; c++) {
2150
- const h = t(n + c * a), l = O.distance(o, h);
2150
+ const h = t(n + c * a), l = D.distance(o, h);
2151
2151
  s += l, o = h;
2152
2152
  }
2153
2153
  return s;
@@ -2165,7 +2165,7 @@ class ea {
2165
2165
  return s;
2166
2166
  }
2167
2167
  }
2168
- class Ze extends On {
2168
+ class Ze extends Dn {
2169
2169
  constructor(t, n) {
2170
2170
  super(t, n), this.arcLengthLookup = [], this.findTForArcLength = this.findTForArcLength.bind(this), this.findTByRootForArcLength = this.findTByRootForArcLength.bind(this), this.findApproxTForArcLength = this.findApproxTForArcLength.bind(this), this.findTQuickForArcLength = this.findTQuickForArcLength.bind(this), this.generateArcLengthLookup = this.generateArcLengthLookup.bind(this), this.getArcLength = this.getArcLength.bind(this), this.getQuickArcLength = this.getQuickArcLength.bind(this), this.getPointAtArcLength = this.getPointAtArcLength.bind(this), this.getPointAt = this.getPointAt.bind(this);
2171
2171
  }
@@ -2207,7 +2207,7 @@ class Ze extends On {
2207
2207
  generateArcLengthLookup(t = 1e3) {
2208
2208
  let n = this.getPointAt(0), i = 0;
2209
2209
  for (let r = 0; r < t; r++) {
2210
- const s = this.getPointAt(r / (t - 1)), o = O.distance(n, s);
2210
+ const s = this.getPointAt(r / (t - 1)), o = D.distance(n, s);
2211
2211
  i += o, this.arcLengthLookup.push(i), n = s;
2212
2212
  }
2213
2213
  }
@@ -2361,7 +2361,7 @@ class Qt {
2361
2361
  r ? (c = [
2362
2362
  o[0] + this.startVector[0] * r * this.displacement,
2363
2363
  o[1] + this.startVector[1] * r * this.displacement
2364
- ], l = -O.distance(c, o)) : n > 0 && (l = O.distance(p, o)), s && (h = [a[0] + this.endVector[0] * s * this.displacement, a[1] + this.endVector[1] * s * this.displacement]);
2364
+ ], l = -D.distance(c, o)) : n > 0 && (l = D.distance(p, o)), s && (h = [a[0] + this.endVector[0] * s * this.displacement, a[1] + this.endVector[1] * s * this.displacement]);
2365
2365
  const g = [], y = i - n, _ = Math.floor(r / y * t), x = Math.ceil((f - u) / y * t), v = t - x - _;
2366
2366
  if (c) {
2367
2367
  g.push(c);
@@ -2388,14 +2388,14 @@ class Qt {
2388
2388
  throw new Error("Invalid parameter, getExtendedTrajectory() must be called with a valid and positive startExtensionLength parameter");
2389
2389
  if (!isFinite(i) || i < 0)
2390
2390
  throw new Error("Invalid parameter, getExtendedTrajectory() must be called with a valid and positive endExtensionLength parameter");
2391
- const r = this.displacement + n + i, s = Math.floor(n / r * t), o = Math.max(Math.ceil(this.displacement / r * t), 1), a = t - o - s, c = [], h = new O(this.interpolators.trajectory.getPointAt(0)), l = new O(this.startVector), u = n / s;
2391
+ const r = this.displacement + n + i, s = Math.floor(n / r * t), o = Math.max(Math.ceil(this.displacement / r * t), 1), a = t - o - s, c = [], h = new D(this.interpolators.trajectory.getPointAt(0)), l = new D(this.startVector), u = n / s;
2392
2392
  for (let x = s; x > 0; x--) {
2393
2393
  const v = x * u, A = h.add(l.scale(v));
2394
2394
  c.push(A.toArray());
2395
2395
  }
2396
2396
  const f = this.interpolators.trajectory.getPoints(o, null, 0, 1);
2397
2397
  c.push(...f);
2398
- const p = new O(this.interpolators.trajectory.getPointAt(1)), d = new O(this.endVector), g = i / (a - 1);
2398
+ const p = new D(this.interpolators.trajectory.getPointAt(1)), d = new D(this.endVector), g = i / (a - 1);
2399
2399
  for (let x = 1; x < a; x++) {
2400
2400
  const v = x * g, A = p.add(d.scale(v));
2401
2401
  c.push(A.toArray());
@@ -2407,7 +2407,7 @@ class Qt {
2407
2407
  const { trajectoryAngle: t, calculateDisplacementFromBottom: n } = this.options;
2408
2408
  if (isFinite(t)) {
2409
2409
  const r = Io(t);
2410
- return new O(Math.cos(r), Math.sin(r)).toArray();
2410
+ return new D(Math.cos(r), Math.sin(r)).toArray();
2411
2411
  }
2412
2412
  return Qt.getDirectionVector(
2413
2413
  this.interpolators.trajectory,
@@ -2478,13 +2478,13 @@ function fr(e) {
2478
2478
  }
2479
2479
  function ha() {
2480
2480
  }
2481
- function Dn(e) {
2481
+ function On(e) {
2482
2482
  return e == null ? ha : function() {
2483
2483
  return this.querySelector(e);
2484
2484
  };
2485
2485
  }
2486
2486
  function la(e) {
2487
- typeof e != "function" && (e = Dn(e));
2487
+ typeof e != "function" && (e = On(e));
2488
2488
  for (var t = this._groups, n = t.length, i = new Array(n), r = 0; r < n; ++r)
2489
2489
  for (var s = t[r], o = s.length, a = i[r] = new Array(o), c, h, l = 0; l < o; ++l)
2490
2490
  (c = s[l]) && (h = e.call(c, c.__data__, l, s)) && ("__data__" in c && (h.__data__ = c.__data__), a[l] = h);
@@ -2643,7 +2643,7 @@ function Ia() {
2643
2643
  return this;
2644
2644
  }
2645
2645
  function za(e) {
2646
- e || (e = Oa);
2646
+ e || (e = Da);
2647
2647
  function t(u, f) {
2648
2648
  return u && f ? e(u.__data__, f.__data__) : !u - !f;
2649
2649
  }
@@ -2654,10 +2654,10 @@ function za(e) {
2654
2654
  }
2655
2655
  return new j(r, this._parents).order();
2656
2656
  }
2657
- function Oa(e, t) {
2657
+ function Da(e, t) {
2658
2658
  return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
2659
2659
  }
2660
- function Da() {
2660
+ function Oa() {
2661
2661
  var e = arguments[0];
2662
2662
  return arguments[0] = this, e.apply(null, arguments), this;
2663
2663
  }
@@ -2748,9 +2748,9 @@ function Qa(e, t, n) {
2748
2748
  };
2749
2749
  }
2750
2750
  function Ja(e, t, n) {
2751
- return arguments.length > 1 ? this.each((t == null ? Za : typeof t == "function" ? Qa : Ka)(e, t, n ?? "")) : Ot(this.node(), e);
2751
+ return arguments.length > 1 ? this.each((t == null ? Za : typeof t == "function" ? Qa : Ka)(e, t, n ?? "")) : Dt(this.node(), e);
2752
2752
  }
2753
- function Ot(e, t) {
2753
+ function Dt(e, t) {
2754
2754
  return e.style.getPropertyValue(t) || yr(e).getComputedStyle(e, null).getPropertyValue(t);
2755
2755
  }
2756
2756
  function tc(e) {
@@ -2883,7 +2883,7 @@ function wc() {
2883
2883
  return null;
2884
2884
  }
2885
2885
  function bc(e, t) {
2886
- var n = typeof e == "function" ? e : fr(e), i = t == null ? wc : typeof t == "function" ? t : Dn(t);
2886
+ var n = typeof e == "function" ? e : fr(e), i = t == null ? wc : typeof t == "function" ? t : On(t);
2887
2887
  return this.select(function() {
2888
2888
  return this.insertBefore(n.apply(this, arguments), i.apply(this, arguments) || null);
2889
2889
  });
@@ -2973,10 +2973,10 @@ function zc(e, t) {
2973
2973
  return br(this, e, t.apply(this, arguments));
2974
2974
  };
2975
2975
  }
2976
- function Oc(e, t) {
2976
+ function Dc(e, t) {
2977
2977
  return this.each((typeof t == "function" ? zc : Ic)(e, t));
2978
2978
  }
2979
- function* Dc() {
2979
+ function* Oc() {
2980
2980
  for (var e = this._groups, t = 0, n = e.length; t < n; ++t)
2981
2981
  for (var i = e[t], r = 0, s = i.length, o; r < s; ++r)
2982
2982
  (o = i[r]) && (yield o);
@@ -3006,7 +3006,7 @@ j.prototype = ee.prototype = {
3006
3006
  selection: Nc,
3007
3007
  order: Ia,
3008
3008
  sort: za,
3009
- call: Da,
3009
+ call: Oa,
3010
3010
  nodes: Na,
3011
3011
  node: $a,
3012
3012
  size: Ba,
@@ -3026,8 +3026,8 @@ j.prototype = ee.prototype = {
3026
3026
  clone: Pc,
3027
3027
  datum: Cc,
3028
3028
  on: Rc,
3029
- dispatch: Oc,
3030
- [Symbol.iterator]: Dc
3029
+ dispatch: Dc,
3030
+ [Symbol.iterator]: Oc
3031
3031
  };
3032
3032
  function q(e) {
3033
3033
  return typeof e == "string" ? new j([[document.querySelector(e)]], [document.documentElement]) : new j([[e]], Sr);
@@ -3142,7 +3142,7 @@ function Uc(e, t) {
3142
3142
  i.on("click.drag", null);
3143
3143
  }, 0)), "onselectstart" in n ? i.on("selectstart.drag", null) : (n.style.MozUserSelect = n.__noselect, delete n.__noselect);
3144
3144
  }
3145
- var Dt = 0, Yt = 0, Xt = 0, Tr = 1e3, Me, Wt, Ae = 0, Pt = 0, Fe = 0, Jt = typeof performance == "object" && performance.now ? performance : Date, Mr = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
3145
+ var Ot = 0, Yt = 0, Xt = 0, Tr = 1e3, Me, Wt, Ae = 0, Pt = 0, Fe = 0, Jt = typeof performance == "object" && performance.now ? performance : Date, Mr = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
3146
3146
  setTimeout(e, 17);
3147
3147
  };
3148
3148
  function Bn() {
@@ -3170,17 +3170,17 @@ function Ar(e, t, n) {
3170
3170
  return i.restart(e, t, n), i;
3171
3171
  }
3172
3172
  function Wc() {
3173
- Bn(), ++Dt;
3173
+ Bn(), ++Ot;
3174
3174
  for (var e = Me, t; e; )
3175
3175
  (t = Pt - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
3176
- --Dt;
3176
+ --Ot;
3177
3177
  }
3178
3178
  function Ei() {
3179
- Pt = (Ae = Jt.now()) + Fe, Dt = Yt = 0;
3179
+ Pt = (Ae = Jt.now()) + Fe, Ot = Yt = 0;
3180
3180
  try {
3181
3181
  Wc();
3182
3182
  } finally {
3183
- Dt = 0, qc(), Pt = 0;
3183
+ Ot = 0, qc(), Pt = 0;
3184
3184
  }
3185
3185
  }
3186
3186
  function Gc() {
@@ -3193,10 +3193,10 @@ function qc() {
3193
3193
  Wt = e, _n(i);
3194
3194
  }
3195
3195
  function _n(e) {
3196
- if (!Dt) {
3196
+ if (!Ot) {
3197
3197
  Yt && (Yt = clearTimeout(Yt));
3198
3198
  var t = e - Pt;
3199
- t > 24 ? (e < 1 / 0 && (Yt = setTimeout(Ei, e - Jt.now() - Fe)), Xt && (Xt = clearInterval(Xt))) : (Xt || (Ae = Jt.now(), Xt = setInterval(Gc, Tr)), Dt = 1, Mr(Ei));
3199
+ t > 24 ? (e < 1 / 0 && (Yt = setTimeout(Ei, e - Jt.now() - Fe)), Xt && (Xt = clearInterval(Xt))) : (Xt || (Ae = Jt.now(), Xt = setInterval(Gc, Tr)), Ot = 1, Mr(Ei));
3200
3200
  }
3201
3201
  }
3202
3202
  function Fi(e, t, n) {
@@ -3536,7 +3536,7 @@ function kh() {
3536
3536
  }
3537
3537
  function Eh(e) {
3538
3538
  var t = this._name, n = this._id;
3539
- typeof e != "function" && (e = Dn(e));
3539
+ typeof e != "function" && (e = On(e));
3540
3540
  for (var i = this._groups, r = i.length, s = new Array(r), o = 0; o < r; ++o)
3541
3541
  for (var a = i[o], c = a.length, h = s[o] = new Array(c), l, u, f = 0; f < c; ++f)
3542
3542
  (l = a[f]) && (u = e.call(l, l.__data__, f, a)) && ("__data__" in l && (u.__data__ = l.__data__), h[f] = u, Re(h[f], t, n, f, h, rt(l, n)));
@@ -3561,7 +3561,7 @@ function Ih() {
3561
3561
  function zh(e, t) {
3562
3562
  var n, i, r;
3563
3563
  return function() {
3564
- var s = Ot(this, e), o = (this.style.removeProperty(e), Ot(this, e));
3564
+ var s = Dt(this, e), o = (this.style.removeProperty(e), Dt(this, e));
3565
3565
  return s === o ? null : s === n && o === i ? r : r = t(n = s, i = o);
3566
3566
  };
3567
3567
  }
@@ -3570,18 +3570,18 @@ function Lr(e) {
3570
3570
  this.style.removeProperty(e);
3571
3571
  };
3572
3572
  }
3573
- function Oh(e, t, n) {
3573
+ function Dh(e, t, n) {
3574
3574
  var i, r = n + "", s;
3575
3575
  return function() {
3576
- var o = Ot(this, e);
3576
+ var o = Dt(this, e);
3577
3577
  return o === r ? null : o === i ? s : s = t(i = o, n);
3578
3578
  };
3579
3579
  }
3580
- function Dh(e, t, n) {
3580
+ function Oh(e, t, n) {
3581
3581
  var i, r, s;
3582
3582
  return function() {
3583
- var o = Ot(this, e), a = n(this), c = a + "";
3584
- return a == null && (c = a = (this.style.removeProperty(e), Ot(this, e))), o === c ? null : o === i && c === r ? s : (r = c, s = t(i = o, a));
3583
+ var o = Dt(this, e), a = n(this), c = a + "";
3584
+ return a == null && (c = a = (this.style.removeProperty(e), Dt(this, e))), o === c ? null : o === i && c === r ? s : (r = c, s = t(i = o, a));
3585
3585
  };
3586
3586
  }
3587
3587
  function Nh(e, t) {
@@ -3593,7 +3593,7 @@ function Nh(e, t) {
3593
3593
  }
3594
3594
  function $h(e, t, n) {
3595
3595
  var i = (e += "") == "transform" ? io : Cr;
3596
- return t == null ? this.styleTween(e, zh(e, i)).on("end.style." + e, Lr(e)) : typeof t == "function" ? this.styleTween(e, Dh(e, i, Xn(this, "style." + e, t))).each(Nh(this._id, e)) : this.styleTween(e, Oh(e, i, t), n).on("end.style." + e, null);
3596
+ return t == null ? this.styleTween(e, zh(e, i)).on("end.style." + e, Lr(e)) : typeof t == "function" ? this.styleTween(e, Oh(e, i, Xn(this, "style." + e, t))).each(Nh(this._id, e)) : this.styleTween(e, Dh(e, i, t), n).on("end.style." + e, null);
3597
3597
  }
3598
3598
  function Bh(e, t, n) {
3599
3599
  return function(i) {
@@ -3835,7 +3835,7 @@ function al(e, t, n) {
3835
3835
  function cl() {
3836
3836
  var e = il, t = rl, n = al, i = sl, r = ol, s = [0, 1 / 0], o = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], a = 250, c = co, h = $n("start", "zoom", "end"), l, u, f, p = 500, d = 150, g = 0, y = 10;
3837
3837
  function _(m) {
3838
- m.property("__zoom", zi).on("wheel.zoom", F, { passive: !1 }).on("mousedown.zoom", L).on("dblclick.zoom", D).filter(r).on("touchstart.zoom", C).on("touchmove.zoom", I).on("touchend.zoom touchcancel.zoom", N).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
3838
+ m.property("__zoom", zi).on("wheel.zoom", F, { passive: !1 }).on("mousedown.zoom", L).on("dblclick.zoom", O).filter(r).on("touchstart.zoom", C).on("touchmove.zoom", I).on("touchend.zoom touchcancel.zoom", N).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
3839
3839
  }
3840
3840
  _.transform = function(m, M, w, P) {
3841
3841
  var k = m.selection ? m.selection() : m;
@@ -3963,7 +3963,7 @@ function cl() {
3963
3963
  k.on("mousemove.zoom mouseup.zoom", null), Uc(B.view, P.moved), Vt(B), P.event(B).end();
3964
3964
  }
3965
3965
  }
3966
- function D(m, ...M) {
3966
+ function O(m, ...M) {
3967
3967
  if (e.apply(this, arguments)) {
3968
3968
  var w = this.__zoom, P = pt(m.changedTouches ? m.changedTouches[0] : m, this), k = w.invert(P), E = w.k * (m.shiftKey ? 0.5 : 2), R = n(v(x(w, E), P, k), t.apply(this, M), o);
3969
3969
  Vt(m), a > 0 ? q(this).transition().duration(a).call(b, R, P, m) : q(this).call(_.transform, R, P, m);
@@ -4389,7 +4389,7 @@ class Ie {
4389
4389
  return [];
4390
4390
  }
4391
4391
  }
4392
- const ze = 200, Oe = 300, Er = 40, Fr = 30, dl = 100, pl = 0.6, gl = 0.3, ml = 8, yl = 16, _t = 64, Rr = 1;
4392
+ const ze = 200, De = 300, Er = 40, Fr = 30, dl = 100, pl = 0.6, gl = 0.3, ml = 8, yl = 16, _t = 64, Rr = 1;
4393
4393
  class Ct extends Ie {
4394
4394
  onOpacityChanged(t) {
4395
4395
  this.canvas && this.updateStyle();
@@ -4412,7 +4412,7 @@ class Ct extends Ie {
4412
4412
  }
4413
4413
  onMount(t) {
4414
4414
  super.onMount(t);
4415
- const { elm: n } = t, i = t.width || parseInt(n.getAttribute("width"), 10) || ze, r = t.height || parseInt(n.getAttribute("height"), 10) || Oe;
4415
+ const { elm: n } = t, i = t.width || parseInt(n.getAttribute("width"), 10) || ze, r = t.height || parseInt(n.getAttribute("height"), 10) || De;
4416
4416
  this.elm = n;
4417
4417
  let s;
4418
4418
  this.canvas || (s = document.createElement("canvas"), this.canvas = s, t.elm.appendChild(s)), this.canvas.setAttribute("id", `${this.id}`), this.canvas.setAttribute("width", `${i}px`), this.canvas.setAttribute("height", `${r}px`), this.canvas.setAttribute("class", "canvas-layer"), this.updateStyle(), this.ctx = this.canvas.getContext("2d");
@@ -4443,7 +4443,7 @@ class Ct extends Ie {
4443
4443
  class $0 extends Ie {
4444
4444
  onMount(t) {
4445
4445
  super.onMount(t);
4446
- const { elm: n } = t, i = t.width || parseInt(n.getAttribute("width"), 10) || ze, r = t.height || parseInt(n.getAttribute("height"), 10) || Oe;
4446
+ const { elm: n } = t, i = t.width || parseInt(n.getAttribute("width"), 10) || ze, r = t.height || parseInt(n.getAttribute("height"), 10) || De;
4447
4447
  this.elm || (this.elm = q(n).append("div"), this.elm.attr("id", `${this.id}`), this.elm.attr("class", "html-layer"));
4448
4448
  const s = this.interactive ? "auto" : "none";
4449
4449
  this.elm.style("position", "absolute").style("height", `${r}px`).style("width", `${i}px`).style("opacity", this.opacity).style("overflow", "hidden").style("pointer-events", s).style("z-index", this.order);
@@ -4473,7 +4473,7 @@ class $0 extends Ie {
4473
4473
  class _l extends Ie {
4474
4474
  onMount(t) {
4475
4475
  super.onMount(t);
4476
- const { elm: n } = t, i = t.width || parseInt(n.getAttribute("width"), 10) || ze, r = t.height || parseInt(n.getAttribute("height"), 10) || Oe;
4476
+ const { elm: n } = t, i = t.width || parseInt(n.getAttribute("width"), 10) || ze, r = t.height || parseInt(n.getAttribute("height"), 10) || De;
4477
4477
  this.elm || (this.elm = q(n).append("svg"), this.elm.attr("id", `${this.id}`), this.elm.attr("class", "svg-layer")), this.elm.attr("height", r).attr("width", i);
4478
4478
  const s = this.interactive ? "auto" : "none";
4479
4479
  this.elm.style("position", "absolute").style("pointer-events", s).style("opacity", this.opacity).style("z-index", this.order);
@@ -4504,7 +4504,7 @@ class B0 {
4504
4504
  constructor(t) {
4505
4505
  const n = {
4506
4506
  width: ze,
4507
- height: Oe,
4507
+ height: De,
4508
4508
  antialias: !0,
4509
4509
  backgroundAlpha: 0,
4510
4510
  clearBeforeRender: !0,
@@ -4593,7 +4593,7 @@ class Ir extends Ie {
4593
4593
  return this.ctx.renderer.type;
4594
4594
  }
4595
4595
  }
4596
- function De(e) {
4596
+ function Oe(e) {
4597
4597
  throw new Error(`Unexpected object: ${JSON.stringify(e)}`);
4598
4598
  }
4599
4599
  const xl = (e) => e.kind === "pAndASymbol", vl = (e) => e.kind === "cementSqueeze", wl = (e) => e.kind === "cementPlug", bl = (e, t, n) => (i) => {
@@ -4605,7 +4605,7 @@ const xl = (e) => e.kind === "pAndASymbol", vl = (e) => e.kind === "cementSqueez
4605
4605
  case "completionSymbol":
4606
4606
  return n(i);
4607
4607
  default:
4608
- return De(i);
4608
+ return Oe(i);
4609
4609
  }
4610
4610
  }, K = (e, t) => {
4611
4611
  switch (t) {
@@ -4622,7 +4622,7 @@ const xl = (e) => e.kind === "pAndASymbol", vl = (e) => e.kind === "cementSqueez
4622
4622
  case "Cased hole gravel pack":
4623
4623
  return e.CasedHoleGravelPack(t);
4624
4624
  default:
4625
- return De(t);
4625
+ return Oe(t);
4626
4626
  }
4627
4627
  }, H0 = (e) => K(
4628
4628
  {
@@ -4777,10 +4777,10 @@ const Cl = (e) => e.subKind === "Cased hole fracturation", Ll = (e, t) => e.star
4777
4777
  firstColor: "#8b6713",
4778
4778
  secondColor: "#000000",
4779
4779
  scalingFactor: 4
4780
- }, Ol = {
4780
+ }, Dl = {
4781
4781
  scalingFactor: 4,
4782
4782
  lineColor: "#63666a"
4783
- }, Dl = {
4783
+ }, Ol = {
4784
4784
  scalingFactor: 1,
4785
4785
  innerColor: "#eeeeff",
4786
4786
  outerColor: "#777788"
@@ -4788,7 +4788,7 @@ const Cl = (e) => e.subKind === "Cased hole fracturation", Ll = (e, t) => e.star
4788
4788
  firstColor: "#c7b9ab",
4789
4789
  secondColor: "#000000",
4790
4790
  scalingFactor: 4
4791
- }, zr = 4, Or = 2;
4791
+ }, zr = 4, Dr = 2;
4792
4792
  function $l(e) {
4793
4793
  const [t] = e.domain();
4794
4794
  return Math.abs(e(t + 1));
@@ -4800,7 +4800,7 @@ function Y0(e, t) {
4800
4800
  const n = e.x + e.width, i = t.x + t.width;
4801
4801
  return !(t.x > n || i < e.x);
4802
4802
  }
4803
- function Bl(e, t, n = zr, i = Or) {
4803
+ function Bl(e, t, n = zr, i = Dr) {
4804
4804
  const r = e.x + e.width + n, s = t.x + t.width + n, o = e.y + e.height + i, a = t.y + t.height + i;
4805
4805
  return !(t.x - n > r || t.y - i > o || s + n < e.x || a + i < e.y);
4806
4806
  }
@@ -4814,7 +4814,7 @@ function W0(e, t) {
4814
4814
  dy: a
4815
4815
  };
4816
4816
  }
4817
- function Oi(e, t, n = zr, i = Or) {
4817
+ function Di(e, t, n = zr, i = Dr) {
4818
4818
  const r = e.x + e.width, s = t.x + t.width, o = e.y + e.height, a = t.y + t.height;
4819
4819
  if (t.x - n > r || t.y - i > o || s + n < e.x || a + i < e.y)
4820
4820
  return null;
@@ -4955,7 +4955,7 @@ class G0 extends Ct {
4955
4955
  for (let n = t.length - 2; n >= 0; --n) {
4956
4956
  const i = t[n];
4957
4957
  for (let r = t.length - 1; r > n; --r) {
4958
- const s = t[r], o = Oi(i.boundingBox, s.boundingBox);
4958
+ const s = t[r], o = Di(i.boundingBox, s.boundingBox);
4959
4959
  o && (i.dy += o.dy, i.boundingBox.y -= o.dy);
4960
4960
  }
4961
4961
  }
@@ -4964,7 +4964,7 @@ class G0 extends Ct {
4964
4964
  for (let n = t.length - 2; n >= 0; --n) {
4965
4965
  const i = t[n];
4966
4966
  for (let r = t.length - 1; r > n; --r) {
4967
- const s = t[r], o = Oi(s.boundingBox, i.boundingBox);
4967
+ const s = t[r], o = Di(s.boundingBox, i.boundingBox);
4968
4968
  o && (i.dy += o.dy, i.boundingBox.y += o.dy);
4969
4969
  }
4970
4970
  }
@@ -5048,7 +5048,7 @@ class q0 extends Ct {
5048
5048
  }, []);
5049
5049
  }
5050
5050
  }
5051
- function Dr(e, t) {
5051
+ function Or(e, t) {
5052
5052
  let n = 0, i = e.length - 1;
5053
5053
  const r = 20;
5054
5054
  let s = e[n][0], o = e[i][0];
@@ -5077,7 +5077,7 @@ function Dr(e, t) {
5077
5077
  }
5078
5078
  function wt(e, t, n = null, i = null) {
5079
5079
  let r = null;
5080
- const s = Dr(e, t);
5080
+ const s = Or(e, t);
5081
5081
  if (s !== -1) {
5082
5082
  const o = e[s][1], a = e[s + 1][1];
5083
5083
  if (a && a) {
@@ -5272,13 +5272,13 @@ async function J0(e, t, n, i) {
5272
5272
  let v = i != null && i.isLeftToRight ? t[0][0] : t[t.length - 1][0];
5273
5273
  const A = u / f * (i != null && i.isLeftToRight ? -1 : 1);
5274
5274
  let b, S, T, F, L;
5275
- const D = [0, 0, 0];
5275
+ const O = [0, 0, 0];
5276
5276
  let C;
5277
5277
  for (let m = 0; m < f; m++) {
5278
5278
  _ = m * 4;
5279
- const M = Dr(t, v), w = t[M][0], k = t[M + 1][0] - w, R = (v - w) / k;
5279
+ const M = Or(t, v), w = t[M][0], k = t[M + 1][0] - w, R = (v - w) / k;
5280
5280
  for (let z = 0; z < p; z++)
5281
- b = r[z][M], S = r[z][M + 1], b == null || S == null ? (L = D, C = 0) : (T = b * (1 - R) + S * R, F = (T - l.min) * x, F = yt(~~F, 0, d - 1), L = g[F], C = 255), y.set([L[0], L[1], L[2], C], _), _ += f * 4;
5281
+ b = r[z][M], S = r[z][M + 1], b == null || S == null ? (L = O, C = 0) : (T = b * (1 - R) + S * R, F = (T - l.min) * x, F = yt(~~F, 0, d - 1), L = g[F], C = 255), y.set([L[0], L[1], L[2], C], _), _ += f * 4;
5282
5282
  v += A;
5283
5283
  }
5284
5284
  const I = new ImageData(y, f, p);
@@ -5311,7 +5311,6 @@ function hu(e, t) {
5311
5311
  const s = r + 1 < e.length ? e[r + 1] : null;
5312
5312
  return {
5313
5313
  id: i.id,
5314
- label: i.label,
5315
5314
  color: lt(i.color),
5316
5315
  data: t.map((o, a) => [o[0], i.top[a], s ? s.top[a] : null])
5317
5316
  };
@@ -5431,7 +5430,7 @@ function xu(e, t, n) {
5431
5430
  return t[i].values[n];
5432
5431
  return null;
5433
5432
  }
5434
- const Di = 0.1, Qe = 1e3, vu = 150, wu = 30, bu = 10;
5433
+ const Oi = 0.1, Qe = 1e3, vu = 150, wu = 30, bu = 10;
5435
5434
  function ef(e) {
5436
5435
  if (!e || e.length === 0)
5437
5436
  return [];
@@ -5443,37 +5442,37 @@ function ef(e) {
5443
5442
  function nf(e, t) {
5444
5443
  if (!e || e.length === 0)
5445
5444
  return [];
5446
- const n = e ? e.map((x) => [x.easting, x.northing, x.tvd, x.md]) : [], i = new On(n, { tension: 0.75, arcDivisions: 5e3 }), r = i.length, s = Math.round(r * bu);
5445
+ const n = e ? e.map((x) => [x.easting, x.northing, x.tvd, x.md]) : [], i = new Dn(n, { tension: 0.75, arcDivisions: 5e3 }), r = i.length, s = Math.round(r * bu);
5447
5446
  let o = null;
5448
5447
  s > 0 ? o = $r(i.getPoints(s), 5e-4, 10) : o = [[n[0][0], n[0][1]]];
5449
- const a = o[0], c = o[o.length - 1], h = O.distance(a, c);
5448
+ const a = o[0], c = o[o.length - 1], h = D.distance(a, c);
5450
5449
  let l = null;
5451
5450
  if (h < vu) {
5452
5451
  const v = t / 180 * Math.PI;
5453
- l = new O(Math.cos(v), Math.sin(v)).mutable;
5452
+ l = new D(Math.cos(v), Math.sin(v)).mutable;
5454
5453
  } else
5455
5454
  l = Su(o, wu);
5456
5455
  const u = Math.max(0, Qe - r), f = u + r, p = [];
5457
5456
  let d = [];
5458
5457
  const g = l.toArray();
5459
- u > 0 && (d = xi(Math.ceil(u * Di)).map(
5458
+ u > 0 && (d = xi(Math.ceil(u * Oi)).map(
5460
5459
  (x) => l.set(g).scale(u * (1 - x)).subFrom(a).toArray()
5461
5460
  ), d.pop(), p.push(...d)), p.push(...o);
5462
- const y = xi(Math.ceil(Qe * Di)).map(
5461
+ const y = xi(Math.ceil(Qe * Oi)).map(
5463
5462
  (x) => l.set(g).scale(Qe * x).add(c).toArray()
5464
5463
  ).splice(1);
5465
5464
  return p.push(...y), Br(p, null, f);
5466
5465
  }
5467
5466
  function Su(e, t) {
5468
- const n = O.zero.mutable;
5467
+ const n = D.zero.mutable;
5469
5468
  let i = 0;
5470
- const r = O.zero.mutable;
5469
+ const r = D.zero.mutable;
5471
5470
  for (let s = 0; s < e.length - 1; s++) {
5472
5471
  const o = e.length - 1 - s;
5473
5472
  if (r.set(e[o]).sub(e[o - 1]), n.add(r), i = n.magnitude, i > t)
5474
5473
  break;
5475
5474
  }
5476
- return i === 0 ? new O([0, 0]) : n.scale(1 / i);
5475
+ return i === 0 ? new D([0, 0]) : n.scale(1 / i);
5477
5476
  }
5478
5477
  function $r(e, t = 1e-3, n = 10) {
5479
5478
  if (e.length <= 4)
@@ -5509,7 +5508,7 @@ class rf extends Ct {
5509
5508
  b > h && (b = h, b * d < v && (b = v / d));
5510
5509
  const S = u.invert(u.range()[0]) + x, T = u.invert(u.range()[1]) - x, [F, L] = this.getSurfacesAreaEdges();
5511
5510
  c.save(), c.font = `${b * d}px ${this.options.font || this.defaultFont}`;
5512
- let D = c.measureText(i.label), C = D.width / p;
5511
+ let O = c.measureText(i.label), C = O.width / p;
5513
5512
  if (y) {
5514
5513
  const H = S + (l ? -C : C);
5515
5514
  (!l && H > L || l && H < L) && (y = !1);
@@ -5535,14 +5534,14 @@ class rf extends Ct {
5535
5534
  s,
5536
5535
  o
5537
5536
  );
5538
- X || (X = new O(z.x, M));
5537
+ X || (X = new D(z.x, M));
5539
5538
  const B = X.y - z.y;
5540
5539
  if (B < b) {
5541
5540
  if (B * d < v)
5542
5541
  return;
5543
- b = B, c.font = `${b * d}px ${this.options.font || this.defaultFont}`, D = c.measureText(i.label), C = D.width / p;
5542
+ b = B, c.font = `${b * d}px ${this.options.font || this.defaultFont}`, O = c.measureText(i.label), C = O.width / p;
5544
5543
  }
5545
- const W = y !== l ? O.right : O.left, Q = this.calcAreaDir(
5544
+ const W = y !== l ? D.right : D.left, Q = this.calcAreaDir(
5546
5545
  R,
5547
5546
  $,
5548
5547
  I,
@@ -5566,10 +5565,10 @@ class rf extends Ct {
5566
5565
  let b;
5567
5566
  const S = 5;
5568
5567
  u ? b = s ? Math.max(A, x) : Math.min(A, x) : b = s ? Math.min(v, _) : Math.max(v, _);
5569
- const T = y / S * (u ? -1 : 1), { data: F } = i, L = this.calcPos(F, b, S, T), D = this.calcLineDir(F, b, S, T, l, u ? O.left : O.right);
5570
- if (!L || !D)
5568
+ const T = y / S * (u ? -1 : 1), { data: F } = i, L = this.calcPos(F, b, S, T), O = this.calcLineDir(F, b, S, T, l, u ? D.left : D.right);
5569
+ if (!L || !O)
5571
5570
  return;
5572
- const C = b, I = L.y - Rr - d / 2, N = O.angleRight(D) - (u ? Math.PI : 0);
5571
+ const C = b, I = L.y - Rr - d / 2, N = D.angleRight(O) - (u ? Math.PI : 0);
5573
5572
  r.textAlign = u ? "right" : "left", r.translate(o(C), a(I)), r.rotate(N), r.fillStyle = this.colorToCSSColor(i.color), r.textBaseline = "middle", r.fillText(i.label, 0, 0), r.restore();
5574
5573
  }, this.render = this.render.bind(this), this.getMarginsInWorldCoordinates = this.getMarginsInWorldCoordinates.bind(this), this.getSurfacesAreaEdges = this.getSurfacesAreaEdges.bind(this), this.updateXFlipped = this.updateXFlipped.bind(this), this.generateSurfacesWithAvgDepth = this.generateSurfacesWithAvgDepth.bind(this);
5575
5574
  }
@@ -5617,7 +5616,7 @@ class rf extends Ct {
5617
5616
  drawAreaLabels() {
5618
5617
  this.areasWithAvgTopDepth.forEach((t, n, i) => {
5619
5618
  const r = i.reduce((s, o, a) => (a > n && (s == null || o.avgTopDepth < s.avgTopDepth) && (s = o), s), null);
5620
- r && this.drawAreaLabel(t, r, i, n);
5619
+ this.drawAreaLabel(t, r, i, n);
5621
5620
  });
5622
5621
  }
5623
5622
  drawLineLabels() {
@@ -5630,7 +5629,7 @@ class rf extends Ct {
5630
5629
  return n = "000000".substr(0, 6 - n.length) + n, `#${n}`;
5631
5630
  }
5632
5631
  calcPos(t, n, i, r, s = null, o = null, a = null, c = null, h = null) {
5633
- const l = O.zero.mutable;
5632
+ const l = D.zero.mutable;
5634
5633
  let u = 0;
5635
5634
  for (let f = 0; f < i; f++) {
5636
5635
  const p = n + f * r, d = wt(t, p, s, o);
@@ -5639,7 +5638,7 @@ class rf extends Ct {
5639
5638
  l.add(p, y), u++;
5640
5639
  }
5641
5640
  }
5642
- return u === 0 ? null : O.divide(l, u);
5641
+ return u === 0 ? null : D.divide(l, u);
5643
5642
  }
5644
5643
  getAlternativeYValueIfAvailable(t, n, i, r, s, o) {
5645
5644
  if (!r)
@@ -5659,42 +5658,42 @@ class rf extends Ct {
5659
5658
  }
5660
5659
  return a;
5661
5660
  }
5662
- calcLineDir(t, n, i, r, s, o = O.left, a = null, c = null) {
5661
+ calcLineDir(t, n, i, r, s, o = D.left, a = null, c = null) {
5663
5662
  const h = o.mutable, l = wt(t, n, a, c);
5664
5663
  if (l === null)
5665
5664
  return h;
5666
- const u = new O(n, l * s), f = O.zero.mutable;
5665
+ const u = new D(n, l * s), f = D.zero.mutable;
5667
5666
  for (let p = 1; p <= i; p++) {
5668
5667
  const d = n + p * r, g = wt(t, n, a, c);
5669
5668
  g !== null && (f.set(d, g * s), f.sub(u), h.add(f));
5670
5669
  }
5671
5670
  return h;
5672
5671
  }
5673
- calcAreaDir(t, n, i, r, s, o = O.left, a = null, c = null, h = 0, l = Math.PI / 4, u = 4, f = null, p = null, d = null) {
5674
- const g = [], y = O.zero.mutable;
5672
+ calcAreaDir(t, n, i, r, s, o = D.left, a = null, c = null, h = 0, l = Math.PI / 4, u = 4, f = null, p = null, d = null) {
5673
+ const g = [], y = D.zero.mutable;
5675
5674
  let _;
5676
5675
  for (let T = 0; T <= r; T++) {
5677
- const F = i + T * s, L = wt(t, F, a, c), D = wt(n, F, a, c) || c, C = this.getAlternativeYValueIfAvailable(
5676
+ const F = i + T * s, L = wt(t, F, a, c), O = wt(n, F, a, c) || c, C = this.getAlternativeYValueIfAvailable(
5678
5677
  F,
5679
5678
  a,
5680
5679
  c,
5681
5680
  f,
5682
5681
  p,
5683
5682
  d
5684
- ), I = C ? Math.min(D, C) : D;
5683
+ ), I = C ? Math.min(O, C) : O;
5685
5684
  if (T === 0) {
5686
5685
  if (L === null)
5687
- return O.angleRight(o);
5686
+ return D.angleRight(o);
5688
5687
  const N = (L + I) / 2;
5689
- _ = new O(i, N);
5688
+ _ = new D(i, N);
5690
5689
  } else
5691
- L !== null ? (y.set(F, (L + I) / 2), y.sub(_), g.push(O.angleRight(y))) : g.push(O.angleRight(o));
5690
+ L !== null ? (y.set(F, (L + I) / 2), y.sub(_), g.push(D.angleRight(y))) : g.push(D.angleRight(o));
5692
5691
  }
5693
5692
  const x = g[0], v = g.map((T) => T - x);
5694
5693
  let A = 0;
5695
5694
  return v.reduce((T, F) => {
5696
- const L = (Math.abs(F) - h) / l, D = Math.pow(1 - yt(L, 0, 1), u);
5697
- return A += D, T + F * D;
5695
+ const L = (Math.abs(F) - h) / l, O = Math.pow(1 - yt(L, 0, 1), u);
5696
+ return A += O, T + F * O;
5698
5697
  }, 0) / A + x;
5699
5698
  }
5700
5699
  updateXFlipped() {
@@ -5743,8 +5742,8 @@ class rf extends Ct {
5743
5742
  const p = Math.max(u[0][0], f[0][0]), d = Math.min(u[0][0], f[0][0]), g = {
5744
5743
  left: n ? p : d,
5745
5744
  right: n ? d : p
5746
- }, y = this.getMarginsInWorldCoordinates(), _ = a + y, x = c - y, [v, A] = this.getSurfacesAreaEdges(), b = n ? Math.min(_, v) : Math.max(_, v), S = n ? Math.max(x, A) : Math.min(x, A), T = Math.max(n ? b - g.left : g.left - b, 0), F = Math.max(n ? g.right - S : S - g.right, 0), L = T * s, D = F * s;
5747
- return T > F || L > o || L < o && D < o && n || f[0][1] < h;
5745
+ }, y = this.getMarginsInWorldCoordinates(), _ = a + y, x = c - y, [v, A] = this.getSurfacesAreaEdges(), b = n ? Math.min(_, v) : Math.max(_, v), S = n ? Math.max(x, A) : Math.min(x, A), T = Math.max(n ? b - g.left : g.left - b, 0), F = Math.max(n ? g.right - S : S - g.right, 0), L = T * s, O = F * s;
5746
+ return T > F || L > o || L < o && O < o && n || f[0][1] < h;
5748
5747
  }
5749
5748
  }
5750
5749
  const ku = 1e4;
@@ -5771,8 +5770,10 @@ class sf extends Ir {
5771
5770
  const n = new Gt(), { data: i } = t, r = 0.5;
5772
5771
  n.lineStyle(Rr, t.color, 1, r, !0);
5773
5772
  let s = !1;
5774
- for (let o = 0; o < i.length; o++)
5775
- i[o][1] ? s ? n.lineTo(i[o][0], i[o][1]) : (n.moveTo(i[o][0], i[o][1]), s = !0) : s = !1;
5773
+ for (let o = 0; o < i.length; o++) {
5774
+ const a = i[o];
5775
+ a && a[1] && a[0] ? s ? n.lineTo(a[0], a[1]) : (n.moveTo(a[0], a[1]), s = !0) : s = !1;
5776
+ }
5776
5777
  this.addChild(n);
5777
5778
  };
5778
5779
  }
@@ -5902,7 +5903,7 @@ const Fu = {
5902
5903
  alpha: e.alpha,
5903
5904
  texture: t,
5904
5905
  alignment: e.alignment
5905
- }), this.activeTexture = t;
5906
+ });
5906
5907
  } else
5907
5908
  this.graphics.lineStyle({
5908
5909
  width: e.width * e.scale,
@@ -6049,9 +6050,9 @@ const Fu = {
6049
6050
  };
6050
6051
  let Yr = gt;
6051
6052
  Yr.dashTextureCache = {};
6052
- const bn = (e) => new O(e.x, e.y), Ru = (e) => new qi(e[0], e[1]), Wr = (e) => {
6053
+ const bn = (e) => new D(e.x, e.y), Ru = (e) => new qi(e[0], e[1]), Wr = (e) => {
6053
6054
  if (e.length < 2)
6054
- return [new O(0)];
6055
+ return [new D(0)];
6055
6056
  let t;
6056
6057
  return e.map((n, i, r) => {
6057
6058
  if (i < r.length - 1) {
@@ -6086,10 +6087,10 @@ const bn = (e) => new O(e.x, e.y), Ru = (e) => new qi(e[0], e[1]), Wr = (e) => {
6086
6087
  (h) => h.start <= i && h.end >= i
6087
6088
  ), o = s ? s.diameter : 0, a = t.filter((h) => G(h) > o).sort((h, l) => G(h) - G(l)).find((h) => h.start <= i && h.end >= i), c = n.find((h) => h.start <= i && h.end >= i && h.diameter > o);
6088
6089
  return a ? G(a) : c ? c.diameter : 100;
6089
- }, Ou = (e, t, n, i) => {
6090
+ }, Du = (e, t, n, i) => {
6090
6091
  const s = e.sort((a, c) => c.diameter - a.diameter).find((a) => a.start <= n && a.end >= n), o = t.find((a) => a.start <= n && a.end >= n);
6091
6092
  return s && i !== "Open hole frac pack" && i !== "Open hole gravel pack" ? G(s) : o ? o.diameter : 100;
6092
- }, Du = (e, t, n, i) => {
6093
+ }, Ou = (e, t, n, i) => {
6093
6094
  const s = e.sort((h, l) => G(h) - G(l)).find((h) => h.start <= i && h.end >= i);
6094
6095
  if (s)
6095
6096
  return G(s);
@@ -6146,7 +6147,7 @@ const bn = (e) => new O(e.x, e.y), Ru = (e) => new qi(e[0], e[1]), Wr = (e) => {
6146
6147
  return $e([e.start, e.end], l).flatMap((d, g, y) => {
6147
6148
  if (g === y.length - 1)
6148
6149
  return [];
6149
- const _ = y[g + 1], x = Du(o, h, c, d);
6150
+ const _ = y[g + 1], x = Ou(o, h, c, d);
6150
6151
  return [{ top: d, bottom: _, diameter: x * r }];
6151
6152
  }).map((d) => ({
6152
6153
  diameter: d.diameter,
@@ -6242,7 +6243,7 @@ const bn = (e) => new O(e.x, e.y), Ru = (e) => new qi(e[0], e[1]), Wr = (e) => {
6242
6243
  return $e([e.start, e.end], a).flatMap((u, f, p) => {
6243
6244
  if (f === p.length - 1)
6244
6245
  return [];
6245
- const d = p[f + 1], g = Ou(s, o, u, e.subKind);
6246
+ const d = p[f + 1], g = Du(s, o, u, e.subKind);
6246
6247
  return [{ top: u, bottom: d, diameter: g * i }];
6247
6248
  }).map((u) => {
6248
6249
  const f = r(u.top, u.bottom);
@@ -6392,15 +6393,12 @@ const bn = (e) => new O(e.x, e.y), Ru = (e) => new qi(e[0], e[1]), Wr = (e) => {
6392
6393
  e.subKind
6393
6394
  );
6394
6395
  class i0 extends Cn {
6395
- // TODO unused?
6396
6396
  /**
6397
6397
  * @param segments - An array of segments with points and diameter to construct this rope.
6398
- * @param textureScale - scaling factor for repeated texture. To create a tiling rope
6399
- * set baseTexture.wrapMode to PIXI.WRAP_MODES.REPEAT and use a power of two texture.
6400
6398
  */
6401
- constructor(t, n = 0) {
6402
- const i = Ue(t, (r) => r.points.length);
6403
- super(new Float32Array(i * 4), new Float32Array(i * 4), new Uint16Array((i - 1) * 6)), this.segments = t, this.textureScale = n, this.build();
6399
+ constructor(t) {
6400
+ const n = Ue(t, (i) => i.points.length);
6401
+ super(new Float32Array(n * 4), new Float32Array(n * 4), new Uint16Array((n - 1) * 6)), this.segments = t, this.build();
6404
6402
  }
6405
6403
  /**
6406
6404
  * The max width (i.e., thickness) of the rope.
@@ -6464,11 +6462,10 @@ class r0 extends Ln {
6464
6462
  /**
6465
6463
  * @param texture - The texture to use on the rope.
6466
6464
  * @param segments - An array of segments with points and diaeter to construct this rope.
6467
- * @param {number} textureScale - Optional. Adjust interval of repeated texture
6468
6465
  */
6469
- constructor(t, n, i = 0) {
6470
- const r = new i0(n, i), s = new kn(t);
6471
- t.baseTexture.wrapMode = ke.REPEAT, super(r, s), this.autoUpdate = !0;
6466
+ constructor(t, n) {
6467
+ const i = new i0(n), r = new kn(t);
6468
+ t.baseTexture.wrapMode = ke.REPEAT, super(i, r), this.autoUpdate = !0;
6472
6469
  }
6473
6470
  _render(t) {
6474
6471
  const n = this.geometry;
@@ -6634,7 +6631,7 @@ const h0 = (e, t, n) => (i) => {
6634
6631
  case "cementSqueeze":
6635
6632
  return n(i);
6636
6633
  default:
6637
- return De(i);
6634
+ return Oe(i);
6638
6635
  }
6639
6636
  }, l0 = (e) => ({
6640
6637
  exaggerationFactor: 2,
@@ -6643,8 +6640,8 @@ const h0 = (e, t, n) => (i) => {
6643
6640
  casingOptions: Fl,
6644
6641
  cementOptions: Il,
6645
6642
  cementSqueezeOptions: zl,
6646
- screenOptions: Ol,
6647
- tubingOptions: Dl,
6643
+ screenOptions: Dl,
6644
+ tubingOptions: Ol,
6648
6645
  cementPlugOptions: Nl,
6649
6646
  perforationOptions: Rl
6650
6647
  }), Zr = class extends Ir {
@@ -6964,8 +6961,8 @@ const h0 = (e, t, n) => (i) => {
6964
6961
  drawComplexRope(e, t) {
6965
6962
  if (e.length === 0)
6966
6963
  return null;
6967
- const { exaggerationFactor: n } = this.options, i = new r0(t, e, n);
6968
- return this.addChild(i), i;
6964
+ const n = new r0(t, e);
6965
+ return this.addChild(n), n;
6969
6966
  }
6970
6967
  createCasingTexture(e) {
6971
6968
  return new V(V.WHITE.baseTexture, null, new qt(0, 0, 16, e));
@@ -7689,7 +7686,7 @@ const Wi = (e, t) => {
7689
7686
  case "solid":
7690
7687
  return e.solid(t);
7691
7688
  default:
7692
- return De(t.lineType);
7689
+ return Oe(t.lineType);
7693
7690
  }
7694
7691
  };
7695
7692
  class hf extends Ct {
@@ -7916,7 +7913,7 @@ class z0 {
7916
7913
  this._axis && this._axis.onRescale(t), this.layers && this.layers.forEach((n) => n.isVisible === !0 ? n.onRescale(t) : {});
7917
7914
  }
7918
7915
  }
7919
- class O0 {
7916
+ class D0 {
7920
7917
  constructor(t, n) {
7921
7918
  this.elements = {}, this.listeners = {}, this.enabled = !0;
7922
7919
  const i = q(n);
@@ -7983,7 +7980,7 @@ class O0 {
7983
7980
  this.source.remove();
7984
7981
  }
7985
7982
  }
7986
- const D0 = (e, t) => new O0(e, t);
7983
+ const O0 = (e, t) => new D0(e, t);
7987
7984
  class lf {
7988
7985
  /**
7989
7986
  * Interface to control layers, reference system, axis and overlay. overlay is created on instantiation, does not currently support opt-out.
@@ -7999,7 +7996,7 @@ class lf {
7999
7996
  */
8000
7997
  constructor(t) {
8001
7998
  const { container: n, axisOptions: i, scaleOptions: r, referenceSystem: s, layers: o, path: a } = t;
8002
- this._referenceSystem = s || a && new Qt(a), this._overlay = D0(this, n), this.layerManager = new z0(this._overlay.elm.node(), r, i), o && (this.layerManager.addLayers(o), this.setOverlayZIndex(o));
7999
+ this._referenceSystem = s || a && new Qt(a), this._overlay = O0(this, n), this.layerManager = new z0(this._overlay.elm.node(), r, i), o && (this.layerManager.addLayers(o), this.setOverlayZIndex(o));
8003
8000
  }
8004
8001
  /**
8005
8002
  * Sets reference system, overrides any existing reference systems in place
@@ -8213,7 +8210,7 @@ export {
8213
8210
  af as SeismicCanvasLayer,
8214
8211
  cf as WellborepathLayer,
8215
8212
  ul as ZoomPanHandler,
8216
- De as assertNever,
8213
+ Oe as assertNever,
8217
8214
  wn as calcSize,
8218
8215
  Fl as defaultCasingOptions,
8219
8216
  Il as defaultCementOptions,
@@ -8222,9 +8219,9 @@ export {
8222
8219
  El as defaultHoleOptions,
8223
8220
  kl as defaultInternalLayerOptions,
8224
8221
  Rl as defaultPerforationOptions,
8225
- Ol as defaultScreenOptions,
8226
- Dl as defaultTubingOptions,
8227
- Dr as findIndexOfSample,
8222
+ Dl as defaultScreenOptions,
8223
+ Ol as defaultTubingOptions,
8224
+ Or as findIndexOfSample,
8228
8225
  wt as findSampleAtPos,
8229
8226
  bl as foldCompletion,
8230
8227
  K as foldPerforationSubKind,
@@ -8233,7 +8230,7 @@ export {
8233
8230
  J0 as generateSeismicSliceImage,
8234
8231
  tf as generateSurfaceData,
8235
8232
  W0 as getOverlap,
8236
- Oi as getOverlapOffset,
8233
+ Di as getOverlapOffset,
8237
8234
  j0 as getPicksData,
8238
8235
  Q0 as getSeismicInfo,
8239
8236
  K0 as getSeismicOptions,