@zyzgroup/core-web 0.0.73 → 0.0.74

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.
@@ -667,7 +667,7 @@ function ba(i, t = {}) {
667
667
  declarations: _()
668
668
  });
669
669
  }
670
- function L() {
670
+ function N() {
671
671
  var M = r(), k = g(/^@([-\w]+)?keyframes\s*/);
672
672
  if (k) {
673
673
  var F = k[1];
@@ -791,7 +791,7 @@ function ba(i, t = {}) {
791
791
  }
792
792
  function $t() {
793
793
  if (i[0] == "@")
794
- return L() || $() || j() || R() || ft() || ot() || se() || Y() || X() || U() || Q();
794
+ return N() || $() || j() || R() || ft() || ot() || se() || Y() || X() || U() || Q();
795
795
  }
796
796
  function ie() {
797
797
  var M = r(), k = v();
@@ -1335,7 +1335,7 @@ function Ic(i) {
1335
1335
  !1
1336
1336
  );
1337
1337
  }
1338
- function N(i) {
1338
+ function L(i) {
1339
1339
  return i * Math.PI / 180;
1340
1340
  }
1341
1341
  function nt(i) {
@@ -1386,8 +1386,8 @@ function La(i, t, e, s, n, r, a, o, h, c) {
1386
1386
  const l = c * (i - e) / 2 + h * (t - s) / 2, u = -h * (i - e) / 2 + c * (t - s) / 2, p = a * a, g = o * o, m = l * l, x = u * u;
1387
1387
  let w = p * g - p * x - g * m;
1388
1388
  w < 0 && (w = 0), w /= p * x + g * m, w = Math.sqrt(w) * (n === r ? -1 : 1);
1389
- const v = w * a / o * u, S = w * -o / a * l, _ = c * v - h * S + (i + e) / 2, I = h * v + c * S + (t + s) / 2, L = (l - v) / a, R = (u - S) / o, U = (-l - v) / a, $ = (-u - S) / o, j = en(1, 0, L, R);
1390
- let X = en(L, R, U, $);
1389
+ const v = w * a / o * u, S = w * -o / a * l, _ = c * v - h * S + (i + e) / 2, I = h * v + c * S + (t + s) / 2, N = (l - v) / a, R = (u - S) / o, U = (-l - v) / a, $ = (-u - S) / o, j = en(1, 0, N, R);
1390
+ let X = en(N, R, U, $);
1391
1391
  return r === 0 && X > 0 && (X -= De), r === 1 && X < 0 && (X += De), [_, I, j, X];
1392
1392
  }
1393
1393
  function Na(i, t) {
@@ -1420,9 +1420,9 @@ function Un(i, t, e, s, n, r, a, o, h) {
1420
1420
  x.push(Na(w, v)), w += v;
1421
1421
  return x.map((_) => {
1422
1422
  for (let I = 0; I < _.length; I += 2) {
1423
- let L = _[I + 0], R = _[I + 1];
1424
- L *= a, R *= o;
1425
- const U = l * L - c * R, $ = c * L + l * R;
1423
+ let N = _[I + 0], R = _[I + 1];
1424
+ N *= a, R *= o;
1425
+ const U = l * N - c * R, $ = c * N + l * R;
1426
1426
  _[I + 0] = U + m[0], _[I + 1] = $ + m[1];
1427
1427
  }
1428
1428
  return _;
@@ -1640,7 +1640,7 @@ class Me {
1640
1640
  if (!w.length)
1641
1641
  continue;
1642
1642
  w.forEach((_, I) => {
1643
- const [L, R, U, $, j, X, Y, Q] = _;
1643
+ const [N, R, U, $, j, X, Y, Q] = _;
1644
1644
  m = ["C", U, $, j, X, Y, Q], I < w.length - 1 && e.push(m);
1645
1645
  });
1646
1646
  break;
@@ -1771,10 +1771,10 @@ class Me {
1771
1771
  v = p * p - 4 * g * u, S = Math.sqrt(v), !(v < 0) && (x = (-p + S) / (2 * u), x > 0 && x < 1 && c.push(x), w = (-p - S) / (2 * u), w > 0 && w < 1 && c.push(w));
1772
1772
  }
1773
1773
  let _ = c.length, I;
1774
- const L = _;
1774
+ const N = _;
1775
1775
  for (; _--; )
1776
1776
  m = c[_], I = 1 - m, l[0][_] = I * I * I * t + 3 * I * I * m * s + 3 * I * m * m * r + m * m * m * o, l[1][_] = I * I * I * e + 3 * I * I * m * n + 3 * I * m * m * a + m * m * m * h;
1777
- return l[0][L] = t, l[1][L] = e, l[0][L + 1] = o, l[1][L + 1] = h, l[0].length = l[1].length = L + 2, {
1777
+ return l[0][N] = t, l[1][N] = e, l[0][N + 1] = o, l[1][N + 1] = h, l[0].length = l[1].length = N + 2, {
1778
1778
  min: { x: Math.min.apply(0, l[0]), y: Math.min.apply(0, l[1]) },
1779
1779
  max: { x: Math.max.apply(0, l[0]), y: Math.max.apply(0, l[1]) }
1780
1780
  };
@@ -1990,12 +1990,12 @@ class W extends Cs {
1990
1990
  }
1991
1991
  followTo(t, e = 3) {
1992
1992
  this.rotateTo(t);
1993
- const { dx: s, dy: n } = Ut(N(this.degree), e);
1993
+ const { dx: s, dy: n } = Ut(L(this.degree), e);
1994
1994
  this.vx = s, this.vy = n, this.nextFrame();
1995
1995
  }
1996
1996
  followAccelerationTo(t, e = 0.05) {
1997
1997
  this.rotateTo(t);
1998
- const { dx: s, dy: n } = Ut(N(this.degree), e);
1998
+ const { dx: s, dy: n } = Ut(L(this.degree), e);
1999
1999
  this.ax = s, this.ay = n, this.nextFrame();
2000
2000
  }
2001
2001
  /// 碰撞检测
@@ -2108,13 +2108,13 @@ class ae extends W {
2108
2108
  this.cX = t, this.cY = e, this.cZ = s;
2109
2109
  }
2110
2110
  rotateX(t) {
2111
- ({ x: this.y, y: this.z } = Pt(N(t), this.y, this.z));
2111
+ ({ x: this.y, y: this.z } = Pt(L(t), this.y, this.z));
2112
2112
  }
2113
2113
  rotateY(t) {
2114
- ({ x: this.x, y: this.z } = Pt(N(t), this.x, this.z));
2114
+ ({ x: this.x, y: this.z } = Pt(L(t), this.x, this.z));
2115
2115
  }
2116
2116
  rotateZ(t) {
2117
- ({ x: this.x, y: this.y } = Pt(N(t), this.x, this.y));
2117
+ ({ x: this.x, y: this.y } = Pt(L(t), this.x, this.y));
2118
2118
  }
2119
2119
  getScreenX() {
2120
2120
  const t = this.fl / (this.fl + this.z + this.cZ);
@@ -2478,7 +2478,7 @@ class at {
2478
2478
  };
2479
2479
  }
2480
2480
  getGroupCoords(t) {
2481
- const e = this.value[0], s = this.value[1], n = this.value[2], r = this.value[3], a = this.value[4], o = this.value[5], h = t.value[0], c = t.value[1], l = t.value[2], u = t.value[3], p = t.value[4], g = t.value[5], m = h * u, x = c * l, w = (l * s - e * u) / (x - m), v = (h * s - e * c) / (m - x), S = (l * r - n * u) / (x - m), _ = (h * r - n * c) / (m - x), I = (l * (o - g) + u * (p - a)) / (x - m), L = (h * (o - g) + c * (p - a)) / (m - x), R = [w, v, S, _, I, L];
2481
+ const e = this.value[0], s = this.value[1], n = this.value[2], r = this.value[3], a = this.value[4], o = this.value[5], h = t.value[0], c = t.value[1], l = t.value[2], u = t.value[3], p = t.value[4], g = t.value[5], m = h * u, x = c * l, w = (l * s - e * u) / (x - m), v = (h * s - e * c) / (m - x), S = (l * r - n * u) / (x - m), _ = (h * r - n * c) / (m - x), I = (l * (o - g) + u * (p - a)) / (x - m), N = (h * (o - g) + c * (p - a)) / (m - x), R = [w, v, S, _, I, N];
2482
2482
  return new at(R);
2483
2483
  }
2484
2484
  toString(t = 6) {
@@ -2538,7 +2538,7 @@ class at {
2538
2538
  ), this;
2539
2539
  }
2540
2540
  rotate(t, e = 0, s = 0) {
2541
- const n = N(t), r = Math.cos(n), a = Math.sin(n);
2541
+ const n = L(t), r = Math.cos(n), a = Math.sin(n);
2542
2542
  return this.multiply([r, a, -a, r, e, s]), this.translate(-e, -s), this.toMatrix3D(), this;
2543
2543
  }
2544
2544
  rotateTo(t, e = 0, s = 0) {
@@ -2612,10 +2612,10 @@ class at {
2612
2612
  }
2613
2613
  skew(t, e = t) {
2614
2614
  return this.multiply([
2615
- Math.cos(N(e)),
2616
- Math.sin(N(e)),
2617
- -Math.sin(N(t)),
2618
- Math.cos(N(t)),
2615
+ Math.cos(L(e)),
2616
+ Math.sin(L(e)),
2617
+ -Math.sin(L(t)),
2618
+ Math.cos(L(t)),
2619
2619
  0,
2620
2620
  0
2621
2621
  ]), this.toMatrix3D(), this;
@@ -2810,7 +2810,7 @@ class Ft {
2810
2810
  this.m31 * this.m31 + this.m32 * this.m32 + this.m33 * this.m33
2811
2811
  );
2812
2812
  let n = nt(ut(Math.asin(-this.m13), -1, 1)), r = nt(Math.atan2(this.m23, this.m33));
2813
- Math.cos(N(n)) === 0 && (r = nt(Math.atan2(-this.m31, this.m22)));
2813
+ Math.cos(L(n)) === 0 && (r = nt(Math.atan2(-this.m31, this.m22)));
2814
2814
  let a = nt(Math.atan2(this.m12, this.m11));
2815
2815
  return this.m11 < 0 && this.m22 >= 0 && (a += 180), {
2816
2816
  x: this.m41,
@@ -2862,15 +2862,15 @@ class Ft {
2862
2862
  1,
2863
2863
  0,
2864
2864
  0,
2865
- N(t),
2865
+ L(t),
2866
2866
  0,
2867
2867
  1,
2868
2868
  0,
2869
- N(e),
2869
+ L(e),
2870
2870
  0,
2871
2871
  0,
2872
2872
  1,
2873
- N(s),
2873
+ L(s),
2874
2874
  0,
2875
2875
  0,
2876
2876
  0,
@@ -2902,7 +2902,7 @@ class Ft {
2902
2902
  // }
2903
2903
  rotate(t = 0, e = 0, s = 0) {
2904
2904
  s && (this.is3dSpecial = !0);
2905
- const n = N(t), r = N(e), a = N(s), o = Math.cos(n), h = Math.sin(n), c = Math.cos(r), l = Math.sin(r), u = Math.cos(a), p = Math.sin(a), g = o * u, m = o * p, x = h * u, w = h * p;
2905
+ const n = L(t), r = L(e), a = L(s), o = Math.cos(n), h = Math.sin(n), c = Math.cos(r), l = Math.sin(r), u = Math.cos(a), p = Math.sin(a), g = o * u, m = o * p, x = h * u, w = h * p;
2906
2906
  return this.m11 = c * u, this.m21 = -c * p, this.m31 = l, this.m12 = m + x * l, this.m22 = g - w * l, this.m32 = -h * c, this.m13 = w - g * l, this.m23 = x + m * l, this.m33 = o * c, this;
2907
2907
  }
2908
2908
  perspective(t) {
@@ -3057,10 +3057,10 @@ function jn(i) {
3057
3057
  degree: 0
3058
3058
  }
3059
3059
  ), a = new DOMMatrix([
3060
- Math.cos(N(r)) * s,
3061
- Math.sin(N(r)) * s,
3062
- -Math.sin(N(r)) * n,
3063
- Math.cos(N(r)) * n,
3060
+ Math.cos(L(r)) * s,
3061
+ Math.sin(L(r)) * s,
3062
+ -Math.sin(L(r)) * n,
3063
+ Math.cos(L(r)) * n,
3064
3064
  t,
3065
3065
  e
3066
3066
  ]);
@@ -4055,7 +4055,7 @@ var Yn = { exports: {} };
4055
4055
  function I(f, d) {
4056
4056
  return typeof f == o ? f.apply(d && d[0] || n, d) : f;
4057
4057
  }
4058
- function L(f, d) {
4058
+ function N(f, d) {
4059
4059
  return f === n ? d : f;
4060
4060
  }
4061
4061
  function R(f, d, y) {
@@ -4482,7 +4482,7 @@ var Yn = { exports: {} };
4482
4482
  }
4483
4483
  var Ke = 1, pt = 2, ne = 4, Xt = 8, Dt = Xt, we = 16, Et = 32;
4484
4484
  function Mt(f) {
4485
- this.options = x({}, this.defaults, f || {}), this.id = zt(), this.manager = null, this.options.enable = L(this.options.enable, !0), this.state = Ke, this.simultaneous = {}, this.requireFail = [];
4485
+ this.options = x({}, this.defaults, f || {}), this.id = zt(), this.manager = null, this.options.enable = N(this.options.enable, !0), this.state = Ke, this.simultaneous = {}, this.requireFail = [];
4486
4486
  }
4487
4487
  Mt.prototype = {
4488
4488
  /**
@@ -4870,7 +4870,7 @@ var Yn = { exports: {} };
4870
4870
  }
4871
4871
  });
4872
4872
  function It(f, d) {
4873
- return d = d || {}, d.recognizers = L(d.recognizers, It.defaults.preset), new Gs(f, d);
4873
+ return d = d || {}, d.recognizers = N(d.recognizers, It.defaults.preset), new Gs(f, d);
4874
4874
  }
4875
4875
  It.VERSION = "2.0.7", It.defaults = {
4876
4876
  /**
@@ -5460,7 +5460,7 @@ class Es extends Cs {
5460
5460
  this.emit("panStart", E);
5461
5461
  }, I = (E) => {
5462
5462
  this.emit("panMove", E);
5463
- }, L = (E) => {
5463
+ }, N = (E) => {
5464
5464
  this.emit("panEnd", E);
5465
5465
  }, R = (E) => {
5466
5466
  this.emit("panCancel", E);
@@ -5493,9 +5493,9 @@ class Es extends Cs {
5493
5493
  }, k = (E) => {
5494
5494
  !E.target || this.container == E.target || this.container.contains(E.target) || this.emit("tapOutSide", E);
5495
5495
  };
5496
- this.container.addEventListener("mousedown", t), this.container.addEventListener("mouseup", e), this.container.addEventListener("mousemove", s), this.container.addEventListener("mouseover", n), this.container.addEventListener("mouseout", r), this.container.addEventListener("click", a), this.container.addEventListener("dblclick", o), this.container.addEventListener("wheel", h), this.container.addEventListener("contextmenu", c), this.container.addEventListener("touchstart", l), this.container.addEventListener("touchend", u), this.container.addEventListener("touchcancel", p), this.container.addEventListener("touchmove", g), this.container.addEventListener("pointerdown", m), this.container.addEventListener("pointerup", x), this.container.addEventListener("pointercancel", w), this.container.addEventListener("pointermove", v), this.hammer.on("pan", S), this.hammer.on("panstart", _), this.hammer.on("panmove", I), this.hammer.on("panend", L), this.hammer.on("pancancel", R), this.hammer.on("panleft", U), this.hammer.on("panright", $), this.hammer.on("panup", j), this.hammer.on("pandown", X), this.hammer.on("pinch", Y), this.hammer.on("press", Q), this.hammer.on("rotate", ft), this.hammer.on("swipe", ot), this.hammer.on("swipeleft", se), this.hammer.on("swiperight", zt), this.hammer.on("swipeup", $t), this.hammer.on("swipedown", ie), this.hammer.on("tap", M), document.addEventListener("pointerdown", k, !1);
5496
+ this.container.addEventListener("mousedown", t), this.container.addEventListener("mouseup", e), this.container.addEventListener("mousemove", s), this.container.addEventListener("mouseover", n), this.container.addEventListener("mouseout", r), this.container.addEventListener("click", a), this.container.addEventListener("dblclick", o), this.container.addEventListener("wheel", h), this.container.addEventListener("contextmenu", c), this.container.addEventListener("touchstart", l), this.container.addEventListener("touchend", u), this.container.addEventListener("touchcancel", p), this.container.addEventListener("touchmove", g), this.container.addEventListener("pointerdown", m), this.container.addEventListener("pointerup", x), this.container.addEventListener("pointercancel", w), this.container.addEventListener("pointermove", v), this.hammer.on("pan", S), this.hammer.on("panstart", _), this.hammer.on("panmove", I), this.hammer.on("panend", N), this.hammer.on("pancancel", R), this.hammer.on("panleft", U), this.hammer.on("panright", $), this.hammer.on("panup", j), this.hammer.on("pandown", X), this.hammer.on("pinch", Y), this.hammer.on("press", Q), this.hammer.on("rotate", ft), this.hammer.on("swipe", ot), this.hammer.on("swipeleft", se), this.hammer.on("swiperight", zt), this.hammer.on("swipeup", $t), this.hammer.on("swipedown", ie), this.hammer.on("tap", M), document.addEventListener("pointerdown", k, !1);
5497
5497
  const F = () => {
5498
- this.container.removeEventListener("mousedown", t), this.container.removeEventListener("mouseup", e), this.container.removeEventListener("mousemove", s), this.container.removeEventListener("mouseover", n), this.container.removeEventListener("mouseout", r), this.container.removeEventListener("click", a), this.container.removeEventListener("dblclick", o), this.container.removeEventListener("wheel", h), this.container.removeEventListener("contextmenu", c), this.container.removeEventListener("touchstart", l), this.container.removeEventListener("touchend", u), this.container.removeEventListener("touchcancel", p), this.container.removeEventListener("touchmove", g), this.container.removeEventListener("pointerdown", m), this.container.removeEventListener("pointerup", x), this.container.removeEventListener("pointercancel", w), this.container.removeEventListener("pointermove", v), this.hammer.off("pan", S), this.hammer.off("panstart", _), this.hammer.off("panmove", I), this.hammer.off("panend", L), this.hammer.off("pancancel", R), this.hammer.off("panleft", U), this.hammer.off("panright", $), this.hammer.off("panup", j), this.hammer.off("pandown", X), this.hammer.off("pinch", Y), this.hammer.off("press", Q), this.hammer.off("rotate", ft), this.hammer.off("swipe", ot), this.hammer.off("swipeleft", se), this.hammer.off("swiperight", zt), this.hammer.off("swipeup", $t), this.hammer.off("swipedown", ie), this.hammer.off("tap", M), document.removeEventListener("pointerdown", k, !1), document.removeEventListener("touchstart", k, !1), document.removeEventListener("mousedown", k, !1);
5498
+ this.container.removeEventListener("mousedown", t), this.container.removeEventListener("mouseup", e), this.container.removeEventListener("mousemove", s), this.container.removeEventListener("mouseover", n), this.container.removeEventListener("mouseout", r), this.container.removeEventListener("click", a), this.container.removeEventListener("dblclick", o), this.container.removeEventListener("wheel", h), this.container.removeEventListener("contextmenu", c), this.container.removeEventListener("touchstart", l), this.container.removeEventListener("touchend", u), this.container.removeEventListener("touchcancel", p), this.container.removeEventListener("touchmove", g), this.container.removeEventListener("pointerdown", m), this.container.removeEventListener("pointerup", x), this.container.removeEventListener("pointercancel", w), this.container.removeEventListener("pointermove", v), this.hammer.off("pan", S), this.hammer.off("panstart", _), this.hammer.off("panmove", I), this.hammer.off("panend", N), this.hammer.off("pancancel", R), this.hammer.off("panleft", U), this.hammer.off("panright", $), this.hammer.off("panup", j), this.hammer.off("pandown", X), this.hammer.off("pinch", Y), this.hammer.off("press", Q), this.hammer.off("rotate", ft), this.hammer.off("swipe", ot), this.hammer.off("swipeleft", se), this.hammer.off("swiperight", zt), this.hammer.off("swipeup", $t), this.hammer.off("swipedown", ie), this.hammer.off("tap", M), document.removeEventListener("pointerdown", k, !1), document.removeEventListener("touchstart", k, !1), document.removeEventListener("mousedown", k, !1);
5499
5499
  };
5500
5500
  return this.addDOMEventBusRemoves(F), F;
5501
5501
  }
@@ -8778,11 +8778,11 @@ const Cl = (i) => {
8778
8778
  const S = Math.floor((w - c) / r), _ = Math.floor((x - l) / r);
8779
8779
  let I = Math.floor(
8780
8780
  r * (S + 1) - r / 2 + c
8781
- ), L = Math.floor(
8781
+ ), N = Math.floor(
8782
8782
  r * (_ + 1) - r / 2 + l
8783
8783
  );
8784
- I > o - 1 && (I = o - 1), L > h - 1 && (L = h - 1);
8785
- const R = (L * o + I) * 4;
8784
+ I > o - 1 && (I = o - 1), N > h - 1 && (N = h - 1);
8785
+ const R = (N * o + I) * 4;
8786
8786
  g[v] = a[R], g[v + 1] = a[R + 1], g[v + 2] = a[R + 2], g[v + 3] = a[R + 3];
8787
8787
  } else
8788
8788
  g[v] = a[v], g[v + 1] = a[v + 1], g[v + 2] = a[v + 2], g[v + 3] = a[v + 3];
@@ -11853,9 +11853,9 @@ class xs {
11853
11853
  ]), g = r / Math.sin(u / 2), m = t + g * p[0], x = e + g * p[1], w = [
11854
11854
  -h[1],
11855
11855
  h[0]
11856
- ], v = [c[1], -c[0]], S = function(L) {
11857
- const R = L[0];
11858
- return L[1] >= 0 ? Math.acos(R) : -Math.acos(R);
11856
+ ], v = [c[1], -c[0]], S = function(N) {
11857
+ const R = N[0];
11858
+ return N[1] >= 0 ? Math.acos(R) : -Math.acos(R);
11859
11859
  }, _ = S(w), I = S(v);
11860
11860
  this.lineTo(
11861
11861
  m + w[0] * r,
@@ -12599,7 +12599,7 @@ class kt extends St {
12599
12599
  /// Find dot coordinates on the given cubic bezier curve at the given t
12600
12600
  getPointAtSegmentLength(t) {
12601
12601
  const e = this.getTatLen(t), s = this.fromX, n = this.fromY, r = this.c1x, a = this.c1y, o = this.c2x, h = this.c2y, c = this.x, l = this.y;
12602
- let u = 1 - e, p = Math.pow(u, 3), g = Math.pow(u, 2), m = e * e, x = m * e, w = p * s + g * 3 * e * r + u * 3 * e * e * o + x * c, v = p * n + g * 3 * e * a + u * 3 * e * e * h + x * l, S = s + 2 * e * (r - s) + m * (o - 2 * r + s), _ = n + 2 * e * (a - n) + m * (h - 2 * a + n), I = r + 2 * e * (o - r) + m * (c - 2 * o + r), L = a + 2 * e * (h - a) + m * (l - 2 * h + a), R = u * s + e * r, U = u * n + e * a, $ = u * o + e * c, j = u * h + e * l, X = 90 - Math.atan2(S - I, _ - L) * 180 / Math.PI;
12602
+ let u = 1 - e, p = Math.pow(u, 3), g = Math.pow(u, 2), m = e * e, x = m * e, w = p * s + g * 3 * e * r + u * 3 * e * e * o + x * c, v = p * n + g * 3 * e * a + u * 3 * e * e * h + x * l, S = s + 2 * e * (r - s) + m * (o - 2 * r + s), _ = n + 2 * e * (a - n) + m * (h - 2 * a + n), I = r + 2 * e * (o - r) + m * (c - 2 * o + r), N = a + 2 * e * (h - a) + m * (l - 2 * h + a), R = u * s + e * r, U = u * n + e * a, $ = u * o + e * c, j = u * h + e * l, X = 90 - Math.atan2(S - I, _ - N) * 180 / Math.PI;
12603
12603
  return {
12604
12604
  x: w,
12605
12605
  // x coordinate of the point
@@ -12614,7 +12614,7 @@ class kt extends St {
12614
12614
  n: {
12615
12615
  x: I,
12616
12616
  // x coordinate of the right anchor
12617
- y: L
12617
+ y: N
12618
12618
  // y coordinate of the right anchor
12619
12619
  },
12620
12620
  start: {
@@ -12754,7 +12754,7 @@ class Oe extends St {
12754
12754
  }
12755
12755
  const w = Math.sqrt(
12756
12756
  (r * r * a * a - r * r * m * m - a * a * g * g) / (r * r * m * m + a * a * g * g)
12757
- ), v = h != c ? 1 : -1, S = v * w * r * m / a, _ = v * w * -a * g / r, I = (t + s) / 2, L = (e + n) / 2, R = Math.cos(l) * S - Math.sin(l) * _ + I, U = Math.sin(l) * S + Math.cos(l) * _ + L, $ = (Y, Q, ft, ot) => (Y * ot >= Q * ft ? 1 : -1) * Math.acos(
12757
+ ), v = h != c ? 1 : -1, S = v * w * r * m / a, _ = v * w * -a * g / r, I = (t + s) / 2, N = (e + n) / 2, R = Math.cos(l) * S - Math.sin(l) * _ + I, U = Math.sin(l) * S + Math.cos(l) * _ + N, $ = (Y, Q, ft, ot) => (Y * ot >= Q * ft ? 1 : -1) * Math.acos(
12758
12758
  (Y * ft + Q * ot) / (Math.sqrt(Y * Y + Q * Q) * Math.sqrt(ft * ft + ot * ot))
12759
12759
  ), j = $(1, 0, t - R, e - U) - l, X = $(t - R, e - U, s - R, n - U);
12760
12760
  return [R, U, r, a, l, j, j + X];
@@ -13680,7 +13680,7 @@ class Hh extends O {
13680
13680
  super(t), this.r = t?.r ?? 20;
13681
13681
  let e = "M" + this.x + "," + (this.y - this.r);
13682
13682
  for (let s = 0; s < 6; s += 1) {
13683
- const n = 270 + s * 144, r = this.x + this.r * Math.cos(N(n)), a = this.y + this.r * Math.sin(N(n));
13683
+ const n = 270 + s * 144, r = this.x + this.r * Math.cos(L(n)), a = this.y + this.r * Math.sin(L(n));
13684
13684
  e += "L" + r + "," + a;
13685
13685
  }
13686
13686
  this.updateFromSVGPathD(e);
@@ -13865,12 +13865,12 @@ class cu extends vt {
13865
13865
  frameUpdate() {
13866
13866
  this.text && !this.defaultShowText && (this.line12.isShow = this.sector.isMouseIn, this.line23.isShow = this.sector.isMouseIn, this.textShape.isShow = this.sector.isMouseIn);
13867
13867
  const t = this.startDegree + (this.endDegree - this.startDegree) / 2, { dx: e, dy: s } = Ut(
13868
- N(t),
13868
+ L(t),
13869
13869
  this.sector.radius + this.p1Offset
13870
13870
  );
13871
13871
  this.p1.x = this.x + e, this.p1.y = this.y + s;
13872
13872
  const { dx: n, dy: r } = Ut(
13873
- N(t),
13873
+ L(t),
13874
13874
  this.sector.radius + this.p1Offset + this.p2Offset
13875
13875
  );
13876
13876
  this.p2.x = this.x + n, this.p2.y = this.y + r, this.line12.fromX = this.p1.x, this.line12.fromY = this.p1.y, this.line12.x = this.p2.x, this.line12.y = this.p2.y, this.direction = this.p1.x > this.x ? 1 : -1, this.p3.x = this.p2.x + this.direction * this.p3Offset, this.p3.y = this.p2.y, this.p4.x = this.p3.x + this.direction * this.p4Offset, this.p4.y = this.p3.y, this.line23.fromX = this.p2.x, this.line23.fromY = this.p2.y, this.line23.x = this.p3.x, this.line23.y = this.p3.y, this.textShape.x = this.p4.x, this.textShape.y = this.p4.y, this.textShape.setAttr("textAnchor", this.direction == 1 ? "start" : "end"), this.sector.isMouseIn ? (this.tipShape.isShow = !0, this.tipShape.x = this.sector.mouseX, this.tipShape.y = this.sector.mouseY) : (this.tipShape.isShow = !1, this.tipShape.x = this.sector.mouseX, this.tipShape.y = this.sector.mouseY);
@@ -13904,9 +13904,9 @@ class $h extends W {
13904
13904
  }
13905
13905
  toSVGPathData() {
13906
13906
  const { dx: t, dy: e } = Ut(
13907
- N(this.startDegree),
13907
+ L(this.startDegree),
13908
13908
  this.radius
13909
- ), { dx: s, dy: n } = Ut(N(this.endDegree), this.radius);
13909
+ ), { dx: s, dy: n } = Ut(L(this.endDegree), this.radius);
13910
13910
  return [
13911
13911
  ["M", this.x, this.y],
13912
13912
  ["l", t, e],
@@ -13928,8 +13928,8 @@ class $h extends W {
13928
13928
  0,
13929
13929
  0,
13930
13930
  this.radius,
13931
- N(this.startDegree),
13932
- N(this.endDegree),
13931
+ L(this.startDegree),
13932
+ L(this.endDegree),
13933
13933
  !1
13934
13934
  ), t.closePath();
13935
13935
  }
@@ -14059,8 +14059,8 @@ class fu extends Be {
14059
14059
  }
14060
14060
  getPin() {
14061
14061
  return {
14062
- x: this.x + Math.cos(N(this.degree)) * this.width,
14063
- y: this.y + Math.sin(N(this.degree)) * this.width
14062
+ x: this.x + Math.cos(L(this.degree)) * this.width,
14063
+ y: this.y + Math.sin(L(this.degree)) * this.width
14064
14064
  };
14065
14065
  }
14066
14066
  }
@@ -14069,7 +14069,9 @@ class du extends W {
14069
14069
  super(t), this.update(t);
14070
14070
  }
14071
14071
  update(t) {
14072
- this.x = t.x, this.y = t.y, this.radius = t.radius, this.startDegree = t.startDegree + 180, this.endDegree = t.endDegree + 180, this.setAttr({
14072
+ this.extendDegree = t?.extendDegree || 0, this.x = (t.x || 0) + t.width / 2;
14073
+ const e = Math.min(t.width / 2, t.height) - t.lineWidth * 1.5;
14074
+ this.radius = e - e * Math.abs(Math.sin(L(this.extendDegree))), this.y = (t.y || 0) + t.height - t.lineWidth - this.radius * Math.abs(Math.sin(L(this.extendDegree))), this.startDegree = 180 + t.startDegree, this.endDegree = 180 + t.endDegree, this.setAttr({
14073
14075
  "stroke-linecap": "round",
14074
14076
  "stroke-width": String(t.lineWidth),
14075
14077
  stroke: t.colorGradient || t.color || "none"
@@ -14079,12 +14081,11 @@ class du extends W {
14079
14081
  }
14080
14082
  toSVGPathData() {
14081
14083
  const { dx: t, dy: e } = Ut(
14082
- N(this.startDegree),
14084
+ L(this.startDegree),
14083
14085
  this.radius
14084
- ), { dx: s, dy: n } = Ut(N(this.endDegree), this.radius);
14086
+ ), { dx: s, dy: n } = Ut(L(this.endDegree), this.radius);
14085
14087
  return [
14086
14088
  ["M", this.x + t, this.y + e],
14087
- // ["l", fromX, fromY],
14088
14089
  [
14089
14090
  "A",
14090
14091
  this.radius,
@@ -14095,7 +14096,6 @@ class du extends W {
14095
14096
  this.x + s,
14096
14097
  this.y + n
14097
14098
  ]
14098
- // ["z"]
14099
14099
  ];
14100
14100
  }
14101
14101
  toCanvasContext(t) {
@@ -14103,8 +14103,8 @@ class du extends W {
14103
14103
  0,
14104
14104
  0,
14105
14105
  this.radius,
14106
- N(this.startDegree),
14107
- N(this.endDegree),
14106
+ L(this.startDegree),
14107
+ L(this.endDegree),
14108
14108
  !1
14109
14109
  );
14110
14110
  }
@@ -14143,7 +14143,7 @@ class mu extends vt {
14143
14143
  colors: Xa,
14144
14144
  scalar: 1,
14145
14145
  flat: !1
14146
- }), S = t * r, _ = e * a, I = N(h), L = N(c);
14146
+ }), S = t * r, _ = e * a, I = L(h), N = L(c);
14147
14147
  let R = o;
14148
14148
  for (; R--; ) {
14149
14149
  const U = new n({
@@ -14162,7 +14162,7 @@ class mu extends vt {
14162
14162
  wobble: Math.random() * 10,
14163
14163
  wobbleSpeed: Math.min(0.11, Math.random() * 0.1 + 0.05),
14164
14164
  velocity: l * 0.5 + Math.random() * l,
14165
- angle2D: -I + (0.5 * L - Math.random() * L),
14165
+ angle2D: -I + (0.5 * N - Math.random() * N),
14166
14166
  tiltAngle: (Math.random() * (0.75 - 0.25) + 0.25) * Math.PI,
14167
14167
  tick: 0,
14168
14168
  totalTicks: m,
@@ -14339,7 +14339,7 @@ class bu {
14339
14339
  this.currentEnableDragMouseInShapeID ? (this.app.container.style.cursor = "grab", this.isMouseDown && (this.app.container.style.cursor = "grabbing")) : this.currentMouseInShapeID ? this.app.container.style.cursor = "default" : this.app.container.style.cursor = "default";
14340
14340
  }
14341
14341
  transformCtxBaseOnShape(t) {
14342
- t instanceof O || (t instanceof St || this.ctx.translate(t.x, t.y), this.ctx.rotate(N(t.degree), t.cX, t.cY), this.ctx.scale(
14342
+ t instanceof O || (t instanceof St || this.ctx.translate(t.x, t.y), this.ctx.rotate(L(t.degree), t.cX, t.cY), this.ctx.scale(
14343
14343
  t.scalexOnOrigin,
14344
14344
  t.scaleyOnOrigin,
14345
14345
  t.cX,
@@ -15211,7 +15211,7 @@ export {
15211
15211
  kl as toGrey,
15212
15212
  Al as toGrey2,
15213
15213
  Dl as toOpposite,
15214
- N as toRadian,
15214
+ L as toRadian,
15215
15215
  Ml as toRed,
15216
15216
  Ll as toRedAndBlue,
15217
15217
  Rl as toRedAndGreen,