ow-eengine-power 2.3.4 → 2.3.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.
- package/dist/OW_EEngine_Power.js +322 -309
- package/dist/OW_EEngine_Power.umd.cjs +8 -8
- package/package.json +1 -1
package/dist/OW_EEngine_Power.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var ys = Object.defineProperty;
|
|
2
2
|
var gs = (W, o, e) => o in W ? ys(W, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : W[o] = e;
|
|
3
|
-
var
|
|
3
|
+
var w = (W, o, e) => gs(W, typeof o != "symbol" ? o + "" : o, e);
|
|
4
4
|
import * as n from "cesium";
|
|
5
5
|
import { Color as z, HeightReference as bs, LabelStyle as ms } from "cesium";
|
|
6
6
|
function _s(W, o, e = {}) {
|
|
7
7
|
const {
|
|
8
8
|
color: h = z.WHITE,
|
|
9
9
|
width: s = 3,
|
|
10
|
-
clampToGround:
|
|
10
|
+
clampToGround: d = !1,
|
|
11
11
|
zIndex: u = 0,
|
|
12
12
|
dashed: A = !1,
|
|
13
13
|
dashLength: L = 10
|
|
@@ -20,7 +20,7 @@ function _s(W, o, e = {}) {
|
|
|
20
20
|
positions: o,
|
|
21
21
|
width: s,
|
|
22
22
|
material: i,
|
|
23
|
-
clampToGround:
|
|
23
|
+
clampToGround: d,
|
|
24
24
|
zIndex: u
|
|
25
25
|
}
|
|
26
26
|
});
|
|
@@ -64,7 +64,7 @@ function U(W, o, e, h, s = new n.HeadingPitchRoll(
|
|
|
64
64
|
0,
|
|
65
65
|
0,
|
|
66
66
|
0
|
|
67
|
-
),
|
|
67
|
+
), d = 1) {
|
|
68
68
|
return {
|
|
69
69
|
id: W,
|
|
70
70
|
name: e,
|
|
@@ -76,7 +76,7 @@ function U(W, o, e, h, s = new n.HeadingPitchRoll(
|
|
|
76
76
|
model: {
|
|
77
77
|
show: !0,
|
|
78
78
|
uri: h,
|
|
79
|
-
scale:
|
|
79
|
+
scale: d,
|
|
80
80
|
heightReference: n.HeightReference.NONE
|
|
81
81
|
}
|
|
82
82
|
};
|
|
@@ -84,7 +84,7 @@ function U(W, o, e, h, s = new n.HeadingPitchRoll(
|
|
|
84
84
|
function x(W, o, e, h = {}) {
|
|
85
85
|
const {
|
|
86
86
|
pointColor: s = z.YELLOW,
|
|
87
|
-
pointSize:
|
|
87
|
+
pointSize: d = 12,
|
|
88
88
|
labelColor: u = z.WHITE,
|
|
89
89
|
fontSize: A = 16,
|
|
90
90
|
pixelOffset: L = [0, -20],
|
|
@@ -94,7 +94,7 @@ function x(W, o, e, h = {}) {
|
|
|
94
94
|
position: o,
|
|
95
95
|
point: {
|
|
96
96
|
color: s,
|
|
97
|
-
pixelSize:
|
|
97
|
+
pixelSize: d,
|
|
98
98
|
heightReference: i,
|
|
99
99
|
distanceDisplayCondition: new n.DistanceDisplayCondition(0, 100)
|
|
100
100
|
// 显示距离范围
|
|
@@ -199,8 +199,8 @@ function ks(W) {
|
|
|
199
199
|
}
|
|
200
200
|
function Is(W, o, e) {
|
|
201
201
|
if (W !== null)
|
|
202
|
-
for (var h, s,
|
|
203
|
-
i =
|
|
202
|
+
for (var h, s, d, u, A, L, i, t = 0, a = 0, l, C = W.type, I = C === "FeatureCollection", g = C === "Feature", b = I ? W.features.length : 1, T = 0; T < b; T++) {
|
|
203
|
+
i = I ? W.features[T].geometry : g ? W.geometry : W, l = i ? i.type === "GeometryCollection" : !1, A = l ? i.geometries.length : 1;
|
|
204
204
|
for (var B = 0; B < A; B++) {
|
|
205
205
|
var P = 0, y = 0;
|
|
206
206
|
if (u = l ? i.geometries[B] : i, u !== null) {
|
|
@@ -256,9 +256,9 @@ function Is(W, o, e) {
|
|
|
256
256
|
case "MultiPolygon":
|
|
257
257
|
for (h = 0; h < L.length; h++) {
|
|
258
258
|
for (y = 0, s = 0; s < L[h].length; s++) {
|
|
259
|
-
for (
|
|
259
|
+
for (d = 0; d < L[h][s].length - t; d++) {
|
|
260
260
|
if (o(
|
|
261
|
-
L[h][s][
|
|
261
|
+
L[h][s][d],
|
|
262
262
|
a,
|
|
263
263
|
T,
|
|
264
264
|
P,
|
|
@@ -292,10 +292,10 @@ function Ss(W, o) {
|
|
|
292
292
|
;
|
|
293
293
|
}
|
|
294
294
|
function Zs(W, o) {
|
|
295
|
-
var e, h, s,
|
|
295
|
+
var e, h, s, d, u, A, L, i, t, a, l = 0, C = W.type === "FeatureCollection", I = W.type === "Feature", g = C ? W.features.length : 1;
|
|
296
296
|
for (e = 0; e < g; e++) {
|
|
297
|
-
for (A = C ? W.features[e].geometry :
|
|
298
|
-
if (
|
|
297
|
+
for (A = C ? W.features[e].geometry : I ? W.geometry : W, i = C ? W.features[e].properties : I ? W.properties : {}, t = C ? W.features[e].bbox : I ? W.bbox : void 0, a = C ? W.features[e].id : I ? W.id : void 0, L = A ? A.type === "GeometryCollection" : !1, u = L ? A.geometries.length : 1, s = 0; s < u; s++) {
|
|
298
|
+
if (d = L ? A.geometries[s] : A, d === null) {
|
|
299
299
|
if (o(
|
|
300
300
|
null,
|
|
301
301
|
l,
|
|
@@ -306,7 +306,7 @@ function Zs(W, o) {
|
|
|
306
306
|
return !1;
|
|
307
307
|
continue;
|
|
308
308
|
}
|
|
309
|
-
switch (
|
|
309
|
+
switch (d.type) {
|
|
310
310
|
case "Point":
|
|
311
311
|
case "LineString":
|
|
312
312
|
case "MultiPoint":
|
|
@@ -314,7 +314,7 @@ function Zs(W, o) {
|
|
|
314
314
|
case "MultiLineString":
|
|
315
315
|
case "MultiPolygon": {
|
|
316
316
|
if (o(
|
|
317
|
-
|
|
317
|
+
d,
|
|
318
318
|
l,
|
|
319
319
|
i,
|
|
320
320
|
t,
|
|
@@ -324,9 +324,9 @@ function Zs(W, o) {
|
|
|
324
324
|
break;
|
|
325
325
|
}
|
|
326
326
|
case "GeometryCollection": {
|
|
327
|
-
for (h = 0; h <
|
|
327
|
+
for (h = 0; h < d.geometries.length; h++)
|
|
328
328
|
if (o(
|
|
329
|
-
|
|
329
|
+
d.geometries[h],
|
|
330
330
|
l,
|
|
331
331
|
i,
|
|
332
332
|
t,
|
|
@@ -343,7 +343,7 @@ function Zs(W, o) {
|
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
function Ms(W, o) {
|
|
346
|
-
Zs(W, function(e, h, s,
|
|
346
|
+
Zs(W, function(e, h, s, d, u) {
|
|
347
347
|
var A = e === null ? null : e.type;
|
|
348
348
|
switch (A) {
|
|
349
349
|
case null:
|
|
@@ -351,7 +351,7 @@ function Ms(W, o) {
|
|
|
351
351
|
case "LineString":
|
|
352
352
|
case "Polygon":
|
|
353
353
|
return o(
|
|
354
|
-
Q(e, s, { bbox:
|
|
354
|
+
Q(e, s, { bbox: d, id: u }),
|
|
355
355
|
h,
|
|
356
356
|
0
|
|
357
357
|
) === !1 ? !1 : void 0;
|
|
@@ -380,16 +380,16 @@ function Ms(W, o) {
|
|
|
380
380
|
}
|
|
381
381
|
function Es(W, o) {
|
|
382
382
|
Ms(W, function(e, h, s) {
|
|
383
|
-
var
|
|
383
|
+
var d = 0;
|
|
384
384
|
if (e.geometry) {
|
|
385
385
|
var u = e.geometry.type;
|
|
386
386
|
if (!(u === "Point" || u === "MultiPoint")) {
|
|
387
387
|
var A, L = 0, i = 0, t = 0;
|
|
388
388
|
if (Is(
|
|
389
389
|
e,
|
|
390
|
-
function(a, l, C,
|
|
391
|
-
if (A === void 0 || h > L ||
|
|
392
|
-
A = a, L = h, i =
|
|
390
|
+
function(a, l, C, I, g) {
|
|
391
|
+
if (A === void 0 || h > L || I > i || g > t) {
|
|
392
|
+
A = a, L = h, i = I, t = g, d = 0;
|
|
393
393
|
return;
|
|
394
394
|
}
|
|
395
395
|
var b = G(
|
|
@@ -401,10 +401,10 @@ function Es(W, o) {
|
|
|
401
401
|
h,
|
|
402
402
|
s,
|
|
403
403
|
g,
|
|
404
|
-
|
|
404
|
+
d
|
|
405
405
|
) === !1)
|
|
406
406
|
return !1;
|
|
407
|
-
|
|
407
|
+
d++, A = a;
|
|
408
408
|
}
|
|
409
409
|
) === !1)
|
|
410
410
|
return !1;
|
|
@@ -438,7 +438,7 @@ function us(W, o, e) {
|
|
|
438
438
|
var j = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
439
439
|
function V(W, o, e) {
|
|
440
440
|
e === void 0 && (e = {});
|
|
441
|
-
var h = K(W), s = K(o),
|
|
441
|
+
var h = K(W), s = K(o), d = N(s[1] - h[1]), u = N(s[0] - h[0]), A = N(h[1]), L = N(s[1]), i = Math.pow(Math.sin(d / 2), 2) + Math.pow(Math.sin(u / 2), 2) * Math.cos(A) * Math.cos(L);
|
|
442
442
|
return As(2 * Math.atan2(Math.sqrt(i), Math.sqrt(1 - i)), e.units);
|
|
443
443
|
}
|
|
444
444
|
function Xs(W) {
|
|
@@ -511,13 +511,13 @@ function Bs(W) {
|
|
|
511
511
|
}
|
|
512
512
|
function fs(W, o, e, h) {
|
|
513
513
|
h === void 0 && (h = {});
|
|
514
|
-
var s = K(W),
|
|
514
|
+
var s = K(W), d = N(s[0]), u = N(s[1]), A = N(e), L = ps(o, h.units), i = Math.asin(Math.sin(u) * Math.cos(L) + Math.cos(u) * Math.sin(L) * Math.cos(A)), t = d + Math.atan2(Math.sin(A) * Math.sin(L) * Math.cos(u), Math.cos(L) - Math.sin(u) * Math.sin(i)), a = rs(t), l = rs(i);
|
|
515
515
|
return $([a, l], h.properties);
|
|
516
516
|
}
|
|
517
517
|
function is(W, o, e) {
|
|
518
518
|
if (e === void 0 && (e = {}), e.final === !0)
|
|
519
519
|
return Fs(W, o);
|
|
520
|
-
var h = K(W), s = K(o),
|
|
520
|
+
var h = K(W), s = K(o), d = N(h[0]), u = N(s[0]), A = N(h[1]), L = N(s[1]), i = Math.sin(u - d) * Math.cos(L), t = Math.cos(A) * Math.sin(L) - Math.sin(A) * Math.cos(L) * Math.cos(u - d);
|
|
521
521
|
return rs(Math.atan2(i, t));
|
|
522
522
|
}
|
|
523
523
|
function Fs(W, o) {
|
|
@@ -534,8 +534,8 @@ function Ds(W, o) {
|
|
|
534
534
|
if (!o)
|
|
535
535
|
throw new Error("points is required");
|
|
536
536
|
var e, h = 1 / 0, s = 0;
|
|
537
|
-
return Ss(o, function(
|
|
538
|
-
var A = V(W,
|
|
537
|
+
return Ss(o, function(d, u) {
|
|
538
|
+
var A = V(W, d);
|
|
539
539
|
A < h && (s = u, h = A);
|
|
540
540
|
}), e = Xs(o.features[s]), e.properties.featureIndex = s, e.properties.distanceToPoint = h, e;
|
|
541
541
|
}
|
|
@@ -543,14 +543,14 @@ function Hs(W, o, e) {
|
|
|
543
543
|
e === void 0 && (e = {});
|
|
544
544
|
var h = K(W), s = K(o);
|
|
545
545
|
s[0] += s[0] - h[0] > 180 ? -360 : h[0] - s[0] > 180 ? 360 : 0;
|
|
546
|
-
var
|
|
546
|
+
var d = Os(h, s), u = ws(d, "meters", e.units);
|
|
547
547
|
return u;
|
|
548
548
|
}
|
|
549
549
|
function Os(W, o, e) {
|
|
550
550
|
e = e === void 0 ? D : Number(e);
|
|
551
|
-
var h = e, s = W[1] * Math.PI / 180,
|
|
551
|
+
var h = e, s = W[1] * Math.PI / 180, d = o[1] * Math.PI / 180, u = d - s, A = Math.abs(o[0] - W[0]) * Math.PI / 180;
|
|
552
552
|
A > Math.PI && (A -= 2 * Math.PI);
|
|
553
|
-
var L = Math.log(Math.tan(
|
|
553
|
+
var L = Math.log(Math.tan(d / 2 + Math.PI / 4) / Math.tan(s / 2 + Math.PI / 4)), i = Math.abs(L) > 1e-11 ? u / L : Math.cos(s), t = Math.sqrt(u * u + i * i * A * A), a = t * h;
|
|
554
554
|
return a;
|
|
555
555
|
}
|
|
556
556
|
function es(W, o, e) {
|
|
@@ -560,13 +560,13 @@ function es(W, o, e) {
|
|
|
560
560
|
throw new Error("line is required");
|
|
561
561
|
Array.isArray(o) ? o = G(o) : o.type === "LineString" ? o = Q(o) : us(o, "LineString", "line");
|
|
562
562
|
var h = 1 / 0, s = W.geometry.coordinates;
|
|
563
|
-
return Es(o, function(
|
|
564
|
-
var u =
|
|
563
|
+
return Es(o, function(d) {
|
|
564
|
+
var u = d.geometry.coordinates[0], A = d.geometry.coordinates[1], L = Ns(s, u, A, e);
|
|
565
565
|
L < h && (h = L);
|
|
566
566
|
}), ws(h, "degrees", e.units);
|
|
567
567
|
}
|
|
568
568
|
function Ns(W, o, e, h) {
|
|
569
|
-
var s = [e[0] - o[0], e[1] - o[1]],
|
|
569
|
+
var s = [e[0] - o[0], e[1] - o[1]], d = [W[0] - o[0], W[1] - o[1]], u = ls(d, s);
|
|
570
570
|
if (u <= 0)
|
|
571
571
|
return os(W, o, { method: h.method, units: "degrees" });
|
|
572
572
|
var A = ls(s, s);
|
|
@@ -583,20 +583,20 @@ function os(W, o, e) {
|
|
|
583
583
|
}
|
|
584
584
|
function Gs(W, o, e, h) {
|
|
585
585
|
if (h = h || {}, !ks(h)) throw new Error("options is invalid");
|
|
586
|
-
var s,
|
|
586
|
+
var s, d = [];
|
|
587
587
|
if (W.type === "Feature") s = W.geometry.coordinates;
|
|
588
588
|
else if (W.type === "LineString") s = W.coordinates;
|
|
589
589
|
else throw new Error("input must be a LineString Feature or Geometry");
|
|
590
590
|
for (var u = s.length, A = 0, L, i, t, a = 0; a < s.length && !(o >= A && a === s.length - 1); a++) {
|
|
591
|
-
if (A > o &&
|
|
591
|
+
if (A > o && d.length === 0) {
|
|
592
592
|
if (L = o - A, !L)
|
|
593
|
-
return
|
|
594
|
-
i = is(s[a], s[a - 1]) - 180, t = fs(s[a], L, i, h),
|
|
593
|
+
return d.push(s[a]), G(d);
|
|
594
|
+
i = is(s[a], s[a - 1]) - 180, t = fs(s[a], L, i, h), d.push(t.geometry.coordinates);
|
|
595
595
|
}
|
|
596
596
|
if (A >= e)
|
|
597
|
-
return L = e - A, L ? (i = is(s[a], s[a - 1]) - 180, t = fs(s[a], L, i, h),
|
|
598
|
-
if (A >= o &&
|
|
599
|
-
return G(
|
|
597
|
+
return L = e - A, L ? (i = is(s[a], s[a - 1]) - 180, t = fs(s[a], L, i, h), d.push(t.geometry.coordinates), G(d)) : (d.push(s[a]), G(d));
|
|
598
|
+
if (A >= o && d.push(s[a]), a === s.length - 1)
|
|
599
|
+
return G(d);
|
|
600
600
|
A += V(s[a], s[a + 1], h);
|
|
601
601
|
}
|
|
602
602
|
if (A < o && s.length === u)
|
|
@@ -606,31 +606,31 @@ function Gs(W, o, e, h) {
|
|
|
606
606
|
}
|
|
607
607
|
const q = { units: "kilometers" };
|
|
608
608
|
function zs(W, o, e, h) {
|
|
609
|
-
var { nearestDistance: s } = ss(W, o), { nearestDistance:
|
|
610
|
-
const A = Math.min(s, u,
|
|
609
|
+
var { nearestDistance: s } = ss(W, o), { nearestDistance: d } = ss(W, h), { nearestDistance: u } = ss(W, e);
|
|
610
|
+
const A = Math.min(s, u, d);
|
|
611
611
|
return A === s ? o : A === u ? e : h;
|
|
612
612
|
}
|
|
613
613
|
const $s = (W, o, e) => {
|
|
614
614
|
debugger;
|
|
615
|
-
const h = $(W.slice(0, 2)), { nearestCoord: s } = ss(W, o),
|
|
615
|
+
const h = $(W.slice(0, 2)), { nearestCoord: s } = ss(W, o), d = o.findIndex(
|
|
616
616
|
(Z) => Z[0] == s[0] && Z[1] == s[1]
|
|
617
617
|
);
|
|
618
618
|
let u = [];
|
|
619
|
-
if (
|
|
619
|
+
if (d == 0)
|
|
620
620
|
u.push(o[0], o[1]);
|
|
621
|
-
else if (
|
|
621
|
+
else if (d == o.length - 1)
|
|
622
622
|
u.push(o[o.length - 2], o[o.length - 1]);
|
|
623
623
|
else {
|
|
624
|
-
const Z = [o[
|
|
624
|
+
const Z = [o[d], o[d + 1]], Ws = [o[d - 1], o[d]];
|
|
625
625
|
var A = es(h, G(Z), q), L = es(h, G(Ws), q);
|
|
626
626
|
u = A > L ? Ws : Z;
|
|
627
627
|
}
|
|
628
|
-
console.log("附近的点",
|
|
628
|
+
console.log("附近的点", d, u);
|
|
629
629
|
const i = G([u[0].slice(0, 2), u[1].slice(0, 2)]), t = $(u[0].slice(0, 2)), a = $(u[1].slice(0, 2));
|
|
630
|
-
var l = es(h, i, q), C = V(h, t, q) || 0,
|
|
630
|
+
var l = es(h, i, q), C = V(h, t, q) || 0, I = Math.sqrt(C * C - l * l) || 0;
|
|
631
631
|
let g = u[0].slice(0, 2);
|
|
632
|
-
|
|
633
|
-
const b = V(t, a, q), T = Math.abs(u[0][2] - u[1][2]), B = Math.min(u[0][2], u[1][2]), P = Math.max(u[0][2], u[1][2]), y = u[0][2] > u[1][2] ? P -
|
|
632
|
+
I > 0 && (g = Gs(i, 0, I, q).geometry.coordinates[1]);
|
|
633
|
+
const b = V(t, a, q), T = Math.abs(u[0][2] - u[1][2]), B = Math.min(u[0][2], u[1][2]), P = Math.max(u[0][2], u[1][2]), y = u[0][2] > u[1][2] ? P - I / b * T : I / b * T + B;
|
|
634
634
|
console.log("高度差>>>>", T), console.log("最小高度>>>>", B);
|
|
635
635
|
const m = y - W[2], _ = l * 1e3, v = Math.sqrt(_ * _ + m * m);
|
|
636
636
|
console.log("水平距离>>>>", _), console.log("竖直距离>>>>", m), console.log("直线距离>>>>", v);
|
|
@@ -697,21 +697,21 @@ function ss(W, o) {
|
|
|
697
697
|
});
|
|
698
698
|
const s = vs(
|
|
699
699
|
h
|
|
700
|
-
),
|
|
700
|
+
), d = Ds(e, s), u = V(e, d, q);
|
|
701
701
|
return {
|
|
702
|
-
nearestCoord:
|
|
702
|
+
nearestCoord: d.geometry.coordinates,
|
|
703
703
|
nearestDistance: u
|
|
704
704
|
};
|
|
705
705
|
}
|
|
706
706
|
function p(W, o, e, h, s) {
|
|
707
707
|
e || (e = new n.HeadingPitchRoll());
|
|
708
|
-
const
|
|
708
|
+
const d = n.Transforms.headingPitchRollQuaternion(
|
|
709
709
|
W,
|
|
710
710
|
e,
|
|
711
711
|
h,
|
|
712
712
|
s
|
|
713
713
|
), u = n.Matrix4.fromRotationTranslation(
|
|
714
|
-
n.Matrix3.fromQuaternion(
|
|
714
|
+
n.Matrix3.fromQuaternion(d, new n.Matrix3()),
|
|
715
715
|
W,
|
|
716
716
|
new n.Matrix4()
|
|
717
717
|
);
|
|
@@ -722,8 +722,8 @@ function p(W, o, e, h, s) {
|
|
|
722
722
|
);
|
|
723
723
|
}
|
|
724
724
|
function O(W, o) {
|
|
725
|
-
var e = W.cartesianToCartographic(o), h = n.Math.toDegrees(e.latitude), s = n.Math.toDegrees(e.longitude),
|
|
726
|
-
return
|
|
725
|
+
var e = W.cartesianToCartographic(o), h = n.Math.toDegrees(e.latitude), s = n.Math.toDegrees(e.longitude), d = e.height;
|
|
726
|
+
return [s, h, d];
|
|
727
727
|
}
|
|
728
728
|
function f(W, o = 6) {
|
|
729
729
|
const e = [];
|
|
@@ -734,15 +734,15 @@ function f(W, o = 6) {
|
|
|
734
734
|
return e;
|
|
735
735
|
}
|
|
736
736
|
function qs(W, o, e, h) {
|
|
737
|
-
var s = [],
|
|
737
|
+
var s = [], d = n.Cartographic.fromCartesian(W), u = n.Cartographic.fromCartesian(o), A = d.longitude * 180 / Math.PI, L = d.latitude * 180 / Math.PI, i = u.longitude * 180 / Math.PI, t = u.latitude * 180 / Math.PI, a = Math.sqrt(
|
|
738
738
|
(A - i) * (A - i) + (L - t) * (L - t)
|
|
739
|
-
), l = a * e, C = n.Cartesian3.clone(W),
|
|
739
|
+
), l = a * e, C = n.Cartesian3.clone(W), I = n.Cartesian3.clone(o), g = n.Cartesian3.distance(
|
|
740
740
|
C,
|
|
741
741
|
n.Cartesian3.ZERO
|
|
742
|
-
), b = n.Cartesian3.distance(
|
|
743
|
-
if (n.Cartesian3.normalize(C, C), n.Cartesian3.normalize(
|
|
742
|
+
), b = n.Cartesian3.distance(I, n.Cartesian3.ZERO);
|
|
743
|
+
if (n.Cartesian3.normalize(C, C), n.Cartesian3.normalize(I, I), n.Cartesian3.distance(C, I) == 0)
|
|
744
744
|
return s;
|
|
745
|
-
var T = n.Cartesian3.angleBetween(C,
|
|
745
|
+
var T = n.Cartesian3.angleBetween(C, I);
|
|
746
746
|
s.push(W);
|
|
747
747
|
for (var B = 1; B < h - 1; B++) {
|
|
748
748
|
var P = B * 1 / (h - 1), y = 1 - P, m = Math.sin(y * T) / Math.sin(T), _ = Math.sin(P * T) / Math.sin(T), v = n.Cartesian3.multiplyByScalar(
|
|
@@ -750,7 +750,7 @@ function qs(W, o, e, h) {
|
|
|
750
750
|
m,
|
|
751
751
|
new n.Cartesian3()
|
|
752
752
|
), k = n.Cartesian3.multiplyByScalar(
|
|
753
|
-
|
|
753
|
+
I,
|
|
754
754
|
_,
|
|
755
755
|
new n.Cartesian3()
|
|
756
756
|
), S = n.Cartesian3.add(
|
|
@@ -768,187 +768,199 @@ function qs(W, o, e, h) {
|
|
|
768
768
|
}
|
|
769
769
|
class it {
|
|
770
770
|
constructor() {
|
|
771
|
-
|
|
772
|
-
|
|
771
|
+
w(this, "LineID", "myEntity1");
|
|
772
|
+
w(this, "Tag", "");
|
|
773
773
|
// 线路杆塔台账
|
|
774
|
-
|
|
774
|
+
w(this, "towers", []);
|
|
775
775
|
//是否启用自定义相序 true 按照设置相序分类 false 按照集合顺序分类
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
776
|
+
w(this, "ISPhaseSequence", !1);
|
|
777
|
+
w(this, "Wairnum", 0);
|
|
778
|
+
w(this, "Type", 0);
|
|
779
|
+
w(this, "Trees", []);
|
|
780
780
|
// 导线颜色
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
781
|
+
w(this, "wireAColor", "#FFFFFF");
|
|
782
|
+
w(this, "wireBColor", "#FFFFFF");
|
|
783
|
+
w(this, "wireCColor", "#FFFFFF");
|
|
784
|
+
w(this, "wireTColor", "#FFFFFF");
|
|
785
785
|
//地线
|
|
786
|
-
|
|
787
|
-
|
|
786
|
+
w(this, "wireD1Color", "#FFFFFF");
|
|
787
|
+
w(this, "wireD2Color", "#FFFFFF");
|
|
788
788
|
// 导线宽度
|
|
789
|
-
|
|
789
|
+
w(this, "wireWidth", 1);
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
792
|
class et {
|
|
793
|
+
constructor() {
|
|
794
|
+
w(this, "id", "");
|
|
795
|
+
w(this, "modelid", "");
|
|
796
|
+
w(this, "lon", 0);
|
|
797
|
+
w(this, "lat", 0);
|
|
798
|
+
w(this, "alt", 0);
|
|
799
|
+
w(this, "treeH", 0);
|
|
800
|
+
w(this, "modelurl", "");
|
|
801
|
+
w(this, "treeScale", 1);
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
class ot {
|
|
793
805
|
constructor() {
|
|
794
806
|
// 杆塔id
|
|
795
|
-
|
|
807
|
+
w(this, "id", "");
|
|
796
808
|
// 杆塔名称
|
|
797
|
-
|
|
809
|
+
w(this, "name", "");
|
|
798
810
|
//杆塔类型
|
|
799
|
-
|
|
811
|
+
w(this, "type", 0);
|
|
800
812
|
// 经度
|
|
801
|
-
|
|
813
|
+
w(this, "Longitude", 0);
|
|
802
814
|
// 纬度
|
|
803
|
-
|
|
815
|
+
w(this, "Latitude", 0);
|
|
804
816
|
// 高程
|
|
805
|
-
|
|
817
|
+
w(this, "Altitude", 0);
|
|
806
818
|
// 转角
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
819
|
+
w(this, "RollX", 0);
|
|
820
|
+
w(this, "RollY", 90);
|
|
821
|
+
w(this, "RollZ", 0);
|
|
822
|
+
w(this, "towerScale", 1);
|
|
811
823
|
// 电线偏移高度,单位:米
|
|
812
|
-
|
|
824
|
+
w(this, "towerHeight", 0);
|
|
813
825
|
//模型路径
|
|
814
|
-
|
|
826
|
+
w(this, "towerModelUri", "");
|
|
815
827
|
//挂点信息
|
|
816
|
-
|
|
828
|
+
w(this, "towerPoint", []);
|
|
817
829
|
//绝缘子串
|
|
818
|
-
|
|
830
|
+
w(this, "Insulators", []);
|
|
819
831
|
}
|
|
820
832
|
}
|
|
821
|
-
class
|
|
833
|
+
class rt {
|
|
822
834
|
constructor() {
|
|
823
835
|
// 绝缘子串id
|
|
824
|
-
|
|
836
|
+
w(this, "id", "");
|
|
825
837
|
// 绝缘子串名称
|
|
826
|
-
|
|
838
|
+
w(this, "name", "");
|
|
827
839
|
// 类型 地线串 耐张串 悬垂串 跳线串
|
|
828
|
-
|
|
829
|
-
|
|
840
|
+
w(this, "type", 0);
|
|
841
|
+
w(this, "WairFX", "进");
|
|
830
842
|
//串所属回路
|
|
831
|
-
|
|
843
|
+
w(this, "linenum", 1);
|
|
832
844
|
//分裂数
|
|
833
|
-
|
|
845
|
+
w(this, "Wairnum", 0);
|
|
834
846
|
//相序
|
|
835
|
-
|
|
847
|
+
w(this, "PhaseSequence", 0);
|
|
836
848
|
//串模型转角
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
849
|
+
w(this, "RollX", 0);
|
|
850
|
+
w(this, "RollY", 0);
|
|
851
|
+
w(this, "RollZ", 0);
|
|
840
852
|
//缩放
|
|
841
|
-
|
|
853
|
+
w(this, "InsulatorScale", 1);
|
|
842
854
|
//串长
|
|
843
|
-
|
|
855
|
+
w(this, "InsulatorLength", 0);
|
|
844
856
|
//模型路径
|
|
845
|
-
|
|
857
|
+
w(this, "InsulatorModelUri", "");
|
|
846
858
|
//挂点信息
|
|
847
|
-
|
|
859
|
+
w(this, "InsulatorPoint", []);
|
|
848
860
|
}
|
|
849
861
|
}
|
|
850
|
-
class
|
|
862
|
+
class ft {
|
|
851
863
|
constructor() {
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
864
|
+
w(this, "name", "");
|
|
865
|
+
w(this, "X", -45);
|
|
866
|
+
w(this, "Y", 90);
|
|
867
|
+
w(this, "Z", 0);
|
|
856
868
|
}
|
|
857
869
|
}
|
|
858
870
|
var H = /* @__PURE__ */ ((W) => (W[W.A相 = 0] = "A相", W[W.B相 = 1] = "B相", W[W.C相 = 2] = "C相", W[W.地线1 = 3] = "地线1", W[W.地线2 = 4] = "地线2", W))(H || {}), J = /* @__PURE__ */ ((W) => (W[W.直线塔 = 0] = "直线塔", W[W.耐张塔 = 1] = "耐张塔", W[W.门架塔 = 2] = "门架塔", W[W.换位塔 = 3] = "换位塔", W))(J || {}), Js = /* @__PURE__ */ ((W) => (W[W.交流单回路 = 0] = "交流单回路", W[W.交流双回路 = 1] = "交流双回路", W[W.直流单回路 = 2] = "直流单回路", W[W.直流双回路 = 3] = "直流双回路", W[W.交流四回路 = 4] = "交流四回路", W))(Js || {}), ts = /* @__PURE__ */ ((W) => (W[W.地线 = 0] = "地线", W[W.回路一 = 1] = "回路一", W[W.回路二 = 2] = "回路二", W[W.回路三 = 3] = "回路三", W[W.回路四 = 4] = "回路四", W))(ts || {}), R = /* @__PURE__ */ ((W) => (W[W.悬垂串 = 0] = "悬垂串", W[W.耐张串 = 1] = "耐张串", W[W.跳线串 = 2] = "跳线串", W[W.硬跳串 = 3] = "硬跳串", W[W.V串 = 4] = "V串", W[W.地线串 = 5] = "地线串", W[W.绕跳临时 = 6] = "绕跳临时", W))(R || {}), c = /* @__PURE__ */ ((W) => (W[W.单分裂 = 0] = "单分裂", W[W.双分裂 = 1] = "双分裂", W[W.四分裂 = 2] = "四分裂", W[W.六分裂 = 3] = "六分裂", W[W.八分裂 = 4] = "八分裂", W))(c || {});
|
|
859
|
-
class
|
|
871
|
+
class ht {
|
|
860
872
|
// private arcLine1D2: Cesium.Cartesian3[]= [];
|
|
861
873
|
// 类的构造函数,用于初始化属性
|
|
862
874
|
constructor(o, e, h) {
|
|
863
875
|
//三维场景
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
876
|
+
w(this, "viewer");
|
|
877
|
+
w(this, "LineInfo");
|
|
878
|
+
w(this, "Keym", "");
|
|
867
879
|
// 模型模型集合
|
|
868
|
-
|
|
869
|
-
|
|
880
|
+
w(this, "dataSource2");
|
|
881
|
+
w(this, "entityCollection2");
|
|
870
882
|
// 模型模型集合
|
|
871
|
-
|
|
872
|
-
|
|
883
|
+
w(this, "dataSourcetree");
|
|
884
|
+
w(this, "entityCollectiontree");
|
|
873
885
|
// 模型模型集合
|
|
874
|
-
|
|
875
|
-
|
|
886
|
+
w(this, "dataSourceplotting");
|
|
887
|
+
w(this, "entityCollectionplotting");
|
|
876
888
|
// // 模型模型集合
|
|
877
889
|
// private LinedataSource2;
|
|
878
890
|
// private LineentityCollection2;
|
|
879
891
|
// 塔集合
|
|
880
|
-
|
|
892
|
+
w(this, "offsetTowers", []);
|
|
881
893
|
// 回路1单根导线1
|
|
882
|
-
|
|
894
|
+
w(this, "offsetWires11", []);
|
|
883
895
|
// 回路1单根导线2
|
|
884
|
-
|
|
896
|
+
w(this, "offsetWires12", []);
|
|
885
897
|
// 回路1单根导线3
|
|
886
|
-
|
|
898
|
+
w(this, "offsetWires13", []);
|
|
887
899
|
// 回路2单根导线1
|
|
888
|
-
|
|
900
|
+
w(this, "offsetWires21", []);
|
|
889
901
|
// 回路2单根导线2
|
|
890
|
-
|
|
902
|
+
w(this, "offsetWires22", []);
|
|
891
903
|
// 回路2单根导线3
|
|
892
|
-
|
|
904
|
+
w(this, "offsetWires23", []);
|
|
893
905
|
// 回路一A跳线
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
906
|
+
w(this, "ToffsetArcWires1A", []);
|
|
907
|
+
w(this, "ToffsetArcWires2A", []);
|
|
908
|
+
w(this, "ToffsetWires1A1", []);
|
|
909
|
+
w(this, "ToffsetWires1A2", []);
|
|
898
910
|
// 回路一B跳线
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
911
|
+
w(this, "ToffsetArcWires1B", []);
|
|
912
|
+
w(this, "ToffsetArcWires2B", []);
|
|
913
|
+
w(this, "ToffsetWires1B1", []);
|
|
914
|
+
w(this, "ToffsetWires1B2", []);
|
|
903
915
|
// 回路一C跳线
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
916
|
+
w(this, "ToffsetArcWires1C", []);
|
|
917
|
+
w(this, "ToffsetArcWires2C", []);
|
|
918
|
+
w(this, "ToffsetWires1C1", []);
|
|
919
|
+
w(this, "ToffsetWires1C2", []);
|
|
908
920
|
// 回路二A跳线
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
921
|
+
w(this, "ToffsetArcWires1A2", []);
|
|
922
|
+
w(this, "ToffsetArcWires2A2", []);
|
|
923
|
+
w(this, "ToffsetWires2A1", []);
|
|
924
|
+
w(this, "ToffsetWires2A2", []);
|
|
913
925
|
// 回路二B跳线
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
926
|
+
w(this, "ToffsetArcWires1B2", []);
|
|
927
|
+
w(this, "ToffsetArcWires2B2", []);
|
|
928
|
+
w(this, "ToffsetWires2B1", []);
|
|
929
|
+
w(this, "ToffsetWires2B2", []);
|
|
918
930
|
// 回路二C跳线
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
931
|
+
w(this, "ToffsetArcWires1C2", []);
|
|
932
|
+
w(this, "ToffsetArcWires2C2", []);
|
|
933
|
+
w(this, "ToffsetWires2C1", []);
|
|
934
|
+
w(this, "ToffsetWires2C2", []);
|
|
923
935
|
// 回路一导线相序A
|
|
924
|
-
|
|
936
|
+
w(this, "offsetArcWires1A", []);
|
|
925
937
|
// 回路一导线相序B
|
|
926
|
-
|
|
938
|
+
w(this, "offsetArcWires1B", []);
|
|
927
939
|
// 回路一导线相序C
|
|
928
|
-
|
|
940
|
+
w(this, "offsetArcWires1C", []);
|
|
929
941
|
// 回路二导线相序A
|
|
930
|
-
|
|
942
|
+
w(this, "offsetArcWires2A", []);
|
|
931
943
|
// 回路二导线相序B
|
|
932
|
-
|
|
944
|
+
w(this, "offsetArcWires2B", []);
|
|
933
945
|
// 回路二导线相序C
|
|
934
|
-
|
|
946
|
+
w(this, "offsetArcWires2C", []);
|
|
935
947
|
//地线1
|
|
936
|
-
|
|
948
|
+
w(this, "offsetGrouundWires1", []);
|
|
937
949
|
//地线2
|
|
938
|
-
|
|
950
|
+
w(this, "offsetGrouundWires2", []);
|
|
939
951
|
// 单根地线1
|
|
940
|
-
|
|
952
|
+
w(this, "offsetGrouundWires11", []);
|
|
941
953
|
// 单根地线2
|
|
942
|
-
|
|
954
|
+
w(this, "offsetGrouundWires12", []);
|
|
943
955
|
// 电线(垂线)集合 用于计算
|
|
944
956
|
//回路1
|
|
945
|
-
|
|
946
|
-
|
|
957
|
+
w(this, "arcLine1A1", []);
|
|
958
|
+
w(this, "arcLine1B1", []);
|
|
947
959
|
// private arcLine1C1: Cesium.Cartesian3[] = [];
|
|
948
960
|
//地线
|
|
949
|
-
|
|
961
|
+
w(this, "arcLine1D1", []);
|
|
950
962
|
// 在类中添加私有属性来存储事件处理器和标记数据源
|
|
951
|
-
|
|
963
|
+
w(this, "treeHandler", null);
|
|
952
964
|
this.Keym = h, this.viewer = o, this.LineInfo = e, this.dataSource2 = new n.CustomDataSource(this.LineInfo.LineID), this.entityCollection2 = this.dataSource2.entities, this.dataSourcetree = new n.CustomDataSource("tree"), this.entityCollectiontree = this.dataSourcetree.entities, this.dataSourceplotting = new n.CustomDataSource("plotting"), this.entityCollectionplotting = this.dataSourceplotting.entities, this.dataSource2 = new n.CustomDataSource(this.LineInfo.LineID + "daoxian"), this.entityCollection2 = this.dataSource2.entities;
|
|
953
965
|
}
|
|
954
966
|
//单回路线路加载
|
|
@@ -960,8 +972,8 @@ class ft {
|
|
|
960
972
|
});
|
|
961
973
|
let o = 0, e = 0;
|
|
962
974
|
this.offsetTowers.forEach((h, s) => {
|
|
963
|
-
const
|
|
964
|
-
this.entityCollection2.add(U(this.LineInfo.towers[s].id, h, this.LineInfo.towers[s].name, this.LineInfo.towers[s].towerModelUri,
|
|
975
|
+
const d = new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[s].RollX), n.Math.toRadians(this.LineInfo.towers[s].RollY), n.Math.toRadians(this.LineInfo.towers[s].RollZ));
|
|
976
|
+
this.entityCollection2.add(U(this.LineInfo.towers[s].id, h, this.LineInfo.towers[s].name, this.LineInfo.towers[s].towerModelUri, d, this.LineInfo.towers[s].towerScale));
|
|
965
977
|
let u = new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[s].RollX), 0, 0), A = 0;
|
|
966
978
|
if (this.LineInfo.towers[s].Insulators.forEach((i) => {
|
|
967
979
|
if (this.LineInfo.towers[s].type == J.耐张塔)
|
|
@@ -988,8 +1000,8 @@ class ft {
|
|
|
988
1000
|
this.entityCollection2.add(U(i.id, C, i.name, i.InsulatorModelUri, l, i.InsulatorScale));
|
|
989
1001
|
break;
|
|
990
1002
|
case R.地线串:
|
|
991
|
-
const
|
|
992
|
-
this.entityCollection2.add(U(i.id, g, i.name, i.InsulatorModelUri,
|
|
1003
|
+
const I = new n.HeadingPitchRoll(n.Math.toRadians(i.RollX), n.Math.toRadians(i.RollY), n.Math.toRadians(i.RollZ)), g = p(h, new n.Cartesian3(this.LineInfo.towers[s].towerPoint[A].X, this.LineInfo.towers[s].towerPoint[A].Y, this.LineInfo.towers[s].towerPoint[A].Z), u);
|
|
1004
|
+
this.entityCollection2.add(U(i.id, g, i.name, i.InsulatorModelUri, I, i.InsulatorScale));
|
|
993
1005
|
break;
|
|
994
1006
|
}
|
|
995
1007
|
else {
|
|
@@ -1035,8 +1047,8 @@ class ft {
|
|
|
1035
1047
|
this.offsetWires11.push(l), this.offsetWires11.push(C), this.ToffsetWires1A2.push(l), this.ToffsetWires1A2.push(C);
|
|
1036
1048
|
break;
|
|
1037
1049
|
case c.四分裂:
|
|
1038
|
-
const
|
|
1039
|
-
this.offsetWires11.push(
|
|
1050
|
+
const I = p(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), u), g = p(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), u), b = p(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), u), T = p(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), u);
|
|
1051
|
+
this.offsetWires11.push(I), this.offsetWires11.push(g), this.offsetWires11.push(b), this.offsetWires11.push(T), this.ToffsetWires1A2.push(I), this.ToffsetWires1A2.push(g), this.ToffsetWires1A2.push(b), this.ToffsetWires1A2.push(T);
|
|
1040
1052
|
break;
|
|
1041
1053
|
case c.六分裂:
|
|
1042
1054
|
const B = p(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), u), P = p(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), u), y = p(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), u), m = p(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), u), _ = p(h, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), u), v = p(h, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), u);
|
|
@@ -1097,8 +1109,8 @@ class ft {
|
|
|
1097
1109
|
this.offsetWires12.push(l), this.offsetWires12.push(C), this.ToffsetWires1B2.push(l), this.ToffsetWires1B2.push(C);
|
|
1098
1110
|
break;
|
|
1099
1111
|
case c.四分裂:
|
|
1100
|
-
const
|
|
1101
|
-
this.offsetWires12.push(
|
|
1112
|
+
const I = p(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), u), g = p(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), u), b = p(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), u), T = p(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), u);
|
|
1113
|
+
this.offsetWires12.push(I), this.offsetWires12.push(g), this.offsetWires12.push(b), this.offsetWires12.push(T), this.ToffsetWires1B2.push(I), this.ToffsetWires1B2.push(g), this.ToffsetWires1B2.push(b), this.ToffsetWires1B2.push(T);
|
|
1102
1114
|
break;
|
|
1103
1115
|
case c.六分裂:
|
|
1104
1116
|
const B = p(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), u), P = p(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), u), y = p(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), u), m = p(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), u), _ = p(h, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), u), v = p(h, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), u);
|
|
@@ -1159,8 +1171,8 @@ class ft {
|
|
|
1159
1171
|
this.offsetWires13.push(l), this.offsetWires13.push(C), this.ToffsetWires1C2.push(l), this.ToffsetWires1C2.push(C);
|
|
1160
1172
|
break;
|
|
1161
1173
|
case c.四分裂:
|
|
1162
|
-
const
|
|
1163
|
-
this.offsetWires13.push(
|
|
1174
|
+
const I = p(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), u), g = p(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), u), b = p(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), u), T = p(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), u);
|
|
1175
|
+
this.offsetWires13.push(I), this.offsetWires13.push(g), this.offsetWires13.push(b), this.offsetWires13.push(T), this.ToffsetWires1C2.push(I), this.ToffsetWires1C2.push(g), this.ToffsetWires1C2.push(b), this.ToffsetWires1C2.push(T);
|
|
1164
1176
|
break;
|
|
1165
1177
|
case c.六分裂:
|
|
1166
1178
|
const B = p(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), u), P = p(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), u), y = p(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), u), m = p(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), u), _ = p(h, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), u), v = p(h, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), u);
|
|
@@ -1330,8 +1342,8 @@ class ft {
|
|
|
1330
1342
|
this.offsetWires21.push(l), this.offsetWires21.push(C), this.ToffsetWires2A2.push(l), this.ToffsetWires2A2.push(C);
|
|
1331
1343
|
break;
|
|
1332
1344
|
case c.四分裂:
|
|
1333
|
-
const
|
|
1334
|
-
this.offsetWires21.push(
|
|
1345
|
+
const I = p(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), u), g = p(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), u), b = p(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), u), T = p(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), u);
|
|
1346
|
+
this.offsetWires21.push(I), this.offsetWires21.push(g), this.offsetWires21.push(b), this.offsetWires21.push(T), this.ToffsetWires2A2.push(I), this.ToffsetWires2A2.push(g), this.ToffsetWires2A2.push(b), this.ToffsetWires2A2.push(T);
|
|
1335
1347
|
break;
|
|
1336
1348
|
case c.六分裂:
|
|
1337
1349
|
const B = p(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), u), P = p(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), u), y = p(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), u), m = p(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), u), _ = p(h, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), u), v = p(h, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), u);
|
|
@@ -1392,8 +1404,8 @@ class ft {
|
|
|
1392
1404
|
this.offsetWires22.push(l), this.offsetWires22.push(C), this.ToffsetWires2B2.push(l), this.ToffsetWires2B2.push(C);
|
|
1393
1405
|
break;
|
|
1394
1406
|
case c.四分裂:
|
|
1395
|
-
const
|
|
1396
|
-
this.offsetWires22.push(
|
|
1407
|
+
const I = p(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), u), g = p(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), u), b = p(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), u), T = p(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), u);
|
|
1408
|
+
this.offsetWires22.push(I), this.offsetWires22.push(g), this.offsetWires22.push(b), this.offsetWires22.push(T), this.ToffsetWires2B2.push(I), this.ToffsetWires2B2.push(g), this.ToffsetWires2B2.push(b), this.ToffsetWires2B2.push(T);
|
|
1397
1409
|
break;
|
|
1398
1410
|
case c.六分裂:
|
|
1399
1411
|
const B = p(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), u), P = p(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), u), y = p(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), u), m = p(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), u), _ = p(h, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), u), v = p(h, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), u);
|
|
@@ -1454,8 +1466,8 @@ class ft {
|
|
|
1454
1466
|
this.offsetWires23.push(l), this.offsetWires23.push(C), this.ToffsetWires2C2.push(l), this.ToffsetWires2C2.push(C);
|
|
1455
1467
|
break;
|
|
1456
1468
|
case c.四分裂:
|
|
1457
|
-
const
|
|
1458
|
-
this.offsetWires23.push(
|
|
1469
|
+
const I = p(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), u), g = p(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), u), b = p(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), u), T = p(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), u);
|
|
1470
|
+
this.offsetWires23.push(I), this.offsetWires23.push(g), this.offsetWires23.push(b), this.offsetWires23.push(T), this.ToffsetWires2C2.push(I), this.ToffsetWires2C2.push(g), this.ToffsetWires2C2.push(b), this.ToffsetWires2C2.push(T);
|
|
1459
1471
|
break;
|
|
1460
1472
|
case c.六分裂:
|
|
1461
1473
|
const B = p(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), u), P = p(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), u), y = p(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), u), m = p(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), u), _ = p(h, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), u), v = p(h, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), u);
|
|
@@ -1579,7 +1591,7 @@ class ft {
|
|
|
1579
1591
|
}
|
|
1580
1592
|
A = A + 1;
|
|
1581
1593
|
}), this.offsetWires11.length > 0 && s > 0) {
|
|
1582
|
-
const i = [], t = [], a = [], l = [], C = [],
|
|
1594
|
+
const i = [], t = [], a = [], l = [], C = [], I = [], g = [], b = [];
|
|
1583
1595
|
switch (this.LineInfo.Wairnum) {
|
|
1584
1596
|
case c.单分裂:
|
|
1585
1597
|
this.offsetWires11.length >= 2 && (i.push(this.offsetWires11[o]), i.push(this.offsetWires11[o - 1]), this.offsetArcWires1A = f(i), this.offsetArcWires1A.forEach((T) => {
|
|
@@ -1599,17 +1611,17 @@ class ft {
|
|
|
1599
1611
|
case c.六分裂:
|
|
1600
1612
|
this.offsetWires11.length >= 12 && (i.push(this.offsetWires11[o]), i.push(this.offsetWires11[o - 6]), this.offsetArcWires1A = f(i), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1A.forEach((T) => {
|
|
1601
1613
|
this.arcLine1A1.push(O(this.viewer.scene.globe.ellipsoid, T));
|
|
1602
|
-
}), t.push(this.offsetWires11[o + 1]), t.push(this.offsetWires11[o - 5]), this.offsetArcWires1A = f(t), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires11[o + 2]), a.push(this.offsetWires11[o - 4]), this.offsetArcWires1A = f(a), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires11[o + 3]), l.push(this.offsetWires11[o - 3]), this.offsetArcWires1A = f(l), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires11[o + 4]), C.push(this.offsetWires11[o - 2]), this.offsetArcWires1A = f(C), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1614
|
+
}), t.push(this.offsetWires11[o + 1]), t.push(this.offsetWires11[o - 5]), this.offsetArcWires1A = f(t), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires11[o + 2]), a.push(this.offsetWires11[o - 4]), this.offsetArcWires1A = f(a), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires11[o + 3]), l.push(this.offsetWires11[o - 3]), this.offsetArcWires1A = f(l), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires11[o + 4]), C.push(this.offsetWires11[o - 2]), this.offsetArcWires1A = f(C), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), I.push(this.offsetWires11[o + 5]), I.push(this.offsetWires11[o - 1]), this.offsetArcWires1A = f(I), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
1603
1615
|
break;
|
|
1604
1616
|
case c.八分裂:
|
|
1605
1617
|
this.offsetWires11.length >= 16 && (i.push(this.offsetWires11[o]), i.push(this.offsetWires11[o - 8]), this.offsetArcWires1A = f(i), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1A.forEach((T) => {
|
|
1606
1618
|
this.arcLine1A1.push(O(this.viewer.scene.globe.ellipsoid, T));
|
|
1607
|
-
}), t.push(this.offsetWires11[o + 1]), t.push(this.offsetWires11[o - 7]), this.offsetArcWires1A = f(t), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires11[o + 2]), a.push(this.offsetWires11[o - 6]), this.offsetArcWires1A = f(a), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires11[o + 3]), l.push(this.offsetWires11[o - 5]), this.offsetArcWires1A = f(l), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires11[o + 4]), C.push(this.offsetWires11[o - 4]), this.offsetArcWires1A = f(C), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1619
|
+
}), t.push(this.offsetWires11[o + 1]), t.push(this.offsetWires11[o - 7]), this.offsetArcWires1A = f(t), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires11[o + 2]), a.push(this.offsetWires11[o - 6]), this.offsetArcWires1A = f(a), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires11[o + 3]), l.push(this.offsetWires11[o - 5]), this.offsetArcWires1A = f(l), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires11[o + 4]), C.push(this.offsetWires11[o - 4]), this.offsetArcWires1A = f(C), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), I.push(this.offsetWires11[o + 5]), I.push(this.offsetWires11[o - 3]), this.offsetArcWires1A = f(I), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), g.push(this.offsetWires11[o + 6]), g.push(this.offsetWires11[o - 2]), this.offsetArcWires1A = f(g), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), b.push(this.offsetWires11[o + 7]), b.push(this.offsetWires11[o - 1]), this.offsetArcWires1A = f(b), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
1608
1620
|
break;
|
|
1609
1621
|
}
|
|
1610
1622
|
}
|
|
1611
1623
|
if (this.offsetWires12.length > 0 && s > 0) {
|
|
1612
|
-
const i = [], t = [], a = [], l = [], C = [],
|
|
1624
|
+
const i = [], t = [], a = [], l = [], C = [], I = [], g = [], b = [];
|
|
1613
1625
|
switch (this.LineInfo.Wairnum) {
|
|
1614
1626
|
case c.单分裂:
|
|
1615
1627
|
i.push(this.offsetWires12[o]), i.push(this.offsetWires12[o - 1]), this.offsetArcWires1B = f(i), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((T) => {
|
|
@@ -1629,17 +1641,17 @@ class ft {
|
|
|
1629
1641
|
case c.六分裂:
|
|
1630
1642
|
i.push(this.offsetWires12[o]), i.push(this.offsetWires12[o - 6]), this.offsetArcWires1B = f(i), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((T) => {
|
|
1631
1643
|
this.arcLine1B1.push(O(this.viewer.scene.globe.ellipsoid, T));
|
|
1632
|
-
}), t.push(this.offsetWires12[o + 1]), t.push(this.offsetWires12[o - 5]), this.offsetArcWires1B = f(t), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires12[o + 2]), a.push(this.offsetWires12[o - 4]), this.offsetArcWires1B = f(a), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires12[o + 3]), l.push(this.offsetWires12[o - 3]), this.offsetArcWires1B = f(l), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires12[o + 4]), C.push(this.offsetWires12[o - 2]), this.offsetArcWires1B = f(C), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1644
|
+
}), t.push(this.offsetWires12[o + 1]), t.push(this.offsetWires12[o - 5]), this.offsetArcWires1B = f(t), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires12[o + 2]), a.push(this.offsetWires12[o - 4]), this.offsetArcWires1B = f(a), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires12[o + 3]), l.push(this.offsetWires12[o - 3]), this.offsetArcWires1B = f(l), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires12[o + 4]), C.push(this.offsetWires12[o - 2]), this.offsetArcWires1B = f(C), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), I.push(this.offsetWires12[o + 5]), I.push(this.offsetWires12[o - 1]), this.offsetArcWires1B = f(I), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1633
1645
|
break;
|
|
1634
1646
|
case c.八分裂:
|
|
1635
1647
|
i.push(this.offsetWires12[o]), i.push(this.offsetWires12[o - 8]), this.offsetArcWires1B = f(i), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((T) => {
|
|
1636
1648
|
this.arcLine1B1.push(O(this.viewer.scene.globe.ellipsoid, T));
|
|
1637
|
-
}), t.push(this.offsetWires12[o + 1]), t.push(this.offsetWires12[o - 7]), this.offsetArcWires1B = f(t), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires12[o + 2]), a.push(this.offsetWires12[o - 6]), this.offsetArcWires1B = f(a), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires12[o + 3]), l.push(this.offsetWires12[o - 5]), this.offsetArcWires1B = f(l), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires12[o + 4]), C.push(this.offsetWires12[o - 4]), this.offsetArcWires1B = f(C), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1649
|
+
}), t.push(this.offsetWires12[o + 1]), t.push(this.offsetWires12[o - 7]), this.offsetArcWires1B = f(t), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires12[o + 2]), a.push(this.offsetWires12[o - 6]), this.offsetArcWires1B = f(a), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires12[o + 3]), l.push(this.offsetWires12[o - 5]), this.offsetArcWires1B = f(l), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires12[o + 4]), C.push(this.offsetWires12[o - 4]), this.offsetArcWires1B = f(C), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), I.push(this.offsetWires12[o + 5]), I.push(this.offsetWires12[o - 3]), this.offsetArcWires1B = f(I), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), g.push(this.offsetWires12[o + 6]), g.push(this.offsetWires12[o - 2]), this.offsetArcWires1B = f(g), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), b.push(this.offsetWires12[o + 7]), b.push(this.offsetWires12[o - 1]), this.offsetArcWires1B = f(b), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1638
1650
|
break;
|
|
1639
1651
|
}
|
|
1640
1652
|
}
|
|
1641
1653
|
if (this.offsetWires13.length > 0 && s > 0) {
|
|
1642
|
-
const i = [], t = [], a = [], l = [], C = [],
|
|
1654
|
+
const i = [], t = [], a = [], l = [], C = [], I = [], g = [], b = [];
|
|
1643
1655
|
switch (this.LineInfo.Wairnum) {
|
|
1644
1656
|
case c.单分裂:
|
|
1645
1657
|
i.push(this.offsetWires13[o]), i.push(this.offsetWires13[o - 1]), this.offsetArcWires1C = f(i), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
@@ -1651,15 +1663,15 @@ class ft {
|
|
|
1651
1663
|
i.push(this.offsetWires13[o]), i.push(this.offsetWires13[o - 4]), this.offsetArcWires1C = f(i), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires13[o + 1]), t.push(this.offsetWires13[o - 3]), this.offsetArcWires1C = f(t), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires13[o + 2]), a.push(this.offsetWires13[o - 2]), this.offsetArcWires1C = f(a), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires13[o + 3]), l.push(this.offsetWires13[o - 1]), this.offsetArcWires1C = f(l), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1652
1664
|
break;
|
|
1653
1665
|
case c.六分裂:
|
|
1654
|
-
i.push(this.offsetWires13[o]), i.push(this.offsetWires13[o - 6]), this.offsetArcWires1C = f(i), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires13[o + 1]), t.push(this.offsetWires13[o - 5]), this.offsetArcWires1C = f(t), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires13[o + 2]), a.push(this.offsetWires13[o - 4]), this.offsetArcWires1C = f(a), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires13[o + 3]), l.push(this.offsetWires13[o - 3]), this.offsetArcWires1C = f(l), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires13[o + 4]), C.push(this.offsetWires13[o - 2]), this.offsetArcWires1C = f(C), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1666
|
+
i.push(this.offsetWires13[o]), i.push(this.offsetWires13[o - 6]), this.offsetArcWires1C = f(i), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires13[o + 1]), t.push(this.offsetWires13[o - 5]), this.offsetArcWires1C = f(t), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires13[o + 2]), a.push(this.offsetWires13[o - 4]), this.offsetArcWires1C = f(a), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires13[o + 3]), l.push(this.offsetWires13[o - 3]), this.offsetArcWires1C = f(l), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires13[o + 4]), C.push(this.offsetWires13[o - 2]), this.offsetArcWires1C = f(C), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), I.push(this.offsetWires13[o + 5]), I.push(this.offsetWires13[o - 1]), this.offsetArcWires1C = f(I), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1655
1667
|
break;
|
|
1656
1668
|
case c.八分裂:
|
|
1657
|
-
i.push(this.offsetWires13[o]), i.push(this.offsetWires13[o - 8]), this.offsetArcWires1C = f(i), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires13[o + 1]), t.push(this.offsetWires13[o - 7]), this.offsetArcWires1C = f(t), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires13[o + 2]), a.push(this.offsetWires13[o - 6]), this.offsetArcWires1C = f(a), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires13[o + 3]), l.push(this.offsetWires13[o - 5]), this.offsetArcWires1C = f(l), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires13[o + 4]), C.push(this.offsetWires13[o - 4]), this.offsetArcWires1C = f(C), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1669
|
+
i.push(this.offsetWires13[o]), i.push(this.offsetWires13[o - 8]), this.offsetArcWires1C = f(i), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires13[o + 1]), t.push(this.offsetWires13[o - 7]), this.offsetArcWires1C = f(t), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires13[o + 2]), a.push(this.offsetWires13[o - 6]), this.offsetArcWires1C = f(a), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires13[o + 3]), l.push(this.offsetWires13[o - 5]), this.offsetArcWires1C = f(l), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires13[o + 4]), C.push(this.offsetWires13[o - 4]), this.offsetArcWires1C = f(C), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), I.push(this.offsetWires13[o + 5]), I.push(this.offsetWires13[o - 3]), this.offsetArcWires1C = f(I), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), g.push(this.offsetWires13[o + 6]), g.push(this.offsetWires13[o - 2]), this.offsetArcWires1C = f(g), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), b.push(this.offsetWires13[o + 7]), b.push(this.offsetWires13[o - 1]), this.offsetArcWires1C = f(b), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1658
1670
|
break;
|
|
1659
1671
|
}
|
|
1660
1672
|
}
|
|
1661
1673
|
if (this.offsetWires21.length > 0 && s > 0) {
|
|
1662
|
-
const i = [], t = [], a = [], l = [], C = [],
|
|
1674
|
+
const i = [], t = [], a = [], l = [], C = [], I = [], g = [], b = [];
|
|
1663
1675
|
switch (this.LineInfo.Wairnum) {
|
|
1664
1676
|
case c.单分裂:
|
|
1665
1677
|
i.push(this.offsetWires21[o]), i.push(this.offsetWires21[o - 1]), this.offsetArcWires2A = f(i), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
@@ -1671,15 +1683,15 @@ class ft {
|
|
|
1671
1683
|
i.push(this.offsetWires21[o]), i.push(this.offsetWires21[o - 4]), this.offsetArcWires2A = f(i), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires21[o + 1]), t.push(this.offsetWires21[o - 3]), this.offsetArcWires2A = f(t), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires21[o + 2]), a.push(this.offsetWires21[o - 2]), this.offsetArcWires2A = f(a), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires21[o + 3]), l.push(this.offsetWires21[o - 1]), this.offsetArcWires2A = f(l), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1672
1684
|
break;
|
|
1673
1685
|
case c.六分裂:
|
|
1674
|
-
i.push(this.offsetWires21[o]), i.push(this.offsetWires21[o - 6]), this.offsetArcWires2A = f(i), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires21[o + 1]), t.push(this.offsetWires21[o - 5]), this.offsetArcWires2A = f(t), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires21[o + 2]), a.push(this.offsetWires21[o - 4]), this.offsetArcWires2A = f(a), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires21[o + 3]), l.push(this.offsetWires21[o - 3]), this.offsetArcWires2A = f(l), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires21[o + 4]), C.push(this.offsetWires21[o - 2]), this.offsetArcWires2A = f(C), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1686
|
+
i.push(this.offsetWires21[o]), i.push(this.offsetWires21[o - 6]), this.offsetArcWires2A = f(i), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires21[o + 1]), t.push(this.offsetWires21[o - 5]), this.offsetArcWires2A = f(t), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires21[o + 2]), a.push(this.offsetWires21[o - 4]), this.offsetArcWires2A = f(a), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires21[o + 3]), l.push(this.offsetWires21[o - 3]), this.offsetArcWires2A = f(l), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires21[o + 4]), C.push(this.offsetWires21[o - 2]), this.offsetArcWires2A = f(C), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), I.push(this.offsetWires21[o + 5]), I.push(this.offsetWires21[o - 1]), this.offsetArcWires2A = f(I), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1675
1687
|
break;
|
|
1676
1688
|
case c.八分裂:
|
|
1677
|
-
i.push(this.offsetWires21[o]), i.push(this.offsetWires21[o - 8]), this.offsetArcWires2A = f(i), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires21[o + 1]), t.push(this.offsetWires21[o - 7]), this.offsetArcWires2A = f(t), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires21[o + 2]), a.push(this.offsetWires21[o - 6]), this.offsetArcWires2A = f(a), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires21[o + 3]), l.push(this.offsetWires21[o - 5]), this.offsetArcWires2A = f(l), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires21[o + 4]), C.push(this.offsetWires21[o - 4]), this.offsetArcWires2A = f(C), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1689
|
+
i.push(this.offsetWires21[o]), i.push(this.offsetWires21[o - 8]), this.offsetArcWires2A = f(i), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires21[o + 1]), t.push(this.offsetWires21[o - 7]), this.offsetArcWires2A = f(t), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires21[o + 2]), a.push(this.offsetWires21[o - 6]), this.offsetArcWires2A = f(a), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires21[o + 3]), l.push(this.offsetWires21[o - 5]), this.offsetArcWires2A = f(l), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires21[o + 4]), C.push(this.offsetWires21[o - 4]), this.offsetArcWires2A = f(C), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), I.push(this.offsetWires21[o + 5]), I.push(this.offsetWires21[o - 3]), this.offsetArcWires2A = f(I), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), g.push(this.offsetWires21[o + 6]), g.push(this.offsetWires21[o - 2]), this.offsetArcWires2A = f(g), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), b.push(this.offsetWires21[o + 7]), b.push(this.offsetWires21[o - 1]), this.offsetArcWires2A = f(b), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1678
1690
|
break;
|
|
1679
1691
|
}
|
|
1680
1692
|
}
|
|
1681
1693
|
if (this.offsetWires22.length > 0 && s > 0) {
|
|
1682
|
-
const i = [], t = [], a = [], l = [], C = [],
|
|
1694
|
+
const i = [], t = [], a = [], l = [], C = [], I = [], g = [], b = [];
|
|
1683
1695
|
switch (this.LineInfo.Wairnum) {
|
|
1684
1696
|
case c.单分裂:
|
|
1685
1697
|
i.push(this.offsetWires22[o]), i.push(this.offsetWires22[o - 1]), this.offsetArcWires2B = f(i), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
@@ -1691,15 +1703,15 @@ class ft {
|
|
|
1691
1703
|
i.push(this.offsetWires22[o]), i.push(this.offsetWires22[o - 4]), this.offsetArcWires2B = f(i), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires22[o + 1]), t.push(this.offsetWires22[o - 3]), this.offsetArcWires2B = f(t), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires22[o + 2]), a.push(this.offsetWires22[o - 2]), this.offsetArcWires2B = f(a), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires22[o + 3]), l.push(this.offsetWires22[o - 1]), this.offsetArcWires2B = f(l), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1692
1704
|
break;
|
|
1693
1705
|
case c.六分裂:
|
|
1694
|
-
i.push(this.offsetWires22[o]), i.push(this.offsetWires22[o - 6]), this.offsetArcWires2B = f(i), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires22[o + 1]), t.push(this.offsetWires22[o - 5]), this.offsetArcWires2B = f(t), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires22[o + 2]), a.push(this.offsetWires22[o - 4]), this.offsetArcWires2B = f(a), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires22[o + 3]), l.push(this.offsetWires22[o - 3]), this.offsetArcWires2B = f(l), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires22[o + 4]), C.push(this.offsetWires22[o - 2]), this.offsetArcWires2B = f(C), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1706
|
+
i.push(this.offsetWires22[o]), i.push(this.offsetWires22[o - 6]), this.offsetArcWires2B = f(i), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires22[o + 1]), t.push(this.offsetWires22[o - 5]), this.offsetArcWires2B = f(t), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires22[o + 2]), a.push(this.offsetWires22[o - 4]), this.offsetArcWires2B = f(a), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires22[o + 3]), l.push(this.offsetWires22[o - 3]), this.offsetArcWires2B = f(l), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires22[o + 4]), C.push(this.offsetWires22[o - 2]), this.offsetArcWires2B = f(C), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), I.push(this.offsetWires22[o + 5]), I.push(this.offsetWires22[o - 1]), this.offsetArcWires2B = f(I), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1695
1707
|
break;
|
|
1696
1708
|
case c.八分裂:
|
|
1697
|
-
i.push(this.offsetWires22[o]), i.push(this.offsetWires22[o - 8]), this.offsetArcWires2B = f(i), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires22[o + 1]), t.push(this.offsetWires22[o - 7]), this.offsetArcWires2B = f(t), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires22[o + 2]), a.push(this.offsetWires22[o - 6]), this.offsetArcWires2B = f(a), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires22[o + 3]), l.push(this.offsetWires22[o - 5]), this.offsetArcWires2B = f(l), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires22[o + 4]), C.push(this.offsetWires22[o - 4]), this.offsetArcWires2B = f(C), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1709
|
+
i.push(this.offsetWires22[o]), i.push(this.offsetWires22[o - 8]), this.offsetArcWires2B = f(i), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires22[o + 1]), t.push(this.offsetWires22[o - 7]), this.offsetArcWires2B = f(t), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires22[o + 2]), a.push(this.offsetWires22[o - 6]), this.offsetArcWires2B = f(a), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires22[o + 3]), l.push(this.offsetWires22[o - 5]), this.offsetArcWires2B = f(l), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires22[o + 4]), C.push(this.offsetWires22[o - 4]), this.offsetArcWires2B = f(C), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), I.push(this.offsetWires22[o + 5]), I.push(this.offsetWires22[o - 3]), this.offsetArcWires2B = f(I), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), g.push(this.offsetWires22[o + 6]), g.push(this.offsetWires22[o - 2]), this.offsetArcWires2B = f(g), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), b.push(this.offsetWires22[o + 7]), b.push(this.offsetWires22[o - 1]), this.offsetArcWires2B = f(b), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1698
1710
|
break;
|
|
1699
1711
|
}
|
|
1700
1712
|
}
|
|
1701
1713
|
if (this.offsetWires23.length > 0 && s > 0) {
|
|
1702
|
-
const i = [], t = [], a = [], l = [], C = [],
|
|
1714
|
+
const i = [], t = [], a = [], l = [], C = [], I = [], g = [], b = [];
|
|
1703
1715
|
switch (this.LineInfo.Wairnum) {
|
|
1704
1716
|
case c.单分裂:
|
|
1705
1717
|
i.push(this.offsetWires23[o]), i.push(this.offsetWires23[o - 1]), this.offsetArcWires2C = f(i), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
@@ -1711,10 +1723,10 @@ class ft {
|
|
|
1711
1723
|
i.push(this.offsetWires23[o]), i.push(this.offsetWires23[o - 4]), this.offsetArcWires2C = f(i), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires23[o + 1]), t.push(this.offsetWires23[o - 3]), this.offsetArcWires2C = f(t), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires23[o + 2]), a.push(this.offsetWires23[o - 2]), this.offsetArcWires2C = f(a), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires23[o + 3]), l.push(this.offsetWires23[o - 1]), this.offsetArcWires2C = f(l), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1712
1724
|
break;
|
|
1713
1725
|
case c.六分裂:
|
|
1714
|
-
i.push(this.offsetWires23[o]), i.push(this.offsetWires23[o - 6]), this.offsetArcWires2C = f(i), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires23[o + 1]), t.push(this.offsetWires23[o - 5]), this.offsetArcWires2C = f(t), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires23[o + 2]), a.push(this.offsetWires23[o - 4]), this.offsetArcWires2C = f(a), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires23[o + 3]), l.push(this.offsetWires23[o - 3]), this.offsetArcWires2C = f(l), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires23[o + 4]), C.push(this.offsetWires23[o - 2]), this.offsetArcWires2C = f(C), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1726
|
+
i.push(this.offsetWires23[o]), i.push(this.offsetWires23[o - 6]), this.offsetArcWires2C = f(i), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires23[o + 1]), t.push(this.offsetWires23[o - 5]), this.offsetArcWires2C = f(t), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires23[o + 2]), a.push(this.offsetWires23[o - 4]), this.offsetArcWires2C = f(a), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires23[o + 3]), l.push(this.offsetWires23[o - 3]), this.offsetArcWires2C = f(l), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires23[o + 4]), C.push(this.offsetWires23[o - 2]), this.offsetArcWires2C = f(C), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), I.push(this.offsetWires23[o + 5]), I.push(this.offsetWires23[o - 1]), this.offsetArcWires2C = f(I), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1715
1727
|
break;
|
|
1716
1728
|
case c.八分裂:
|
|
1717
|
-
i.push(this.offsetWires23[o]), i.push(this.offsetWires23[o - 8]), this.offsetArcWires2C = f(i), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires23[o + 1]), t.push(this.offsetWires23[o - 7]), this.offsetArcWires2C = f(t), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires23[o + 2]), a.push(this.offsetWires23[o - 6]), this.offsetArcWires2C = f(a), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires23[o + 3]), l.push(this.offsetWires23[o - 5]), this.offsetArcWires2C = f(l), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires23[o + 4]), C.push(this.offsetWires23[o - 4]), this.offsetArcWires2C = f(C), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1729
|
+
i.push(this.offsetWires23[o]), i.push(this.offsetWires23[o - 8]), this.offsetArcWires2C = f(i), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires23[o + 1]), t.push(this.offsetWires23[o - 7]), this.offsetArcWires2C = f(t), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), a.push(this.offsetWires23[o + 2]), a.push(this.offsetWires23[o - 6]), this.offsetArcWires2C = f(a), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires23[o + 3]), l.push(this.offsetWires23[o - 5]), this.offsetArcWires2C = f(l), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires23[o + 4]), C.push(this.offsetWires23[o - 4]), this.offsetArcWires2C = f(C), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), I.push(this.offsetWires23[o + 5]), I.push(this.offsetWires23[o - 3]), this.offsetArcWires2C = f(I), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), g.push(this.offsetWires23[o + 6]), g.push(this.offsetWires23[o - 2]), this.offsetArcWires2C = f(g), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), b.push(this.offsetWires23[o + 7]), b.push(this.offsetWires23[o - 1]), this.offsetArcWires2C = f(b), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1718
1730
|
break;
|
|
1719
1731
|
}
|
|
1720
1732
|
}
|
|
@@ -1746,7 +1758,7 @@ class ft {
|
|
|
1746
1758
|
break;
|
|
1747
1759
|
}
|
|
1748
1760
|
if (this.ToffsetWires1A1.length > 1 && this.ToffsetWires1A2.length > 1) {
|
|
1749
|
-
const i = [], t = [], a = [], l = [], C = [],
|
|
1761
|
+
const i = [], t = [], a = [], l = [], C = [], I = [], g = [], b = [], T = [], B = [], P = [], y = [], m = [], _ = [], v = [], k = [];
|
|
1750
1762
|
switch (this.LineInfo.Wairnum) {
|
|
1751
1763
|
case c.单分裂:
|
|
1752
1764
|
this.ToffsetWires1A1.length >= 2 && (i.push(this.ToffsetWires1A1[e - 2]), i.push(this.ToffsetWires1A1[e - 1]), this.ToffsetArcWires1A = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 2 && (T.push(this.ToffsetWires1A2[e - 2]), T.push(this.ToffsetWires1A2[e - 1]), this.ToffsetArcWires2A = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
@@ -1758,15 +1770,15 @@ class ft {
|
|
|
1758
1770
|
this.ToffsetWires1A1.length >= 8 && (i.push(this.ToffsetWires1A1[e - 8]), i.push(this.ToffsetWires1A1[e - 4]), this.ToffsetArcWires1A = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1A1[e - 7]), t.push(this.ToffsetWires1A1[e - 3]), this.ToffsetArcWires1A = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires1A1[e - 6]), a.push(this.ToffsetWires1A1[e - 2]), this.ToffsetArcWires1A = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[e - 5]), l.push(this.ToffsetWires1A1[e - 1]), this.ToffsetArcWires1A = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 8 && (T.push(this.ToffsetWires1A2[e - 8]), T.push(this.ToffsetWires1A2[e - 4]), this.ToffsetArcWires2A = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1A2[e - 7]), B.push(this.ToffsetWires1A2[e - 3]), this.ToffsetArcWires2A = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1A2[e - 6]), P.push(this.ToffsetWires1A2[e - 2]), this.ToffsetArcWires2A = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1A2[e - 5]), y.push(this.ToffsetWires1A2[e - 1]), this.ToffsetArcWires2A = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1759
1771
|
break;
|
|
1760
1772
|
case c.六分裂:
|
|
1761
|
-
this.ToffsetWires1A1.length >= 12 && (i.push(this.ToffsetWires1A1[e - 12]), i.push(this.ToffsetWires1A1[e - 6]), this.ToffsetArcWires1A = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1A1[e - 11]), t.push(this.ToffsetWires1A1[e - 5]), this.ToffsetArcWires1A = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires1A1[e - 10]), a.push(this.ToffsetWires1A1[e - 4]), this.ToffsetArcWires1A = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[e - 9]), l.push(this.ToffsetWires1A1[e - 3]), this.ToffsetArcWires1A = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1A1[e - 8]), C.push(this.ToffsetWires1A1[e - 2]), this.ToffsetArcWires1A = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1773
|
+
this.ToffsetWires1A1.length >= 12 && (i.push(this.ToffsetWires1A1[e - 12]), i.push(this.ToffsetWires1A1[e - 6]), this.ToffsetArcWires1A = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1A1[e - 11]), t.push(this.ToffsetWires1A1[e - 5]), this.ToffsetArcWires1A = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires1A1[e - 10]), a.push(this.ToffsetWires1A1[e - 4]), this.ToffsetArcWires1A = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[e - 9]), l.push(this.ToffsetWires1A1[e - 3]), this.ToffsetArcWires1A = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1A1[e - 8]), C.push(this.ToffsetWires1A1[e - 2]), this.ToffsetArcWires1A = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), I.push(this.ToffsetWires1A1[e - 7]), I.push(this.ToffsetWires1A1[e - 1]), this.ToffsetArcWires1A = f(I, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 12 && (T.push(this.ToffsetWires1A2[e - 12]), T.push(this.ToffsetWires1A2[e - 6]), this.ToffsetArcWires2A = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1A2[e - 11]), B.push(this.ToffsetWires1A2[e - 5]), this.ToffsetArcWires2A = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1A2[e - 10]), P.push(this.ToffsetWires1A2[e - 4]), this.ToffsetArcWires2A = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1A2[e - 9]), y.push(this.ToffsetWires1A2[e - 3]), this.ToffsetArcWires2A = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1A2[e - 8]), m.push(this.ToffsetWires1A2[e - 2]), this.ToffsetArcWires2A = f(m, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1A2[e - 7]), _.push(this.ToffsetWires1A2[e - 1]), this.ToffsetArcWires2A = f(_, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1762
1774
|
break;
|
|
1763
1775
|
case c.八分裂:
|
|
1764
|
-
this.ToffsetWires1A1.length >= 16 && (i.push(this.ToffsetWires1A1[e - 16]), i.push(this.ToffsetWires1A1[e - 8]), this.ToffsetArcWires1A = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1A1[e - 15]), t.push(this.ToffsetWires1A1[e - 7]), this.ToffsetArcWires1A = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires1A1[e - 14]), a.push(this.ToffsetWires1A1[e - 6]), this.ToffsetArcWires1A = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[e - 13]), l.push(this.ToffsetWires1A1[e - 5]), this.ToffsetArcWires1A = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1A1[e - 12]), C.push(this.ToffsetWires1A1[e - 4]), this.ToffsetArcWires1A = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1776
|
+
this.ToffsetWires1A1.length >= 16 && (i.push(this.ToffsetWires1A1[e - 16]), i.push(this.ToffsetWires1A1[e - 8]), this.ToffsetArcWires1A = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1A1[e - 15]), t.push(this.ToffsetWires1A1[e - 7]), this.ToffsetArcWires1A = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires1A1[e - 14]), a.push(this.ToffsetWires1A1[e - 6]), this.ToffsetArcWires1A = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[e - 13]), l.push(this.ToffsetWires1A1[e - 5]), this.ToffsetArcWires1A = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1A1[e - 12]), C.push(this.ToffsetWires1A1[e - 4]), this.ToffsetArcWires1A = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), I.push(this.ToffsetWires1A1[e - 11]), I.push(this.ToffsetWires1A1[e - 3]), this.ToffsetArcWires1A = f(I, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1A1[e - 10]), g.push(this.ToffsetWires1A1[e - 2]), this.ToffsetArcWires1A = f(g, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires1A1[e - 9]), b.push(this.ToffsetWires1A1[e - 1]), this.ToffsetArcWires1A = f(b, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 16 && (T.push(this.ToffsetWires1A2[e - 16]), T.push(this.ToffsetWires1A2[e - 8]), this.ToffsetArcWires2A = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1A2[e - 15]), B.push(this.ToffsetWires1A2[e - 7]), this.ToffsetArcWires2A = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1A2[e - 14]), P.push(this.ToffsetWires1A2[e - 6]), this.ToffsetArcWires2A = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1A2[e - 13]), y.push(this.ToffsetWires1A2[e - 5]), this.ToffsetArcWires2A = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1A2[e - 12]), m.push(this.ToffsetWires1A2[e - 4]), this.ToffsetArcWires2A = f(m, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1A2[e - 11]), _.push(this.ToffsetWires1A2[e - 3]), this.ToffsetArcWires2A = f(_, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1A2[e - 10]), v.push(this.ToffsetWires1A2[e - 2]), this.ToffsetArcWires2A = f(v, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), k.push(this.ToffsetWires1A2[e - 9]), k.push(this.ToffsetWires1A2[e - 1]), this.ToffsetArcWires2A = f(k, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1765
1777
|
break;
|
|
1766
1778
|
}
|
|
1767
1779
|
}
|
|
1768
1780
|
if (this.ToffsetWires1B1.length > 1 && this.ToffsetWires1B2.length > 1) {
|
|
1769
|
-
const i = [], t = [], a = [], l = [], C = [],
|
|
1781
|
+
const i = [], t = [], a = [], l = [], C = [], I = [], g = [], b = [], T = [], B = [], P = [], y = [], m = [], _ = [], v = [], k = [];
|
|
1770
1782
|
switch (this.LineInfo.Wairnum) {
|
|
1771
1783
|
case c.单分裂:
|
|
1772
1784
|
this.ToffsetWires1B1.length >= 2 && (i.push(this.ToffsetWires1B1[e - 2]), i.push(this.ToffsetWires1B1[e - 1]), this.ToffsetArcWires1B = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 2 && (T.push(this.ToffsetWires1B2[e - 2]), T.push(this.ToffsetWires1B2[e - 1]), this.ToffsetArcWires2B = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
@@ -1778,15 +1790,15 @@ class ft {
|
|
|
1778
1790
|
this.ToffsetWires1B1.length >= 8 && (i.push(this.ToffsetWires1B1[e - 8]), i.push(this.ToffsetWires1B1[e - 4]), this.ToffsetArcWires1B = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1B1[e - 7]), t.push(this.ToffsetWires1B1[e - 3]), this.ToffsetArcWires1B = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires1B1[e - 6]), a.push(this.ToffsetWires1B1[e - 2]), this.ToffsetArcWires1B = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[e - 5]), l.push(this.ToffsetWires1B1[e - 1]), this.ToffsetArcWires1B = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 8 && (T.push(this.ToffsetWires1B2[e - 8]), T.push(this.ToffsetWires1B2[e - 4]), this.ToffsetArcWires2B = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1B2[e - 7]), B.push(this.ToffsetWires1B2[e - 3]), this.ToffsetArcWires2B = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1B2[e - 6]), P.push(this.ToffsetWires1B2[e - 2]), this.ToffsetArcWires2B = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1B2[e - 5]), y.push(this.ToffsetWires1B2[e - 1]), this.ToffsetArcWires2B = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1779
1791
|
break;
|
|
1780
1792
|
case c.六分裂:
|
|
1781
|
-
this.ToffsetWires1B1.length >= 12 && (i.push(this.ToffsetWires1B1[e - 12]), i.push(this.ToffsetWires1B1[e - 6]), this.ToffsetArcWires1B = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1B1[e - 11]), t.push(this.ToffsetWires1B1[e - 5]), this.ToffsetArcWires1B = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires1B1[e - 10]), a.push(this.ToffsetWires1B1[e - 4]), this.ToffsetArcWires1B = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[e - 9]), l.push(this.ToffsetWires1B1[e - 3]), this.ToffsetArcWires1B = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1B1[e - 8]), C.push(this.ToffsetWires1B1[e - 2]), this.ToffsetArcWires1B = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1793
|
+
this.ToffsetWires1B1.length >= 12 && (i.push(this.ToffsetWires1B1[e - 12]), i.push(this.ToffsetWires1B1[e - 6]), this.ToffsetArcWires1B = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1B1[e - 11]), t.push(this.ToffsetWires1B1[e - 5]), this.ToffsetArcWires1B = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires1B1[e - 10]), a.push(this.ToffsetWires1B1[e - 4]), this.ToffsetArcWires1B = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[e - 9]), l.push(this.ToffsetWires1B1[e - 3]), this.ToffsetArcWires1B = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1B1[e - 8]), C.push(this.ToffsetWires1B1[e - 2]), this.ToffsetArcWires1B = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), I.push(this.ToffsetWires1B1[e - 7]), I.push(this.ToffsetWires1B1[e - 1]), this.ToffsetArcWires1B = f(I, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 12 && (T.push(this.ToffsetWires1B2[e - 12]), T.push(this.ToffsetWires1B2[e - 6]), this.ToffsetArcWires2B = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1B2[e - 11]), B.push(this.ToffsetWires1B2[e - 5]), this.ToffsetArcWires2B = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1B2[e - 10]), P.push(this.ToffsetWires1B2[e - 4]), this.ToffsetArcWires2B = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1B2[e - 9]), y.push(this.ToffsetWires1B2[e - 3]), this.ToffsetArcWires2B = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1B2[e - 8]), m.push(this.ToffsetWires1B2[e - 2]), this.ToffsetArcWires2B = f(m, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1B2[e - 7]), _.push(this.ToffsetWires1B2[e - 1]), this.ToffsetArcWires2B = f(_, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1782
1794
|
break;
|
|
1783
1795
|
case c.八分裂:
|
|
1784
|
-
this.ToffsetWires1B1.length >= 16 && (i.push(this.ToffsetWires1B1[e - 16]), i.push(this.ToffsetWires1B1[e - 8]), this.ToffsetArcWires1B = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1B1[e - 15]), t.push(this.ToffsetWires1B1[e - 7]), this.ToffsetArcWires1B = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires1B1[e - 14]), a.push(this.ToffsetWires1B1[e - 6]), this.ToffsetArcWires1B = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[e - 13]), l.push(this.ToffsetWires1B1[e - 5]), this.ToffsetArcWires1B = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1B1[e - 12]), C.push(this.ToffsetWires1B1[e - 4]), this.ToffsetArcWires1B = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1796
|
+
this.ToffsetWires1B1.length >= 16 && (i.push(this.ToffsetWires1B1[e - 16]), i.push(this.ToffsetWires1B1[e - 8]), this.ToffsetArcWires1B = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1B1[e - 15]), t.push(this.ToffsetWires1B1[e - 7]), this.ToffsetArcWires1B = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires1B1[e - 14]), a.push(this.ToffsetWires1B1[e - 6]), this.ToffsetArcWires1B = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[e - 13]), l.push(this.ToffsetWires1B1[e - 5]), this.ToffsetArcWires1B = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1B1[e - 12]), C.push(this.ToffsetWires1B1[e - 4]), this.ToffsetArcWires1B = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), I.push(this.ToffsetWires1B1[e - 11]), I.push(this.ToffsetWires1B1[e - 3]), this.ToffsetArcWires1B = f(I, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1B1[e - 10]), g.push(this.ToffsetWires1B1[e - 2]), this.ToffsetArcWires1B = f(g, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires1B1[e - 9]), b.push(this.ToffsetWires1B1[e - 1]), this.ToffsetArcWires1B = f(b, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 16 && (T.push(this.ToffsetWires1B2[e - 16]), T.push(this.ToffsetWires1B2[e - 8]), this.ToffsetArcWires2B = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1B2[e - 15]), B.push(this.ToffsetWires1B2[e - 7]), this.ToffsetArcWires2B = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1B2[e - 14]), P.push(this.ToffsetWires1B2[e - 6]), this.ToffsetArcWires2B = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1B2[e - 13]), y.push(this.ToffsetWires1B2[e - 5]), this.ToffsetArcWires2B = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1B2[e - 12]), m.push(this.ToffsetWires1B2[e - 4]), this.ToffsetArcWires2B = f(m, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1B2[e - 11]), _.push(this.ToffsetWires1B2[e - 3]), this.ToffsetArcWires2B = f(_, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1B2[e - 10]), v.push(this.ToffsetWires1B2[e - 2]), this.ToffsetArcWires2B = f(v, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), k.push(this.ToffsetWires1B2[e - 9]), k.push(this.ToffsetWires1B2[e - 1]), this.ToffsetArcWires2B = f(k, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1785
1797
|
break;
|
|
1786
1798
|
}
|
|
1787
1799
|
}
|
|
1788
1800
|
if (this.ToffsetWires1C1.length > 1 && this.ToffsetWires1C2.length > 1) {
|
|
1789
|
-
const i = [], t = [], a = [], l = [], C = [],
|
|
1801
|
+
const i = [], t = [], a = [], l = [], C = [], I = [], g = [], b = [], T = [], B = [], P = [], y = [], m = [], _ = [], v = [], k = [];
|
|
1790
1802
|
switch (this.LineInfo.Wairnum) {
|
|
1791
1803
|
case c.单分裂:
|
|
1792
1804
|
this.ToffsetWires1C1.length >= 2 && (i.push(this.ToffsetWires1C1[e - 2]), i.push(this.ToffsetWires1C1[e - 1]), this.ToffsetArcWires1C = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 2 && (T.push(this.ToffsetWires1C2[e - 2]), T.push(this.ToffsetWires1C2[e - 1]), this.ToffsetArcWires2C = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
@@ -1798,15 +1810,15 @@ class ft {
|
|
|
1798
1810
|
this.ToffsetWires1C1.length >= 8 && (i.push(this.ToffsetWires1C1[e - 8]), i.push(this.ToffsetWires1C1[e - 4]), this.ToffsetArcWires1C = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1C1[e - 7]), t.push(this.ToffsetWires1C1[e - 3]), this.ToffsetArcWires1C = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires1C1[e - 6]), a.push(this.ToffsetWires1C1[e - 2]), this.ToffsetArcWires1C = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[e - 5]), l.push(this.ToffsetWires1C1[e - 1]), this.ToffsetArcWires1C = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 8 && (T.push(this.ToffsetWires1C2[e - 8]), T.push(this.ToffsetWires1C2[e - 4]), this.ToffsetArcWires2C = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1C2[e - 7]), B.push(this.ToffsetWires1C2[e - 3]), this.ToffsetArcWires2C = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1C2[e - 6]), P.push(this.ToffsetWires1C2[e - 2]), this.ToffsetArcWires2C = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1C2[e - 5]), y.push(this.ToffsetWires1C2[e - 1]), this.ToffsetArcWires2C = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1799
1811
|
break;
|
|
1800
1812
|
case c.六分裂:
|
|
1801
|
-
this.ToffsetWires1C1.length >= 12 && (i.push(this.ToffsetWires1C1[e - 12]), i.push(this.ToffsetWires1C1[e - 6]), this.ToffsetArcWires1C = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1C1[e - 11]), t.push(this.ToffsetWires1C1[e - 5]), this.ToffsetArcWires1C = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires1C1[e - 10]), a.push(this.ToffsetWires1C1[e - 4]), this.ToffsetArcWires1C = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[e - 9]), l.push(this.ToffsetWires1C1[e - 3]), this.ToffsetArcWires1C = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1C1[e - 8]), C.push(this.ToffsetWires1C1[e - 2]), this.ToffsetArcWires1C = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1813
|
+
this.ToffsetWires1C1.length >= 12 && (i.push(this.ToffsetWires1C1[e - 12]), i.push(this.ToffsetWires1C1[e - 6]), this.ToffsetArcWires1C = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1C1[e - 11]), t.push(this.ToffsetWires1C1[e - 5]), this.ToffsetArcWires1C = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires1C1[e - 10]), a.push(this.ToffsetWires1C1[e - 4]), this.ToffsetArcWires1C = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[e - 9]), l.push(this.ToffsetWires1C1[e - 3]), this.ToffsetArcWires1C = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1C1[e - 8]), C.push(this.ToffsetWires1C1[e - 2]), this.ToffsetArcWires1C = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), I.push(this.ToffsetWires1C1[e - 7]), I.push(this.ToffsetWires1C1[e - 1]), this.ToffsetArcWires1C = f(I, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 12 && (T.push(this.ToffsetWires1C2[e - 12]), T.push(this.ToffsetWires1C2[e - 6]), this.ToffsetArcWires2C = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1C2[e - 11]), B.push(this.ToffsetWires1C2[e - 5]), this.ToffsetArcWires2C = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1C2[e - 10]), P.push(this.ToffsetWires1C2[e - 4]), this.ToffsetArcWires2C = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1C2[e - 9]), y.push(this.ToffsetWires1C2[e - 3]), this.ToffsetArcWires2C = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1C2[e - 8]), m.push(this.ToffsetWires1C2[e - 2]), this.ToffsetArcWires2C = f(m, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1C2[e - 7]), _.push(this.ToffsetWires1C2[e - 1]), this.ToffsetArcWires2C = f(_, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1802
1814
|
break;
|
|
1803
1815
|
case c.八分裂:
|
|
1804
|
-
this.ToffsetWires1C1.length >= 16 && (i.push(this.ToffsetWires1C1[e - 16]), i.push(this.ToffsetWires1C1[e - 8]), this.ToffsetArcWires1C = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1C1[e - 15]), t.push(this.ToffsetWires1C1[e - 7]), this.ToffsetArcWires1C = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires1C1[e - 14]), a.push(this.ToffsetWires1C1[e - 6]), this.ToffsetArcWires1C = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[e - 13]), l.push(this.ToffsetWires1C1[e - 5]), this.ToffsetArcWires1C = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1C1[e - 12]), C.push(this.ToffsetWires1C1[e - 4]), this.ToffsetArcWires1C = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1816
|
+
this.ToffsetWires1C1.length >= 16 && (i.push(this.ToffsetWires1C1[e - 16]), i.push(this.ToffsetWires1C1[e - 8]), this.ToffsetArcWires1C = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1C1[e - 15]), t.push(this.ToffsetWires1C1[e - 7]), this.ToffsetArcWires1C = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires1C1[e - 14]), a.push(this.ToffsetWires1C1[e - 6]), this.ToffsetArcWires1C = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[e - 13]), l.push(this.ToffsetWires1C1[e - 5]), this.ToffsetArcWires1C = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1C1[e - 12]), C.push(this.ToffsetWires1C1[e - 4]), this.ToffsetArcWires1C = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), I.push(this.ToffsetWires1C1[e - 11]), I.push(this.ToffsetWires1C1[e - 3]), this.ToffsetArcWires1C = f(I, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1C1[e - 10]), g.push(this.ToffsetWires1C1[e - 2]), this.ToffsetArcWires1C = f(g, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires1C1[e - 9]), b.push(this.ToffsetWires1C1[e - 1]), this.ToffsetArcWires1C = f(b, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 16 && (T.push(this.ToffsetWires1C2[e - 16]), T.push(this.ToffsetWires1C2[e - 8]), this.ToffsetArcWires2C = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1C2[e - 15]), B.push(this.ToffsetWires1C2[e - 7]), this.ToffsetArcWires2C = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1C2[e - 14]), P.push(this.ToffsetWires1C2[e - 6]), this.ToffsetArcWires2C = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1C2[e - 13]), y.push(this.ToffsetWires1C2[e - 5]), this.ToffsetArcWires2C = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1C2[e - 12]), m.push(this.ToffsetWires1C2[e - 4]), this.ToffsetArcWires2C = f(m, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1C2[e - 11]), _.push(this.ToffsetWires1C2[e - 3]), this.ToffsetArcWires2C = f(_, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1C2[e - 10]), v.push(this.ToffsetWires1C2[e - 2]), this.ToffsetArcWires2C = f(v, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), k.push(this.ToffsetWires1C2[e - 9]), k.push(this.ToffsetWires1C2[e - 1]), this.ToffsetArcWires2C = f(k, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1805
1817
|
break;
|
|
1806
1818
|
}
|
|
1807
1819
|
}
|
|
1808
1820
|
if (this.ToffsetWires2A1.length > 1 && this.ToffsetWires2A2.length > 1) {
|
|
1809
|
-
const i = [], t = [], a = [], l = [], C = [],
|
|
1821
|
+
const i = [], t = [], a = [], l = [], C = [], I = [], g = [], b = [], T = [], B = [], P = [], y = [], m = [], _ = [], v = [], k = [];
|
|
1810
1822
|
switch (this.LineInfo.Wairnum) {
|
|
1811
1823
|
case c.单分裂:
|
|
1812
1824
|
this.ToffsetWires2A1.length >= 2 && (i.push(this.ToffsetWires2A1[e - 2]), i.push(this.ToffsetWires2A1[e - 1]), this.ToffsetArcWires1A2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 2 && (T.push(this.ToffsetWires2A2[e - 2]), T.push(this.ToffsetWires2A2[e - 1]), this.ToffsetArcWires2A2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
@@ -1818,15 +1830,15 @@ class ft {
|
|
|
1818
1830
|
this.ToffsetWires2A1.length >= 8 && (i.push(this.ToffsetWires2A1[e - 8]), i.push(this.ToffsetWires2A1[e - 4]), this.ToffsetArcWires1A2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2A1[e - 7]), t.push(this.ToffsetWires2A1[e - 3]), this.ToffsetArcWires1A2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires2A1[e - 6]), a.push(this.ToffsetWires2A1[e - 2]), this.ToffsetArcWires1A2 = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[e - 5]), l.push(this.ToffsetWires2A1[e - 1]), this.ToffsetArcWires1A2 = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 8 && (T.push(this.ToffsetWires2A2[e - 8]), T.push(this.ToffsetWires2A2[e - 4]), this.ToffsetArcWires2A2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2A2[e - 7]), B.push(this.ToffsetWires2A2[e - 3]), this.ToffsetArcWires2A2 = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2A2[e - 6]), P.push(this.ToffsetWires2A2[e - 2]), this.ToffsetArcWires2A2 = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2A2[e - 5]), y.push(this.ToffsetWires2A2[e - 1]), this.ToffsetArcWires2A2 = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1819
1831
|
break;
|
|
1820
1832
|
case c.六分裂:
|
|
1821
|
-
this.ToffsetWires2A1.length >= 12 && (i.push(this.ToffsetWires2A1[e - 12]), i.push(this.ToffsetWires2A1[e - 6]), this.ToffsetArcWires1A2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2A1[e - 11]), t.push(this.ToffsetWires2A1[e - 5]), this.ToffsetArcWires1A2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires2A1[e - 10]), a.push(this.ToffsetWires2A1[e - 4]), this.ToffsetArcWires1A2 = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[e - 9]), l.push(this.ToffsetWires2A1[e - 3]), this.ToffsetArcWires1A2 = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2A1[e - 8]), C.push(this.ToffsetWires2A1[e - 2]), this.ToffsetArcWires1A2 = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1833
|
+
this.ToffsetWires2A1.length >= 12 && (i.push(this.ToffsetWires2A1[e - 12]), i.push(this.ToffsetWires2A1[e - 6]), this.ToffsetArcWires1A2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2A1[e - 11]), t.push(this.ToffsetWires2A1[e - 5]), this.ToffsetArcWires1A2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires2A1[e - 10]), a.push(this.ToffsetWires2A1[e - 4]), this.ToffsetArcWires1A2 = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[e - 9]), l.push(this.ToffsetWires2A1[e - 3]), this.ToffsetArcWires1A2 = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2A1[e - 8]), C.push(this.ToffsetWires2A1[e - 2]), this.ToffsetArcWires1A2 = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), I.push(this.ToffsetWires2A1[e - 7]), I.push(this.ToffsetWires2A1[e - 1]), this.ToffsetArcWires1A2 = f(I, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 12 && (T.push(this.ToffsetWires2A2[e - 12]), T.push(this.ToffsetWires2A2[e - 6]), this.ToffsetArcWires2A2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2A2[e - 11]), B.push(this.ToffsetWires2A2[e - 5]), this.ToffsetArcWires2A2 = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2A2[e - 10]), P.push(this.ToffsetWires2A2[e - 4]), this.ToffsetArcWires2A2 = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2A2[e - 9]), y.push(this.ToffsetWires2A2[e - 3]), this.ToffsetArcWires2A2 = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2A2[e - 8]), m.push(this.ToffsetWires2A2[e - 2]), this.ToffsetArcWires2A2 = f(m, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2A2[e - 7]), _.push(this.ToffsetWires2A2[e - 1]), this.ToffsetArcWires2A2 = f(_, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1822
1834
|
break;
|
|
1823
1835
|
case c.八分裂:
|
|
1824
|
-
this.ToffsetWires2A1.length >= 16 && (i.push(this.ToffsetWires2A1[e - 16]), i.push(this.ToffsetWires2A1[e - 8]), this.ToffsetArcWires1A2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2A1[e - 15]), t.push(this.ToffsetWires2A1[e - 7]), this.ToffsetArcWires1A2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires2A1[e - 14]), a.push(this.ToffsetWires2A1[e - 6]), this.ToffsetArcWires1A2 = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[e - 13]), l.push(this.ToffsetWires2A1[e - 5]), this.ToffsetArcWires1A2 = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2A1[e - 12]), C.push(this.ToffsetWires2A1[e - 4]), this.ToffsetArcWires1A2 = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1836
|
+
this.ToffsetWires2A1.length >= 16 && (i.push(this.ToffsetWires2A1[e - 16]), i.push(this.ToffsetWires2A1[e - 8]), this.ToffsetArcWires1A2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2A1[e - 15]), t.push(this.ToffsetWires2A1[e - 7]), this.ToffsetArcWires1A2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires2A1[e - 14]), a.push(this.ToffsetWires2A1[e - 6]), this.ToffsetArcWires1A2 = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[e - 13]), l.push(this.ToffsetWires2A1[e - 5]), this.ToffsetArcWires1A2 = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2A1[e - 12]), C.push(this.ToffsetWires2A1[e - 4]), this.ToffsetArcWires1A2 = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), I.push(this.ToffsetWires2A1[e - 11]), I.push(this.ToffsetWires2A1[e - 3]), this.ToffsetArcWires1A2 = f(I, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2A1[e - 10]), g.push(this.ToffsetWires2A1[e - 2]), this.ToffsetArcWires1A2 = f(g, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires2A1[e - 9]), b.push(this.ToffsetWires2A1[e - 1]), this.ToffsetArcWires1A2 = f(b, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 16 && (T.push(this.ToffsetWires2A2[e - 16]), T.push(this.ToffsetWires2A2[e - 8]), this.ToffsetArcWires2A2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2A2[e - 15]), B.push(this.ToffsetWires2A2[e - 7]), this.ToffsetArcWires2A2 = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2A2[e - 14]), P.push(this.ToffsetWires2A2[e - 6]), this.ToffsetArcWires2A2 = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2A2[e - 13]), y.push(this.ToffsetWires2A2[e - 5]), this.ToffsetArcWires2A2 = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2A2[e - 12]), m.push(this.ToffsetWires2A2[e - 4]), this.ToffsetArcWires2A2 = f(m, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2A2[e - 11]), _.push(this.ToffsetWires2A2[e - 3]), this.ToffsetArcWires2A2 = f(_, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2A2[e - 10]), v.push(this.ToffsetWires2A2[e - 2]), this.ToffsetArcWires2A2 = f(v, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), k.push(this.ToffsetWires2A2[e - 9]), k.push(this.ToffsetWires2A2[e - 1]), this.ToffsetArcWires2A2 = f(k, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1825
1837
|
break;
|
|
1826
1838
|
}
|
|
1827
1839
|
}
|
|
1828
1840
|
if (this.ToffsetWires2B1.length > 1 && this.ToffsetWires2B2.length > 1) {
|
|
1829
|
-
const i = [], t = [], a = [], l = [], C = [],
|
|
1841
|
+
const i = [], t = [], a = [], l = [], C = [], I = [], g = [], b = [], T = [], B = [], P = [], y = [], m = [], _ = [], v = [], k = [];
|
|
1830
1842
|
switch (this.LineInfo.Wairnum) {
|
|
1831
1843
|
case c.单分裂:
|
|
1832
1844
|
this.ToffsetWires2B1.length >= 2 && (i.push(this.ToffsetWires2B1[e - 2]), i.push(this.ToffsetWires2B1[e - 1]), this.ToffsetArcWires1B2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 2 && (T.push(this.ToffsetWires2B2[e - 2]), T.push(this.ToffsetWires2B2[e - 1]), this.ToffsetArcWires2B2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
@@ -1838,15 +1850,15 @@ class ft {
|
|
|
1838
1850
|
this.ToffsetWires2B1.length >= 8 && (i.push(this.ToffsetWires2B1[e - 8]), i.push(this.ToffsetWires2B1[e - 4]), this.ToffsetArcWires1B2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2B1[e - 7]), t.push(this.ToffsetWires2B1[e - 3]), this.ToffsetArcWires1B2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires2B1[e - 6]), a.push(this.ToffsetWires2B1[e - 2]), this.ToffsetArcWires1B2 = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[e - 5]), l.push(this.ToffsetWires2B1[e - 1]), this.ToffsetArcWires1B2 = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 8 && (T.push(this.ToffsetWires2B2[e - 8]), T.push(this.ToffsetWires2B2[e - 4]), this.ToffsetArcWires2B2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2B2[e - 7]), B.push(this.ToffsetWires2B2[e - 3]), this.ToffsetArcWires2B2 = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2B2[e - 6]), P.push(this.ToffsetWires2B2[e - 2]), this.ToffsetArcWires2B2 = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2B2[e - 5]), y.push(this.ToffsetWires2B2[e - 1]), this.ToffsetArcWires2B2 = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1839
1851
|
break;
|
|
1840
1852
|
case c.六分裂:
|
|
1841
|
-
this.ToffsetWires2B1.length >= 12 && (i.push(this.ToffsetWires2B1[e - 12]), i.push(this.ToffsetWires2B1[e - 6]), this.ToffsetArcWires1B2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2B1[e - 11]), t.push(this.ToffsetWires2B1[e - 5]), this.ToffsetArcWires1B2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires2B1[e - 10]), a.push(this.ToffsetWires2B1[e - 4]), this.ToffsetArcWires1B2 = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[e - 9]), l.push(this.ToffsetWires2B1[e - 3]), this.ToffsetArcWires1B2 = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2B1[e - 8]), C.push(this.ToffsetWires2B1[e - 2]), this.ToffsetArcWires1B2 = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1853
|
+
this.ToffsetWires2B1.length >= 12 && (i.push(this.ToffsetWires2B1[e - 12]), i.push(this.ToffsetWires2B1[e - 6]), this.ToffsetArcWires1B2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2B1[e - 11]), t.push(this.ToffsetWires2B1[e - 5]), this.ToffsetArcWires1B2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires2B1[e - 10]), a.push(this.ToffsetWires2B1[e - 4]), this.ToffsetArcWires1B2 = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[e - 9]), l.push(this.ToffsetWires2B1[e - 3]), this.ToffsetArcWires1B2 = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2B1[e - 8]), C.push(this.ToffsetWires2B1[e - 2]), this.ToffsetArcWires1B2 = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), I.push(this.ToffsetWires2B1[e - 7]), I.push(this.ToffsetWires2B1[e - 1]), this.ToffsetArcWires1B2 = f(I, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 12 && (T.push(this.ToffsetWires2B2[e - 12]), T.push(this.ToffsetWires2B2[e - 6]), this.ToffsetArcWires2B2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2B2[e - 11]), B.push(this.ToffsetWires2B2[e - 5]), this.ToffsetArcWires2B2 = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2B2[e - 10]), P.push(this.ToffsetWires2B2[e - 4]), this.ToffsetArcWires2B2 = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2B2[e - 9]), y.push(this.ToffsetWires2B2[e - 3]), this.ToffsetArcWires2B2 = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2B2[e - 8]), m.push(this.ToffsetWires2B2[e - 2]), this.ToffsetArcWires2B2 = f(m, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2B2[e - 7]), _.push(this.ToffsetWires2B2[e - 1]), this.ToffsetArcWires2B2 = f(_, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1842
1854
|
break;
|
|
1843
1855
|
case c.八分裂:
|
|
1844
|
-
this.ToffsetWires2B1.length >= 16 && (i.push(this.ToffsetWires2B1[e - 16]), i.push(this.ToffsetWires2B1[e - 8]), this.ToffsetArcWires1B2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2B1[e - 15]), t.push(this.ToffsetWires2B1[e - 7]), this.ToffsetArcWires1B2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires2B1[e - 14]), a.push(this.ToffsetWires2B1[e - 6]), this.ToffsetArcWires1B2 = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[e - 13]), l.push(this.ToffsetWires2B1[e - 5]), this.ToffsetArcWires1B2 = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2B1[e - 12]), C.push(this.ToffsetWires2B1[e - 4]), this.ToffsetArcWires1B2 = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1856
|
+
this.ToffsetWires2B1.length >= 16 && (i.push(this.ToffsetWires2B1[e - 16]), i.push(this.ToffsetWires2B1[e - 8]), this.ToffsetArcWires1B2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2B1[e - 15]), t.push(this.ToffsetWires2B1[e - 7]), this.ToffsetArcWires1B2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires2B1[e - 14]), a.push(this.ToffsetWires2B1[e - 6]), this.ToffsetArcWires1B2 = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[e - 13]), l.push(this.ToffsetWires2B1[e - 5]), this.ToffsetArcWires1B2 = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2B1[e - 12]), C.push(this.ToffsetWires2B1[e - 4]), this.ToffsetArcWires1B2 = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), I.push(this.ToffsetWires2B1[e - 11]), I.push(this.ToffsetWires2B1[e - 3]), this.ToffsetArcWires1B2 = f(I, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2B1[e - 10]), g.push(this.ToffsetWires2B1[e - 2]), this.ToffsetArcWires1B2 = f(g, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires2B1[e - 9]), b.push(this.ToffsetWires2B1[e - 1]), this.ToffsetArcWires1B2 = f(b, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 16 && (T.push(this.ToffsetWires2B2[e - 16]), T.push(this.ToffsetWires2B2[e - 8]), this.ToffsetArcWires2B2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2B2[e - 15]), B.push(this.ToffsetWires2B2[e - 7]), this.ToffsetArcWires2B2 = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2B2[e - 14]), P.push(this.ToffsetWires2B2[e - 6]), this.ToffsetArcWires2B2 = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2B2[e - 13]), y.push(this.ToffsetWires2B2[e - 5]), this.ToffsetArcWires2B2 = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2B2[e - 12]), m.push(this.ToffsetWires2B2[e - 4]), this.ToffsetArcWires2B2 = f(m, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2B2[e - 11]), _.push(this.ToffsetWires2B2[e - 3]), this.ToffsetArcWires2B2 = f(_, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2B2[e - 10]), v.push(this.ToffsetWires2B2[e - 2]), this.ToffsetArcWires2B2 = f(v, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), k.push(this.ToffsetWires2B2[e - 9]), k.push(this.ToffsetWires2B2[e - 1]), this.ToffsetArcWires2B2 = f(k, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1845
1857
|
break;
|
|
1846
1858
|
}
|
|
1847
1859
|
}
|
|
1848
1860
|
if (this.ToffsetWires2C1.length > 1 && this.ToffsetWires2C2.length > 1) {
|
|
1849
|
-
const i = [], t = [], a = [], l = [], C = [],
|
|
1861
|
+
const i = [], t = [], a = [], l = [], C = [], I = [], g = [], b = [], T = [], B = [], P = [], y = [], m = [], _ = [], v = [], k = [];
|
|
1850
1862
|
switch (this.LineInfo.Wairnum) {
|
|
1851
1863
|
case c.单分裂:
|
|
1852
1864
|
this.ToffsetWires2C1.length >= 2 && (i.push(this.ToffsetWires2C1[e - 2]), i.push(this.ToffsetWires2C1[e - 1]), this.ToffsetArcWires1C2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 2 && (T.push(this.ToffsetWires2C2[e - 2]), T.push(this.ToffsetWires2C2[e - 1]), this.ToffsetArcWires2C2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
@@ -1858,10 +1870,10 @@ class ft {
|
|
|
1858
1870
|
this.ToffsetWires2C1.length >= 8 && (i.push(this.ToffsetWires2C1[e - 8]), i.push(this.ToffsetWires2C1[e - 4]), this.ToffsetArcWires1C2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2C1[e - 7]), t.push(this.ToffsetWires2C1[e - 3]), this.ToffsetArcWires1C2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires2C1[e - 6]), a.push(this.ToffsetWires2C1[e - 2]), this.ToffsetArcWires1C2 = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[e - 5]), l.push(this.ToffsetWires2C1[e - 1]), this.ToffsetArcWires1C2 = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 8 && (T.push(this.ToffsetWires2C2[e - 8]), T.push(this.ToffsetWires2C2[e - 4]), this.ToffsetArcWires2C2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2C2[e - 7]), B.push(this.ToffsetWires2C2[e - 3]), this.ToffsetArcWires2C2 = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2C2[e - 6]), P.push(this.ToffsetWires2C2[e - 2]), this.ToffsetArcWires2C2 = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2C2[e - 5]), y.push(this.ToffsetWires2C2[e - 1]), this.ToffsetArcWires2C2 = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1859
1871
|
break;
|
|
1860
1872
|
case c.六分裂:
|
|
1861
|
-
this.ToffsetWires2C1.length >= 12 && (i.push(this.ToffsetWires2C1[e - 12]), i.push(this.ToffsetWires2C1[e - 6]), this.ToffsetArcWires1C2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2C1[e - 11]), t.push(this.ToffsetWires2C1[e - 5]), this.ToffsetArcWires1C2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires2C1[e - 10]), a.push(this.ToffsetWires2C1[e - 4]), this.ToffsetArcWires1C2 = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[e - 9]), l.push(this.ToffsetWires2C1[e - 3]), this.ToffsetArcWires1C2 = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2C1[e - 8]), C.push(this.ToffsetWires2C1[e - 2]), this.ToffsetArcWires1C2 = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1873
|
+
this.ToffsetWires2C1.length >= 12 && (i.push(this.ToffsetWires2C1[e - 12]), i.push(this.ToffsetWires2C1[e - 6]), this.ToffsetArcWires1C2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2C1[e - 11]), t.push(this.ToffsetWires2C1[e - 5]), this.ToffsetArcWires1C2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires2C1[e - 10]), a.push(this.ToffsetWires2C1[e - 4]), this.ToffsetArcWires1C2 = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[e - 9]), l.push(this.ToffsetWires2C1[e - 3]), this.ToffsetArcWires1C2 = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2C1[e - 8]), C.push(this.ToffsetWires2C1[e - 2]), this.ToffsetArcWires1C2 = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), I.push(this.ToffsetWires2C1[e - 7]), I.push(this.ToffsetWires2C1[e - 1]), this.ToffsetArcWires1C2 = f(I, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 12 && (T.push(this.ToffsetWires2C2[e - 12]), T.push(this.ToffsetWires2C2[e - 6]), this.ToffsetArcWires2C2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2C2[e - 11]), B.push(this.ToffsetWires2C2[e - 5]), this.ToffsetArcWires2C2 = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2C2[e - 10]), P.push(this.ToffsetWires2C2[e - 4]), this.ToffsetArcWires2C2 = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2C2[e - 9]), y.push(this.ToffsetWires2C2[e - 3]), this.ToffsetArcWires2C2 = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2C2[e - 8]), m.push(this.ToffsetWires2C2[e - 2]), this.ToffsetArcWires2C2 = f(m, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2C2[e - 7]), _.push(this.ToffsetWires2C2[e - 1]), this.ToffsetArcWires2C2 = f(_, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1862
1874
|
break;
|
|
1863
1875
|
case c.八分裂:
|
|
1864
|
-
this.ToffsetWires2C1.length >= 16 && (i.push(this.ToffsetWires2C1[e - 16]), i.push(this.ToffsetWires2C1[e - 8]), this.ToffsetArcWires1C2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2C1[e - 15]), t.push(this.ToffsetWires2C1[e - 7]), this.ToffsetArcWires1C2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires2C1[e - 14]), a.push(this.ToffsetWires2C1[e - 6]), this.ToffsetArcWires1C2 = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[e - 13]), l.push(this.ToffsetWires2C1[e - 5]), this.ToffsetArcWires1C2 = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2C1[e - 12]), C.push(this.ToffsetWires2C1[e - 4]), this.ToffsetArcWires1C2 = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1876
|
+
this.ToffsetWires2C1.length >= 16 && (i.push(this.ToffsetWires2C1[e - 16]), i.push(this.ToffsetWires2C1[e - 8]), this.ToffsetArcWires1C2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2C1[e - 15]), t.push(this.ToffsetWires2C1[e - 7]), this.ToffsetArcWires1C2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), a.push(this.ToffsetWires2C1[e - 14]), a.push(this.ToffsetWires2C1[e - 6]), this.ToffsetArcWires1C2 = f(a, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[e - 13]), l.push(this.ToffsetWires2C1[e - 5]), this.ToffsetArcWires1C2 = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2C1[e - 12]), C.push(this.ToffsetWires2C1[e - 4]), this.ToffsetArcWires1C2 = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), I.push(this.ToffsetWires2C1[e - 11]), I.push(this.ToffsetWires2C1[e - 3]), this.ToffsetArcWires1C2 = f(I, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2C1[e - 10]), g.push(this.ToffsetWires2C1[e - 2]), this.ToffsetArcWires1C2 = f(g, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires2C1[e - 9]), b.push(this.ToffsetWires2C1[e - 1]), this.ToffsetArcWires1C2 = f(b, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 16 && (T.push(this.ToffsetWires2C2[e - 16]), T.push(this.ToffsetWires2C2[e - 8]), this.ToffsetArcWires2C2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2C2[e - 15]), B.push(this.ToffsetWires2C2[e - 7]), this.ToffsetArcWires2C2 = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2C2[e - 14]), P.push(this.ToffsetWires2C2[e - 6]), this.ToffsetArcWires2C2 = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2C2[e - 13]), y.push(this.ToffsetWires2C2[e - 5]), this.ToffsetArcWires2C2 = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2C2[e - 12]), m.push(this.ToffsetWires2C2[e - 4]), this.ToffsetArcWires2C2 = f(m, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2C2[e - 11]), _.push(this.ToffsetWires2C2[e - 3]), this.ToffsetArcWires2C2 = f(_, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2C2[e - 10]), v.push(this.ToffsetWires2C2[e - 2]), this.ToffsetArcWires2C2 = f(v, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), k.push(this.ToffsetWires2C2[e - 9]), k.push(this.ToffsetWires2C2[e - 1]), this.ToffsetArcWires2C2 = f(k, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1865
1877
|
break;
|
|
1866
1878
|
}
|
|
1867
1879
|
}
|
|
@@ -1891,7 +1903,7 @@ class ft {
|
|
|
1891
1903
|
const e = n.Cartesian3.fromDegrees(
|
|
1892
1904
|
o.lon,
|
|
1893
1905
|
o.lat,
|
|
1894
|
-
|
|
1906
|
+
0
|
|
1895
1907
|
);
|
|
1896
1908
|
this.entityCollectiontree.add({
|
|
1897
1909
|
id: "tree-" + o.id,
|
|
@@ -1940,9 +1952,9 @@ class ft {
|
|
|
1940
1952
|
calcResult(o) {
|
|
1941
1953
|
const e = zs(
|
|
1942
1954
|
o,
|
|
1943
|
-
this.arcLine1A1
|
|
1944
|
-
this.arcLine1B1
|
|
1945
|
-
this.arcLine1D1
|
|
1955
|
+
this.arcLine1A1,
|
|
1956
|
+
this.arcLine1B1,
|
|
1957
|
+
this.arcLine1D1
|
|
1946
1958
|
);
|
|
1947
1959
|
$s(o, e, this.entityCollectionplotting);
|
|
1948
1960
|
}
|
|
@@ -1952,21 +1964,21 @@ class ft {
|
|
|
1952
1964
|
loadTreeListen() {
|
|
1953
1965
|
this.treeHandler && this.removeTreeListen();
|
|
1954
1966
|
const o = (e, h) => {
|
|
1955
|
-
var
|
|
1967
|
+
var d;
|
|
1956
1968
|
const s = e.scene.pick(h);
|
|
1957
1969
|
if (n.defined(s)) {
|
|
1958
|
-
const u = n.defaultValue(s.id, (
|
|
1970
|
+
const u = n.defaultValue(s.id, (d = s.primitive) == null ? void 0 : d.id);
|
|
1959
1971
|
if (u instanceof n.Entity)
|
|
1960
1972
|
return u;
|
|
1961
1973
|
}
|
|
1962
1974
|
};
|
|
1963
1975
|
this.treeHandler = new n.ScreenSpaceEventHandler(this.viewer.canvas), this.treeHandler.setInputAction((e) => {
|
|
1964
1976
|
var s;
|
|
1965
|
-
const h = o(this.viewer, e.
|
|
1977
|
+
const h = o(this.viewer, e.position);
|
|
1966
1978
|
if (h && h.id && h.id.startsWith("tree-")) {
|
|
1967
|
-
const
|
|
1979
|
+
const d = h.id.replace("tree-", ""), u = (s = this.LineInfo.Trees) == null ? void 0 : s.find((A) => {
|
|
1968
1980
|
var L;
|
|
1969
|
-
return ((L = A.id) == null ? void 0 : L.toString()) ===
|
|
1981
|
+
return ((L = A.id) == null ? void 0 : L.toString()) === d;
|
|
1970
1982
|
});
|
|
1971
1983
|
if (u) {
|
|
1972
1984
|
const A = [
|
|
@@ -2055,40 +2067,40 @@ class ft {
|
|
|
2055
2067
|
this.Keym == "OW_JPS_EEngin_001" && (this.viewer.dataSources.remove(this.dataSource2), this.entityCollection2.show = !1);
|
|
2056
2068
|
}
|
|
2057
2069
|
}
|
|
2058
|
-
class
|
|
2070
|
+
class nt {
|
|
2059
2071
|
constructor() {
|
|
2060
2072
|
// 杆塔id
|
|
2061
|
-
|
|
2073
|
+
w(this, "id", "");
|
|
2062
2074
|
// 杆塔名称
|
|
2063
|
-
|
|
2075
|
+
w(this, "name", "");
|
|
2064
2076
|
//角钢和圆钢都是用线模拟
|
|
2065
2077
|
//单塔仿真文件
|
|
2066
|
-
|
|
2078
|
+
w(this, "towerFZinfo", "");
|
|
2067
2079
|
//位移文件
|
|
2068
|
-
|
|
2080
|
+
w(this, "towerDisFile", "");
|
|
2069
2081
|
//解析应力比文件
|
|
2070
|
-
|
|
2071
|
-
|
|
2082
|
+
w(this, "stressFileContent", "");
|
|
2083
|
+
w(this, "streesistrue", 0);
|
|
2072
2084
|
// 杆件颜色
|
|
2073
|
-
|
|
2085
|
+
w(this, "TowerMemberColor", "#FFFFFF");
|
|
2074
2086
|
// 杆件宽度
|
|
2075
|
-
|
|
2087
|
+
w(this, "TowerMembersWidth", 2);
|
|
2076
2088
|
// 经度
|
|
2077
|
-
|
|
2089
|
+
w(this, "Longitude", 0);
|
|
2078
2090
|
// 纬度
|
|
2079
|
-
|
|
2091
|
+
w(this, "Latitude", 0);
|
|
2080
2092
|
// 高程
|
|
2081
|
-
|
|
2093
|
+
w(this, "Altitude", 0);
|
|
2082
2094
|
// 转角
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2095
|
+
w(this, "RollX", 0);
|
|
2096
|
+
w(this, "RollY", 90);
|
|
2097
|
+
w(this, "RollZ", 0);
|
|
2086
2098
|
}
|
|
2087
2099
|
}
|
|
2088
2100
|
function Ks(W) {
|
|
2089
2101
|
debugger;
|
|
2090
2102
|
const o = W.split(`
|
|
2091
|
-
`), e = [], h = [], s = /^\s*(\d+)\s+([\d.-]+)\s+([\d.-]+)\s+([\d.-]+)\s+(-?\d+)/,
|
|
2103
|
+
`), e = [], h = [], s = /^\s*(\d+)\s+([\d.-]+)\s+([\d.-]+)\s+([\d.-]+)\s+(-?\d+)/, d = /^\s*(\d+)\s+(\d+)\s+(\d+)\s*(?:#|$)/;
|
|
2092
2104
|
for (const u of o) {
|
|
2093
2105
|
const A = u.trim();
|
|
2094
2106
|
if (!A) continue;
|
|
@@ -2103,7 +2115,7 @@ function Ks(W) {
|
|
|
2103
2115
|
});
|
|
2104
2116
|
continue;
|
|
2105
2117
|
}
|
|
2106
|
-
const i = A.match(
|
|
2118
|
+
const i = A.match(d);
|
|
2107
2119
|
i && h.push({
|
|
2108
2120
|
from: parseInt(i[1]),
|
|
2109
2121
|
to: parseInt(i[2]),
|
|
@@ -2117,8 +2129,8 @@ function Vs(W) {
|
|
|
2117
2129
|
`), e = [];
|
|
2118
2130
|
for (const h of o) {
|
|
2119
2131
|
if (!h.trim()) continue;
|
|
2120
|
-
const s = h.trim().split(/\s+/).filter((A) => A !== ""),
|
|
2121
|
-
if (isNaN(
|
|
2132
|
+
const s = h.trim().split(/\s+/).filter((A) => A !== ""), d = parseInt(s[0]);
|
|
2133
|
+
if (isNaN(d)) continue;
|
|
2122
2134
|
const u = [];
|
|
2123
2135
|
for (let A = 1; A < s.length; A += 3) {
|
|
2124
2136
|
const L = parseFloat(s[A]), i = parseFloat(s[A + 1]), t = parseFloat(s[A + 2]);
|
|
@@ -2128,7 +2140,7 @@ function Vs(W) {
|
|
|
2128
2140
|
}
|
|
2129
2141
|
}
|
|
2130
2142
|
e.push({
|
|
2131
|
-
nodeId:
|
|
2143
|
+
nodeId: d,
|
|
2132
2144
|
displacements: u
|
|
2133
2145
|
});
|
|
2134
2146
|
}
|
|
@@ -2150,9 +2162,9 @@ function Us(W) {
|
|
|
2150
2162
|
`), e = [];
|
|
2151
2163
|
for (const s of o) {
|
|
2152
2164
|
if (!s.trim()) continue;
|
|
2153
|
-
const
|
|
2154
|
-
if (
|
|
2155
|
-
const u =
|
|
2165
|
+
const d = s.match(/^\s*(\d+-\s*\d+)\s+((?:\d+\.\d+\s*)+)/);
|
|
2166
|
+
if (d) {
|
|
2167
|
+
const u = d[1].replace(/\s+/g, ""), A = d[2].trim().split(/\s+/).map(Number);
|
|
2156
2168
|
e.push({
|
|
2157
2169
|
elementId: u,
|
|
2158
2170
|
stressRatios: A
|
|
@@ -2162,14 +2174,14 @@ function Us(W) {
|
|
|
2162
2174
|
const h = [];
|
|
2163
2175
|
if (e.length > 0) {
|
|
2164
2176
|
const s = e[0].stressRatios.length;
|
|
2165
|
-
for (let
|
|
2177
|
+
for (let d = 0; d < s; d++) {
|
|
2166
2178
|
const u = {
|
|
2167
|
-
timeIndex:
|
|
2179
|
+
timeIndex: d,
|
|
2168
2180
|
elements: []
|
|
2169
2181
|
};
|
|
2170
2182
|
for (const A of e) {
|
|
2171
2183
|
let L;
|
|
2172
|
-
const i = A.stressRatios[
|
|
2184
|
+
const i = A.stressRatios[d];
|
|
2173
2185
|
i > 1 ? L = z.RED : i > 0.95 && i <= 1 ? L = z.PINK : i > 0.85 && i <= 0.95 ? L = z.YELLOW : i > 0.7 && i <= 0.85 ? L = z.GREEN : L = z.BLUE, u.elements.push({
|
|
2174
2186
|
elementId: A.elementId,
|
|
2175
2187
|
stressRatio: i,
|
|
@@ -2183,8 +2195,8 @@ function Us(W) {
|
|
|
2183
2195
|
}
|
|
2184
2196
|
class Qs {
|
|
2185
2197
|
constructor(o) {
|
|
2186
|
-
|
|
2187
|
-
|
|
2198
|
+
w(this, "viewer");
|
|
2199
|
+
w(this, "lines", []);
|
|
2188
2200
|
this.viewer = o;
|
|
2189
2201
|
}
|
|
2190
2202
|
/**
|
|
@@ -2239,7 +2251,7 @@ var Ps = { exports: {} };
|
|
|
2239
2251
|
}
|
|
2240
2252
|
return 200 <= t.status && 299 >= t.status;
|
|
2241
2253
|
}
|
|
2242
|
-
function
|
|
2254
|
+
function d(i) {
|
|
2243
2255
|
try {
|
|
2244
2256
|
i.dispatchEvent(new MouseEvent("click"));
|
|
2245
2257
|
} catch {
|
|
@@ -2250,10 +2262,10 @@ var Ps = { exports: {} };
|
|
|
2250
2262
|
var u = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof j == "object" && j.global === j ? j : void 0, A = u.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), L = u.saveAs || (typeof window != "object" || window !== u ? function() {
|
|
2251
2263
|
} : "download" in HTMLAnchorElement.prototype && !A ? function(i, t, a) {
|
|
2252
2264
|
var l = u.URL || u.webkitURL, C = document.createElement("a");
|
|
2253
|
-
t = t || i.name || "download", C.download = t, C.rel = "noopener", typeof i == "string" ? (C.href = i, C.origin === location.origin ?
|
|
2265
|
+
t = t || i.name || "download", C.download = t, C.rel = "noopener", typeof i == "string" ? (C.href = i, C.origin === location.origin ? d(C) : s(C.href) ? h(i, t, a) : d(C, C.target = "_blank")) : (C.href = l.createObjectURL(i), setTimeout(function() {
|
|
2254
2266
|
l.revokeObjectURL(C.href);
|
|
2255
2267
|
}, 4e4), setTimeout(function() {
|
|
2256
|
-
|
|
2268
|
+
d(C);
|
|
2257
2269
|
}, 0));
|
|
2258
2270
|
} : "msSaveOrOpenBlob" in navigator ? function(i, t, a) {
|
|
2259
2271
|
if (t = t || i.name || "download", typeof i != "string") navigator.msSaveOrOpenBlob(e(i, a), t);
|
|
@@ -2261,13 +2273,13 @@ var Ps = { exports: {} };
|
|
|
2261
2273
|
else {
|
|
2262
2274
|
var l = document.createElement("a");
|
|
2263
2275
|
l.href = i, l.target = "_blank", setTimeout(function() {
|
|
2264
|
-
|
|
2276
|
+
d(l);
|
|
2265
2277
|
});
|
|
2266
2278
|
}
|
|
2267
2279
|
} : function(i, t, a, l) {
|
|
2268
2280
|
if (l = l || open("", "_blank"), l && (l.document.title = l.document.body.innerText = "downloading..."), typeof i == "string") return h(i, t, a);
|
|
2269
|
-
var C = i.type === "application/octet-stream",
|
|
2270
|
-
if ((g || C &&
|
|
2281
|
+
var C = i.type === "application/octet-stream", I = /constructor/i.test(u.HTMLElement) || u.safari, g = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
2282
|
+
if ((g || C && I || A) && typeof FileReader < "u") {
|
|
2271
2283
|
var b = new FileReader();
|
|
2272
2284
|
b.onloadend = function() {
|
|
2273
2285
|
var P = b.result;
|
|
@@ -2289,9 +2301,9 @@ class js {
|
|
|
2289
2301
|
// constructor(viewer: Cesium.Viewer, towerNodes: TowerNode[], connections: Connection[], towerFZS: TowerFZInfo) {
|
|
2290
2302
|
constructor(o, e, h) {
|
|
2291
2303
|
// private viewer: Cesium.Viewer;
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2304
|
+
w(this, "towerNodes", []);
|
|
2305
|
+
w(this, "connections", []);
|
|
2306
|
+
w(this, "towerFZS");
|
|
2295
2307
|
this.towerNodes = o, this.connections = e, this.towerFZS = h;
|
|
2296
2308
|
}
|
|
2297
2309
|
// 导出杆塔数据为SHP文件
|
|
@@ -2315,7 +2327,7 @@ class js {
|
|
|
2315
2327
|
this.towerFZS.Altitude
|
|
2316
2328
|
);
|
|
2317
2329
|
for (const s of this.towerNodes) {
|
|
2318
|
-
const
|
|
2330
|
+
const d = new n.Cartesian3(s.x, s.y, s.z), u = this.getPositionByHprAndOffset(h, d, e), A = n.Ellipsoid.WGS84.cartesianToCartographic(u), L = n.Math.toDegrees(A.longitude), i = n.Math.toDegrees(A.latitude), t = A.height, a = {
|
|
2319
2331
|
type: "Feature",
|
|
2320
2332
|
geometry: {
|
|
2321
2333
|
type: "Point",
|
|
@@ -2352,14 +2364,14 @@ class js {
|
|
|
2352
2364
|
this.towerFZS.Altitude
|
|
2353
2365
|
);
|
|
2354
2366
|
for (const s of this.connections) {
|
|
2355
|
-
const
|
|
2356
|
-
if (!
|
|
2357
|
-
const A = new n.Cartesian3(
|
|
2367
|
+
const d = this.towerNodes.find((y) => y.id === s.from), u = this.towerNodes.find((y) => y.id === s.to);
|
|
2368
|
+
if (!d || !u) continue;
|
|
2369
|
+
const A = new n.Cartesian3(d.x, d.y, d.z), L = new n.Cartesian3(u.x, u.y, u.z), i = this.getPositionByHprAndOffset(h, A, e), t = this.getPositionByHprAndOffset(h, L, e), a = n.Ellipsoid.WGS84.cartesianToCartographic(i), l = n.Ellipsoid.WGS84.cartesianToCartographic(t), C = n.Math.toDegrees(a.longitude), I = n.Math.toDegrees(a.latitude), g = a.height, b = n.Math.toDegrees(l.longitude), T = n.Math.toDegrees(l.latitude), B = l.height, P = {
|
|
2358
2370
|
type: "Feature",
|
|
2359
2371
|
geometry: {
|
|
2360
2372
|
type: "LineString",
|
|
2361
2373
|
coordinates: [
|
|
2362
|
-
[C,
|
|
2374
|
+
[C, I],
|
|
2363
2375
|
// 起点,二维坐标
|
|
2364
2376
|
[b, T]
|
|
2365
2377
|
// 终点,二维坐标
|
|
@@ -2379,7 +2391,7 @@ class js {
|
|
|
2379
2391
|
type: "tower_member",
|
|
2380
2392
|
width: this.towerFZS.TowerMembersWidth,
|
|
2381
2393
|
from_longitude: C,
|
|
2382
|
-
from_latitude:
|
|
2394
|
+
from_latitude: I,
|
|
2383
2395
|
to_longitude: b,
|
|
2384
2396
|
to_latitude: T
|
|
2385
2397
|
}
|
|
@@ -2452,8 +2464,8 @@ class xs {
|
|
|
2452
2464
|
static async exportToCSV(o, e, h) {
|
|
2453
2465
|
const s = this.exportNodesToCSV(o, h);
|
|
2454
2466
|
this.downloadCSV(s, "tower_nodes.csv");
|
|
2455
|
-
const
|
|
2456
|
-
this.downloadCSV(
|
|
2467
|
+
const d = this.exportConnectionsToCSV(e, o, h);
|
|
2468
|
+
this.downloadCSV(d, "tower_connections.csv");
|
|
2457
2469
|
}
|
|
2458
2470
|
static exportNodesToCSV(o, e) {
|
|
2459
2471
|
let h = `ID,X,Y,Z,Longitude,Latitude,Height
|
|
@@ -2462,13 +2474,13 @@ class xs {
|
|
|
2462
2474
|
n.Math.toRadians(e.RollX),
|
|
2463
2475
|
e.RollY,
|
|
2464
2476
|
e.RollZ
|
|
2465
|
-
),
|
|
2477
|
+
), d = n.Cartesian3.fromDegrees(
|
|
2466
2478
|
e.Longitude,
|
|
2467
2479
|
e.Latitude,
|
|
2468
2480
|
e.Altitude
|
|
2469
2481
|
);
|
|
2470
2482
|
return o.forEach((u) => {
|
|
2471
|
-
const A = new n.Cartesian3(u.x, u.y, u.z), L = this.getPositionByHprAndOffset(
|
|
2483
|
+
const A = new n.Cartesian3(u.x, u.y, u.z), L = this.getPositionByHprAndOffset(d, A, s), i = n.Ellipsoid.WGS84.cartesianToCartographic(L), t = n.Math.toDegrees(i.longitude), a = n.Math.toDegrees(i.latitude), l = i.height;
|
|
2472
2484
|
h += `${u.id},${u.x},${u.y},${u.z},${t},${a},${l}
|
|
2473
2485
|
`;
|
|
2474
2486
|
}), h;
|
|
@@ -2476,7 +2488,7 @@ class xs {
|
|
|
2476
2488
|
static exportConnectionsToCSV(o, e, h) {
|
|
2477
2489
|
let s = `FromNode,ToNode,FromX,FromY,FromZ,ToX,ToY,ToZ,Length
|
|
2478
2490
|
`;
|
|
2479
|
-
const
|
|
2491
|
+
const d = new n.HeadingPitchRoll(
|
|
2480
2492
|
n.Math.toRadians(h.RollX),
|
|
2481
2493
|
h.RollY,
|
|
2482
2494
|
h.RollZ
|
|
@@ -2488,8 +2500,8 @@ class xs {
|
|
|
2488
2500
|
return o.forEach((A) => {
|
|
2489
2501
|
const L = e.find((g) => g.id === A.from), i = e.find((g) => g.id === A.to);
|
|
2490
2502
|
if (!L || !i) return;
|
|
2491
|
-
const t = new n.Cartesian3(L.x, L.y, L.z), a = new n.Cartesian3(i.x, i.y, i.z), l = this.getPositionByHprAndOffset(u, t,
|
|
2492
|
-
s += `${A.from},${A.to},${L.x},${L.y},${L.z},${i.x},${i.y},${i.z},${
|
|
2503
|
+
const t = new n.Cartesian3(L.x, L.y, L.z), a = new n.Cartesian3(i.x, i.y, i.z), l = this.getPositionByHprAndOffset(u, t, d), C = this.getPositionByHprAndOffset(u, a, d), I = n.Cartesian3.distance(l, C);
|
|
2504
|
+
s += `${A.from},${A.to},${L.x},${L.y},${L.z},${i.x},${i.y},${i.z},${I}
|
|
2493
2505
|
`;
|
|
2494
2506
|
}), s;
|
|
2495
2507
|
}
|
|
@@ -2502,29 +2514,29 @@ class xs {
|
|
|
2502
2514
|
return n.Matrix4.multiplyByPoint(s, e, new n.Cartesian3());
|
|
2503
2515
|
}
|
|
2504
2516
|
}
|
|
2505
|
-
class
|
|
2517
|
+
class Wt {
|
|
2506
2518
|
constructor(o, e, h) {
|
|
2507
2519
|
//三维场景
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2520
|
+
w(this, "viewer");
|
|
2521
|
+
w(this, "TowerFZS");
|
|
2522
|
+
w(this, "Keym", "");
|
|
2511
2523
|
// 模型模型集合
|
|
2512
|
-
|
|
2513
|
-
|
|
2524
|
+
w(this, "dataSource2");
|
|
2525
|
+
w(this, "entityCollection2");
|
|
2514
2526
|
// 创建一个数组来存储所有点实体
|
|
2515
|
-
|
|
2527
|
+
w(this, "pointEntities", []);
|
|
2516
2528
|
//杆件管理对象
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2529
|
+
w(this, "TowerLineManager");
|
|
2530
|
+
w(this, "TowerNodes", []);
|
|
2531
|
+
w(this, "connections", []);
|
|
2532
|
+
w(this, "displacementData", []);
|
|
2521
2533
|
// 在类属性中添加(浏览器环境)
|
|
2522
2534
|
// private _animationInterval: number | null = null;
|
|
2523
2535
|
// 该字段已废弃,后续如需按单元查询应力比可启用
|
|
2524
2536
|
// private byElemens: ElementStressData[] = [];
|
|
2525
|
-
|
|
2537
|
+
w(this, "byTimes", []);
|
|
2526
2538
|
// 或者如果是Node.js环境:
|
|
2527
|
-
|
|
2539
|
+
w(this, "_animationInterval", null);
|
|
2528
2540
|
this.Keym = h, this.viewer = o, this.TowerFZS = e, this.dataSource2 = new n.CustomDataSource(this.TowerFZS.id), this.entityCollection2 = this.dataSource2.entities, this.TowerLineManager = new Qs(this.viewer);
|
|
2529
2541
|
}
|
|
2530
2542
|
// 类的构造函数,用于初始化属性
|
|
@@ -2548,7 +2560,7 @@ class nt {
|
|
|
2548
2560
|
let o = new n.HeadingPitchRoll(n.Math.toRadians(this.TowerFZS.RollX), this.TowerFZS.RollY, this.TowerFZS.RollZ);
|
|
2549
2561
|
const e = n.Cartesian3.fromDegrees(this.TowerFZS.Longitude, this.TowerFZS.Latitude, this.TowerFZS.Altitude);
|
|
2550
2562
|
this.connections.forEach((h) => {
|
|
2551
|
-
const s = this.TowerNodes.find((a) => a.id === h.from),
|
|
2563
|
+
const s = this.TowerNodes.find((a) => a.id === h.from), d = this.TowerNodes.find((a) => a.id === h.to), u = [], A = new n.Cartesian3(s == null ? void 0 : s.x, s == null ? void 0 : s.y, s == null ? void 0 : s.z);
|
|
2552
2564
|
u.push(p(e, A, o));
|
|
2553
2565
|
const L = x(
|
|
2554
2566
|
this.viewer,
|
|
@@ -2562,7 +2574,7 @@ class nt {
|
|
|
2562
2574
|
}
|
|
2563
2575
|
);
|
|
2564
2576
|
this.pointEntities.push(L);
|
|
2565
|
-
const i = new n.Cartesian3(
|
|
2577
|
+
const i = new n.Cartesian3(d == null ? void 0 : d.x, d == null ? void 0 : d.y, d == null ? void 0 : d.z);
|
|
2566
2578
|
u.push(p(e, i, o));
|
|
2567
2579
|
const t = x(
|
|
2568
2580
|
this.viewer,
|
|
@@ -2607,7 +2619,7 @@ class nt {
|
|
|
2607
2619
|
console.warn(`未找到时间步 ${o} 的位移数据`);
|
|
2608
2620
|
return;
|
|
2609
2621
|
}
|
|
2610
|
-
const
|
|
2622
|
+
const d = new n.HeadingPitchRoll(
|
|
2611
2623
|
n.Math.toRadians(this.TowerFZS.RollX),
|
|
2612
2624
|
this.TowerFZS.RollY,
|
|
2613
2625
|
this.TowerFZS.RollZ
|
|
@@ -2636,9 +2648,9 @@ class nt {
|
|
|
2636
2648
|
i.x - a.x,
|
|
2637
2649
|
i.y - a.y,
|
|
2638
2650
|
i.z - a.z
|
|
2639
|
-
),
|
|
2651
|
+
), I = p(u, l, d), g = x(
|
|
2640
2652
|
this.viewer,
|
|
2641
|
-
|
|
2653
|
+
I,
|
|
2642
2654
|
A.from + "",
|
|
2643
2655
|
{
|
|
2644
2656
|
pointColor: n.Color.RED,
|
|
@@ -2648,7 +2660,7 @@ class nt {
|
|
|
2648
2660
|
}
|
|
2649
2661
|
);
|
|
2650
2662
|
this.pointEntities.push(g);
|
|
2651
|
-
const b = p(u, C,
|
|
2663
|
+
const b = p(u, C, d), T = x(
|
|
2652
2664
|
this.viewer,
|
|
2653
2665
|
b,
|
|
2654
2666
|
A.to + "",
|
|
@@ -2660,7 +2672,7 @@ class nt {
|
|
|
2660
2672
|
}
|
|
2661
2673
|
);
|
|
2662
2674
|
this.pointEntities.push(T);
|
|
2663
|
-
const B = [
|
|
2675
|
+
const B = [I, b], P = A.from + "-" + A.to, y = s == null ? void 0 : s.elements.find((m) => m.elementId === P);
|
|
2664
2676
|
debugger;
|
|
2665
2677
|
this.TowerLineManager.addLine(B, {
|
|
2666
2678
|
color: y == null ? void 0 : y.ylbColor,
|
|
@@ -2679,13 +2691,13 @@ class nt {
|
|
|
2679
2691
|
const e = cs(this.displacementData);
|
|
2680
2692
|
let h = new n.HeadingPitchRoll(n.Math.toRadians(this.TowerFZS.RollX), this.TowerFZS.RollY, this.TowerFZS.RollZ);
|
|
2681
2693
|
const s = n.Cartesian3.fromDegrees(this.TowerFZS.Longitude, this.TowerFZS.Latitude, this.TowerFZS.Altitude);
|
|
2682
|
-
this.connections.forEach((
|
|
2683
|
-
const u = this.TowerNodes.find((C) => C.id ===
|
|
2694
|
+
this.connections.forEach((d) => {
|
|
2695
|
+
const u = this.TowerNodes.find((C) => C.id === d.from), A = e[o].find((C) => C.nodeId === d.from), L = this.TowerNodes.find((C) => C.id === d.to), i = e[o].find((C) => C.nodeId === d.to), t = [], a = new n.Cartesian3(u.x - A.x, u.y - A.y, u.z - A.z);
|
|
2684
2696
|
t.push(p(s, a, h));
|
|
2685
2697
|
const l = new n.Cartesian3(L.x - i.x, L.y - i.y, L.z - i.z);
|
|
2686
2698
|
t.push(p(s, l, h));
|
|
2687
2699
|
debugger;
|
|
2688
|
-
this.entityCollection2.add(r(t,
|
|
2700
|
+
this.entityCollection2.add(r(t, d.from + "" + d.to, this.TowerFZS.TowerMembersWidth, this.TowerFZS.TowerMemberColor));
|
|
2689
2701
|
});
|
|
2690
2702
|
}
|
|
2691
2703
|
/**
|
|
@@ -2737,19 +2749,20 @@ class nt {
|
|
|
2737
2749
|
}
|
|
2738
2750
|
}
|
|
2739
2751
|
export {
|
|
2740
|
-
|
|
2741
|
-
|
|
2752
|
+
ft as GUAPoint,
|
|
2753
|
+
rt as InsulatorInfo,
|
|
2742
2754
|
R as InsulatorType,
|
|
2743
2755
|
Qs as LineManager,
|
|
2744
2756
|
ts as LineNum,
|
|
2745
2757
|
Js as LineType,
|
|
2746
|
-
|
|
2747
|
-
|
|
2758
|
+
Wt as OWEEgineFZManager,
|
|
2759
|
+
ht as OWEEgineManager,
|
|
2748
2760
|
H as PhaseSType,
|
|
2749
|
-
|
|
2750
|
-
|
|
2761
|
+
nt as TowerFZInfo,
|
|
2762
|
+
ot as TowerInfo,
|
|
2751
2763
|
it as TowerLineInfo,
|
|
2752
2764
|
J as TowerType,
|
|
2765
|
+
et as TreeType,
|
|
2753
2766
|
c as WairnumType,
|
|
2754
2767
|
U as drawModel
|
|
2755
2768
|
};
|