ow-eengine-power 2.8.1 → 2.8.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.
@@ -596,15 +596,15 @@ function zt(h, t, s, r) {
596
596
  }
597
597
  function Et(h, t, s) {
598
598
  if (s === void 0 && (s = {}), s.final === !0)
599
- return Ne(h, t);
599
+ return Oe(h, t);
600
600
  var r = dt(h), e = dt(t), a = ht(r[0]), n = ht(e[0]), W = ht(r[1]), u = ht(e[1]), c = Math.sin(n - a) * Math.cos(u), i = Math.cos(W) * Math.sin(u) - Math.sin(W) * Math.cos(u) * Math.cos(n - a);
601
601
  return Mt(Math.atan2(c, i));
602
602
  }
603
- function Ne(h, t) {
603
+ function Oe(h, t) {
604
604
  var s = Et(t, h);
605
605
  return s = (s + 180) % 360, s;
606
606
  }
607
- function Oe(h, t) {
607
+ function Ne(h, t) {
608
608
  var s = ct(h, t), r = Et(h, t), e = zt(h, s / 2, r);
609
609
  return e;
610
610
  }
@@ -915,7 +915,7 @@ class Ie {
915
915
  w(this, "typeRules", /* @__PURE__ */ new Map());
916
916
  }
917
917
  }
918
- var O = /* @__PURE__ */ ((h) => (h[h.A相 = 0] = "A相", h[h.B相 = 1] = "B相", h[h.C相 = 2] = "C相", h[h.地线1 = 3] = "地线1", h[h.地线2 = 4] = "地线2", h[h.全部 = 5] = "全部", h))(O || {});
918
+ var N = /* @__PURE__ */ ((h) => (h[h.A相 = 0] = "A相", h[h.B相 = 1] = "B相", h[h.C相 = 2] = "C相", h[h.地线1 = 3] = "地线1", h[h.地线2 = 4] = "地线2", h[h.全部 = 5] = "全部", h))(N || {});
919
919
  class Vt {
920
920
  constructor() {
921
921
  // 按相序组合存储的距离规则配置
@@ -1035,11 +1035,11 @@ const vt = () => ({
1035
1035
  h[2]
1036
1036
  ), X = f.Cartesian3.fromDegrees(B[0], B[1], h[2]), Y = f.Cartesian3.fromDegrees(B[0], B[1], R);
1037
1037
  console.log(`坐标详情: 树木=[${h[0]}, ${h[1]}, ${h[2]}], 导线点=[${B[0]}, ${B[1]}, ${R}]`);
1038
- var V = Oe(
1038
+ var V = Ne(
1039
1039
  st([h[0], h[1]]),
1040
1040
  st([B[0], B[1]])
1041
1041
  ).geometry.coordinates;
1042
- const N = f.Cartesian3.fromDegrees(
1042
+ const O = f.Cartesian3.fromDegrees(
1043
1043
  V[0],
1044
1044
  V[1],
1045
1045
  h[2]
@@ -1058,7 +1058,7 @@ const vt = () => ({
1058
1058
  )), J)) {
1059
1059
  k = J.color, F = f.Color.fromCssColorString(J.color);
1060
1060
  const H = {
1061
- position: N,
1061
+ position: O,
1062
1062
  name: "水平距离",
1063
1063
  label: {
1064
1064
  text: `水平距离${D.toFixed(1)}米`,
@@ -1277,7 +1277,7 @@ function hs(h, t, s = 30) {
1277
1277
  ) - e;
1278
1278
  return n > 180 && (n -= 360), n < -180 && (n += 360), Math.abs(n) >= s;
1279
1279
  }
1280
- function Nt(h, t, s = 2) {
1280
+ function Ot(h, t, s = 2) {
1281
1281
  const r = h.length;
1282
1282
  if (r <= 1)
1283
1283
  return 0;
@@ -1602,9 +1602,9 @@ class us {
1602
1602
  let r = 0;
1603
1603
  if (this.LineInfo.towers[s].type === nt.耐张塔)
1604
1604
  if (s === 0)
1605
- r = (Nt(this.LineInfo.towers, s, 3) - 90 + 360) % 360;
1605
+ r = (Ot(this.LineInfo.towers, s, 3) - 90 + 360) % 360;
1606
1606
  else if (s === t - 1)
1607
- r = (Nt(this.LineInfo.towers, s, 3) - 90 + 360) % 360;
1607
+ r = (Ot(this.LineInfo.towers, s, 3) - 90 + 360) % 360;
1608
1608
  else {
1609
1609
  const e = this.LineInfo.towers[s - 1], a = this.LineInfo.towers[s], n = this.LineInfo.towers[s + 1], W = lt(
1610
1610
  e.Longitude,
@@ -1620,7 +1620,7 @@ class us {
1620
1620
  r = (fs(W, u) - 90 + 360) % 360;
1621
1621
  }
1622
1622
  else
1623
- r = (Nt(this.LineInfo.towers, s, 2) - 90 + 360) % 360;
1623
+ r = (Ot(this.LineInfo.towers, s, 2) - 90 + 360) % 360;
1624
1624
  this.LineInfo.towers[s].RollX = r;
1625
1625
  }
1626
1626
  }
@@ -1876,8 +1876,8 @@ class us {
1876
1876
  this.offsetWires11.push(b), this.offsetWires11.push(M), this.offsetWires11.push(S), this.offsetWires11.push(R), this.offsetWires11.push(E), this.offsetWires11.push(D), this.ToffsetWires1A2.push(b), this.ToffsetWires1A2.push(M), this.ToffsetWires1A2.push(S), this.ToffsetWires1A2.push(R), this.ToffsetWires1A2.push(E), this.ToffsetWires1A2.push(D);
1877
1877
  break;
1878
1878
  case m.八分裂:
1879
- const $ = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), k = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), F = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), Z = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n), X = P(r, new f.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), n), Y = P(r, new f.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), n), V = P(r, new f.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), n), N = P(r, new f.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), n);
1880
- this.offsetWires11.push($), this.offsetWires11.push(k), this.offsetWires11.push(F), this.offsetWires11.push(Z), this.offsetWires11.push(X), this.offsetWires11.push(Y), this.offsetWires11.push(V), this.offsetWires11.push(N), this.ToffsetWires1A2.push($), this.ToffsetWires1A2.push(k), this.ToffsetWires1A2.push(F), this.ToffsetWires1A2.push(Z), this.ToffsetWires1A2.push(X), this.ToffsetWires1A2.push(Y), this.ToffsetWires1A2.push(V), this.ToffsetWires1A2.push(N);
1879
+ const $ = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), k = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), F = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), Z = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n), X = P(r, new f.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), n), Y = P(r, new f.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), n), V = P(r, new f.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), n), O = P(r, new f.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), n);
1880
+ this.offsetWires11.push($), this.offsetWires11.push(k), this.offsetWires11.push(F), this.offsetWires11.push(Z), this.offsetWires11.push(X), this.offsetWires11.push(Y), this.offsetWires11.push(V), this.offsetWires11.push(O), this.ToffsetWires1A2.push($), this.ToffsetWires1A2.push(k), this.ToffsetWires1A2.push(F), this.ToffsetWires1A2.push(Z), this.ToffsetWires1A2.push(X), this.ToffsetWires1A2.push(Y), this.ToffsetWires1A2.push(V), this.ToffsetWires1A2.push(O);
1881
1881
  break;
1882
1882
  }
1883
1883
  else if (i.type == G.跳线串)
@@ -1938,8 +1938,8 @@ class us {
1938
1938
  this.offsetWires12.push(b), this.offsetWires12.push(M), this.offsetWires12.push(S), this.offsetWires12.push(R), this.offsetWires12.push(E), this.offsetWires12.push(D), this.ToffsetWires1B2.push(b), this.ToffsetWires1B2.push(M), this.ToffsetWires1B2.push(S), this.ToffsetWires1B2.push(R), this.ToffsetWires1B2.push(E), this.ToffsetWires1B2.push(D);
1939
1939
  break;
1940
1940
  case m.八分裂:
1941
- const $ = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), k = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), F = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), Z = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n), X = P(r, new f.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), n), Y = P(r, new f.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), n), V = P(r, new f.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), n), N = P(r, new f.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), n);
1942
- this.offsetWires12.push($), this.offsetWires12.push(k), this.offsetWires12.push(F), this.offsetWires12.push(Z), this.offsetWires12.push(X), this.offsetWires12.push(Y), this.offsetWires12.push(V), this.offsetWires12.push(N), this.ToffsetWires1B2.push($), this.ToffsetWires1B2.push(k), this.ToffsetWires1B2.push(F), this.ToffsetWires1B2.push(Z), this.ToffsetWires1B2.push(X), this.ToffsetWires1B2.push(Y), this.ToffsetWires1B2.push(V), this.ToffsetWires1B2.push(N);
1941
+ const $ = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), k = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), F = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), Z = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n), X = P(r, new f.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), n), Y = P(r, new f.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), n), V = P(r, new f.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), n), O = P(r, new f.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), n);
1942
+ this.offsetWires12.push($), this.offsetWires12.push(k), this.offsetWires12.push(F), this.offsetWires12.push(Z), this.offsetWires12.push(X), this.offsetWires12.push(Y), this.offsetWires12.push(V), this.offsetWires12.push(O), this.ToffsetWires1B2.push($), this.ToffsetWires1B2.push(k), this.ToffsetWires1B2.push(F), this.ToffsetWires1B2.push(Z), this.ToffsetWires1B2.push(X), this.ToffsetWires1B2.push(Y), this.ToffsetWires1B2.push(V), this.ToffsetWires1B2.push(O);
1943
1943
  break;
1944
1944
  }
1945
1945
  else if (i.type == G.跳线串)
@@ -2000,8 +2000,8 @@ class us {
2000
2000
  this.offsetWires13.push(b), this.offsetWires13.push(M), this.offsetWires13.push(S), this.offsetWires13.push(R), this.offsetWires13.push(E), this.offsetWires13.push(D), this.ToffsetWires1C2.push(b), this.ToffsetWires1C2.push(M), this.ToffsetWires1C2.push(S), this.ToffsetWires1C2.push(R), this.ToffsetWires1C2.push(E), this.ToffsetWires1C2.push(D);
2001
2001
  break;
2002
2002
  case m.八分裂:
2003
- const $ = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), k = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), F = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), Z = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n), X = P(r, new f.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), n), Y = P(r, new f.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), n), V = P(r, new f.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), n), N = P(r, new f.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), n);
2004
- this.offsetWires13.push($), this.offsetWires13.push(k), this.offsetWires13.push(F), this.offsetWires13.push(Z), this.offsetWires13.push(X), this.offsetWires13.push(Y), this.offsetWires13.push(V), this.offsetWires13.push(N), this.ToffsetWires1C2.push($), this.ToffsetWires1C2.push(k), this.ToffsetWires1C2.push(F), this.ToffsetWires1C2.push(Z), this.ToffsetWires1C2.push(X), this.ToffsetWires1C2.push(Y), this.ToffsetWires1C2.push(V), this.ToffsetWires1C2.push(N);
2003
+ const $ = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), k = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), F = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), Z = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n), X = P(r, new f.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), n), Y = P(r, new f.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), n), V = P(r, new f.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), n), O = P(r, new f.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), n);
2004
+ this.offsetWires13.push($), this.offsetWires13.push(k), this.offsetWires13.push(F), this.offsetWires13.push(Z), this.offsetWires13.push(X), this.offsetWires13.push(Y), this.offsetWires13.push(V), this.offsetWires13.push(O), this.ToffsetWires1C2.push($), this.ToffsetWires1C2.push(k), this.ToffsetWires1C2.push(F), this.ToffsetWires1C2.push(Z), this.ToffsetWires1C2.push(X), this.ToffsetWires1C2.push(Y), this.ToffsetWires1C2.push(V), this.ToffsetWires1C2.push(O);
2005
2005
  break;
2006
2006
  }
2007
2007
  else if (i.type == G.跳线串)
@@ -2171,8 +2171,8 @@ class us {
2171
2171
  this.offsetWires21.push(b), this.offsetWires21.push(M), this.offsetWires21.push(S), this.offsetWires21.push(R), this.offsetWires21.push(E), this.offsetWires21.push(D), this.ToffsetWires2A2.push(b), this.ToffsetWires2A2.push(M), this.ToffsetWires2A2.push(S), this.ToffsetWires2A2.push(R), this.ToffsetWires2A2.push(E), this.ToffsetWires2A2.push(D);
2172
2172
  break;
2173
2173
  case m.八分裂:
2174
- const $ = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), k = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), F = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), Z = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n), X = P(r, new f.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), n), Y = P(r, new f.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), n), V = P(r, new f.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), n), N = P(r, new f.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), n);
2175
- this.offsetWires21.push($), this.offsetWires21.push(k), this.offsetWires21.push(F), this.offsetWires21.push(Z), this.offsetWires21.push(X), this.offsetWires21.push(Y), this.offsetWires21.push(V), this.offsetWires21.push(N), this.ToffsetWires2A2.push($), this.ToffsetWires2A2.push(k), this.ToffsetWires2A2.push(F), this.ToffsetWires2A2.push(Z), this.ToffsetWires2A2.push(X), this.ToffsetWires2A2.push(Y), this.ToffsetWires2A2.push(V), this.ToffsetWires2A2.push(N);
2174
+ const $ = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), k = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), F = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), Z = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n), X = P(r, new f.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), n), Y = P(r, new f.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), n), V = P(r, new f.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), n), O = P(r, new f.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), n);
2175
+ this.offsetWires21.push($), this.offsetWires21.push(k), this.offsetWires21.push(F), this.offsetWires21.push(Z), this.offsetWires21.push(X), this.offsetWires21.push(Y), this.offsetWires21.push(V), this.offsetWires21.push(O), this.ToffsetWires2A2.push($), this.ToffsetWires2A2.push(k), this.ToffsetWires2A2.push(F), this.ToffsetWires2A2.push(Z), this.ToffsetWires2A2.push(X), this.ToffsetWires2A2.push(Y), this.ToffsetWires2A2.push(V), this.ToffsetWires2A2.push(O);
2176
2176
  break;
2177
2177
  }
2178
2178
  else if (i.type == G.跳线串)
@@ -2233,8 +2233,8 @@ class us {
2233
2233
  this.offsetWires22.push(b), this.offsetWires22.push(M), this.offsetWires22.push(S), this.offsetWires22.push(R), this.offsetWires22.push(E), this.offsetWires22.push(D), this.ToffsetWires2B2.push(b), this.ToffsetWires2B2.push(M), this.ToffsetWires2B2.push(S), this.ToffsetWires2B2.push(R), this.ToffsetWires2B2.push(E), this.ToffsetWires2B2.push(D);
2234
2234
  break;
2235
2235
  case m.八分裂:
2236
- const $ = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), k = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), F = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), Z = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n), X = P(r, new f.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), n), Y = P(r, new f.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), n), V = P(r, new f.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), n), N = P(r, new f.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), n);
2237
- this.offsetWires22.push($), this.offsetWires22.push(k), this.offsetWires22.push(F), this.offsetWires22.push(Z), this.offsetWires22.push(X), this.offsetWires22.push(Y), this.offsetWires22.push(V), this.offsetWires22.push(N), this.ToffsetWires2B2.push($), this.ToffsetWires2B2.push(k), this.ToffsetWires2B2.push(F), this.ToffsetWires2B2.push(Z), this.ToffsetWires2B2.push(X), this.ToffsetWires2B2.push(Y), this.ToffsetWires2B2.push(V), this.ToffsetWires2B2.push(N);
2236
+ const $ = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), k = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), F = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), Z = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n), X = P(r, new f.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), n), Y = P(r, new f.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), n), V = P(r, new f.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), n), O = P(r, new f.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), n);
2237
+ this.offsetWires22.push($), this.offsetWires22.push(k), this.offsetWires22.push(F), this.offsetWires22.push(Z), this.offsetWires22.push(X), this.offsetWires22.push(Y), this.offsetWires22.push(V), this.offsetWires22.push(O), this.ToffsetWires2B2.push($), this.ToffsetWires2B2.push(k), this.ToffsetWires2B2.push(F), this.ToffsetWires2B2.push(Z), this.ToffsetWires2B2.push(X), this.ToffsetWires2B2.push(Y), this.ToffsetWires2B2.push(V), this.ToffsetWires2B2.push(O);
2238
2238
  break;
2239
2239
  }
2240
2240
  else if (i.type == G.跳线串)
@@ -2295,8 +2295,8 @@ class us {
2295
2295
  this.offsetWires23.push(b), this.offsetWires23.push(M), this.offsetWires23.push(S), this.offsetWires23.push(R), this.offsetWires23.push(E), this.offsetWires23.push(D), this.ToffsetWires2C2.push(b), this.ToffsetWires2C2.push(M), this.ToffsetWires2C2.push(S), this.ToffsetWires2C2.push(R), this.ToffsetWires2C2.push(E), this.ToffsetWires2C2.push(D);
2296
2296
  break;
2297
2297
  case m.八分裂:
2298
- const $ = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), k = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), F = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), Z = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n), X = P(r, new f.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), n), Y = P(r, new f.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), n), V = P(r, new f.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), n), N = P(r, new f.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), n);
2299
- this.offsetWires23.push($), this.offsetWires23.push(k), this.offsetWires23.push(F), this.offsetWires23.push(Z), this.offsetWires23.push(X), this.offsetWires23.push(Y), this.offsetWires23.push(V), this.offsetWires23.push(N), this.ToffsetWires2C2.push($), this.ToffsetWires2C2.push(k), this.ToffsetWires2C2.push(F), this.ToffsetWires2C2.push(Z), this.ToffsetWires2C2.push(X), this.ToffsetWires2C2.push(Y), this.ToffsetWires2C2.push(V), this.ToffsetWires2C2.push(N);
2298
+ const $ = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), k = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), F = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), Z = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n), X = P(r, new f.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), n), Y = P(r, new f.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), n), V = P(r, new f.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), n), O = P(r, new f.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), n);
2299
+ this.offsetWires23.push($), this.offsetWires23.push(k), this.offsetWires23.push(F), this.offsetWires23.push(Z), this.offsetWires23.push(X), this.offsetWires23.push(Y), this.offsetWires23.push(V), this.offsetWires23.push(O), this.ToffsetWires2C2.push($), this.ToffsetWires2C2.push(k), this.ToffsetWires2C2.push(F), this.ToffsetWires2C2.push(Z), this.ToffsetWires2C2.push(X), this.ToffsetWires2C2.push(Y), this.ToffsetWires2C2.push(V), this.ToffsetWires2C2.push(O);
2300
2300
  break;
2301
2301
  }
2302
2302
  else if (i.type == G.跳线串)
@@ -2928,6 +2928,12 @@ class us {
2928
2928
  loadLineTower() {
2929
2929
  this.initializeLineData(), this.isDynamicLoadingEnabled ? (this.loadAllWiresOnly(), this.setupCameraMoveListener(), this.updateVisibleTowers()) : this.loadAllTowersAtOnce();
2930
2930
  }
2931
+ /**
2932
+ * 适配lod加载导线数据
2933
+ */
2934
+ LODloadAllWiresOnly() {
2935
+ this.initializeLineData(), this.loadAllWiresOnly();
2936
+ }
2931
2937
  /**
2932
2938
  * 只加载导线,不加载杆塔和绝缘子(用于动态加载模式)
2933
2939
  */
@@ -4372,7 +4378,7 @@ class Ws {
4372
4378
  * @param phase2 第二根导线的相序
4373
4379
  * @returns WireToWireMeasurementResult 线间测量结果
4374
4380
  */
4375
- calculateWireToWireDistance(t, s, r = O.A相, e = O.B相) {
4381
+ calculateWireToWireDistance(t, s, r = N.A相, e = N.B相) {
4376
4382
  const a = new is();
4377
4383
  if (a.timestamp = Date.now(), a.phase1 = r, a.phase2 = e, t.length < 2 || s.length < 2)
4378
4384
  return console.warn("导线数据点数不足,无法计算线间距离"), a;
@@ -4481,7 +4487,7 @@ class Ws {
4481
4487
  { name: "安全", minDistance: 5, maxDistance: 1 / 0, color: "#00ff00", isAlarm: !1 }
4482
4488
  ],
4483
4489
  enabled: !0
4484
- }, r = [O.A相, O.B相, O.C相, O.地线1, O.地线2];
4490
+ }, r = [N.A相, N.B相, N.C相, N.地线1, N.地线2];
4485
4491
  for (let e = 0; e < r.length; e++)
4486
4492
  for (let a = e + 1; a < r.length; a++)
4487
4493
  t.setRules(r[e], r[a], { ...s });
@@ -4644,8 +4650,8 @@ function Ss() {
4644
4650
  }
4645
4651
  function u(c, i, l) {
4646
4652
  c.forEach(function(T) {
4647
- var p = T[0], o = T[1], A = p | 0, g = o | 0, y = Ot(i[g * h + A]);
4648
- p > 0 && p < h && A === p && (T[0] = he(p, Ot(i[g * h + A - 1]), y, l)), o > 0 && o < t && g === o && (T[1] = he(o, Ot(i[(g - 1) * h + A]), y, l));
4653
+ var p = T[0], o = T[1], A = p | 0, g = o | 0, y = Nt(i[g * h + A]);
4654
+ p > 0 && p < h && A === p && (T[0] = he(p, Nt(i[g * h + A - 1]), y, l)), o > 0 && o < t && g === o && (T[1] = he(o, Nt(i[(g - 1) * h + A]), y, l));
4649
4655
  });
4650
4656
  }
4651
4657
  return e.contour = a, e.size = function(c) {
@@ -4665,7 +4671,7 @@ function _s(h) {
4665
4671
  function At(h, t) {
4666
4672
  return h == null ? !1 : +h >= t;
4667
4673
  }
4668
- function Ot(h) {
4674
+ function Nt(h) {
4669
4675
  return h == null || isNaN(h = +h) ? -1 / 0 : h;
4670
4676
  }
4671
4677
  function he(h, t, s, r) {
@@ -5511,7 +5517,7 @@ class Qs {
5511
5517
  // 存储选中的第一根导线信息
5512
5518
  w(this, "selectedWire1Entity", null);
5513
5519
  w(this, "selectedWire1Data", []);
5514
- w(this, "selectedWire1Phase", O.A相);
5520
+ w(this, "selectedWire1Phase", N.A相);
5515
5521
  w(this, "originalWire1Color", null);
5516
5522
  this.viewer = t, this.LineInfo = s, this.lineConstruction = new us(t, s, r), this.terrainConstruction = new Ut(t, s, r), this.channelCalculation = new Ws(t), this.contourConstruction = new Fs(t), this.enableWireMeasurement = this.enableWireMeasurement.bind(this), this.removeWireListen = this.removeWireListen.bind(this);
5517
5523
  }
@@ -5569,6 +5575,12 @@ class Qs {
5569
5575
  loadLineTower() {
5570
5576
  this.lineConstruction.loadLineTower();
5571
5577
  }
5578
+ /**
5579
+ * 加载线路杆塔
5580
+ */
5581
+ loadLODWireOnly() {
5582
+ this.lineConstruction.LODloadAllWiresOnly();
5583
+ }
5572
5584
  //设置线路显隐
5573
5585
  setLineVisible(t) {
5574
5586
  this.lineConstruction.setLineVisible(t);
@@ -5839,11 +5851,11 @@ class Qs {
5839
5851
  i === "A" ? ($.splice(0), k.splice(0), Z.splice(0), X.splice(0)) : i === "B" ? (D.splice(0), k.splice(0), F.splice(0), X.splice(0)) : i === "C" ? (D.splice(0), $.splice(0), F.splice(0), Z.splice(0)) : i === "AB" ? (k.splice(0), X.splice(0)) : i === "AC" ? ($.splice(0), Z.splice(0)) : i === "BC" && (D.splice(0), F.splice(0)), console.log(`导线数据状态(回路${c},相序${i}): 回路1-A相=${D.length}, B相=${$.length}, C相=${k.length}; 回路2-A相=${F.length}, B相=${Z.length}, C相=${X.length}`);
5840
5852
  const Y = this.terrainConstruction.getLineInfo().corridor_features, V = this.terrainConstruction.getOffsetTrees();
5841
5853
  console.log(`总树木数量: ${Y.length}`);
5842
- const N = l.slice(T, p + 1), Lt = cs(N, a);
5854
+ const O = l.slice(T, p + 1), Lt = cs(O, a);
5843
5855
  if (n) {
5844
5856
  if (Lt.length > 0) {
5845
5857
  this.channelCalculation.drawCorridorPolygon(Lt, `corridor-${t}-${s}`);
5846
- const _ = N.map((ut) => [
5858
+ const _ = O.map((ut) => [
5847
5859
  ut.Longitude,
5848
5860
  ut.Latitude
5849
5861
  ]);
@@ -6183,7 +6195,7 @@ class Qs {
6183
6195
  if (n && n.id) {
6184
6196
  const W = String(n.id), u = n.name || "";
6185
6197
  if (W.includes("daoxian") || u.includes("导线") || u.includes("daoxian") || W.includes("dixian") || u.includes("地线") || u.includes("ground")) {
6186
- let i = [], l = O.A相;
6198
+ let i = [], l = N.A相;
6187
6199
  if (n.polyline && n.polyline.positions) {
6188
6200
  const T = n.polyline.positions.getValue(this.viewer.clock.currentTime);
6189
6201
  T && Array.isArray(T) && (i = T.map((p) => {
@@ -6195,7 +6207,7 @@ class Qs {
6195
6207
  ];
6196
6208
  }));
6197
6209
  }
6198
- if (u.includes("A相") || u.includes("_A相") || u.includes("_A") && !u.includes("_A相") ? l = O.A相 : u.includes("B相") || u.includes("_B相") || u.includes("_B") && !u.includes("_B相") ? l = O.B相 : u.includes("C相") || u.includes("_C相") || u.includes("_C") && !u.includes("_C相") ? l = O.C相 : u.includes("地线1") || u.includes("dixian1") || u.includes("ground1") || u.includes("GD1") ? l = O.地线1 : u.includes("地线2") || u.includes("dixian2") || u.includes("ground2") || u.includes("GD2") ? l = O.地线2 : (u.includes("地线") || u.includes("dixian") || u.includes("ground") || u.includes("GD")) && (l = O.地线1), i.length === 0 && (l === O.A相 ? i = s.arcLine1A1 : l === O.B相 ? i = s.arcLine1B1 : l === O.C相 && (i = s.arcLine1C1)), this.selectedWire1Entity && this.originalWire1Color)
6210
+ if (u.includes("A相") || u.includes("_A相") || u.includes("_A") && !u.includes("_A相") ? l = N.A相 : u.includes("B相") || u.includes("_B相") || u.includes("_B") && !u.includes("_B相") ? l = N.B相 : u.includes("C相") || u.includes("_C相") || u.includes("_C") && !u.includes("_C相") ? l = N.C相 : u.includes("地线1") || u.includes("dixian1") || u.includes("ground1") || u.includes("GD1") ? l = N.地线1 : u.includes("地线2") || u.includes("dixian2") || u.includes("ground2") || u.includes("GD2") ? l = N.地线2 : (u.includes("地线") || u.includes("dixian") || u.includes("ground") || u.includes("GD")) && (l = N.地线1), i.length === 0 && (l === N.A相 ? i = s.arcLine1A1 : l === N.B相 ? i = s.arcLine1B1 : l === N.C相 && (i = s.arcLine1C1)), this.selectedWire1Entity && this.originalWire1Color)
6199
6211
  try {
6200
6212
  this.selectedWire1Entity.polyline && (this.selectedWire1Entity.polyline.material = f.Color.fromCssColorString(this.originalWire1Color));
6201
6213
  } catch (T) {
@@ -6209,9 +6221,9 @@ class Qs {
6209
6221
  this.selectedWire1Phase,
6210
6222
  l
6211
6223
  );
6212
- this.channelCalculation.drawWireToWireDistance(T), t && t(T), this.selectedWire1Entity = null, this.selectedWire1Data = [], this.selectedWire1Phase = O.A相, this.originalWire1Color = null, console.log(`导线间距测量完成: ${T.straightLineDistance.toFixed(2)}米`);
6224
+ this.channelCalculation.drawWireToWireDistance(T), t && t(T), this.selectedWire1Entity = null, this.selectedWire1Data = [], this.selectedWire1Phase = N.A相, this.originalWire1Color = null, console.log(`导线间距测量完成: ${T.straightLineDistance.toFixed(2)}米`);
6213
6225
  } else
6214
- this.selectedWire1Entity = null, this.selectedWire1Data = [], this.selectedWire1Phase = O.A相, this.originalWire1Color = null, console.log("已取消选择导线");
6226
+ this.selectedWire1Entity = null, this.selectedWire1Data = [], this.selectedWire1Phase = N.A相, this.originalWire1Color = null, console.log("已取消选择导线");
6215
6227
  else {
6216
6228
  if (this.selectedWire1Entity = n, this.selectedWire1Data = i, this.selectedWire1Phase = l, n.polyline && n.polyline.material) {
6217
6229
  const T = n.polyline.material;
@@ -6233,7 +6245,7 @@ class Qs {
6233
6245
  } catch (s) {
6234
6246
  console.warn("Error restoring wire color:", s);
6235
6247
  }
6236
- this.selectedWire1Entity = null, this.selectedWire1Data = [], this.selectedWire1Phase = O.A相, this.originalWire1Color = null;
6248
+ this.selectedWire1Entity = null, this.selectedWire1Data = [], this.selectedWire1Phase = N.A相, this.originalWire1Color = null;
6237
6249
  const t = window.wireToWireHandler;
6238
6250
  t && (t.destroy(), window.wireToWireHandler = null);
6239
6251
  }