ow-eengine-power 2.4.6 → 2.4.7
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 +571 -549
- package/dist/OW_EEngine_Power.umd.cjs +9 -9
- package/package.json +1 -1
package/dist/OW_EEngine_Power.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var Ss = Object.defineProperty;
|
|
2
|
-
var ks = (a, e,
|
|
3
|
-
var w = (a, e,
|
|
2
|
+
var ks = (a, e, i) => e in a ? Ss(a, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[e] = i;
|
|
3
|
+
var w = (a, e, i) => ks(a, typeof e != "symbol" ? e + "" : e, i);
|
|
4
4
|
import * as n from "cesium";
|
|
5
5
|
import { Color as J, HeightReference as Rs, LabelStyle as Zs } from "cesium";
|
|
6
|
-
function Es(a, e,
|
|
6
|
+
function Es(a, e, i = {}) {
|
|
7
7
|
const {
|
|
8
8
|
color: r = J.WHITE,
|
|
9
9
|
width: s = 3,
|
|
@@ -11,7 +11,7 @@ function Es(a, e, t = {}) {
|
|
|
11
11
|
zIndex: W = 0,
|
|
12
12
|
dashed: L = !1,
|
|
13
13
|
dashLength: A = 10
|
|
14
|
-
} =
|
|
14
|
+
} = i, d = L ? new n.PolylineDashMaterialProperty({
|
|
15
15
|
color: r,
|
|
16
16
|
dashLength: A
|
|
17
17
|
}) : new n.ColorMaterialProperty(r);
|
|
@@ -25,12 +25,12 @@ function Es(a, e, t = {}) {
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
function h(a, e,
|
|
28
|
+
function h(a, e, i = 10, r = "#ba1919", s, T = !1) {
|
|
29
29
|
const W = {
|
|
30
30
|
show: !0,
|
|
31
31
|
positions: a,
|
|
32
32
|
clampToGround: T,
|
|
33
|
-
width:
|
|
33
|
+
width: i,
|
|
34
34
|
material: n.Color.fromCssColorString(r),
|
|
35
35
|
arcType: n.ArcType.NONE,
|
|
36
36
|
shadows: n.ShadowMode.DISABLED,
|
|
@@ -57,7 +57,7 @@ function h(a, e, t = 10, r = "#ba1919", s, T = !1) {
|
|
|
57
57
|
polyline: W
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
function Cs(a, e,
|
|
60
|
+
function Cs(a, e, i, r, s = new n.HeadingPitchRoll(0, 0, 0), T = 1, W) {
|
|
61
61
|
const L = {
|
|
62
62
|
show: !0,
|
|
63
63
|
uri: r,
|
|
@@ -76,7 +76,7 @@ function Cs(a, e, t, r, s = new n.HeadingPitchRoll(0, 0, 0), T = 1, W) {
|
|
|
76
76
|
W[1]
|
|
77
77
|
) : L.distanceDisplayCondition = W), {
|
|
78
78
|
id: a,
|
|
79
|
-
name:
|
|
79
|
+
name: i,
|
|
80
80
|
position: e,
|
|
81
81
|
orientation: n.Transforms.headingPitchRollQuaternion(
|
|
82
82
|
e,
|
|
@@ -85,7 +85,7 @@ function Cs(a, e, t, r, s = new n.HeadingPitchRoll(0, 0, 0), T = 1, W) {
|
|
|
85
85
|
model: L
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
-
function os(a, e,
|
|
88
|
+
function os(a, e, i, r = {}) {
|
|
89
89
|
const {
|
|
90
90
|
pointColor: s = J.YELLOW,
|
|
91
91
|
pointSize: T = 12,
|
|
@@ -104,7 +104,7 @@ function os(a, e, t, r = {}) {
|
|
|
104
104
|
// 显示距离范围
|
|
105
105
|
},
|
|
106
106
|
label: {
|
|
107
|
-
text:
|
|
107
|
+
text: i,
|
|
108
108
|
font: `${L}px sans-serif`,
|
|
109
109
|
fillColor: W,
|
|
110
110
|
pixelOffset: new n.Cartesian2(...A),
|
|
@@ -134,13 +134,13 @@ var N = 63710088e-1, Bs = {
|
|
|
134
134
|
radians: 1,
|
|
135
135
|
yards: N * 1.0936
|
|
136
136
|
};
|
|
137
|
-
function
|
|
138
|
-
|
|
137
|
+
function is(a, e, i) {
|
|
138
|
+
i === void 0 && (i = {});
|
|
139
139
|
var r = { type: "Feature" };
|
|
140
|
-
return (
|
|
140
|
+
return (i.id === 0 || i.id) && (r.id = i.id), i.bbox && (r.bbox = i.bbox), r.properties = e || {}, r.geometry = a, r;
|
|
141
141
|
}
|
|
142
|
-
function U(a, e,
|
|
143
|
-
if (
|
|
142
|
+
function U(a, e, i) {
|
|
143
|
+
if (i === void 0 && (i = {}), !a)
|
|
144
144
|
throw new Error("coordinates is required");
|
|
145
145
|
if (!Array.isArray(a))
|
|
146
146
|
throw new Error("coordinates must be an Array");
|
|
@@ -152,35 +152,35 @@ function U(a, e, t) {
|
|
|
152
152
|
type: "Point",
|
|
153
153
|
coordinates: a
|
|
154
154
|
};
|
|
155
|
-
return
|
|
155
|
+
return is(r, e, i);
|
|
156
156
|
}
|
|
157
|
-
function K(a, e,
|
|
158
|
-
if (
|
|
157
|
+
function K(a, e, i) {
|
|
158
|
+
if (i === void 0 && (i = {}), a.length < 2)
|
|
159
159
|
throw new Error("coordinates must be an array of two or more positions");
|
|
160
160
|
var r = {
|
|
161
161
|
type: "LineString",
|
|
162
162
|
coordinates: a
|
|
163
163
|
};
|
|
164
|
-
return
|
|
164
|
+
return is(r, e, i);
|
|
165
165
|
}
|
|
166
166
|
function Xs(a, e) {
|
|
167
167
|
e === void 0 && (e = {});
|
|
168
|
-
var
|
|
169
|
-
return e.id && (
|
|
168
|
+
var i = { type: "FeatureCollection" };
|
|
169
|
+
return e.id && (i.id = e.id), e.bbox && (i.bbox = e.bbox), i.features = a, i;
|
|
170
170
|
}
|
|
171
171
|
function Ps(a, e) {
|
|
172
172
|
e === void 0 && (e = "kilometers");
|
|
173
|
-
var
|
|
174
|
-
if (!
|
|
173
|
+
var i = Bs[e];
|
|
174
|
+
if (!i)
|
|
175
175
|
throw new Error(e + " units is invalid");
|
|
176
|
-
return a *
|
|
176
|
+
return a * i;
|
|
177
177
|
}
|
|
178
178
|
function ys(a, e) {
|
|
179
179
|
e === void 0 && (e = "kilometers");
|
|
180
|
-
var
|
|
181
|
-
if (!
|
|
180
|
+
var i = Bs[e];
|
|
181
|
+
if (!i)
|
|
182
182
|
throw new Error(e + " units is invalid");
|
|
183
|
-
return a /
|
|
183
|
+
return a / i;
|
|
184
184
|
}
|
|
185
185
|
function ls(a) {
|
|
186
186
|
var e = a % (2 * Math.PI);
|
|
@@ -190,10 +190,10 @@ function q(a) {
|
|
|
190
190
|
var e = a % 360;
|
|
191
191
|
return e * Math.PI / 180;
|
|
192
192
|
}
|
|
193
|
-
function gs(a, e,
|
|
194
|
-
if (e === void 0 && (e = "kilometers"),
|
|
193
|
+
function gs(a, e, i) {
|
|
194
|
+
if (e === void 0 && (e = "kilometers"), i === void 0 && (i = "kilometers"), !(a >= 0))
|
|
195
195
|
throw new Error("length must be a positive number");
|
|
196
|
-
return Ps(ys(a, e),
|
|
196
|
+
return Ps(ys(a, e), i);
|
|
197
197
|
}
|
|
198
198
|
function As(a) {
|
|
199
199
|
return !isNaN(a) && a !== null && !Array.isArray(a);
|
|
@@ -201,16 +201,16 @@ function As(a) {
|
|
|
201
201
|
function Ys(a) {
|
|
202
202
|
return !!a && a.constructor === Object;
|
|
203
203
|
}
|
|
204
|
-
function ms(a, e,
|
|
204
|
+
function ms(a, e, i) {
|
|
205
205
|
if (a !== null)
|
|
206
|
-
for (var r, s, T, W, L, A, d,
|
|
206
|
+
for (var r, s, T, W, L, A, d, t = 0, l = 0, u, C = a.type, o = C === "FeatureCollection", c = C === "Feature", m = o ? a.features.length : 1, b = 0; b < m; b++) {
|
|
207
207
|
d = o ? a.features[b].geometry : c ? a.geometry : a, u = d ? d.type === "GeometryCollection" : !1, L = u ? d.geometries.length : 1;
|
|
208
208
|
for (var I = 0; I < L; I++) {
|
|
209
209
|
var P = 0, g = 0;
|
|
210
210
|
if (W = u ? d.geometries[I] : d, W !== null) {
|
|
211
211
|
A = W.coordinates;
|
|
212
212
|
var y = W.type;
|
|
213
|
-
switch (
|
|
213
|
+
switch (t = 0, y) {
|
|
214
214
|
case null:
|
|
215
215
|
break;
|
|
216
216
|
case "Point":
|
|
@@ -242,7 +242,7 @@ function ms(a, e, t) {
|
|
|
242
242
|
case "Polygon":
|
|
243
243
|
case "MultiLineString":
|
|
244
244
|
for (r = 0; r < A.length; r++) {
|
|
245
|
-
for (s = 0; s < A[r].length -
|
|
245
|
+
for (s = 0; s < A[r].length - t; s++) {
|
|
246
246
|
if (e(
|
|
247
247
|
A[r][s],
|
|
248
248
|
l,
|
|
@@ -260,7 +260,7 @@ function ms(a, e, t) {
|
|
|
260
260
|
case "MultiPolygon":
|
|
261
261
|
for (r = 0; r < A.length; r++) {
|
|
262
262
|
for (g = 0, s = 0; s < A[r].length; s++) {
|
|
263
|
-
for (T = 0; T < A[r][s].length -
|
|
263
|
+
for (T = 0; T < A[r][s].length - t; T++) {
|
|
264
264
|
if (e(
|
|
265
265
|
A[r][s][T],
|
|
266
266
|
l,
|
|
@@ -288,23 +288,23 @@ function ms(a, e, t) {
|
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function Ds(a, e) {
|
|
292
292
|
if (a.type === "Feature")
|
|
293
293
|
e(a, 0);
|
|
294
294
|
else if (a.type === "FeatureCollection")
|
|
295
|
-
for (var
|
|
295
|
+
for (var i = 0; i < a.features.length && e(a.features[i], i) !== !1; i++)
|
|
296
296
|
;
|
|
297
297
|
}
|
|
298
|
-
function
|
|
299
|
-
var
|
|
300
|
-
for (
|
|
301
|
-
for (L = C ? a.features[
|
|
298
|
+
function Fs(a, e) {
|
|
299
|
+
var i, r, s, T, W, L, A, d, t, l, u = 0, C = a.type === "FeatureCollection", o = a.type === "Feature", c = C ? a.features.length : 1;
|
|
300
|
+
for (i = 0; i < c; i++) {
|
|
301
|
+
for (L = C ? a.features[i].geometry : o ? a.geometry : a, d = C ? a.features[i].properties : o ? a.properties : {}, t = C ? a.features[i].bbox : o ? a.bbox : void 0, l = C ? a.features[i].id : o ? a.id : void 0, A = L ? L.type === "GeometryCollection" : !1, W = A ? L.geometries.length : 1, s = 0; s < W; s++) {
|
|
302
302
|
if (T = A ? L.geometries[s] : L, T === null) {
|
|
303
303
|
if (e(
|
|
304
304
|
null,
|
|
305
305
|
u,
|
|
306
306
|
d,
|
|
307
|
-
|
|
307
|
+
t,
|
|
308
308
|
l
|
|
309
309
|
) === !1)
|
|
310
310
|
return !1;
|
|
@@ -321,7 +321,7 @@ function Ds(a, e) {
|
|
|
321
321
|
T,
|
|
322
322
|
u,
|
|
323
323
|
d,
|
|
324
|
-
|
|
324
|
+
t,
|
|
325
325
|
l
|
|
326
326
|
) === !1)
|
|
327
327
|
return !1;
|
|
@@ -333,7 +333,7 @@ function Ds(a, e) {
|
|
|
333
333
|
T.geometries[r],
|
|
334
334
|
u,
|
|
335
335
|
d,
|
|
336
|
-
|
|
336
|
+
t,
|
|
337
337
|
l
|
|
338
338
|
) === !1)
|
|
339
339
|
return !1;
|
|
@@ -347,15 +347,15 @@ function Ds(a, e) {
|
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
function Hs(a, e) {
|
|
350
|
-
|
|
351
|
-
var L =
|
|
350
|
+
Fs(a, function(i, r, s, T, W) {
|
|
351
|
+
var L = i === null ? null : i.type;
|
|
352
352
|
switch (L) {
|
|
353
353
|
case null:
|
|
354
354
|
case "Point":
|
|
355
355
|
case "LineString":
|
|
356
356
|
case "Polygon":
|
|
357
357
|
return e(
|
|
358
|
-
|
|
358
|
+
is(i, s, { bbox: T, id: W }),
|
|
359
359
|
r,
|
|
360
360
|
0
|
|
361
361
|
) === !1 ? !1 : void 0;
|
|
@@ -372,33 +372,33 @@ function Hs(a, e) {
|
|
|
372
372
|
A = "Polygon";
|
|
373
373
|
break;
|
|
374
374
|
}
|
|
375
|
-
for (var d = 0; d <
|
|
376
|
-
var
|
|
375
|
+
for (var d = 0; d < i.coordinates.length; d++) {
|
|
376
|
+
var t = i.coordinates[d], l = {
|
|
377
377
|
type: A,
|
|
378
|
-
coordinates:
|
|
378
|
+
coordinates: t
|
|
379
379
|
};
|
|
380
|
-
if (e(
|
|
380
|
+
if (e(is(l, s), r, d) === !1)
|
|
381
381
|
return !1;
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
385
|
function Os(a, e) {
|
|
386
|
-
Hs(a, function(
|
|
386
|
+
Hs(a, function(i, r, s) {
|
|
387
387
|
var T = 0;
|
|
388
|
-
if (
|
|
389
|
-
var W =
|
|
388
|
+
if (i.geometry) {
|
|
389
|
+
var W = i.geometry.type;
|
|
390
390
|
if (!(W === "Point" || W === "MultiPoint")) {
|
|
391
|
-
var L, A = 0, d = 0,
|
|
391
|
+
var L, A = 0, d = 0, t = 0;
|
|
392
392
|
if (ms(
|
|
393
|
-
|
|
393
|
+
i,
|
|
394
394
|
function(l, u, C, o, c) {
|
|
395
|
-
if (L === void 0 || r > A || o > d || c >
|
|
396
|
-
L = l, A = r, d = o,
|
|
395
|
+
if (L === void 0 || r > A || o > d || c > t) {
|
|
396
|
+
L = l, A = r, d = o, t = c, T = 0;
|
|
397
397
|
return;
|
|
398
398
|
}
|
|
399
399
|
var m = K(
|
|
400
400
|
[L, l],
|
|
401
|
-
|
|
401
|
+
i.properties
|
|
402
402
|
);
|
|
403
403
|
if (e(
|
|
404
404
|
m,
|
|
@@ -429,21 +429,21 @@ function x(a) {
|
|
|
429
429
|
return a;
|
|
430
430
|
throw new Error("coord must be GeoJSON Point or an Array of numbers");
|
|
431
431
|
}
|
|
432
|
-
function ps(a, e,
|
|
432
|
+
function ps(a, e, i) {
|
|
433
433
|
if (!a)
|
|
434
434
|
throw new Error("No feature passed");
|
|
435
|
-
if (!
|
|
435
|
+
if (!i)
|
|
436
436
|
throw new Error(".featureOf() requires a name");
|
|
437
437
|
if (!a || a.type !== "Feature" || !a.geometry)
|
|
438
|
-
throw new Error("Invalid input to " +
|
|
438
|
+
throw new Error("Invalid input to " + i + ", Feature with geometry required");
|
|
439
439
|
if (!a.geometry || a.geometry.type !== e)
|
|
440
|
-
throw new Error("Invalid input to " +
|
|
440
|
+
throw new Error("Invalid input to " + i + ": must be a " + e + ", given " + a.geometry.type);
|
|
441
441
|
}
|
|
442
|
-
var
|
|
443
|
-
function ss(a, e,
|
|
444
|
-
|
|
442
|
+
var ts = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
443
|
+
function ss(a, e, i) {
|
|
444
|
+
i === void 0 && (i = {});
|
|
445
445
|
var r = x(a), s = x(e), T = q(s[1] - r[1]), W = q(s[0] - r[0]), L = q(r[1]), A = q(s[1]), d = Math.pow(Math.sin(T / 2), 2) + Math.pow(Math.sin(W / 2), 2) * Math.cos(L) * Math.cos(A);
|
|
446
|
-
return Ps(2 * Math.atan2(Math.sqrt(d), Math.sqrt(1 - d)),
|
|
446
|
+
return Ps(2 * Math.atan2(Math.sqrt(d), Math.sqrt(1 - d)), i.units);
|
|
447
447
|
}
|
|
448
448
|
function $s(a) {
|
|
449
449
|
if (!a)
|
|
@@ -467,69 +467,69 @@ function $s(a) {
|
|
|
467
467
|
}
|
|
468
468
|
function bs(a) {
|
|
469
469
|
var e = { type: "Feature" };
|
|
470
|
-
return Object.keys(a).forEach(function(
|
|
471
|
-
switch (
|
|
470
|
+
return Object.keys(a).forEach(function(i) {
|
|
471
|
+
switch (i) {
|
|
472
472
|
case "type":
|
|
473
473
|
case "properties":
|
|
474
474
|
case "geometry":
|
|
475
475
|
return;
|
|
476
476
|
default:
|
|
477
|
-
e[
|
|
477
|
+
e[i] = a[i];
|
|
478
478
|
}
|
|
479
|
-
}), e.properties =
|
|
479
|
+
}), e.properties = vs(a.properties), e.geometry = Ts(a.geometry), e;
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function vs(a) {
|
|
482
482
|
var e = {};
|
|
483
|
-
return a && Object.keys(a).forEach(function(
|
|
484
|
-
var r = a[
|
|
485
|
-
typeof r == "object" ? r === null ? e[
|
|
483
|
+
return a && Object.keys(a).forEach(function(i) {
|
|
484
|
+
var r = a[i];
|
|
485
|
+
typeof r == "object" ? r === null ? e[i] = null : Array.isArray(r) ? e[i] = r.map(function(s) {
|
|
486
486
|
return s;
|
|
487
|
-
}) : e[
|
|
487
|
+
}) : e[i] = vs(r) : e[i] = r;
|
|
488
488
|
}), e;
|
|
489
489
|
}
|
|
490
490
|
function Ns(a) {
|
|
491
491
|
var e = { type: "FeatureCollection" };
|
|
492
|
-
return Object.keys(a).forEach(function(
|
|
493
|
-
switch (
|
|
492
|
+
return Object.keys(a).forEach(function(i) {
|
|
493
|
+
switch (i) {
|
|
494
494
|
case "type":
|
|
495
495
|
case "features":
|
|
496
496
|
return;
|
|
497
497
|
default:
|
|
498
|
-
e[
|
|
498
|
+
e[i] = a[i];
|
|
499
499
|
}
|
|
500
|
-
}), e.features = a.features.map(function(
|
|
501
|
-
return bs(
|
|
500
|
+
}), e.features = a.features.map(function(i) {
|
|
501
|
+
return bs(i);
|
|
502
502
|
}), e;
|
|
503
503
|
}
|
|
504
504
|
function Ts(a) {
|
|
505
505
|
var e = { type: a.type };
|
|
506
|
-
return a.bbox && (e.bbox = a.bbox), a.type === "GeometryCollection" ? (e.geometries = a.geometries.map(function(
|
|
507
|
-
return Ts(
|
|
508
|
-
}), e) : (e.coordinates =
|
|
506
|
+
return a.bbox && (e.bbox = a.bbox), a.type === "GeometryCollection" ? (e.geometries = a.geometries.map(function(i) {
|
|
507
|
+
return Ts(i);
|
|
508
|
+
}), e) : (e.coordinates = _s(a.coordinates), e);
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function _s(a) {
|
|
511
511
|
var e = a;
|
|
512
|
-
return typeof e[0] != "object" ? e.slice() : e.map(function(
|
|
513
|
-
return
|
|
512
|
+
return typeof e[0] != "object" ? e.slice() : e.map(function(i) {
|
|
513
|
+
return _s(i);
|
|
514
514
|
});
|
|
515
515
|
}
|
|
516
|
-
function us(a, e,
|
|
516
|
+
function us(a, e, i, r) {
|
|
517
517
|
r === void 0 && (r = {});
|
|
518
|
-
var s = x(a), T = q(s[0]), W = q(s[1]), L = q(
|
|
518
|
+
var s = x(a), T = q(s[0]), W = q(s[1]), L = q(i), A = ys(e, r.units), d = Math.asin(Math.sin(W) * Math.cos(A) + Math.cos(W) * Math.sin(A) * Math.cos(L)), t = T + Math.atan2(Math.sin(L) * Math.sin(A) * Math.cos(W), Math.cos(A) - Math.sin(W) * Math.sin(d)), l = ls(t), u = ls(d);
|
|
519
519
|
return U([l, u], r.properties);
|
|
520
520
|
}
|
|
521
|
-
function fs(a, e,
|
|
522
|
-
if (
|
|
521
|
+
function fs(a, e, i) {
|
|
522
|
+
if (i === void 0 && (i = {}), i.final === !0)
|
|
523
523
|
return Gs(a, e);
|
|
524
|
-
var r = x(a), s = x(e), T = q(r[0]), W = q(s[0]), L = q(r[1]), A = q(s[1]), d = Math.sin(W - T) * Math.cos(A),
|
|
525
|
-
return ls(Math.atan2(d,
|
|
524
|
+
var r = x(a), s = x(e), T = q(r[0]), W = q(s[0]), L = q(r[1]), A = q(s[1]), d = Math.sin(W - T) * Math.cos(A), t = Math.cos(L) * Math.sin(A) - Math.sin(L) * Math.cos(A) * Math.cos(W - T);
|
|
525
|
+
return ls(Math.atan2(d, t));
|
|
526
526
|
}
|
|
527
527
|
function Gs(a, e) {
|
|
528
|
-
var
|
|
529
|
-
return
|
|
528
|
+
var i = fs(e, a);
|
|
529
|
+
return i = (i + 180) % 360, i;
|
|
530
530
|
}
|
|
531
531
|
function zs(a, e) {
|
|
532
|
-
var
|
|
532
|
+
var i = ss(a, e), r = fs(a, e), s = us(a, i / 2, r);
|
|
533
533
|
return s;
|
|
534
534
|
}
|
|
535
535
|
function Vs(a, e) {
|
|
@@ -537,68 +537,68 @@ function Vs(a, e) {
|
|
|
537
537
|
throw new Error("targetPoint is required");
|
|
538
538
|
if (!e)
|
|
539
539
|
throw new Error("points is required");
|
|
540
|
-
var
|
|
541
|
-
return
|
|
540
|
+
var i, r = 1 / 0, s = 0;
|
|
541
|
+
return Ds(e, function(T, W) {
|
|
542
542
|
var L = ss(a, T);
|
|
543
543
|
L < r && (s = W, r = L);
|
|
544
|
-
}),
|
|
544
|
+
}), i = $s(e.features[s]), i.properties.featureIndex = s, i.properties.distanceToPoint = r, i;
|
|
545
545
|
}
|
|
546
|
-
function qs(a, e,
|
|
547
|
-
|
|
546
|
+
function qs(a, e, i) {
|
|
547
|
+
i === void 0 && (i = {});
|
|
548
548
|
var r = x(a), s = x(e);
|
|
549
549
|
s[0] += s[0] - r[0] > 180 ? -360 : r[0] - s[0] > 180 ? 360 : 0;
|
|
550
|
-
var T = Ks(r, s), W = gs(T, "meters",
|
|
550
|
+
var T = Ks(r, s), W = gs(T, "meters", i.units);
|
|
551
551
|
return W;
|
|
552
552
|
}
|
|
553
|
-
function Ks(a, e,
|
|
554
|
-
|
|
555
|
-
var r =
|
|
553
|
+
function Ks(a, e, i) {
|
|
554
|
+
i = i === void 0 ? N : Number(i);
|
|
555
|
+
var r = i, s = a[1] * Math.PI / 180, T = e[1] * Math.PI / 180, W = T - s, L = Math.abs(e[0] - a[0]) * Math.PI / 180;
|
|
556
556
|
L > Math.PI && (L -= 2 * Math.PI);
|
|
557
|
-
var A = Math.log(Math.tan(T / 2 + Math.PI / 4) / Math.tan(s / 2 + Math.PI / 4)), d = Math.abs(A) > 1e-11 ? W / A : Math.cos(s),
|
|
557
|
+
var A = Math.log(Math.tan(T / 2 + Math.PI / 4) / Math.tan(s / 2 + Math.PI / 4)), d = Math.abs(A) > 1e-11 ? W / A : Math.cos(s), t = Math.sqrt(W * W + d * d * L * L), l = t * r;
|
|
558
558
|
return l;
|
|
559
559
|
}
|
|
560
|
-
function ns(a, e,
|
|
561
|
-
if (
|
|
560
|
+
function ns(a, e, i) {
|
|
561
|
+
if (i === void 0 && (i = {}), i.method || (i.method = "geodesic"), i.units || (i.units = "kilometers"), !a)
|
|
562
562
|
throw new Error("pt is required");
|
|
563
|
-
if (Array.isArray(a) ? a = U(a) : a.type === "Point" ? a =
|
|
563
|
+
if (Array.isArray(a) ? a = U(a) : a.type === "Point" ? a = is(a) : ps(a, "Point", "point"), !e)
|
|
564
564
|
throw new Error("line is required");
|
|
565
|
-
Array.isArray(e) ? e = K(e) : e.type === "LineString" ? e =
|
|
565
|
+
Array.isArray(e) ? e = K(e) : e.type === "LineString" ? e = is(e) : ps(e, "LineString", "line");
|
|
566
566
|
var r = 1 / 0, s = a.geometry.coordinates;
|
|
567
567
|
return Os(e, function(T) {
|
|
568
|
-
var W = T.geometry.coordinates[0], L = T.geometry.coordinates[1], A = Js(s, W, L,
|
|
568
|
+
var W = T.geometry.coordinates[0], L = T.geometry.coordinates[1], A = Js(s, W, L, i);
|
|
569
569
|
A < r && (r = A);
|
|
570
|
-
}), gs(r, "degrees",
|
|
570
|
+
}), gs(r, "degrees", i.units);
|
|
571
571
|
}
|
|
572
|
-
function Js(a, e,
|
|
573
|
-
var s = [
|
|
572
|
+
function Js(a, e, i, r) {
|
|
573
|
+
var s = [i[0] - e[0], i[1] - e[1]], T = [a[0] - e[0], a[1] - e[1]], W = Ls(T, s);
|
|
574
574
|
if (W <= 0)
|
|
575
575
|
return as(a, e, { method: r.method, units: "degrees" });
|
|
576
576
|
var L = Ls(s, s);
|
|
577
577
|
if (L <= W)
|
|
578
|
-
return as(a,
|
|
578
|
+
return as(a, i, { method: r.method, units: "degrees" });
|
|
579
579
|
var A = W / L, d = [e[0] + A * s[0], e[1] + A * s[1]];
|
|
580
580
|
return as(a, d, { method: r.method, units: "degrees" });
|
|
581
581
|
}
|
|
582
582
|
function Ls(a, e) {
|
|
583
583
|
return a[0] * e[0] + a[1] * e[1];
|
|
584
584
|
}
|
|
585
|
-
function as(a, e,
|
|
586
|
-
return
|
|
585
|
+
function as(a, e, i) {
|
|
586
|
+
return i.method === "planar" ? qs(a, e, i) : ss(a, e, i);
|
|
587
587
|
}
|
|
588
|
-
function Us(a, e,
|
|
588
|
+
function Us(a, e, i, r) {
|
|
589
589
|
if (r = r || {}, !Ys(r)) throw new Error("options is invalid");
|
|
590
590
|
var s, T = [];
|
|
591
591
|
if (a.type === "Feature") s = a.geometry.coordinates;
|
|
592
592
|
else if (a.type === "LineString") s = a.coordinates;
|
|
593
593
|
else throw new Error("input must be a LineString Feature or Geometry");
|
|
594
|
-
for (var W = s.length, L = 0, A, d,
|
|
594
|
+
for (var W = s.length, L = 0, A, d, t, l = 0; l < s.length && !(e >= L && l === s.length - 1); l++) {
|
|
595
595
|
if (L > e && T.length === 0) {
|
|
596
596
|
if (A = e - L, !A)
|
|
597
597
|
return T.push(s[l]), K(T);
|
|
598
|
-
d = fs(s[l], s[l - 1]) - 180,
|
|
598
|
+
d = fs(s[l], s[l - 1]) - 180, t = us(s[l], A, d, r), T.push(t.geometry.coordinates);
|
|
599
599
|
}
|
|
600
|
-
if (L >=
|
|
601
|
-
return A =
|
|
600
|
+
if (L >= i)
|
|
601
|
+
return A = i - L, A ? (d = fs(s[l], s[l - 1]) - 180, t = us(s[l], A, d, r), T.push(t.geometry.coordinates), K(T)) : (T.push(s[l]), K(T));
|
|
602
602
|
if (L >= e && T.push(s[l]), l === s.length - 1)
|
|
603
603
|
return K(T);
|
|
604
604
|
L += ss(s[l], s[l + 1], r);
|
|
@@ -609,12 +609,12 @@ function Us(a, e, t, r) {
|
|
|
609
609
|
return K([u, u]);
|
|
610
610
|
}
|
|
611
611
|
const j = { units: "kilometers" };
|
|
612
|
-
function Qs(a, e,
|
|
613
|
-
var { nearestDistance: s } = rs(a, e), { nearestDistance: T } = rs(a, r), { nearestDistance: W } = rs(a,
|
|
612
|
+
function Qs(a, e, i, r) {
|
|
613
|
+
var { nearestDistance: s } = rs(a, e), { nearestDistance: T } = rs(a, r), { nearestDistance: W } = rs(a, i);
|
|
614
614
|
const L = Math.min(s, W, T);
|
|
615
|
-
return L === s ? e : L === W ?
|
|
615
|
+
return L === s ? e : L === W ? i : r;
|
|
616
616
|
}
|
|
617
|
-
const js = (a, e,
|
|
617
|
+
const js = (a, e, i) => {
|
|
618
618
|
debugger;
|
|
619
619
|
const r = U(a.slice(0, 2)), { nearestCoord: s } = rs(a, e), T = e.findIndex(
|
|
620
620
|
(k) => k[0] == s[0] && k[1] == s[1]
|
|
@@ -630,14 +630,14 @@ const js = (a, e, t) => {
|
|
|
630
630
|
W = L > A ? X : k;
|
|
631
631
|
}
|
|
632
632
|
console.log("附近的点", T, W);
|
|
633
|
-
const d = K([W[0].slice(0, 2), W[1].slice(0, 2)]),
|
|
634
|
-
var u = ns(r, d, j), C = ss(r,
|
|
633
|
+
const d = K([W[0].slice(0, 2), W[1].slice(0, 2)]), t = U(W[0].slice(0, 2)), l = U(W[1].slice(0, 2));
|
|
634
|
+
var u = ns(r, d, j), C = ss(r, t, j) || 0, o = Math.sqrt(C * C - u * u) || 0;
|
|
635
635
|
let c = W[0].slice(0, 2);
|
|
636
636
|
o > 0 && (c = Us(d, 0, o, j).geometry.coordinates[1]);
|
|
637
|
-
const m = ss(
|
|
637
|
+
const m = ss(t, l, j), b = Math.abs(W[0][2] - W[1][2]), I = Math.min(W[0][2], W[1][2]), P = Math.max(W[0][2], W[1][2]), g = W[0][2] > W[1][2] ? P - o / m * b : o / m * b + I;
|
|
638
638
|
console.log("高度差>>>>", b), console.log("最小高度>>>>", I);
|
|
639
|
-
const y = g - a[2],
|
|
640
|
-
console.log("水平距离>>>>",
|
|
639
|
+
const y = g - a[2], v = u * 1e3, _ = Math.sqrt(v * v + y * y);
|
|
640
|
+
console.log("水平距离>>>>", v), console.log("竖直距离>>>>", y), console.log("直线距离>>>>", _);
|
|
641
641
|
const S = n.Cartesian3.fromDegrees(
|
|
642
642
|
a[0],
|
|
643
643
|
a[1],
|
|
@@ -655,7 +655,7 @@ const js = (a, e, t) => {
|
|
|
655
655
|
),
|
|
656
656
|
name: "直线距离",
|
|
657
657
|
label: {
|
|
658
|
-
text: `直线距离${
|
|
658
|
+
text: `直线距离${_.toFixed(1)}米`,
|
|
659
659
|
fillColor: n.Color.fromCssColorString("#eff819"),
|
|
660
660
|
font: "12px sans-serif",
|
|
661
661
|
pixelOffset: new n.Cartesian2(0, 0),
|
|
@@ -664,7 +664,7 @@ const js = (a, e, t) => {
|
|
|
664
664
|
}
|
|
665
665
|
}, Z = [];
|
|
666
666
|
Z.push(S), Z.push(M);
|
|
667
|
-
var
|
|
667
|
+
var D = {
|
|
668
668
|
polyline: {
|
|
669
669
|
show: !0,
|
|
670
670
|
// 定义线条的 Cartesian3 位置的数组
|
|
@@ -692,26 +692,26 @@ const js = (a, e, t) => {
|
|
|
692
692
|
// zIndex: 0,
|
|
693
693
|
}
|
|
694
694
|
};
|
|
695
|
-
|
|
695
|
+
i.add(Y), i.add(D);
|
|
696
696
|
};
|
|
697
697
|
function rs(a, e) {
|
|
698
|
-
const
|
|
698
|
+
const i = U(a.slice(0, 2)), r = [];
|
|
699
699
|
e.forEach((L) => {
|
|
700
700
|
r.push(U([L[0], L[1]]));
|
|
701
701
|
});
|
|
702
702
|
const s = Xs(
|
|
703
703
|
r
|
|
704
|
-
), T = Vs(
|
|
704
|
+
), T = Vs(i, s), W = ss(i, T, j);
|
|
705
705
|
return {
|
|
706
706
|
nearestCoord: T.geometry.coordinates,
|
|
707
707
|
nearestDistance: W
|
|
708
708
|
};
|
|
709
709
|
}
|
|
710
|
-
function B(a, e,
|
|
711
|
-
|
|
710
|
+
function B(a, e, i, r, s) {
|
|
711
|
+
i || (i = new n.HeadingPitchRoll());
|
|
712
712
|
const T = n.Transforms.headingPitchRollQuaternion(
|
|
713
713
|
a,
|
|
714
|
-
|
|
714
|
+
i,
|
|
715
715
|
r,
|
|
716
716
|
s
|
|
717
717
|
), W = n.Matrix4.fromRotationTranslation(
|
|
@@ -726,26 +726,26 @@ function B(a, e, t, r, s) {
|
|
|
726
726
|
);
|
|
727
727
|
}
|
|
728
728
|
function z(a, e) {
|
|
729
|
-
var
|
|
729
|
+
var i = a.cartesianToCartographic(e), r = n.Math.toDegrees(i.latitude), s = n.Math.toDegrees(i.longitude), T = i.height;
|
|
730
730
|
return [s, r, T];
|
|
731
731
|
}
|
|
732
|
-
function Q(a, e,
|
|
733
|
-
const s = e * Math.PI / 180, T = a * Math.PI / 180, W = r * Math.PI / 180, L =
|
|
734
|
-
let
|
|
735
|
-
return
|
|
732
|
+
function Q(a, e, i, r) {
|
|
733
|
+
const s = e * Math.PI / 180, T = a * Math.PI / 180, W = r * Math.PI / 180, L = i * Math.PI / 180, A = Math.sin(L - T) * Math.cos(W), d = Math.cos(s) * Math.sin(W) - Math.sin(s) * Math.cos(W) * Math.cos(L - T);
|
|
734
|
+
let t = Math.atan2(A, d) * 180 / Math.PI;
|
|
735
|
+
return t = (t + 360) % 360, t;
|
|
736
736
|
}
|
|
737
737
|
function f(a, e = 6) {
|
|
738
|
-
const
|
|
738
|
+
const i = [];
|
|
739
739
|
for (var r = 0; r < a.length - 1; r++)
|
|
740
|
-
|
|
740
|
+
i.push(
|
|
741
741
|
...xs(a[r], a[r + 1], e * -1e3, 100)
|
|
742
742
|
);
|
|
743
|
-
return
|
|
743
|
+
return i;
|
|
744
744
|
}
|
|
745
|
-
function xs(a, e,
|
|
746
|
-
var s = [], T = n.Cartographic.fromCartesian(a), W = n.Cartographic.fromCartesian(e), L = T.longitude * 180 / Math.PI, A = T.latitude * 180 / Math.PI, d = W.longitude * 180 / Math.PI,
|
|
747
|
-
(L - d) * (L - d) + (A -
|
|
748
|
-
), u = l *
|
|
745
|
+
function xs(a, e, i, r) {
|
|
746
|
+
var s = [], T = n.Cartographic.fromCartesian(a), W = n.Cartographic.fromCartesian(e), L = T.longitude * 180 / Math.PI, A = T.latitude * 180 / Math.PI, d = W.longitude * 180 / Math.PI, t = W.latitude * 180 / Math.PI, l = Math.sqrt(
|
|
747
|
+
(L - d) * (L - d) + (A - t) * (A - t)
|
|
748
|
+
), u = l * i, C = n.Cartesian3.clone(a), o = n.Cartesian3.clone(e), c = n.Cartesian3.distance(
|
|
749
749
|
C,
|
|
750
750
|
n.Cartesian3.ZERO
|
|
751
751
|
), m = n.Cartesian3.distance(o, n.Cartesian3.ZERO);
|
|
@@ -754,16 +754,16 @@ function xs(a, e, t, r) {
|
|
|
754
754
|
var b = n.Cartesian3.angleBetween(C, o);
|
|
755
755
|
s.push(a);
|
|
756
756
|
for (var I = 1; I < r - 1; I++) {
|
|
757
|
-
var P = I * 1 / (r - 1), g = 1 - P, y = Math.sin(g * b) / Math.sin(b),
|
|
757
|
+
var P = I * 1 / (r - 1), g = 1 - P, y = Math.sin(g * b) / Math.sin(b), v = Math.sin(P * b) / Math.sin(b), _ = n.Cartesian3.multiplyByScalar(
|
|
758
758
|
C,
|
|
759
759
|
y,
|
|
760
760
|
new n.Cartesian3()
|
|
761
761
|
), S = n.Cartesian3.multiplyByScalar(
|
|
762
762
|
o,
|
|
763
|
-
|
|
763
|
+
v,
|
|
764
764
|
new n.Cartesian3()
|
|
765
765
|
), M = n.Cartesian3.add(
|
|
766
|
-
|
|
766
|
+
_,
|
|
767
767
|
S,
|
|
768
768
|
new n.Cartesian3()
|
|
769
769
|
), R = P * Math.PI, E = c * g + m * P + Math.sin(R) * u;
|
|
@@ -775,7 +775,7 @@ function xs(a, e, t, r) {
|
|
|
775
775
|
}
|
|
776
776
|
return s.push(e), s;
|
|
777
777
|
}
|
|
778
|
-
function
|
|
778
|
+
function si(a, e, i = 30) {
|
|
779
779
|
const r = a.length;
|
|
780
780
|
if (r <= 2 || e === 0 || e === r - 1)
|
|
781
781
|
return !1;
|
|
@@ -791,13 +791,13 @@ function st(a, e, t = 30) {
|
|
|
791
791
|
a[e + 1].Longitude,
|
|
792
792
|
a[e + 1].Latitude
|
|
793
793
|
) - s;
|
|
794
|
-
return W > 180 && (W -= 360), W < -180 && (W += 360), Math.abs(W) >=
|
|
794
|
+
return W > 180 && (W -= 360), W < -180 && (W += 360), Math.abs(W) >= i;
|
|
795
795
|
}
|
|
796
|
-
function Ws(a, e,
|
|
796
|
+
function Ws(a, e, i = 2) {
|
|
797
797
|
const r = a.length;
|
|
798
798
|
if (r <= 1)
|
|
799
799
|
return 0;
|
|
800
|
-
if (
|
|
800
|
+
if (si(a, e, 15))
|
|
801
801
|
return e < r - 1 ? Q(
|
|
802
802
|
a[e].Longitude,
|
|
803
803
|
a[e].Latitude,
|
|
@@ -809,7 +809,7 @@ function Ws(a, e, t = 2) {
|
|
|
809
809
|
a[e].Longitude,
|
|
810
810
|
a[e].Latitude
|
|
811
811
|
);
|
|
812
|
-
let s = Math.max(0, e -
|
|
812
|
+
let s = Math.max(0, e - i), T = Math.min(r - 1, e + i);
|
|
813
813
|
if (T - s < 1)
|
|
814
814
|
return e === r - 1 ? Q(
|
|
815
815
|
a[e - 1].Longitude,
|
|
@@ -823,32 +823,32 @@ function Ws(a, e, t = 2) {
|
|
|
823
823
|
a[e + 1].Latitude
|
|
824
824
|
);
|
|
825
825
|
const W = [];
|
|
826
|
-
for (let
|
|
826
|
+
for (let t = s; t < T; t++) {
|
|
827
827
|
const l = Q(
|
|
828
|
-
a[
|
|
829
|
-
a[
|
|
830
|
-
a[
|
|
831
|
-
a[
|
|
828
|
+
a[t].Longitude,
|
|
829
|
+
a[t].Latitude,
|
|
830
|
+
a[t + 1].Longitude,
|
|
831
|
+
a[t + 1].Latitude
|
|
832
832
|
);
|
|
833
833
|
W.push(l);
|
|
834
834
|
}
|
|
835
835
|
if (W.length === 1)
|
|
836
836
|
return W[0];
|
|
837
837
|
let L = 0, A = 0;
|
|
838
|
-
for (const
|
|
839
|
-
const l =
|
|
838
|
+
for (const t of W) {
|
|
839
|
+
const l = t * Math.PI / 180;
|
|
840
840
|
L += Math.cos(l), A += Math.sin(l);
|
|
841
841
|
}
|
|
842
842
|
return (Math.atan2(A, L) * 180 / Math.PI + 360) % 360;
|
|
843
843
|
}
|
|
844
|
-
function
|
|
845
|
-
const
|
|
844
|
+
function ii(a, e) {
|
|
845
|
+
const i = a * Math.PI / 180, r = e * Math.PI / 180, s = Math.cos(i), T = Math.sin(i), W = Math.cos(r), L = Math.sin(r), A = s + W, d = T + L;
|
|
846
846
|
if (Math.abs(A) < 1e-10 && Math.abs(d) < 1e-10)
|
|
847
847
|
return (a + 90) % 360;
|
|
848
|
-
let
|
|
849
|
-
return
|
|
848
|
+
let t = Math.atan2(d, A) * 180 / Math.PI;
|
|
849
|
+
return t = (t + 360) % 360, t;
|
|
850
850
|
}
|
|
851
|
-
class
|
|
851
|
+
class li {
|
|
852
852
|
constructor() {
|
|
853
853
|
w(this, "LineID", "myEntity1");
|
|
854
854
|
w(this, "Tag", "");
|
|
@@ -874,7 +874,7 @@ class lt {
|
|
|
874
874
|
w(this, "LineDistanceDisplaymax", 5e3);
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
|
-
class
|
|
877
|
+
class ui {
|
|
878
878
|
constructor() {
|
|
879
879
|
w(this, "id", "");
|
|
880
880
|
w(this, "modelid", "");
|
|
@@ -886,7 +886,7 @@ class ut {
|
|
|
886
886
|
w(this, "treeScale", 1);
|
|
887
887
|
}
|
|
888
888
|
}
|
|
889
|
-
class
|
|
889
|
+
class ci {
|
|
890
890
|
constructor() {
|
|
891
891
|
// 杆塔id
|
|
892
892
|
w(this, "id", "");
|
|
@@ -918,7 +918,7 @@ class ct {
|
|
|
918
918
|
w(this, "DistanceDisplaymax", 1e3);
|
|
919
919
|
}
|
|
920
920
|
}
|
|
921
|
-
class
|
|
921
|
+
class Ti {
|
|
922
922
|
constructor() {
|
|
923
923
|
// 绝缘子串id
|
|
924
924
|
w(this, "id", "");
|
|
@@ -950,7 +950,7 @@ class Tt {
|
|
|
950
950
|
w(this, "DistanceDisplaymax", 500);
|
|
951
951
|
}
|
|
952
952
|
}
|
|
953
|
-
class
|
|
953
|
+
class Ci {
|
|
954
954
|
constructor() {
|
|
955
955
|
w(this, "name", "");
|
|
956
956
|
w(this, "X", -45);
|
|
@@ -958,11 +958,11 @@ class Ct {
|
|
|
958
958
|
w(this, "Z", 0);
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
var G = /* @__PURE__ */ ((a) => (a[a.A相 = 0] = "A相", a[a.B相 = 1] = "B相", a[a.C相 = 2] = "C相", a[a.地线1 = 3] = "地线1", a[a.地线2 = 4] = "地线2", a))(G || {}), V = /* @__PURE__ */ ((a) => (a[a.直线塔 = 0] = "直线塔", a[a.耐张塔 = 1] = "耐张塔", a[a.门架塔 = 2] = "门架塔", a[a.换位塔 = 3] = "换位塔", a))(V || {}),
|
|
961
|
+
var G = /* @__PURE__ */ ((a) => (a[a.A相 = 0] = "A相", a[a.B相 = 1] = "B相", a[a.C相 = 2] = "C相", a[a.地线1 = 3] = "地线1", a[a.地线2 = 4] = "地线2", a))(G || {}), V = /* @__PURE__ */ ((a) => (a[a.直线塔 = 0] = "直线塔", a[a.耐张塔 = 1] = "耐张塔", a[a.门架塔 = 2] = "门架塔", a[a.换位塔 = 3] = "换位塔", a))(V || {}), ti = /* @__PURE__ */ ((a) => (a[a.交流单回路 = 0] = "交流单回路", a[a.交流双回路 = 1] = "交流双回路", a[a.直流单回路 = 2] = "直流单回路", a[a.直流双回路 = 3] = "直流双回路", a[a.交流四回路 = 4] = "交流四回路", a))(ti || {}), hs = /* @__PURE__ */ ((a) => (a[a.地线 = 0] = "地线", a[a.回路一 = 1] = "回路一", a[a.回路二 = 2] = "回路二", a[a.回路三 = 3] = "回路三", a[a.回路四 = 4] = "回路四", a))(hs || {}), F = /* @__PURE__ */ ((a) => (a[a.悬垂串 = 0] = "悬垂串", a[a.耐张串 = 1] = "耐张串", a[a.跳线串 = 2] = "跳线串", a[a.硬跳串 = 3] = "硬跳串", a[a.V串 = 4] = "V串", a[a.地线串 = 5] = "地线串", a[a.绕跳临时 = 6] = "绕跳临时", a))(F || {}), p = /* @__PURE__ */ ((a) => (a[a.单分裂 = 0] = "单分裂", a[a.双分裂 = 1] = "双分裂", a[a.四分裂 = 2] = "四分裂", a[a.六分裂 = 3] = "六分裂", a[a.八分裂 = 4] = "八分裂", a))(p || {});
|
|
962
962
|
const es = class es {
|
|
963
963
|
// private arcLine1D2: Cesium.Cartesian3[]= [];
|
|
964
964
|
// 类的构造函数,用于初始化属性
|
|
965
|
-
constructor(e,
|
|
965
|
+
constructor(e, i, r) {
|
|
966
966
|
//三维场景
|
|
967
967
|
w(this, "viewer");
|
|
968
968
|
w(this, "LineInfo");
|
|
@@ -997,6 +997,10 @@ const es = class es {
|
|
|
997
997
|
// 是否启用动态加载(默认启用以解决800km卡顿问题)
|
|
998
998
|
w(this, "loadedTowerIndices", /* @__PURE__ */ new Set());
|
|
999
999
|
// 已加载的塔索引
|
|
1000
|
+
w(this, "isTreeModelRemoved", !1);
|
|
1001
|
+
// 树木模型是否被移除
|
|
1002
|
+
w(this, "isLineModelRemoved", !1);
|
|
1003
|
+
// 线路模型是否被移除
|
|
1000
1004
|
w(this, "cameraMoveHandler", null);
|
|
1001
1005
|
// 相机移动监听器
|
|
1002
1006
|
// 回路1单根导线1
|
|
@@ -1075,24 +1079,24 @@ const es = class es {
|
|
|
1075
1079
|
w(this, "modelCache", /* @__PURE__ */ new Map());
|
|
1076
1080
|
// 在类中添加私有属性来存储事件处理器和标记数据源
|
|
1077
1081
|
w(this, "treeHandler", null);
|
|
1078
|
-
this.Keym = r, this.viewer = e, this.LineInfo =
|
|
1082
|
+
this.Keym = r, this.viewer = e, this.LineInfo = i, this.dataSource2 = new n.CustomDataSource(this.LineInfo.LineID), this.entityCollection2 = this.dataSource2.entities, this.dataSourcetree = new n.CustomDataSource(this.LineInfo.LineID + "tree"), this.entityCollectiontree = this.dataSourcetree.entities, this.dataSourceplotting = new n.CustomDataSource("plotting"), this.entityCollectionplotting = this.dataSourceplotting.entities, this.LinedataSource2 = new n.CustomDataSource(this.LineInfo.LineID + "daoxian"), this.LineentityCollection2 = this.LinedataSource2.entities;
|
|
1079
1083
|
}
|
|
1080
1084
|
/**
|
|
1081
1085
|
* 创建模型缓存键
|
|
1082
1086
|
*/
|
|
1083
|
-
createModelCacheKey(e,
|
|
1084
|
-
return `${e}_${
|
|
1087
|
+
createModelCacheKey(e, i, r, s) {
|
|
1088
|
+
return `${e}_${i}_${r}_${s}`;
|
|
1085
1089
|
}
|
|
1086
1090
|
/**
|
|
1087
1091
|
* 从缓存中获取或创建模型配置
|
|
1088
1092
|
* 注意:距离参数会自动限制最大值以避免性能问题
|
|
1089
1093
|
*/
|
|
1090
|
-
getCachedModelConfig(e,
|
|
1091
|
-
const T = Math.max(0, r), W = Math.min(s, 5e4), L = this.createModelCacheKey(e,
|
|
1094
|
+
getCachedModelConfig(e, i, r, s) {
|
|
1095
|
+
const T = Math.max(0, r), W = Math.min(s, 5e4), L = this.createModelCacheKey(e, i, T, W);
|
|
1092
1096
|
if (!this.modelCache.has(L)) {
|
|
1093
1097
|
const A = {
|
|
1094
1098
|
uri: e,
|
|
1095
|
-
scale:
|
|
1099
|
+
scale: i,
|
|
1096
1100
|
distanceDisplayCondition: [T, W]
|
|
1097
1101
|
};
|
|
1098
1102
|
this.modelCache.set(L, A);
|
|
@@ -1102,7 +1106,7 @@ const es = class es {
|
|
|
1102
1106
|
/**
|
|
1103
1107
|
* 统一的模型添加方法,减少重复代码
|
|
1104
1108
|
*/
|
|
1105
|
-
addModelToCollection(e,
|
|
1109
|
+
addModelToCollection(e, i, r, s, T, W, L) {
|
|
1106
1110
|
const A = this.getCachedModelConfig(
|
|
1107
1111
|
s,
|
|
1108
1112
|
W,
|
|
@@ -1112,7 +1116,7 @@ const es = class es {
|
|
|
1112
1116
|
this.entityCollection2.add(
|
|
1113
1117
|
Cs(
|
|
1114
1118
|
e,
|
|
1115
|
-
|
|
1119
|
+
i,
|
|
1116
1120
|
r,
|
|
1117
1121
|
A.uri,
|
|
1118
1122
|
T,
|
|
@@ -1170,13 +1174,13 @@ const es = class es {
|
|
|
1170
1174
|
var A;
|
|
1171
1175
|
if (!this.viewer.camera || this.offsetTowers.length === 0)
|
|
1172
1176
|
return { start: 0, end: 0 };
|
|
1173
|
-
const e = this.viewer.camera.position,
|
|
1177
|
+
const e = this.viewer.camera.position, i = ((A = this.viewer.camera.positionCartographic) == null ? void 0 : A.height) || 1e3;
|
|
1174
1178
|
let r = 5;
|
|
1175
|
-
|
|
1179
|
+
i > 5e4 ? r = 2 : i > 1e4 ? r = 3 : i > 5e3 ? r = 5 : r = 10;
|
|
1176
1180
|
let s = 0, T = Number.MAX_VALUE;
|
|
1177
1181
|
for (let d = 0; d < this.offsetTowers.length; d++) {
|
|
1178
|
-
const
|
|
1179
|
-
|
|
1182
|
+
const t = n.Cartesian3.distance(e, this.offsetTowers[d]);
|
|
1183
|
+
t < T && (T = t, s = d);
|
|
1180
1184
|
}
|
|
1181
1185
|
const W = Math.max(0, s - r), L = Math.min(this.offsetTowers.length - 1, s + r);
|
|
1182
1186
|
return { start: W, end: L };
|
|
@@ -1185,8 +1189,8 @@ const es = class es {
|
|
|
1185
1189
|
* 更新可见范围内的塔(加载新塔,可选择性卸载远处的塔)
|
|
1186
1190
|
*/
|
|
1187
1191
|
updateVisibleTowers() {
|
|
1188
|
-
const { start: e, end:
|
|
1189
|
-
this.loadTowersInRange(e,
|
|
1192
|
+
const { start: e, end: i } = this.getVisibleTowerIndices();
|
|
1193
|
+
this.isLineModelRemoved || this.loadTowersInRange(e, i), this.isTreeModelRemoved || this.updateVisibleTrees();
|
|
1190
1194
|
}
|
|
1191
1195
|
/**
|
|
1192
1196
|
* 计算相机视野范围内的树木索引
|
|
@@ -1195,9 +1199,9 @@ const es = class es {
|
|
|
1195
1199
|
var T;
|
|
1196
1200
|
if (!this.viewer.camera || this.offsetTrees.length === 0)
|
|
1197
1201
|
return [];
|
|
1198
|
-
const e = this.viewer.camera.position,
|
|
1199
|
-
let r = Math.max(5e3,
|
|
1200
|
-
|
|
1202
|
+
const e = this.viewer.camera.position, i = ((T = this.viewer.camera.positionCartographic) == null ? void 0 : T.height) || 1e3;
|
|
1203
|
+
let r = Math.max(5e3, i * 2);
|
|
1204
|
+
i > 5e4 && (r = 1e5);
|
|
1201
1205
|
const s = [];
|
|
1202
1206
|
for (let W = 0; W < this.offsetTrees.length; W++) {
|
|
1203
1207
|
const L = this.offsetTrees[W];
|
|
@@ -1214,10 +1218,12 @@ const es = class es {
|
|
|
1214
1218
|
* 更新可见的树木
|
|
1215
1219
|
*/
|
|
1216
1220
|
updateVisibleTrees() {
|
|
1217
|
-
|
|
1221
|
+
if (this.isTreeModelRemoved)
|
|
1222
|
+
return;
|
|
1223
|
+
const e = this.getVisibleTreeIndices(), i = [];
|
|
1218
1224
|
this.loadedTreeIndices.forEach((r) => {
|
|
1219
|
-
e.includes(r) ||
|
|
1220
|
-
}),
|
|
1225
|
+
e.includes(r) || i.push(r);
|
|
1226
|
+
}), i.forEach((r) => {
|
|
1221
1227
|
const s = "tree-" + this.LineInfo.Trees[r].id;
|
|
1222
1228
|
this.entityCollectiontree.removeById(s), this.loadedTreeIndices.delete(r);
|
|
1223
1229
|
}), e.forEach((r) => {
|
|
@@ -1249,15 +1255,15 @@ const es = class es {
|
|
|
1249
1255
|
this.LineInfo.towers[0].RollX === void 0 && (this.LineInfo.towers[0].RollX = 90);
|
|
1250
1256
|
return;
|
|
1251
1257
|
}
|
|
1252
|
-
for (let
|
|
1258
|
+
for (let i = 0; i < e; i++) {
|
|
1253
1259
|
let r = 0;
|
|
1254
|
-
if (this.LineInfo.towers[
|
|
1255
|
-
if (
|
|
1256
|
-
r = (Ws(this.LineInfo.towers,
|
|
1257
|
-
else if (
|
|
1258
|
-
r = (Ws(this.LineInfo.towers,
|
|
1260
|
+
if (this.LineInfo.towers[i].type === V.耐张塔)
|
|
1261
|
+
if (i === 0)
|
|
1262
|
+
r = (Ws(this.LineInfo.towers, i, 3) - 90 + 360) % 360;
|
|
1263
|
+
else if (i === e - 1)
|
|
1264
|
+
r = (Ws(this.LineInfo.towers, i, 3) - 90 + 360) % 360;
|
|
1259
1265
|
else {
|
|
1260
|
-
const s = this.LineInfo.towers[
|
|
1266
|
+
const s = this.LineInfo.towers[i - 1], T = this.LineInfo.towers[i], W = this.LineInfo.towers[i + 1], L = Q(
|
|
1261
1267
|
s.Longitude,
|
|
1262
1268
|
s.Latitude,
|
|
1263
1269
|
T.Longitude,
|
|
@@ -1268,21 +1274,21 @@ const es = class es {
|
|
|
1268
1274
|
W.Longitude,
|
|
1269
1275
|
W.Latitude
|
|
1270
1276
|
);
|
|
1271
|
-
r = (
|
|
1277
|
+
r = (ii(L, A) - 90 + 360) % 360;
|
|
1272
1278
|
}
|
|
1273
1279
|
else
|
|
1274
|
-
r = (Ws(this.LineInfo.towers,
|
|
1275
|
-
this.LineInfo.towers[
|
|
1280
|
+
r = (Ws(this.LineInfo.towers, i, 2) - 90 + 360) % 360;
|
|
1281
|
+
this.LineInfo.towers[i].RollX = r;
|
|
1276
1282
|
}
|
|
1277
1283
|
}
|
|
1278
1284
|
}
|
|
1279
1285
|
/**
|
|
1280
1286
|
* 加载指定范围内的塔、绝缘子和相关导线(完整的动态加载实现)
|
|
1281
1287
|
*/
|
|
1282
|
-
loadTowersInRange(e,
|
|
1283
|
-
if (e < 0 ||
|
|
1288
|
+
loadTowersInRange(e, i) {
|
|
1289
|
+
if (e < 0 || i >= this.LineInfo.towers.length)
|
|
1284
1290
|
return;
|
|
1285
|
-
const r = Math.max(0, e - 1), s = Math.min(this.LineInfo.towers.length - 1,
|
|
1291
|
+
const r = Math.max(0, e - 1), s = Math.min(this.LineInfo.towers.length - 1, i + 1);
|
|
1286
1292
|
for (let T = r; T <= s; T++)
|
|
1287
1293
|
this.loadedTowerIndices.has(T) || (this.loadTowerAndCollectWirePoints(T), this.loadedTowerIndices.add(T));
|
|
1288
1294
|
for (let T = r; T < s; T++) {
|
|
@@ -1294,14 +1300,14 @@ const es = class es {
|
|
|
1294
1300
|
* 加载单个塔和绝缘子,并收集导线挂点信息用于后续导线计算
|
|
1295
1301
|
*/
|
|
1296
1302
|
loadTowerAndCollectWirePoints(e) {
|
|
1297
|
-
const
|
|
1303
|
+
const i = this.offsetTowers[e], r = new n.HeadingPitchRoll(
|
|
1298
1304
|
n.Math.toRadians(this.LineInfo.towers[e].RollX),
|
|
1299
1305
|
n.Math.toRadians(this.LineInfo.towers[e].RollY),
|
|
1300
1306
|
n.Math.toRadians(this.LineInfo.towers[e].RollZ)
|
|
1301
1307
|
);
|
|
1302
1308
|
this.addModelToCollection(
|
|
1303
1309
|
this.LineInfo.towers[e].id,
|
|
1304
|
-
|
|
1310
|
+
i,
|
|
1305
1311
|
this.LineInfo.towers[e].name,
|
|
1306
1312
|
this.LineInfo.towers[e].towerModelUri,
|
|
1307
1313
|
r,
|
|
@@ -1313,7 +1319,7 @@ const es = class es {
|
|
|
1313
1319
|
const L = [];
|
|
1314
1320
|
this.LineInfo.towers[e].Insulators.forEach((A) => {
|
|
1315
1321
|
const d = B(
|
|
1316
|
-
|
|
1322
|
+
i,
|
|
1317
1323
|
new n.Cartesian3(
|
|
1318
1324
|
this.LineInfo.towers[e].towerPoint[W].X,
|
|
1319
1325
|
this.LineInfo.towers[e].towerPoint[W].Y,
|
|
@@ -1321,35 +1327,35 @@ const es = class es {
|
|
|
1321
1327
|
),
|
|
1322
1328
|
this.LineInfo.towers[e].type === V.耐张塔 ? T : s
|
|
1323
1329
|
);
|
|
1324
|
-
let
|
|
1330
|
+
let t, l;
|
|
1325
1331
|
if (this.autoCalculateRollX ? l = this.LineInfo.towers[e].RollX : l = A.RollX, this.LineInfo.towers[e].type === V.耐张塔)
|
|
1326
1332
|
switch (A.type) {
|
|
1327
|
-
case
|
|
1328
|
-
|
|
1333
|
+
case F.耐张串:
|
|
1334
|
+
t = A.WairFX === "进" ? new n.HeadingPitchRoll(n.Math.toRadians(l), n.Math.toRadians(-180), n.Math.toRadians(180)) : new n.HeadingPitchRoll(n.Math.toRadians(l), n.Math.toRadians(0), n.Math.toRadians(0));
|
|
1329
1335
|
break;
|
|
1330
|
-
case
|
|
1331
|
-
|
|
1336
|
+
case F.跳线串:
|
|
1337
|
+
t = new n.HeadingPitchRoll(
|
|
1332
1338
|
n.Math.toRadians(l),
|
|
1333
1339
|
n.Math.toRadians(A.RollY),
|
|
1334
1340
|
n.Math.toRadians(A.RollZ)
|
|
1335
1341
|
);
|
|
1336
1342
|
break;
|
|
1337
|
-
case
|
|
1338
|
-
|
|
1343
|
+
case F.地线串:
|
|
1344
|
+
t = new n.HeadingPitchRoll(
|
|
1339
1345
|
n.Math.toRadians(l),
|
|
1340
1346
|
n.Math.toRadians(A.RollY),
|
|
1341
1347
|
n.Math.toRadians(A.RollZ)
|
|
1342
1348
|
);
|
|
1343
1349
|
break;
|
|
1344
1350
|
default:
|
|
1345
|
-
|
|
1351
|
+
t = new n.HeadingPitchRoll(
|
|
1346
1352
|
n.Math.toRadians(l),
|
|
1347
1353
|
n.Math.toRadians(A.RollY),
|
|
1348
1354
|
n.Math.toRadians(A.RollZ)
|
|
1349
1355
|
);
|
|
1350
1356
|
}
|
|
1351
1357
|
else
|
|
1352
|
-
|
|
1358
|
+
t = new n.HeadingPitchRoll(
|
|
1353
1359
|
n.Math.toRadians(l),
|
|
1354
1360
|
n.Math.toRadians(A.RollY),
|
|
1355
1361
|
n.Math.toRadians(A.RollZ)
|
|
@@ -1359,27 +1365,27 @@ const es = class es {
|
|
|
1359
1365
|
d,
|
|
1360
1366
|
A.name,
|
|
1361
1367
|
A.InsulatorModelUri,
|
|
1362
|
-
|
|
1368
|
+
t,
|
|
1363
1369
|
A.InsulatorScale,
|
|
1364
1370
|
[A.DistanceDisplaymin, A.DistanceDisplaymax]
|
|
1365
1371
|
);
|
|
1366
1372
|
const u = {
|
|
1367
1373
|
insulator: A,
|
|
1368
1374
|
insulatorIndex: W,
|
|
1369
|
-
position:
|
|
1375
|
+
position: i,
|
|
1370
1376
|
lineroll: s,
|
|
1371
1377
|
WairPoint: []
|
|
1372
1378
|
};
|
|
1373
1379
|
A.InsulatorPoint.forEach((C) => {
|
|
1374
|
-
C.Y = C.Y + this.LineInfo.towers[e].towerPoint[W].Y, C.Z = C.Z + this.LineInfo.towers[e].towerPoint[W].Z, u.WairPoint.push(B(
|
|
1380
|
+
C.Y = C.Y + this.LineInfo.towers[e].towerPoint[W].Y, C.Z = C.Z + this.LineInfo.towers[e].towerPoint[W].Z, u.WairPoint.push(B(i, new n.Cartesian3(C.X, C.Y, C.Z), s));
|
|
1375
1381
|
}), L.push(u), W++;
|
|
1376
1382
|
}), this.towerWirePoints.set(e, L);
|
|
1377
1383
|
}
|
|
1378
1384
|
/**
|
|
1379
1385
|
* 加载两个相邻塔之间的导线段
|
|
1380
1386
|
*/
|
|
1381
|
-
loadWireSegmentBetweenTowers(e,
|
|
1382
|
-
const r = this.towerWirePoints.get(e), s = this.towerWirePoints.get(
|
|
1387
|
+
loadWireSegmentBetweenTowers(e, i) {
|
|
1388
|
+
const r = this.towerWirePoints.get(e), s = this.towerWirePoints.get(i);
|
|
1383
1389
|
!r || !s || this.resetWireArraysForTwoTowers();
|
|
1384
1390
|
}
|
|
1385
1391
|
/**
|
|
@@ -1398,13 +1404,13 @@ const es = class es {
|
|
|
1398
1404
|
* 只加载导线,不加载杆塔和绝缘子(用于动态加载模式)
|
|
1399
1405
|
*/
|
|
1400
1406
|
loadAllWiresOnly() {
|
|
1401
|
-
const e = new n.EntityCollection(),
|
|
1407
|
+
const e = new n.EntityCollection(), i = this.entityCollection2;
|
|
1402
1408
|
this.entityCollection2 = e, this.loadAllTowersAtOnce();
|
|
1403
1409
|
const r = [];
|
|
1404
1410
|
e.values.forEach((s) => {
|
|
1405
1411
|
var T;
|
|
1406
1412
|
s.name && (s.name.includes("导线") || s.name.includes("daoxian") || (T = s.id) != null && T.toString().includes("daoxian")) && r.push(s);
|
|
1407
|
-
}), this.entityCollection2 =
|
|
1413
|
+
}), this.entityCollection2 = i, r.forEach((s) => {
|
|
1408
1414
|
this.entityCollection2.add(s);
|
|
1409
1415
|
}), e.removeAll();
|
|
1410
1416
|
}
|
|
@@ -1412,7 +1418,7 @@ const es = class es {
|
|
|
1412
1418
|
* 一次性加载所有塔(兼容模式,大数据量时会卡顿)
|
|
1413
1419
|
*/
|
|
1414
1420
|
loadAllTowersAtOnce() {
|
|
1415
|
-
let e = 0,
|
|
1421
|
+
let e = 0, i = 0;
|
|
1416
1422
|
this.offsetTowers.forEach((r, s) => {
|
|
1417
1423
|
const T = new n.HeadingPitchRoll(
|
|
1418
1424
|
n.Math.toRadians(this.LineInfo.towers[s].RollX),
|
|
@@ -1430,7 +1436,7 @@ const es = class es {
|
|
|
1430
1436
|
);
|
|
1431
1437
|
const W = new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[s].RollX), 0, 0), L = new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[s].RollX), 0, 0);
|
|
1432
1438
|
let A = 0;
|
|
1433
|
-
if (this.LineInfo.towers[s].Insulators.forEach((
|
|
1439
|
+
if (this.LineInfo.towers[s].Insulators.forEach((t) => {
|
|
1434
1440
|
const l = B(
|
|
1435
1441
|
r,
|
|
1436
1442
|
new n.Cartesian3(
|
|
@@ -1441,58 +1447,58 @@ const es = class es {
|
|
|
1441
1447
|
this.LineInfo.towers[s].type === V.耐张塔 ? L : W
|
|
1442
1448
|
);
|
|
1443
1449
|
let u, C;
|
|
1444
|
-
if (this.autoCalculateRollX ? C = this.LineInfo.towers[s].RollX : C =
|
|
1445
|
-
switch (
|
|
1446
|
-
case
|
|
1447
|
-
u =
|
|
1450
|
+
if (this.autoCalculateRollX ? C = this.LineInfo.towers[s].RollX : C = t.RollX, this.LineInfo.towers[s].type === V.耐张塔)
|
|
1451
|
+
switch (t.type) {
|
|
1452
|
+
case F.耐张串:
|
|
1453
|
+
u = t.WairFX === "进" ? new n.HeadingPitchRoll(n.Math.toRadians(C), n.Math.toRadians(-180), n.Math.toRadians(180)) : new n.HeadingPitchRoll(n.Math.toRadians(C), n.Math.toRadians(0), n.Math.toRadians(0));
|
|
1448
1454
|
break;
|
|
1449
|
-
case
|
|
1455
|
+
case F.跳线串:
|
|
1450
1456
|
u = new n.HeadingPitchRoll(
|
|
1451
1457
|
n.Math.toRadians(C),
|
|
1452
|
-
n.Math.toRadians(
|
|
1453
|
-
n.Math.toRadians(
|
|
1458
|
+
n.Math.toRadians(t.RollY),
|
|
1459
|
+
n.Math.toRadians(t.RollZ)
|
|
1454
1460
|
);
|
|
1455
1461
|
break;
|
|
1456
|
-
case
|
|
1462
|
+
case F.地线串:
|
|
1457
1463
|
u = new n.HeadingPitchRoll(
|
|
1458
1464
|
n.Math.toRadians(C),
|
|
1459
|
-
n.Math.toRadians(
|
|
1460
|
-
n.Math.toRadians(
|
|
1465
|
+
n.Math.toRadians(t.RollY),
|
|
1466
|
+
n.Math.toRadians(t.RollZ)
|
|
1461
1467
|
);
|
|
1462
1468
|
break;
|
|
1463
1469
|
default:
|
|
1464
1470
|
u = new n.HeadingPitchRoll(
|
|
1465
1471
|
n.Math.toRadians(C),
|
|
1466
|
-
n.Math.toRadians(
|
|
1467
|
-
n.Math.toRadians(
|
|
1472
|
+
n.Math.toRadians(t.RollY),
|
|
1473
|
+
n.Math.toRadians(t.RollZ)
|
|
1468
1474
|
);
|
|
1469
1475
|
}
|
|
1470
1476
|
else
|
|
1471
1477
|
u = new n.HeadingPitchRoll(
|
|
1472
1478
|
n.Math.toRadians(C),
|
|
1473
|
-
n.Math.toRadians(
|
|
1474
|
-
n.Math.toRadians(
|
|
1479
|
+
n.Math.toRadians(t.RollY),
|
|
1480
|
+
n.Math.toRadians(t.RollZ)
|
|
1475
1481
|
);
|
|
1476
1482
|
this.addModelToCollection(
|
|
1477
|
-
|
|
1483
|
+
t.id,
|
|
1478
1484
|
l,
|
|
1479
|
-
|
|
1480
|
-
|
|
1485
|
+
t.name,
|
|
1486
|
+
t.InsulatorModelUri,
|
|
1481
1487
|
u,
|
|
1482
|
-
|
|
1483
|
-
[
|
|
1488
|
+
t.InsulatorScale,
|
|
1489
|
+
[t.DistanceDisplaymin, t.DistanceDisplaymax]
|
|
1484
1490
|
);
|
|
1485
1491
|
const o = [];
|
|
1486
|
-
switch (
|
|
1492
|
+
switch (t.InsulatorPoint.forEach((c) => {
|
|
1487
1493
|
c.Y = c.Y + this.LineInfo.towers[s].towerPoint[A].Y, c.Z = c.Z + this.LineInfo.towers[s].towerPoint[A].Z, o.push(B(r, new n.Cartesian3(c.X, c.Y, c.Z), W));
|
|
1488
|
-
}),
|
|
1494
|
+
}), t.linenum) {
|
|
1489
1495
|
case hs.回路一:
|
|
1490
1496
|
if (this.LineInfo.ISPhaseSequence)
|
|
1491
1497
|
if (this.LineInfo.towers[s].type == V.耐张塔)
|
|
1492
|
-
switch (
|
|
1498
|
+
switch (t.PhaseSequence) {
|
|
1493
1499
|
case G.A相:
|
|
1494
|
-
if (
|
|
1495
|
-
if (
|
|
1500
|
+
if (t.type == F.耐张串)
|
|
1501
|
+
if (t.WairFX == "进")
|
|
1496
1502
|
switch (this.LineInfo.Wairnum) {
|
|
1497
1503
|
case p.单分裂:
|
|
1498
1504
|
this.offsetWires11.push(o[0]), this.ToffsetWires1A1.push(o[0]);
|
|
@@ -1513,27 +1519,27 @@ const es = class es {
|
|
|
1513
1519
|
else
|
|
1514
1520
|
switch (this.LineInfo.Wairnum) {
|
|
1515
1521
|
case p.单分裂:
|
|
1516
|
-
const c = B(r, new n.Cartesian3(
|
|
1522
|
+
const c = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W);
|
|
1517
1523
|
this.offsetWires11.push(c), this.ToffsetWires1A2.push(c);
|
|
1518
1524
|
break;
|
|
1519
1525
|
case p.双分裂:
|
|
1520
|
-
const m = B(r, new n.Cartesian3(
|
|
1526
|
+
const m = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), b = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W);
|
|
1521
1527
|
this.offsetWires11.push(m), this.offsetWires11.push(b), this.ToffsetWires1A2.push(m), this.ToffsetWires1A2.push(b);
|
|
1522
1528
|
break;
|
|
1523
1529
|
case p.四分裂:
|
|
1524
|
-
const I = B(r, new n.Cartesian3(
|
|
1530
|
+
const I = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), P = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), g = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), y = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W);
|
|
1525
1531
|
this.offsetWires11.push(I), this.offsetWires11.push(P), this.offsetWires11.push(g), this.offsetWires11.push(y), this.ToffsetWires1A2.push(I), this.ToffsetWires1A2.push(P), this.ToffsetWires1A2.push(g), this.ToffsetWires1A2.push(y);
|
|
1526
1532
|
break;
|
|
1527
1533
|
case p.六分裂:
|
|
1528
|
-
const
|
|
1529
|
-
this.offsetWires11.push(
|
|
1534
|
+
const v = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), _ = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), S = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), R = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), E = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W);
|
|
1535
|
+
this.offsetWires11.push(v), this.offsetWires11.push(_), this.offsetWires11.push(S), this.offsetWires11.push(M), this.offsetWires11.push(R), this.offsetWires11.push(E), this.ToffsetWires1A2.push(v), this.ToffsetWires1A2.push(_), this.ToffsetWires1A2.push(S), this.ToffsetWires1A2.push(M), this.ToffsetWires1A2.push(R), this.ToffsetWires1A2.push(E);
|
|
1530
1536
|
break;
|
|
1531
1537
|
case p.八分裂:
|
|
1532
|
-
const Y = B(r, new n.Cartesian3(
|
|
1533
|
-
this.offsetWires11.push(Y), this.offsetWires11.push(Z), this.offsetWires11.push(
|
|
1538
|
+
const Y = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), Z = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), D = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), k = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), X = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), H = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W), O = B(r, new n.Cartesian3(t.InsulatorPoint[6].X * -1, t.InsulatorPoint[6].Y, t.InsulatorPoint[6].Z), W), $ = B(r, new n.Cartesian3(t.InsulatorPoint[7].X * -1, t.InsulatorPoint[7].Y, t.InsulatorPoint[7].Z), W);
|
|
1539
|
+
this.offsetWires11.push(Y), this.offsetWires11.push(Z), this.offsetWires11.push(D), this.offsetWires11.push(k), this.offsetWires11.push(X), this.offsetWires11.push(H), this.offsetWires11.push(O), this.offsetWires11.push($), this.ToffsetWires1A2.push(Y), this.ToffsetWires1A2.push(Z), this.ToffsetWires1A2.push(D), this.ToffsetWires1A2.push(k), this.ToffsetWires1A2.push(X), this.ToffsetWires1A2.push(H), this.ToffsetWires1A2.push(O), this.ToffsetWires1A2.push($);
|
|
1534
1540
|
break;
|
|
1535
1541
|
}
|
|
1536
|
-
else if (
|
|
1542
|
+
else if (t.type == F.跳线串)
|
|
1537
1543
|
switch (this.LineInfo.Wairnum) {
|
|
1538
1544
|
case p.单分裂:
|
|
1539
1545
|
this.ToffsetWires1A1.push(o[0]), this.ToffsetWires1A2.push(o[1]);
|
|
@@ -1553,8 +1559,8 @@ const es = class es {
|
|
|
1553
1559
|
}
|
|
1554
1560
|
break;
|
|
1555
1561
|
case G.B相:
|
|
1556
|
-
if (
|
|
1557
|
-
if (
|
|
1562
|
+
if (t.type == F.耐张串)
|
|
1563
|
+
if (t.WairFX == "进")
|
|
1558
1564
|
switch (this.LineInfo.Wairnum) {
|
|
1559
1565
|
case p.单分裂:
|
|
1560
1566
|
this.offsetWires12.push(o[0]), this.ToffsetWires1B1.push(o[1]);
|
|
@@ -1575,27 +1581,27 @@ const es = class es {
|
|
|
1575
1581
|
else
|
|
1576
1582
|
switch (this.LineInfo.Wairnum) {
|
|
1577
1583
|
case p.单分裂:
|
|
1578
|
-
const c = B(r, new n.Cartesian3(
|
|
1584
|
+
const c = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W);
|
|
1579
1585
|
this.offsetWires12.push(c), this.ToffsetWires1B2.push(c);
|
|
1580
1586
|
break;
|
|
1581
1587
|
case p.双分裂:
|
|
1582
|
-
const m = B(r, new n.Cartesian3(
|
|
1588
|
+
const m = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), b = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W);
|
|
1583
1589
|
this.offsetWires12.push(m), this.offsetWires12.push(b), this.ToffsetWires1B2.push(m), this.ToffsetWires1B2.push(b);
|
|
1584
1590
|
break;
|
|
1585
1591
|
case p.四分裂:
|
|
1586
|
-
const I = B(r, new n.Cartesian3(
|
|
1592
|
+
const I = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), P = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), g = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), y = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W);
|
|
1587
1593
|
this.offsetWires12.push(I), this.offsetWires12.push(P), this.offsetWires12.push(g), this.offsetWires12.push(y), this.ToffsetWires1B2.push(I), this.ToffsetWires1B2.push(P), this.ToffsetWires1B2.push(g), this.ToffsetWires1B2.push(y);
|
|
1588
1594
|
break;
|
|
1589
1595
|
case p.六分裂:
|
|
1590
|
-
const
|
|
1591
|
-
this.offsetWires12.push(
|
|
1596
|
+
const v = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), _ = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), S = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), R = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), E = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W);
|
|
1597
|
+
this.offsetWires12.push(v), this.offsetWires12.push(_), this.offsetWires12.push(S), this.offsetWires12.push(M), this.offsetWires12.push(R), this.offsetWires12.push(E), this.ToffsetWires1B2.push(v), this.ToffsetWires1B2.push(_), this.ToffsetWires1B2.push(S), this.ToffsetWires1B2.push(M), this.ToffsetWires1B2.push(R), this.ToffsetWires1B2.push(E);
|
|
1592
1598
|
break;
|
|
1593
1599
|
case p.八分裂:
|
|
1594
|
-
const Y = B(r, new n.Cartesian3(
|
|
1595
|
-
this.offsetWires12.push(Y), this.offsetWires12.push(Z), this.offsetWires12.push(
|
|
1600
|
+
const Y = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), Z = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), D = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), k = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), X = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), H = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W), O = B(r, new n.Cartesian3(t.InsulatorPoint[6].X * -1, t.InsulatorPoint[6].Y, t.InsulatorPoint[6].Z), W), $ = B(r, new n.Cartesian3(t.InsulatorPoint[7].X * -1, t.InsulatorPoint[7].Y, t.InsulatorPoint[7].Z), W);
|
|
1601
|
+
this.offsetWires12.push(Y), this.offsetWires12.push(Z), this.offsetWires12.push(D), this.offsetWires12.push(k), this.offsetWires12.push(X), this.offsetWires12.push(H), this.offsetWires12.push(O), this.offsetWires12.push($), this.ToffsetWires1B2.push(Y), this.ToffsetWires1B2.push(Z), this.ToffsetWires1B2.push(D), this.ToffsetWires1B2.push(k), this.ToffsetWires1B2.push(X), this.ToffsetWires1B2.push(H), this.ToffsetWires1B2.push(O), this.ToffsetWires1B2.push($);
|
|
1596
1602
|
break;
|
|
1597
1603
|
}
|
|
1598
|
-
else if (
|
|
1604
|
+
else if (t.type == F.跳线串)
|
|
1599
1605
|
switch (this.LineInfo.Wairnum) {
|
|
1600
1606
|
case p.单分裂:
|
|
1601
1607
|
this.ToffsetWires1B1.push(o[0]), this.ToffsetWires1B2.push(o[0]);
|
|
@@ -1615,8 +1621,8 @@ const es = class es {
|
|
|
1615
1621
|
}
|
|
1616
1622
|
break;
|
|
1617
1623
|
case G.C相:
|
|
1618
|
-
if (
|
|
1619
|
-
if (
|
|
1624
|
+
if (t.type == F.耐张串)
|
|
1625
|
+
if (t.WairFX == "进")
|
|
1620
1626
|
switch (this.LineInfo.Wairnum) {
|
|
1621
1627
|
case p.单分裂:
|
|
1622
1628
|
this.offsetWires13.push(o[0]), this.ToffsetWires1C1.push(o[1]);
|
|
@@ -1637,27 +1643,27 @@ const es = class es {
|
|
|
1637
1643
|
else
|
|
1638
1644
|
switch (this.LineInfo.Wairnum) {
|
|
1639
1645
|
case p.单分裂:
|
|
1640
|
-
const c = B(r, new n.Cartesian3(
|
|
1646
|
+
const c = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W);
|
|
1641
1647
|
this.offsetWires13.push(c), this.ToffsetWires1C2.push(c);
|
|
1642
1648
|
break;
|
|
1643
1649
|
case p.双分裂:
|
|
1644
|
-
const m = B(r, new n.Cartesian3(
|
|
1650
|
+
const m = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), b = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W);
|
|
1645
1651
|
this.offsetWires13.push(m), this.offsetWires13.push(b), this.ToffsetWires1C2.push(m), this.ToffsetWires1C2.push(b);
|
|
1646
1652
|
break;
|
|
1647
1653
|
case p.四分裂:
|
|
1648
|
-
const I = B(r, new n.Cartesian3(
|
|
1654
|
+
const I = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), P = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), g = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), y = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W);
|
|
1649
1655
|
this.offsetWires13.push(I), this.offsetWires13.push(P), this.offsetWires13.push(g), this.offsetWires13.push(y), this.ToffsetWires1C2.push(I), this.ToffsetWires1C2.push(P), this.ToffsetWires1C2.push(g), this.ToffsetWires1C2.push(y);
|
|
1650
1656
|
break;
|
|
1651
1657
|
case p.六分裂:
|
|
1652
|
-
const
|
|
1653
|
-
this.offsetWires13.push(
|
|
1658
|
+
const v = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), _ = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), S = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), R = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), E = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W);
|
|
1659
|
+
this.offsetWires13.push(v), this.offsetWires13.push(_), this.offsetWires13.push(S), this.offsetWires13.push(M), this.offsetWires13.push(R), this.offsetWires13.push(E), this.ToffsetWires1C2.push(v), this.ToffsetWires1C2.push(_), this.ToffsetWires1C2.push(S), this.ToffsetWires1C2.push(M), this.ToffsetWires1C2.push(R), this.ToffsetWires1C2.push(E);
|
|
1654
1660
|
break;
|
|
1655
1661
|
case p.八分裂:
|
|
1656
|
-
const Y = B(r, new n.Cartesian3(
|
|
1657
|
-
this.offsetWires13.push(Y), this.offsetWires13.push(Z), this.offsetWires13.push(
|
|
1662
|
+
const Y = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), Z = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), D = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), k = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), X = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), H = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W), O = B(r, new n.Cartesian3(t.InsulatorPoint[6].X * -1, t.InsulatorPoint[6].Y, t.InsulatorPoint[6].Z), W), $ = B(r, new n.Cartesian3(t.InsulatorPoint[7].X * -1, t.InsulatorPoint[7].Y, t.InsulatorPoint[7].Z), W);
|
|
1663
|
+
this.offsetWires13.push(Y), this.offsetWires13.push(Z), this.offsetWires13.push(D), this.offsetWires13.push(k), this.offsetWires13.push(X), this.offsetWires13.push(H), this.offsetWires13.push(O), this.offsetWires13.push($), this.ToffsetWires1C2.push(Y), this.ToffsetWires1C2.push(Z), this.ToffsetWires1C2.push(D), this.ToffsetWires1C2.push(k), this.ToffsetWires1C2.push(X), this.ToffsetWires1C2.push(H), this.ToffsetWires1C2.push(O), this.ToffsetWires1C2.push($);
|
|
1658
1664
|
break;
|
|
1659
1665
|
}
|
|
1660
|
-
else if (
|
|
1666
|
+
else if (t.type == F.跳线串)
|
|
1661
1667
|
switch (this.LineInfo.Wairnum) {
|
|
1662
1668
|
case p.单分裂:
|
|
1663
1669
|
this.ToffsetWires1C1.push(o[0]), this.ToffsetWires1C2.push(o[0]);
|
|
@@ -1678,7 +1684,7 @@ const es = class es {
|
|
|
1678
1684
|
break;
|
|
1679
1685
|
}
|
|
1680
1686
|
else
|
|
1681
|
-
switch (
|
|
1687
|
+
switch (t.PhaseSequence) {
|
|
1682
1688
|
case G.A相:
|
|
1683
1689
|
o.forEach((c) => {
|
|
1684
1690
|
this.offsetWires11.push(c);
|
|
@@ -1720,11 +1726,11 @@ const es = class es {
|
|
|
1720
1726
|
case 4:
|
|
1721
1727
|
switch (this.LineInfo.Wairnum) {
|
|
1722
1728
|
case p.单分裂:
|
|
1723
|
-
const c = B(r, new n.Cartesian3(
|
|
1729
|
+
const c = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W);
|
|
1724
1730
|
this.offsetWires11.push(c), this.ToffsetWires1A2.push(c);
|
|
1725
1731
|
break;
|
|
1726
1732
|
case p.双分裂:
|
|
1727
|
-
const m = B(r, new n.Cartesian3(
|
|
1733
|
+
const m = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), b = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W);
|
|
1728
1734
|
this.offsetWires11.push(m), this.offsetWires11.push(b), this.ToffsetWires1A2.push(m), this.ToffsetWires1A2.push(b);
|
|
1729
1735
|
break;
|
|
1730
1736
|
}
|
|
@@ -1740,7 +1746,7 @@ const es = class es {
|
|
|
1740
1746
|
});
|
|
1741
1747
|
break;
|
|
1742
1748
|
case 7:
|
|
1743
|
-
|
|
1749
|
+
t.InsulatorPoint.forEach((c) => {
|
|
1744
1750
|
const m = B(r, new n.Cartesian3(c.X * -1, c.Y, c.Z), W);
|
|
1745
1751
|
this.offsetWires12.push(m), this.ToffsetWires1B2.push(m);
|
|
1746
1752
|
});
|
|
@@ -1756,7 +1762,7 @@ const es = class es {
|
|
|
1756
1762
|
});
|
|
1757
1763
|
break;
|
|
1758
1764
|
case 10:
|
|
1759
|
-
|
|
1765
|
+
t.InsulatorPoint.forEach((c) => {
|
|
1760
1766
|
const m = B(r, new n.Cartesian3(c.X * -1, c.Y, c.Z), W);
|
|
1761
1767
|
this.offsetWires13.push(m), this.ToffsetWires1C2.push(m);
|
|
1762
1768
|
});
|
|
@@ -1784,10 +1790,10 @@ const es = class es {
|
|
|
1784
1790
|
case hs.回路二:
|
|
1785
1791
|
if (this.LineInfo.ISPhaseSequence)
|
|
1786
1792
|
if (this.LineInfo.towers[s].type == V.耐张塔)
|
|
1787
|
-
switch (
|
|
1793
|
+
switch (t.PhaseSequence) {
|
|
1788
1794
|
case G.A相:
|
|
1789
|
-
if (
|
|
1790
|
-
if (
|
|
1795
|
+
if (t.type == F.耐张串)
|
|
1796
|
+
if (t.WairFX == "进")
|
|
1791
1797
|
switch (this.LineInfo.Wairnum) {
|
|
1792
1798
|
case p.单分裂:
|
|
1793
1799
|
this.offsetWires21.push(o[0]), this.ToffsetWires2A1.push(o[0]);
|
|
@@ -1808,27 +1814,27 @@ const es = class es {
|
|
|
1808
1814
|
else
|
|
1809
1815
|
switch (this.LineInfo.Wairnum) {
|
|
1810
1816
|
case p.单分裂:
|
|
1811
|
-
const c = B(r, new n.Cartesian3(
|
|
1817
|
+
const c = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W);
|
|
1812
1818
|
this.offsetWires21.push(c), this.ToffsetWires2A2.push(c);
|
|
1813
1819
|
break;
|
|
1814
1820
|
case p.双分裂:
|
|
1815
|
-
const m = B(r, new n.Cartesian3(
|
|
1821
|
+
const m = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), b = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W);
|
|
1816
1822
|
this.offsetWires21.push(m), this.offsetWires21.push(b), this.ToffsetWires2A2.push(m), this.ToffsetWires2A2.push(b);
|
|
1817
1823
|
break;
|
|
1818
1824
|
case p.四分裂:
|
|
1819
|
-
const I = B(r, new n.Cartesian3(
|
|
1825
|
+
const I = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), P = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), g = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), y = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W);
|
|
1820
1826
|
this.offsetWires21.push(I), this.offsetWires21.push(P), this.offsetWires21.push(g), this.offsetWires21.push(y), this.ToffsetWires2A2.push(I), this.ToffsetWires2A2.push(P), this.ToffsetWires2A2.push(g), this.ToffsetWires2A2.push(y);
|
|
1821
1827
|
break;
|
|
1822
1828
|
case p.六分裂:
|
|
1823
|
-
const
|
|
1824
|
-
this.offsetWires21.push(
|
|
1829
|
+
const v = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), _ = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), S = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), R = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), E = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W);
|
|
1830
|
+
this.offsetWires21.push(v), this.offsetWires21.push(_), this.offsetWires21.push(S), this.offsetWires21.push(M), this.offsetWires21.push(R), this.offsetWires21.push(E), this.ToffsetWires2A2.push(v), this.ToffsetWires2A2.push(_), this.ToffsetWires2A2.push(S), this.ToffsetWires2A2.push(M), this.ToffsetWires2A2.push(R), this.ToffsetWires2A2.push(E);
|
|
1825
1831
|
break;
|
|
1826
1832
|
case p.八分裂:
|
|
1827
|
-
const Y = B(r, new n.Cartesian3(
|
|
1828
|
-
this.offsetWires21.push(Y), this.offsetWires21.push(Z), this.offsetWires21.push(
|
|
1833
|
+
const Y = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), Z = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), D = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), k = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), X = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), H = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W), O = B(r, new n.Cartesian3(t.InsulatorPoint[6].X * -1, t.InsulatorPoint[6].Y, t.InsulatorPoint[6].Z), W), $ = B(r, new n.Cartesian3(t.InsulatorPoint[7].X * -1, t.InsulatorPoint[7].Y, t.InsulatorPoint[7].Z), W);
|
|
1834
|
+
this.offsetWires21.push(Y), this.offsetWires21.push(Z), this.offsetWires21.push(D), this.offsetWires21.push(k), this.offsetWires21.push(X), this.offsetWires21.push(H), this.offsetWires21.push(O), this.offsetWires21.push($), this.ToffsetWires2A2.push(Y), this.ToffsetWires2A2.push(Z), this.ToffsetWires2A2.push(D), this.ToffsetWires2A2.push(k), this.ToffsetWires2A2.push(X), this.ToffsetWires2A2.push(H), this.ToffsetWires2A2.push(O), this.ToffsetWires2A2.push($);
|
|
1829
1835
|
break;
|
|
1830
1836
|
}
|
|
1831
|
-
else if (
|
|
1837
|
+
else if (t.type == F.跳线串)
|
|
1832
1838
|
switch (this.LineInfo.Wairnum) {
|
|
1833
1839
|
case p.单分裂:
|
|
1834
1840
|
this.ToffsetWires2A1.push(o[0]), this.ToffsetWires2A2.push(o[0]);
|
|
@@ -1848,8 +1854,8 @@ const es = class es {
|
|
|
1848
1854
|
}
|
|
1849
1855
|
break;
|
|
1850
1856
|
case G.B相:
|
|
1851
|
-
if (
|
|
1852
|
-
if (
|
|
1857
|
+
if (t.type == F.耐张串)
|
|
1858
|
+
if (t.WairFX == "进")
|
|
1853
1859
|
switch (this.LineInfo.Wairnum) {
|
|
1854
1860
|
case p.单分裂:
|
|
1855
1861
|
this.offsetWires22.push(o[0]), this.ToffsetWires2B1.push(o[0]);
|
|
@@ -1870,27 +1876,27 @@ const es = class es {
|
|
|
1870
1876
|
else
|
|
1871
1877
|
switch (this.LineInfo.Wairnum) {
|
|
1872
1878
|
case p.单分裂:
|
|
1873
|
-
const c = B(r, new n.Cartesian3(
|
|
1879
|
+
const c = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W);
|
|
1874
1880
|
this.offsetWires22.push(c), this.ToffsetWires2B2.push(c);
|
|
1875
1881
|
break;
|
|
1876
1882
|
case p.双分裂:
|
|
1877
|
-
const m = B(r, new n.Cartesian3(
|
|
1883
|
+
const m = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), b = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W);
|
|
1878
1884
|
this.offsetWires22.push(m), this.offsetWires22.push(b), this.ToffsetWires2B2.push(m), this.ToffsetWires2B2.push(b);
|
|
1879
1885
|
break;
|
|
1880
1886
|
case p.四分裂:
|
|
1881
|
-
const I = B(r, new n.Cartesian3(
|
|
1887
|
+
const I = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), P = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), g = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), y = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W);
|
|
1882
1888
|
this.offsetWires22.push(I), this.offsetWires22.push(P), this.offsetWires22.push(g), this.offsetWires22.push(y), this.ToffsetWires2B2.push(I), this.ToffsetWires2B2.push(P), this.ToffsetWires2B2.push(g), this.ToffsetWires2B2.push(y);
|
|
1883
1889
|
break;
|
|
1884
1890
|
case p.六分裂:
|
|
1885
|
-
const
|
|
1886
|
-
this.offsetWires22.push(
|
|
1891
|
+
const v = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), _ = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), S = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), R = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), E = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W);
|
|
1892
|
+
this.offsetWires22.push(v), this.offsetWires22.push(_), this.offsetWires22.push(S), this.offsetWires22.push(M), this.offsetWires22.push(R), this.offsetWires22.push(E), this.ToffsetWires2B2.push(v), this.ToffsetWires2B2.push(_), this.ToffsetWires2B2.push(S), this.ToffsetWires2B2.push(M), this.ToffsetWires2B2.push(R), this.ToffsetWires2B2.push(E);
|
|
1887
1893
|
break;
|
|
1888
1894
|
case p.八分裂:
|
|
1889
|
-
const Y = B(r, new n.Cartesian3(
|
|
1890
|
-
this.offsetWires22.push(Y), this.offsetWires22.push(Z), this.offsetWires22.push(
|
|
1895
|
+
const Y = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), Z = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), D = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), k = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), X = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), H = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W), O = B(r, new n.Cartesian3(t.InsulatorPoint[6].X * -1, t.InsulatorPoint[6].Y, t.InsulatorPoint[6].Z), W), $ = B(r, new n.Cartesian3(t.InsulatorPoint[7].X * -1, t.InsulatorPoint[7].Y, t.InsulatorPoint[7].Z), W);
|
|
1896
|
+
this.offsetWires22.push(Y), this.offsetWires22.push(Z), this.offsetWires22.push(D), this.offsetWires22.push(k), this.offsetWires22.push(X), this.offsetWires22.push(H), this.offsetWires22.push(O), this.offsetWires22.push($), this.ToffsetWires2B2.push(Y), this.ToffsetWires2B2.push(Z), this.ToffsetWires2B2.push(D), this.ToffsetWires2B2.push(k), this.ToffsetWires2B2.push(X), this.ToffsetWires2B2.push(H), this.ToffsetWires2B2.push(O), this.ToffsetWires2B2.push($);
|
|
1891
1897
|
break;
|
|
1892
1898
|
}
|
|
1893
|
-
else if (
|
|
1899
|
+
else if (t.type == F.跳线串)
|
|
1894
1900
|
switch (this.LineInfo.Wairnum) {
|
|
1895
1901
|
case p.单分裂:
|
|
1896
1902
|
this.ToffsetWires2B1.push(o[0]), this.ToffsetWires2B2.push(o[0]);
|
|
@@ -1910,8 +1916,8 @@ const es = class es {
|
|
|
1910
1916
|
}
|
|
1911
1917
|
break;
|
|
1912
1918
|
case G.C相:
|
|
1913
|
-
if (
|
|
1914
|
-
if (
|
|
1919
|
+
if (t.type == F.耐张串)
|
|
1920
|
+
if (t.WairFX == "进")
|
|
1915
1921
|
switch (this.LineInfo.Wairnum) {
|
|
1916
1922
|
case p.单分裂:
|
|
1917
1923
|
this.offsetWires23.push(o[0]), this.ToffsetWires2C1.push(o[0]);
|
|
@@ -1932,27 +1938,27 @@ const es = class es {
|
|
|
1932
1938
|
else
|
|
1933
1939
|
switch (this.LineInfo.Wairnum) {
|
|
1934
1940
|
case p.单分裂:
|
|
1935
|
-
const c = B(r, new n.Cartesian3(
|
|
1941
|
+
const c = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W);
|
|
1936
1942
|
this.offsetWires23.push(c), this.ToffsetWires2C2.push(c);
|
|
1937
1943
|
break;
|
|
1938
1944
|
case p.双分裂:
|
|
1939
|
-
const m = B(r, new n.Cartesian3(
|
|
1945
|
+
const m = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), b = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W);
|
|
1940
1946
|
this.offsetWires23.push(m), this.offsetWires23.push(b), this.ToffsetWires2C2.push(m), this.ToffsetWires2C2.push(b);
|
|
1941
1947
|
break;
|
|
1942
1948
|
case p.四分裂:
|
|
1943
|
-
const I = B(r, new n.Cartesian3(
|
|
1949
|
+
const I = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), P = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), g = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), y = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W);
|
|
1944
1950
|
this.offsetWires23.push(I), this.offsetWires23.push(P), this.offsetWires23.push(g), this.offsetWires23.push(y), this.ToffsetWires2C2.push(I), this.ToffsetWires2C2.push(P), this.ToffsetWires2C2.push(g), this.ToffsetWires2C2.push(y);
|
|
1945
1951
|
break;
|
|
1946
1952
|
case p.六分裂:
|
|
1947
|
-
const
|
|
1948
|
-
this.offsetWires23.push(
|
|
1953
|
+
const v = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), _ = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), S = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), R = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), E = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W);
|
|
1954
|
+
this.offsetWires23.push(v), this.offsetWires23.push(_), this.offsetWires23.push(S), this.offsetWires23.push(M), this.offsetWires23.push(R), this.offsetWires23.push(E), this.ToffsetWires2C2.push(v), this.ToffsetWires2C2.push(_), this.ToffsetWires2C2.push(S), this.ToffsetWires2C2.push(M), this.ToffsetWires2C2.push(R), this.ToffsetWires2C2.push(E);
|
|
1949
1955
|
break;
|
|
1950
1956
|
case p.八分裂:
|
|
1951
|
-
const Y = B(r, new n.Cartesian3(
|
|
1952
|
-
this.offsetWires23.push(Y), this.offsetWires23.push(Z), this.offsetWires23.push(
|
|
1957
|
+
const Y = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), Z = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), D = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), k = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), X = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), H = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W), O = B(r, new n.Cartesian3(t.InsulatorPoint[6].X * -1, t.InsulatorPoint[6].Y, t.InsulatorPoint[6].Z), W), $ = B(r, new n.Cartesian3(t.InsulatorPoint[7].X * -1, t.InsulatorPoint[7].Y, t.InsulatorPoint[7].Z), W);
|
|
1958
|
+
this.offsetWires23.push(Y), this.offsetWires23.push(Z), this.offsetWires23.push(D), this.offsetWires23.push(k), this.offsetWires23.push(X), this.offsetWires23.push(H), this.offsetWires23.push(O), this.offsetWires23.push($), this.ToffsetWires2C2.push(Y), this.ToffsetWires2C2.push(Z), this.ToffsetWires2C2.push(D), this.ToffsetWires2C2.push(k), this.ToffsetWires2C2.push(X), this.ToffsetWires2C2.push(H), this.ToffsetWires2C2.push(O), this.ToffsetWires2C2.push($);
|
|
1953
1959
|
break;
|
|
1954
1960
|
}
|
|
1955
|
-
else if (
|
|
1961
|
+
else if (t.type == F.跳线串)
|
|
1956
1962
|
switch (this.LineInfo.Wairnum) {
|
|
1957
1963
|
case p.单分裂:
|
|
1958
1964
|
this.ToffsetWires2C1.push(o[0]), this.ToffsetWires2C2.push(o[0]);
|
|
@@ -1973,7 +1979,7 @@ const es = class es {
|
|
|
1973
1979
|
break;
|
|
1974
1980
|
}
|
|
1975
1981
|
else
|
|
1976
|
-
switch (
|
|
1982
|
+
switch (t.PhaseSequence) {
|
|
1977
1983
|
case G.A相:
|
|
1978
1984
|
o.forEach((c) => {
|
|
1979
1985
|
this.offsetWires21.push(c);
|
|
@@ -1999,7 +2005,7 @@ const es = class es {
|
|
|
1999
2005
|
this.ToffsetWires2A1.push(o[0]), this.ToffsetWires2A2.push(o[0]);
|
|
2000
2006
|
break;
|
|
2001
2007
|
case 13:
|
|
2002
|
-
const c = B(r, new n.Cartesian3(
|
|
2008
|
+
const c = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W);
|
|
2003
2009
|
this.offsetWires21.push(c), this.ToffsetWires2A2.push(c);
|
|
2004
2010
|
break;
|
|
2005
2011
|
case 14:
|
|
@@ -2009,7 +2015,7 @@ const es = class es {
|
|
|
2009
2015
|
this.ToffsetWires2B1.push(o[0]), this.ToffsetWires2B2.push(o[0]);
|
|
2010
2016
|
break;
|
|
2011
2017
|
case 16:
|
|
2012
|
-
const m = B(r, new n.Cartesian3(
|
|
2018
|
+
const m = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W);
|
|
2013
2019
|
this.offsetWires22.push(m), this.ToffsetWires2B2.push(m);
|
|
2014
2020
|
break;
|
|
2015
2021
|
case 17:
|
|
@@ -2019,7 +2025,7 @@ const es = class es {
|
|
|
2019
2025
|
this.ToffsetWires2C1.push(o[0]), this.ToffsetWires2C2.push(o[0]);
|
|
2020
2026
|
break;
|
|
2021
2027
|
case 19:
|
|
2022
|
-
const b = B(r, new n.Cartesian3(
|
|
2028
|
+
const b = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W);
|
|
2023
2029
|
this.offsetWires23.push(b), this.ToffsetWires2C2.push(b);
|
|
2024
2030
|
break;
|
|
2025
2031
|
}
|
|
@@ -2044,7 +2050,7 @@ const es = class es {
|
|
|
2044
2050
|
break;
|
|
2045
2051
|
case hs.地线:
|
|
2046
2052
|
if (this.LineInfo.ISPhaseSequence)
|
|
2047
|
-
switch (
|
|
2053
|
+
switch (t.PhaseSequence) {
|
|
2048
2054
|
case G.地线1:
|
|
2049
2055
|
this.offsetGrouundWires11.push(o[0]);
|
|
2050
2056
|
break;
|
|
@@ -2065,150 +2071,150 @@ const es = class es {
|
|
|
2065
2071
|
}
|
|
2066
2072
|
A = A + 1;
|
|
2067
2073
|
}), this.offsetWires11.length > 0 && s > 0) {
|
|
2068
|
-
const
|
|
2074
|
+
const t = [], l = [], u = [], C = [], o = [], c = [], m = [], b = [];
|
|
2069
2075
|
switch (this.LineInfo.Wairnum) {
|
|
2070
2076
|
case p.单分裂:
|
|
2071
|
-
this.offsetWires11.length >= 2 && (
|
|
2077
|
+
this.offsetWires11.length >= 2 && (t.push(this.offsetWires11[e]), t.push(this.offsetWires11[e - 1]), this.offsetArcWires1A = f(t), this.offsetArcWires1A.forEach((I) => {
|
|
2072
2078
|
this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid, I));
|
|
2073
2079
|
}), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
2074
2080
|
break;
|
|
2075
2081
|
case p.双分裂:
|
|
2076
|
-
this.offsetWires11.length >= 4 && (
|
|
2082
|
+
this.offsetWires11.length >= 4 && (t.push(this.offsetWires11[e]), t.push(this.offsetWires11[e - 2]), this.offsetArcWires1A = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1A.forEach((I) => {
|
|
2077
2083
|
this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid, I));
|
|
2078
2084
|
}), l.push(this.offsetWires11[e + 1]), l.push(this.offsetWires11[e - 1]), this.offsetArcWires1A = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
2079
2085
|
break;
|
|
2080
2086
|
case p.四分裂:
|
|
2081
|
-
this.offsetWires11.length >= 8 && (
|
|
2087
|
+
this.offsetWires11.length >= 8 && (t.push(this.offsetWires11[e]), t.push(this.offsetWires11[e - 4]), this.offsetArcWires1A = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1A.forEach((I) => {
|
|
2082
2088
|
this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid, I));
|
|
2083
2089
|
}), l.push(this.offsetWires11[e + 1]), l.push(this.offsetWires11[e - 3]), this.offsetArcWires1A = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires11[e + 2]), u.push(this.offsetWires11[e - 2]), this.offsetArcWires1A = f(u), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires11[e + 3]), C.push(this.offsetWires11[e - 1]), this.offsetArcWires1A = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
2084
2090
|
break;
|
|
2085
2091
|
case p.六分裂:
|
|
2086
|
-
this.offsetWires11.length >= 12 && (
|
|
2092
|
+
this.offsetWires11.length >= 12 && (t.push(this.offsetWires11[e]), t.push(this.offsetWires11[e - 6]), this.offsetArcWires1A = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1A.forEach((I) => {
|
|
2087
2093
|
this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid, I));
|
|
2088
2094
|
}), l.push(this.offsetWires11[e + 1]), l.push(this.offsetWires11[e - 5]), this.offsetArcWires1A = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires11[e + 2]), u.push(this.offsetWires11[e - 4]), this.offsetArcWires1A = f(u), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires11[e + 3]), C.push(this.offsetWires11[e - 3]), this.offsetArcWires1A = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires11[e + 4]), o.push(this.offsetWires11[e - 2]), this.offsetArcWires1A = f(o), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires11[e + 5]), c.push(this.offsetWires11[e - 1]), this.offsetArcWires1A = f(c), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
2089
2095
|
break;
|
|
2090
2096
|
case p.八分裂:
|
|
2091
|
-
this.offsetWires11.length >= 16 && (
|
|
2097
|
+
this.offsetWires11.length >= 16 && (t.push(this.offsetWires11[e]), t.push(this.offsetWires11[e - 8]), this.offsetArcWires1A = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1A.forEach((I) => {
|
|
2092
2098
|
this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid, I));
|
|
2093
2099
|
}), l.push(this.offsetWires11[e + 1]), l.push(this.offsetWires11[e - 7]), this.offsetArcWires1A = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires11[e + 2]), u.push(this.offsetWires11[e - 6]), this.offsetArcWires1A = f(u), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires11[e + 3]), C.push(this.offsetWires11[e - 5]), this.offsetArcWires1A = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires11[e + 4]), o.push(this.offsetWires11[e - 4]), this.offsetArcWires1A = f(o), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires11[e + 5]), c.push(this.offsetWires11[e - 3]), this.offsetArcWires1A = f(c), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires11[e + 6]), m.push(this.offsetWires11[e - 2]), this.offsetArcWires1A = f(m), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), b.push(this.offsetWires11[e + 7]), b.push(this.offsetWires11[e - 1]), this.offsetArcWires1A = f(b), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
2094
2100
|
break;
|
|
2095
2101
|
}
|
|
2096
2102
|
}
|
|
2097
2103
|
if (this.offsetWires12.length > 0 && s > 0) {
|
|
2098
|
-
const
|
|
2104
|
+
const t = [], l = [], u = [], C = [], o = [], c = [], m = [], b = [];
|
|
2099
2105
|
switch (this.LineInfo.Wairnum) {
|
|
2100
2106
|
case p.单分裂:
|
|
2101
|
-
|
|
2107
|
+
t.push(this.offsetWires12[e]), t.push(this.offsetWires12[e - 1]), this.offsetArcWires1B = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((I) => {
|
|
2102
2108
|
this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid, I));
|
|
2103
2109
|
});
|
|
2104
2110
|
break;
|
|
2105
2111
|
case p.双分裂:
|
|
2106
|
-
|
|
2112
|
+
t.push(this.offsetWires12[e]), t.push(this.offsetWires12[e - 2]), this.offsetArcWires1B = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((I) => {
|
|
2107
2113
|
this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid, I));
|
|
2108
2114
|
}), l.push(this.offsetWires12[e + 1]), l.push(this.offsetWires12[e - 1]), this.offsetArcWires1B = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2109
2115
|
break;
|
|
2110
2116
|
case p.四分裂:
|
|
2111
|
-
|
|
2117
|
+
t.push(this.offsetWires12[e]), t.push(this.offsetWires12[e - 4]), this.offsetArcWires1B = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((I) => {
|
|
2112
2118
|
this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid, I));
|
|
2113
2119
|
}), l.push(this.offsetWires12[e + 1]), l.push(this.offsetWires12[e - 3]), this.offsetArcWires1B = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires12[e + 2]), u.push(this.offsetWires12[e - 2]), this.offsetArcWires1B = f(u), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires12[e + 3]), C.push(this.offsetWires12[e - 1]), this.offsetArcWires1B = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2114
2120
|
break;
|
|
2115
2121
|
case p.六分裂:
|
|
2116
|
-
|
|
2122
|
+
t.push(this.offsetWires12[e]), t.push(this.offsetWires12[e - 6]), this.offsetArcWires1B = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((I) => {
|
|
2117
2123
|
this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid, I));
|
|
2118
2124
|
}), l.push(this.offsetWires12[e + 1]), l.push(this.offsetWires12[e - 5]), this.offsetArcWires1B = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires12[e + 2]), u.push(this.offsetWires12[e - 4]), this.offsetArcWires1B = f(u), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires12[e + 3]), C.push(this.offsetWires12[e - 3]), this.offsetArcWires1B = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires12[e + 4]), o.push(this.offsetWires12[e - 2]), this.offsetArcWires1B = f(o), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires12[e + 5]), c.push(this.offsetWires12[e - 1]), this.offsetArcWires1B = f(c), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2119
2125
|
break;
|
|
2120
2126
|
case p.八分裂:
|
|
2121
|
-
|
|
2127
|
+
t.push(this.offsetWires12[e]), t.push(this.offsetWires12[e - 8]), this.offsetArcWires1B = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((I) => {
|
|
2122
2128
|
this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid, I));
|
|
2123
2129
|
}), l.push(this.offsetWires12[e + 1]), l.push(this.offsetWires12[e - 7]), this.offsetArcWires1B = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires12[e + 2]), u.push(this.offsetWires12[e - 6]), this.offsetArcWires1B = f(u), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires12[e + 3]), C.push(this.offsetWires12[e - 5]), this.offsetArcWires1B = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires12[e + 4]), o.push(this.offsetWires12[e - 4]), this.offsetArcWires1B = f(o), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires12[e + 5]), c.push(this.offsetWires12[e - 3]), this.offsetArcWires1B = f(c), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires12[e + 6]), m.push(this.offsetWires12[e - 2]), this.offsetArcWires1B = f(m), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), b.push(this.offsetWires12[e + 7]), b.push(this.offsetWires12[e - 1]), this.offsetArcWires1B = f(b), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2124
2130
|
break;
|
|
2125
2131
|
}
|
|
2126
2132
|
}
|
|
2127
2133
|
if (this.offsetWires13.length > 0 && s > 0) {
|
|
2128
|
-
const
|
|
2134
|
+
const t = [], l = [], u = [], C = [], o = [], c = [], m = [], b = [];
|
|
2129
2135
|
switch (this.LineInfo.Wairnum) {
|
|
2130
2136
|
case p.单分裂:
|
|
2131
|
-
|
|
2137
|
+
t.push(this.offsetWires13[e]), t.push(this.offsetWires13[e - 1]), this.offsetArcWires1C = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2132
2138
|
break;
|
|
2133
2139
|
case p.双分裂:
|
|
2134
|
-
|
|
2140
|
+
t.push(this.offsetWires13[e]), t.push(this.offsetWires13[e - 2]), this.offsetArcWires1C = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires13[e + 1]), l.push(this.offsetWires13[e - 1]), this.offsetArcWires1C = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2135
2141
|
break;
|
|
2136
2142
|
case p.四分裂:
|
|
2137
|
-
|
|
2143
|
+
t.push(this.offsetWires13[e]), t.push(this.offsetWires13[e - 4]), this.offsetArcWires1C = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires13[e + 1]), l.push(this.offsetWires13[e - 3]), this.offsetArcWires1C = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires13[e + 2]), u.push(this.offsetWires13[e - 2]), this.offsetArcWires1C = f(u), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires13[e + 3]), C.push(this.offsetWires13[e - 1]), this.offsetArcWires1C = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2138
2144
|
break;
|
|
2139
2145
|
case p.六分裂:
|
|
2140
|
-
|
|
2146
|
+
t.push(this.offsetWires13[e]), t.push(this.offsetWires13[e - 6]), this.offsetArcWires1C = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires13[e + 1]), l.push(this.offsetWires13[e - 5]), this.offsetArcWires1C = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires13[e + 2]), u.push(this.offsetWires13[e - 4]), this.offsetArcWires1C = f(u), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires13[e + 3]), C.push(this.offsetWires13[e - 3]), this.offsetArcWires1C = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires13[e + 4]), o.push(this.offsetWires13[e - 2]), this.offsetArcWires1C = f(o), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires13[e + 5]), c.push(this.offsetWires13[e - 1]), this.offsetArcWires1C = f(c), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2141
2147
|
break;
|
|
2142
2148
|
case p.八分裂:
|
|
2143
|
-
|
|
2149
|
+
t.push(this.offsetWires13[e]), t.push(this.offsetWires13[e - 8]), this.offsetArcWires1C = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires13[e + 1]), l.push(this.offsetWires13[e - 7]), this.offsetArcWires1C = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires13[e + 2]), u.push(this.offsetWires13[e - 6]), this.offsetArcWires1C = f(u), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires13[e + 3]), C.push(this.offsetWires13[e - 5]), this.offsetArcWires1C = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires13[e + 4]), o.push(this.offsetWires13[e - 4]), this.offsetArcWires1C = f(o), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires13[e + 5]), c.push(this.offsetWires13[e - 3]), this.offsetArcWires1C = f(c), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires13[e + 6]), m.push(this.offsetWires13[e - 2]), this.offsetArcWires1C = f(m), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), b.push(this.offsetWires13[e + 7]), b.push(this.offsetWires13[e - 1]), this.offsetArcWires1C = f(b), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2144
2150
|
break;
|
|
2145
2151
|
}
|
|
2146
2152
|
}
|
|
2147
2153
|
if (this.offsetWires21.length > 0 && s > 0) {
|
|
2148
|
-
const
|
|
2154
|
+
const t = [], l = [], u = [], C = [], o = [], c = [], m = [], b = [];
|
|
2149
2155
|
switch (this.LineInfo.Wairnum) {
|
|
2150
2156
|
case p.单分裂:
|
|
2151
|
-
|
|
2157
|
+
t.push(this.offsetWires21[e]), t.push(this.offsetWires21[e - 1]), this.offsetArcWires2A = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2152
2158
|
break;
|
|
2153
2159
|
case p.双分裂:
|
|
2154
|
-
|
|
2160
|
+
t.push(this.offsetWires21[e]), t.push(this.offsetWires21[e - 2]), this.offsetArcWires2A = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires21[e + 1]), l.push(this.offsetWires21[e - 1]), this.offsetArcWires2A = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2155
2161
|
break;
|
|
2156
2162
|
case p.四分裂:
|
|
2157
|
-
|
|
2163
|
+
t.push(this.offsetWires21[e]), t.push(this.offsetWires21[e - 4]), this.offsetArcWires2A = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires21[e + 1]), l.push(this.offsetWires21[e - 3]), this.offsetArcWires2A = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires21[e + 2]), u.push(this.offsetWires21[e - 2]), this.offsetArcWires2A = f(u), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires21[e + 3]), C.push(this.offsetWires21[e - 1]), this.offsetArcWires2A = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2158
2164
|
break;
|
|
2159
2165
|
case p.六分裂:
|
|
2160
|
-
|
|
2166
|
+
t.push(this.offsetWires21[e]), t.push(this.offsetWires21[e - 6]), this.offsetArcWires2A = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires21[e + 1]), l.push(this.offsetWires21[e - 5]), this.offsetArcWires2A = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires21[e + 2]), u.push(this.offsetWires21[e - 4]), this.offsetArcWires2A = f(u), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires21[e + 3]), C.push(this.offsetWires21[e - 3]), this.offsetArcWires2A = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires21[e + 4]), o.push(this.offsetWires21[e - 2]), this.offsetArcWires2A = f(o), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires21[e + 5]), c.push(this.offsetWires21[e - 1]), this.offsetArcWires2A = f(c), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2161
2167
|
break;
|
|
2162
2168
|
case p.八分裂:
|
|
2163
|
-
|
|
2169
|
+
t.push(this.offsetWires21[e]), t.push(this.offsetWires21[e - 8]), this.offsetArcWires2A = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires21[e + 1]), l.push(this.offsetWires21[e - 7]), this.offsetArcWires2A = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires21[e + 2]), u.push(this.offsetWires21[e - 6]), this.offsetArcWires2A = f(u), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires21[e + 3]), C.push(this.offsetWires21[e - 5]), this.offsetArcWires2A = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires21[e + 4]), o.push(this.offsetWires21[e - 4]), this.offsetArcWires2A = f(o), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires21[e + 5]), c.push(this.offsetWires21[e - 3]), this.offsetArcWires2A = f(c), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires21[e + 6]), m.push(this.offsetWires21[e - 2]), this.offsetArcWires2A = f(m), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), b.push(this.offsetWires21[e + 7]), b.push(this.offsetWires21[e - 1]), this.offsetArcWires2A = f(b), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2164
2170
|
break;
|
|
2165
2171
|
}
|
|
2166
2172
|
}
|
|
2167
2173
|
if (this.offsetWires22.length > 0 && s > 0) {
|
|
2168
|
-
const
|
|
2174
|
+
const t = [], l = [], u = [], C = [], o = [], c = [], m = [], b = [];
|
|
2169
2175
|
switch (this.LineInfo.Wairnum) {
|
|
2170
2176
|
case p.单分裂:
|
|
2171
|
-
|
|
2177
|
+
t.push(this.offsetWires22[e]), t.push(this.offsetWires22[e - 1]), this.offsetArcWires2B = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2172
2178
|
break;
|
|
2173
2179
|
case p.双分裂:
|
|
2174
|
-
|
|
2180
|
+
t.push(this.offsetWires22[e]), t.push(this.offsetWires22[e - 2]), this.offsetArcWires2B = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires22[e + 1]), l.push(this.offsetWires22[e - 1]), this.offsetArcWires2B = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2175
2181
|
break;
|
|
2176
2182
|
case p.四分裂:
|
|
2177
|
-
|
|
2183
|
+
t.push(this.offsetWires22[e]), t.push(this.offsetWires22[e - 4]), this.offsetArcWires2B = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires22[e + 1]), l.push(this.offsetWires22[e - 3]), this.offsetArcWires2B = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires22[e + 2]), u.push(this.offsetWires22[e - 2]), this.offsetArcWires2B = f(u), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires22[e + 3]), C.push(this.offsetWires22[e - 1]), this.offsetArcWires2B = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2178
2184
|
break;
|
|
2179
2185
|
case p.六分裂:
|
|
2180
|
-
|
|
2186
|
+
t.push(this.offsetWires22[e]), t.push(this.offsetWires22[e - 6]), this.offsetArcWires2B = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires22[e + 1]), l.push(this.offsetWires22[e - 5]), this.offsetArcWires2B = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires22[e + 2]), u.push(this.offsetWires22[e - 4]), this.offsetArcWires2B = f(u), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires22[e + 3]), C.push(this.offsetWires22[e - 3]), this.offsetArcWires2B = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires22[e + 4]), o.push(this.offsetWires22[e - 2]), this.offsetArcWires2B = f(o), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires22[e + 5]), c.push(this.offsetWires22[e - 1]), this.offsetArcWires2B = f(c), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2181
2187
|
break;
|
|
2182
2188
|
case p.八分裂:
|
|
2183
|
-
|
|
2189
|
+
t.push(this.offsetWires22[e]), t.push(this.offsetWires22[e - 8]), this.offsetArcWires2B = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires22[e + 1]), l.push(this.offsetWires22[e - 7]), this.offsetArcWires2B = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires22[e + 2]), u.push(this.offsetWires22[e - 6]), this.offsetArcWires2B = f(u), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires22[e + 3]), C.push(this.offsetWires22[e - 5]), this.offsetArcWires2B = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires22[e + 4]), o.push(this.offsetWires22[e - 4]), this.offsetArcWires2B = f(o), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires22[e + 5]), c.push(this.offsetWires22[e - 3]), this.offsetArcWires2B = f(c), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires22[e + 6]), m.push(this.offsetWires22[e - 2]), this.offsetArcWires2B = f(m), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), b.push(this.offsetWires22[e + 7]), b.push(this.offsetWires22[e - 1]), this.offsetArcWires2B = f(b), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2184
2190
|
break;
|
|
2185
2191
|
}
|
|
2186
2192
|
}
|
|
2187
2193
|
if (this.offsetWires23.length > 0 && s > 0) {
|
|
2188
|
-
const
|
|
2194
|
+
const t = [], l = [], u = [], C = [], o = [], c = [], m = [], b = [];
|
|
2189
2195
|
switch (this.LineInfo.Wairnum) {
|
|
2190
2196
|
case p.单分裂:
|
|
2191
|
-
|
|
2197
|
+
t.push(this.offsetWires23[e]), t.push(this.offsetWires23[e - 1]), this.offsetArcWires2C = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2192
2198
|
break;
|
|
2193
2199
|
case p.双分裂:
|
|
2194
|
-
|
|
2200
|
+
t.push(this.offsetWires23[e]), t.push(this.offsetWires23[e - 2]), this.offsetArcWires2C = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires23[e + 1]), l.push(this.offsetWires23[e - 1]), this.offsetArcWires2C = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2195
2201
|
break;
|
|
2196
2202
|
case p.四分裂:
|
|
2197
|
-
|
|
2203
|
+
t.push(this.offsetWires23[e]), t.push(this.offsetWires23[e - 4]), this.offsetArcWires2C = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires23[e + 1]), l.push(this.offsetWires23[e - 3]), this.offsetArcWires2C = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires23[e + 2]), u.push(this.offsetWires23[e - 2]), this.offsetArcWires2C = f(u), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires23[e + 3]), C.push(this.offsetWires23[e - 1]), this.offsetArcWires2C = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2198
2204
|
break;
|
|
2199
2205
|
case p.六分裂:
|
|
2200
|
-
|
|
2206
|
+
t.push(this.offsetWires23[e]), t.push(this.offsetWires23[e - 6]), this.offsetArcWires2C = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires23[e + 1]), l.push(this.offsetWires23[e - 5]), this.offsetArcWires2C = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires23[e + 2]), u.push(this.offsetWires23[e - 4]), this.offsetArcWires2C = f(u), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires23[e + 3]), C.push(this.offsetWires23[e - 3]), this.offsetArcWires2C = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires23[e + 4]), o.push(this.offsetWires23[e - 2]), this.offsetArcWires2C = f(o), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires23[e + 5]), c.push(this.offsetWires23[e - 1]), this.offsetArcWires2C = f(c), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2201
2207
|
break;
|
|
2202
2208
|
case p.八分裂:
|
|
2203
|
-
|
|
2209
|
+
t.push(this.offsetWires23[e]), t.push(this.offsetWires23[e - 8]), this.offsetArcWires2C = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires23[e + 1]), l.push(this.offsetWires23[e - 7]), this.offsetArcWires2C = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires23[e + 2]), u.push(this.offsetWires23[e - 6]), this.offsetArcWires2C = f(u), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires23[e + 3]), C.push(this.offsetWires23[e - 5]), this.offsetArcWires2C = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires23[e + 4]), o.push(this.offsetWires23[e - 4]), this.offsetArcWires2C = f(o), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires23[e + 5]), c.push(this.offsetWires23[e - 3]), this.offsetArcWires2C = f(c), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires23[e + 6]), m.push(this.offsetWires23[e - 2]), this.offsetArcWires2C = f(m), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), b.push(this.offsetWires23[e + 7]), b.push(this.offsetWires23[e - 1]), this.offsetArcWires2C = f(b), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2204
2210
|
break;
|
|
2205
2211
|
}
|
|
2206
2212
|
}
|
|
2207
2213
|
if (this.offsetGrouundWires11.length > 1) {
|
|
2208
|
-
const
|
|
2209
|
-
|
|
2214
|
+
const t = [];
|
|
2215
|
+
t.push(this.offsetGrouundWires11[s]), t.push(this.offsetGrouundWires11[s - 1]);
|
|
2210
2216
|
const l = [];
|
|
2211
|
-
l.push(this.offsetGrouundWires12[s]), l.push(this.offsetGrouundWires12[s - 1]), this.offsetGrouundWires1 = f(
|
|
2217
|
+
l.push(this.offsetGrouundWires12[s]), l.push(this.offsetGrouundWires12[s - 1]), this.offsetGrouundWires1 = f(t, 2), this.offsetGrouundWires2 = f(l, 2), this.offsetGrouundWires1.forEach((u) => {
|
|
2212
2218
|
this.arcLine1D1.push(z(this.viewer.scene.globe.ellipsoid, u));
|
|
2213
2219
|
}), this.LineentityCollection2.add(h(this.offsetGrouundWires1, "地线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireD1Color)), this.LineentityCollection2.add(h(this.offsetGrouundWires2, "地线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireD2Color));
|
|
2214
2220
|
}
|
|
@@ -2216,138 +2222,138 @@ const es = class es {
|
|
|
2216
2222
|
if (this.LineInfo.towers[s].type == V.耐张塔) {
|
|
2217
2223
|
switch (this.LineInfo.Wairnum) {
|
|
2218
2224
|
case p.单分裂:
|
|
2219
|
-
e = e + d,
|
|
2225
|
+
e = e + d, i = i + d;
|
|
2220
2226
|
break;
|
|
2221
2227
|
case p.双分裂:
|
|
2222
|
-
e = e + d * 2,
|
|
2228
|
+
e = e + d * 2, i = i + d * 2;
|
|
2223
2229
|
break;
|
|
2224
2230
|
case p.四分裂:
|
|
2225
|
-
e = e + d * 4,
|
|
2231
|
+
e = e + d * 4, i = i + d * 4;
|
|
2226
2232
|
break;
|
|
2227
2233
|
case p.六分裂:
|
|
2228
|
-
e = e + d * 6,
|
|
2234
|
+
e = e + d * 6, i = i + d * 6;
|
|
2229
2235
|
break;
|
|
2230
2236
|
case p.八分裂:
|
|
2231
|
-
e = e + d * 8,
|
|
2237
|
+
e = e + d * 8, i = i + d * 8;
|
|
2232
2238
|
break;
|
|
2233
2239
|
}
|
|
2234
2240
|
if (this.ToffsetWires1A1.length > 1 && this.ToffsetWires1A2.length > 1) {
|
|
2235
|
-
const
|
|
2241
|
+
const t = [], l = [], u = [], C = [], o = [], c = [], m = [], b = [], I = [], P = [], g = [], y = [], v = [], _ = [], S = [], M = [];
|
|
2236
2242
|
switch (this.LineInfo.Wairnum) {
|
|
2237
2243
|
case p.单分裂:
|
|
2238
|
-
this.ToffsetWires1A1.length >= 2 && (
|
|
2244
|
+
this.ToffsetWires1A1.length >= 2 && (t.push(this.ToffsetWires1A1[i - 2]), t.push(this.ToffsetWires1A1[i - 1]), this.ToffsetArcWires1A = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 2 && (I.push(this.ToffsetWires1A2[i - 2]), I.push(this.ToffsetWires1A2[i - 1]), this.ToffsetArcWires2A = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2239
2245
|
break;
|
|
2240
2246
|
case p.双分裂:
|
|
2241
|
-
this.ToffsetWires1A1.length >= 4 && (
|
|
2247
|
+
this.ToffsetWires1A1.length >= 4 && (t.push(this.ToffsetWires1A1[i - 4]), t.push(this.ToffsetWires1A1[i - 2]), this.ToffsetArcWires1A = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[i - 3]), l.push(this.ToffsetWires1A1[i - 1]), this.ToffsetArcWires1A = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 4 && (I.push(this.ToffsetWires1A2[i - 4]), I.push(this.ToffsetWires1A2[i - 2]), this.ToffsetArcWires2A = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1A2[i - 3]), P.push(this.ToffsetWires1A2[i - 1]), this.ToffsetArcWires2A = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2242
2248
|
break;
|
|
2243
2249
|
case p.四分裂:
|
|
2244
|
-
this.ToffsetWires1A1.length >= 8 && (
|
|
2250
|
+
this.ToffsetWires1A1.length >= 8 && (t.push(this.ToffsetWires1A1[i - 8]), t.push(this.ToffsetWires1A1[i - 4]), this.ToffsetArcWires1A = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[i - 7]), l.push(this.ToffsetWires1A1[i - 3]), this.ToffsetArcWires1A = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1A1[i - 6]), u.push(this.ToffsetWires1A1[i - 2]), this.ToffsetArcWires1A = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1A1[i - 5]), C.push(this.ToffsetWires1A1[i - 1]), this.ToffsetArcWires1A = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 8 && (I.push(this.ToffsetWires1A2[i - 8]), I.push(this.ToffsetWires1A2[i - 4]), this.ToffsetArcWires2A = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1A2[i - 7]), P.push(this.ToffsetWires1A2[i - 3]), this.ToffsetArcWires2A = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1A2[i - 6]), g.push(this.ToffsetWires1A2[i - 2]), this.ToffsetArcWires2A = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1A2[i - 5]), y.push(this.ToffsetWires1A2[i - 1]), this.ToffsetArcWires2A = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2245
2251
|
break;
|
|
2246
2252
|
case p.六分裂:
|
|
2247
|
-
this.ToffsetWires1A1.length >= 12 && (
|
|
2253
|
+
this.ToffsetWires1A1.length >= 12 && (t.push(this.ToffsetWires1A1[i - 12]), t.push(this.ToffsetWires1A1[i - 6]), this.ToffsetArcWires1A = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[i - 11]), l.push(this.ToffsetWires1A1[i - 5]), this.ToffsetArcWires1A = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1A1[i - 10]), u.push(this.ToffsetWires1A1[i - 4]), this.ToffsetArcWires1A = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1A1[i - 9]), C.push(this.ToffsetWires1A1[i - 3]), this.ToffsetArcWires1A = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires1A1[i - 8]), o.push(this.ToffsetWires1A1[i - 2]), this.ToffsetArcWires1A = f(o, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), c.push(this.ToffsetWires1A1[i - 7]), c.push(this.ToffsetWires1A1[i - 1]), this.ToffsetArcWires1A = f(c, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 12 && (I.push(this.ToffsetWires1A2[i - 12]), I.push(this.ToffsetWires1A2[i - 6]), this.ToffsetArcWires2A = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1A2[i - 11]), P.push(this.ToffsetWires1A2[i - 5]), this.ToffsetArcWires2A = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1A2[i - 10]), g.push(this.ToffsetWires1A2[i - 4]), this.ToffsetArcWires2A = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1A2[i - 9]), y.push(this.ToffsetWires1A2[i - 3]), this.ToffsetArcWires2A = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1A2[i - 8]), v.push(this.ToffsetWires1A2[i - 2]), this.ToffsetArcWires2A = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1A2[i - 7]), _.push(this.ToffsetWires1A2[i - 1]), this.ToffsetArcWires2A = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2248
2254
|
break;
|
|
2249
2255
|
case p.八分裂:
|
|
2250
|
-
this.ToffsetWires1A1.length >= 16 && (
|
|
2256
|
+
this.ToffsetWires1A1.length >= 16 && (t.push(this.ToffsetWires1A1[i - 16]), t.push(this.ToffsetWires1A1[i - 8]), this.ToffsetArcWires1A = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[i - 15]), l.push(this.ToffsetWires1A1[i - 7]), this.ToffsetArcWires1A = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1A1[i - 14]), u.push(this.ToffsetWires1A1[i - 6]), this.ToffsetArcWires1A = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1A1[i - 13]), C.push(this.ToffsetWires1A1[i - 5]), this.ToffsetArcWires1A = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires1A1[i - 12]), o.push(this.ToffsetWires1A1[i - 4]), this.ToffsetArcWires1A = f(o, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), c.push(this.ToffsetWires1A1[i - 11]), c.push(this.ToffsetWires1A1[i - 3]), this.ToffsetArcWires1A = f(c, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1A1[i - 10]), m.push(this.ToffsetWires1A1[i - 2]), this.ToffsetArcWires1A = f(m, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires1A1[i - 9]), b.push(this.ToffsetWires1A1[i - 1]), this.ToffsetArcWires1A = f(b, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 16 && (I.push(this.ToffsetWires1A2[i - 16]), I.push(this.ToffsetWires1A2[i - 8]), this.ToffsetArcWires2A = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1A2[i - 15]), P.push(this.ToffsetWires1A2[i - 7]), this.ToffsetArcWires2A = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1A2[i - 14]), g.push(this.ToffsetWires1A2[i - 6]), this.ToffsetArcWires2A = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1A2[i - 13]), y.push(this.ToffsetWires1A2[i - 5]), this.ToffsetArcWires2A = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1A2[i - 12]), v.push(this.ToffsetWires1A2[i - 4]), this.ToffsetArcWires2A = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1A2[i - 11]), _.push(this.ToffsetWires1A2[i - 3]), this.ToffsetArcWires2A = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), S.push(this.ToffsetWires1A2[i - 10]), S.push(this.ToffsetWires1A2[i - 2]), this.ToffsetArcWires2A = f(S, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), M.push(this.ToffsetWires1A2[i - 9]), M.push(this.ToffsetWires1A2[i - 1]), this.ToffsetArcWires2A = f(M, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2251
2257
|
break;
|
|
2252
2258
|
}
|
|
2253
2259
|
}
|
|
2254
2260
|
if (this.ToffsetWires1B1.length > 1 && this.ToffsetWires1B2.length > 1) {
|
|
2255
|
-
const
|
|
2261
|
+
const t = [], l = [], u = [], C = [], o = [], c = [], m = [], b = [], I = [], P = [], g = [], y = [], v = [], _ = [], S = [], M = [];
|
|
2256
2262
|
switch (this.LineInfo.Wairnum) {
|
|
2257
2263
|
case p.单分裂:
|
|
2258
|
-
this.ToffsetWires1B1.length >= 2 && (
|
|
2264
|
+
this.ToffsetWires1B1.length >= 2 && (t.push(this.ToffsetWires1B1[i - 2]), t.push(this.ToffsetWires1B1[i - 1]), this.ToffsetArcWires1B = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 2 && (I.push(this.ToffsetWires1B2[i - 2]), I.push(this.ToffsetWires1B2[i - 1]), this.ToffsetArcWires2B = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2259
2265
|
break;
|
|
2260
2266
|
case p.双分裂:
|
|
2261
|
-
this.ToffsetWires1B1.length >= 4 && (
|
|
2267
|
+
this.ToffsetWires1B1.length >= 4 && (t.push(this.ToffsetWires1B1[i - 4]), t.push(this.ToffsetWires1B1[i - 2]), this.ToffsetArcWires1B = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[i - 3]), l.push(this.ToffsetWires1B1[i - 1]), this.ToffsetArcWires1B = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 4 && (I.push(this.ToffsetWires1B2[i - 4]), I.push(this.ToffsetWires1B2[i - 2]), this.ToffsetArcWires2B = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1B2[i - 3]), P.push(this.ToffsetWires1B2[i - 1]), this.ToffsetArcWires2B = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2262
2268
|
break;
|
|
2263
2269
|
case p.四分裂:
|
|
2264
|
-
this.ToffsetWires1B1.length >= 8 && (
|
|
2270
|
+
this.ToffsetWires1B1.length >= 8 && (t.push(this.ToffsetWires1B1[i - 8]), t.push(this.ToffsetWires1B1[i - 4]), this.ToffsetArcWires1B = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[i - 7]), l.push(this.ToffsetWires1B1[i - 3]), this.ToffsetArcWires1B = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1B1[i - 6]), u.push(this.ToffsetWires1B1[i - 2]), this.ToffsetArcWires1B = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1B1[i - 5]), C.push(this.ToffsetWires1B1[i - 1]), this.ToffsetArcWires1B = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 8 && (I.push(this.ToffsetWires1B2[i - 8]), I.push(this.ToffsetWires1B2[i - 4]), this.ToffsetArcWires2B = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1B2[i - 7]), P.push(this.ToffsetWires1B2[i - 3]), this.ToffsetArcWires2B = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1B2[i - 6]), g.push(this.ToffsetWires1B2[i - 2]), this.ToffsetArcWires2B = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1B2[i - 5]), y.push(this.ToffsetWires1B2[i - 1]), this.ToffsetArcWires2B = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2265
2271
|
break;
|
|
2266
2272
|
case p.六分裂:
|
|
2267
|
-
this.ToffsetWires1B1.length >= 12 && (
|
|
2273
|
+
this.ToffsetWires1B1.length >= 12 && (t.push(this.ToffsetWires1B1[i - 12]), t.push(this.ToffsetWires1B1[i - 6]), this.ToffsetArcWires1B = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[i - 11]), l.push(this.ToffsetWires1B1[i - 5]), this.ToffsetArcWires1B = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1B1[i - 10]), u.push(this.ToffsetWires1B1[i - 4]), this.ToffsetArcWires1B = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1B1[i - 9]), C.push(this.ToffsetWires1B1[i - 3]), this.ToffsetArcWires1B = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires1B1[i - 8]), o.push(this.ToffsetWires1B1[i - 2]), this.ToffsetArcWires1B = f(o, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), c.push(this.ToffsetWires1B1[i - 7]), c.push(this.ToffsetWires1B1[i - 1]), this.ToffsetArcWires1B = f(c, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 12 && (I.push(this.ToffsetWires1B2[i - 12]), I.push(this.ToffsetWires1B2[i - 6]), this.ToffsetArcWires2B = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1B2[i - 11]), P.push(this.ToffsetWires1B2[i - 5]), this.ToffsetArcWires2B = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1B2[i - 10]), g.push(this.ToffsetWires1B2[i - 4]), this.ToffsetArcWires2B = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1B2[i - 9]), y.push(this.ToffsetWires1B2[i - 3]), this.ToffsetArcWires2B = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1B2[i - 8]), v.push(this.ToffsetWires1B2[i - 2]), this.ToffsetArcWires2B = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1B2[i - 7]), _.push(this.ToffsetWires1B2[i - 1]), this.ToffsetArcWires2B = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2268
2274
|
break;
|
|
2269
2275
|
case p.八分裂:
|
|
2270
|
-
this.ToffsetWires1B1.length >= 16 && (
|
|
2276
|
+
this.ToffsetWires1B1.length >= 16 && (t.push(this.ToffsetWires1B1[i - 16]), t.push(this.ToffsetWires1B1[i - 8]), this.ToffsetArcWires1B = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[i - 15]), l.push(this.ToffsetWires1B1[i - 7]), this.ToffsetArcWires1B = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1B1[i - 14]), u.push(this.ToffsetWires1B1[i - 6]), this.ToffsetArcWires1B = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1B1[i - 13]), C.push(this.ToffsetWires1B1[i - 5]), this.ToffsetArcWires1B = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires1B1[i - 12]), o.push(this.ToffsetWires1B1[i - 4]), this.ToffsetArcWires1B = f(o, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), c.push(this.ToffsetWires1B1[i - 11]), c.push(this.ToffsetWires1B1[i - 3]), this.ToffsetArcWires1B = f(c, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1B1[i - 10]), m.push(this.ToffsetWires1B1[i - 2]), this.ToffsetArcWires1B = f(m, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires1B1[i - 9]), b.push(this.ToffsetWires1B1[i - 1]), this.ToffsetArcWires1B = f(b, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 16 && (I.push(this.ToffsetWires1B2[i - 16]), I.push(this.ToffsetWires1B2[i - 8]), this.ToffsetArcWires2B = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1B2[i - 15]), P.push(this.ToffsetWires1B2[i - 7]), this.ToffsetArcWires2B = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1B2[i - 14]), g.push(this.ToffsetWires1B2[i - 6]), this.ToffsetArcWires2B = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1B2[i - 13]), y.push(this.ToffsetWires1B2[i - 5]), this.ToffsetArcWires2B = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1B2[i - 12]), v.push(this.ToffsetWires1B2[i - 4]), this.ToffsetArcWires2B = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1B2[i - 11]), _.push(this.ToffsetWires1B2[i - 3]), this.ToffsetArcWires2B = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), S.push(this.ToffsetWires1B2[i - 10]), S.push(this.ToffsetWires1B2[i - 2]), this.ToffsetArcWires2B = f(S, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), M.push(this.ToffsetWires1B2[i - 9]), M.push(this.ToffsetWires1B2[i - 1]), this.ToffsetArcWires2B = f(M, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2271
2277
|
break;
|
|
2272
2278
|
}
|
|
2273
2279
|
}
|
|
2274
2280
|
if (this.ToffsetWires1C1.length > 1 && this.ToffsetWires1C2.length > 1) {
|
|
2275
|
-
const
|
|
2281
|
+
const t = [], l = [], u = [], C = [], o = [], c = [], m = [], b = [], I = [], P = [], g = [], y = [], v = [], _ = [], S = [], M = [];
|
|
2276
2282
|
switch (this.LineInfo.Wairnum) {
|
|
2277
2283
|
case p.单分裂:
|
|
2278
|
-
this.ToffsetWires1C1.length >= 2 && (
|
|
2284
|
+
this.ToffsetWires1C1.length >= 2 && (t.push(this.ToffsetWires1C1[i - 2]), t.push(this.ToffsetWires1C1[i - 1]), this.ToffsetArcWires1C = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 2 && (I.push(this.ToffsetWires1C2[i - 2]), I.push(this.ToffsetWires1C2[i - 1]), this.ToffsetArcWires2C = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2279
2285
|
break;
|
|
2280
2286
|
case p.双分裂:
|
|
2281
|
-
this.ToffsetWires1C1.length >= 4 && (
|
|
2287
|
+
this.ToffsetWires1C1.length >= 4 && (t.push(this.ToffsetWires1C1[i - 4]), t.push(this.ToffsetWires1C1[i - 2]), this.ToffsetArcWires1C = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[i - 3]), l.push(this.ToffsetWires1C1[i - 1]), this.ToffsetArcWires1C = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 4 && (I.push(this.ToffsetWires1C2[i - 4]), I.push(this.ToffsetWires1C2[i - 2]), this.ToffsetArcWires2C = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1C2[i - 3]), P.push(this.ToffsetWires1C2[i - 1]), this.ToffsetArcWires2C = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2282
2288
|
break;
|
|
2283
2289
|
case p.四分裂:
|
|
2284
|
-
this.ToffsetWires1C1.length >= 8 && (
|
|
2290
|
+
this.ToffsetWires1C1.length >= 8 && (t.push(this.ToffsetWires1C1[i - 8]), t.push(this.ToffsetWires1C1[i - 4]), this.ToffsetArcWires1C = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[i - 7]), l.push(this.ToffsetWires1C1[i - 3]), this.ToffsetArcWires1C = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1C1[i - 6]), u.push(this.ToffsetWires1C1[i - 2]), this.ToffsetArcWires1C = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1C1[i - 5]), C.push(this.ToffsetWires1C1[i - 1]), this.ToffsetArcWires1C = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 8 && (I.push(this.ToffsetWires1C2[i - 8]), I.push(this.ToffsetWires1C2[i - 4]), this.ToffsetArcWires2C = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1C2[i - 7]), P.push(this.ToffsetWires1C2[i - 3]), this.ToffsetArcWires2C = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1C2[i - 6]), g.push(this.ToffsetWires1C2[i - 2]), this.ToffsetArcWires2C = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1C2[i - 5]), y.push(this.ToffsetWires1C2[i - 1]), this.ToffsetArcWires2C = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2285
2291
|
break;
|
|
2286
2292
|
case p.六分裂:
|
|
2287
|
-
this.ToffsetWires1C1.length >= 12 && (
|
|
2293
|
+
this.ToffsetWires1C1.length >= 12 && (t.push(this.ToffsetWires1C1[i - 12]), t.push(this.ToffsetWires1C1[i - 6]), this.ToffsetArcWires1C = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[i - 11]), l.push(this.ToffsetWires1C1[i - 5]), this.ToffsetArcWires1C = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1C1[i - 10]), u.push(this.ToffsetWires1C1[i - 4]), this.ToffsetArcWires1C = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1C1[i - 9]), C.push(this.ToffsetWires1C1[i - 3]), this.ToffsetArcWires1C = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires1C1[i - 8]), o.push(this.ToffsetWires1C1[i - 2]), this.ToffsetArcWires1C = f(o, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), c.push(this.ToffsetWires1C1[i - 7]), c.push(this.ToffsetWires1C1[i - 1]), this.ToffsetArcWires1C = f(c, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 12 && (I.push(this.ToffsetWires1C2[i - 12]), I.push(this.ToffsetWires1C2[i - 6]), this.ToffsetArcWires2C = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1C2[i - 11]), P.push(this.ToffsetWires1C2[i - 5]), this.ToffsetArcWires2C = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1C2[i - 10]), g.push(this.ToffsetWires1C2[i - 4]), this.ToffsetArcWires2C = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1C2[i - 9]), y.push(this.ToffsetWires1C2[i - 3]), this.ToffsetArcWires2C = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1C2[i - 8]), v.push(this.ToffsetWires1C2[i - 2]), this.ToffsetArcWires2C = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1C2[i - 7]), _.push(this.ToffsetWires1C2[i - 1]), this.ToffsetArcWires2C = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2288
2294
|
break;
|
|
2289
2295
|
case p.八分裂:
|
|
2290
|
-
this.ToffsetWires1C1.length >= 16 && (
|
|
2296
|
+
this.ToffsetWires1C1.length >= 16 && (t.push(this.ToffsetWires1C1[i - 16]), t.push(this.ToffsetWires1C1[i - 8]), this.ToffsetArcWires1C = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[i - 15]), l.push(this.ToffsetWires1C1[i - 7]), this.ToffsetArcWires1C = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1C1[i - 14]), u.push(this.ToffsetWires1C1[i - 6]), this.ToffsetArcWires1C = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1C1[i - 13]), C.push(this.ToffsetWires1C1[i - 5]), this.ToffsetArcWires1C = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires1C1[i - 12]), o.push(this.ToffsetWires1C1[i - 4]), this.ToffsetArcWires1C = f(o, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), c.push(this.ToffsetWires1C1[i - 11]), c.push(this.ToffsetWires1C1[i - 3]), this.ToffsetArcWires1C = f(c, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1C1[i - 10]), m.push(this.ToffsetWires1C1[i - 2]), this.ToffsetArcWires1C = f(m, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires1C1[i - 9]), b.push(this.ToffsetWires1C1[i - 1]), this.ToffsetArcWires1C = f(b, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 16 && (I.push(this.ToffsetWires1C2[i - 16]), I.push(this.ToffsetWires1C2[i - 8]), this.ToffsetArcWires2C = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1C2[i - 15]), P.push(this.ToffsetWires1C2[i - 7]), this.ToffsetArcWires2C = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1C2[i - 14]), g.push(this.ToffsetWires1C2[i - 6]), this.ToffsetArcWires2C = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1C2[i - 13]), y.push(this.ToffsetWires1C2[i - 5]), this.ToffsetArcWires2C = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1C2[i - 12]), v.push(this.ToffsetWires1C2[i - 4]), this.ToffsetArcWires2C = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1C2[i - 11]), _.push(this.ToffsetWires1C2[i - 3]), this.ToffsetArcWires2C = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), S.push(this.ToffsetWires1C2[i - 10]), S.push(this.ToffsetWires1C2[i - 2]), this.ToffsetArcWires2C = f(S, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), M.push(this.ToffsetWires1C2[i - 9]), M.push(this.ToffsetWires1C2[i - 1]), this.ToffsetArcWires2C = f(M, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2291
2297
|
break;
|
|
2292
2298
|
}
|
|
2293
2299
|
}
|
|
2294
2300
|
if (this.ToffsetWires2A1.length > 1 && this.ToffsetWires2A2.length > 1) {
|
|
2295
|
-
const
|
|
2301
|
+
const t = [], l = [], u = [], C = [], o = [], c = [], m = [], b = [], I = [], P = [], g = [], y = [], v = [], _ = [], S = [], M = [];
|
|
2296
2302
|
switch (this.LineInfo.Wairnum) {
|
|
2297
2303
|
case p.单分裂:
|
|
2298
|
-
this.ToffsetWires2A1.length >= 2 && (
|
|
2304
|
+
this.ToffsetWires2A1.length >= 2 && (t.push(this.ToffsetWires2A1[i - 2]), t.push(this.ToffsetWires2A1[i - 1]), this.ToffsetArcWires1A2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 2 && (I.push(this.ToffsetWires2A2[i - 2]), I.push(this.ToffsetWires2A2[i - 1]), this.ToffsetArcWires2A2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2299
2305
|
break;
|
|
2300
2306
|
case p.双分裂:
|
|
2301
|
-
this.ToffsetWires2A1.length >= 4 && (
|
|
2307
|
+
this.ToffsetWires2A1.length >= 4 && (t.push(this.ToffsetWires2A1[i - 4]), t.push(this.ToffsetWires2A1[i - 2]), this.ToffsetArcWires1A2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[i - 3]), l.push(this.ToffsetWires2A1[i - 1]), this.ToffsetArcWires1A2 = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 4 && (I.push(this.ToffsetWires2A2[i - 4]), I.push(this.ToffsetWires2A2[i - 2]), this.ToffsetArcWires2A2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2A2[i - 3]), P.push(this.ToffsetWires2A2[i - 1]), this.ToffsetArcWires2A2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2302
2308
|
break;
|
|
2303
2309
|
case p.四分裂:
|
|
2304
|
-
this.ToffsetWires2A1.length >= 8 && (
|
|
2310
|
+
this.ToffsetWires2A1.length >= 8 && (t.push(this.ToffsetWires2A1[i - 8]), t.push(this.ToffsetWires2A1[i - 4]), this.ToffsetArcWires1A2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[i - 7]), l.push(this.ToffsetWires2A1[i - 3]), this.ToffsetArcWires1A2 = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2A1[i - 6]), u.push(this.ToffsetWires2A1[i - 2]), this.ToffsetArcWires1A2 = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2A1[i - 5]), C.push(this.ToffsetWires2A1[i - 1]), this.ToffsetArcWires1A2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 8 && (I.push(this.ToffsetWires2A2[i - 8]), I.push(this.ToffsetWires2A2[i - 4]), this.ToffsetArcWires2A2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2A2[i - 7]), P.push(this.ToffsetWires2A2[i - 3]), this.ToffsetArcWires2A2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2A2[i - 6]), g.push(this.ToffsetWires2A2[i - 2]), this.ToffsetArcWires2A2 = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2A2[i - 5]), y.push(this.ToffsetWires2A2[i - 1]), this.ToffsetArcWires2A2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2305
2311
|
break;
|
|
2306
2312
|
case p.六分裂:
|
|
2307
|
-
this.ToffsetWires2A1.length >= 12 && (
|
|
2313
|
+
this.ToffsetWires2A1.length >= 12 && (t.push(this.ToffsetWires2A1[i - 12]), t.push(this.ToffsetWires2A1[i - 6]), this.ToffsetArcWires1A2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[i - 11]), l.push(this.ToffsetWires2A1[i - 5]), this.ToffsetArcWires1A2 = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2A1[i - 10]), u.push(this.ToffsetWires2A1[i - 4]), this.ToffsetArcWires1A2 = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2A1[i - 9]), C.push(this.ToffsetWires2A1[i - 3]), this.ToffsetArcWires1A2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires2A1[i - 8]), o.push(this.ToffsetWires2A1[i - 2]), this.ToffsetArcWires1A2 = f(o, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), c.push(this.ToffsetWires2A1[i - 7]), c.push(this.ToffsetWires2A1[i - 1]), this.ToffsetArcWires1A2 = f(c, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 12 && (I.push(this.ToffsetWires2A2[i - 12]), I.push(this.ToffsetWires2A2[i - 6]), this.ToffsetArcWires2A2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2A2[i - 11]), P.push(this.ToffsetWires2A2[i - 5]), this.ToffsetArcWires2A2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2A2[i - 10]), g.push(this.ToffsetWires2A2[i - 4]), this.ToffsetArcWires2A2 = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2A2[i - 9]), y.push(this.ToffsetWires2A2[i - 3]), this.ToffsetArcWires2A2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2A2[i - 8]), v.push(this.ToffsetWires2A2[i - 2]), this.ToffsetArcWires2A2 = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2A2[i - 7]), _.push(this.ToffsetWires2A2[i - 1]), this.ToffsetArcWires2A2 = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2308
2314
|
break;
|
|
2309
2315
|
case p.八分裂:
|
|
2310
|
-
this.ToffsetWires2A1.length >= 16 && (
|
|
2316
|
+
this.ToffsetWires2A1.length >= 16 && (t.push(this.ToffsetWires2A1[i - 16]), t.push(this.ToffsetWires2A1[i - 8]), this.ToffsetArcWires1A2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[i - 15]), l.push(this.ToffsetWires2A1[i - 7]), this.ToffsetArcWires1A2 = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2A1[i - 14]), u.push(this.ToffsetWires2A1[i - 6]), this.ToffsetArcWires1A2 = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2A1[i - 13]), C.push(this.ToffsetWires2A1[i - 5]), this.ToffsetArcWires1A2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires2A1[i - 12]), o.push(this.ToffsetWires2A1[i - 4]), this.ToffsetArcWires1A2 = f(o, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), c.push(this.ToffsetWires2A1[i - 11]), c.push(this.ToffsetWires2A1[i - 3]), this.ToffsetArcWires1A2 = f(c, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2A1[i - 10]), m.push(this.ToffsetWires2A1[i - 2]), this.ToffsetArcWires1A2 = f(m, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires2A1[i - 9]), b.push(this.ToffsetWires2A1[i - 1]), this.ToffsetArcWires1A2 = f(b, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 16 && (I.push(this.ToffsetWires2A2[i - 16]), I.push(this.ToffsetWires2A2[i - 8]), this.ToffsetArcWires2A2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2A2[i - 15]), P.push(this.ToffsetWires2A2[i - 7]), this.ToffsetArcWires2A2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2A2[i - 14]), g.push(this.ToffsetWires2A2[i - 6]), this.ToffsetArcWires2A2 = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2A2[i - 13]), y.push(this.ToffsetWires2A2[i - 5]), this.ToffsetArcWires2A2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2A2[i - 12]), v.push(this.ToffsetWires2A2[i - 4]), this.ToffsetArcWires2A2 = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2A2[i - 11]), _.push(this.ToffsetWires2A2[i - 3]), this.ToffsetArcWires2A2 = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), S.push(this.ToffsetWires2A2[i - 10]), S.push(this.ToffsetWires2A2[i - 2]), this.ToffsetArcWires2A2 = f(S, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), M.push(this.ToffsetWires2A2[i - 9]), M.push(this.ToffsetWires2A2[i - 1]), this.ToffsetArcWires2A2 = f(M, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2311
2317
|
break;
|
|
2312
2318
|
}
|
|
2313
2319
|
}
|
|
2314
2320
|
if (this.ToffsetWires2B1.length > 1 && this.ToffsetWires2B2.length > 1) {
|
|
2315
|
-
const
|
|
2321
|
+
const t = [], l = [], u = [], C = [], o = [], c = [], m = [], b = [], I = [], P = [], g = [], y = [], v = [], _ = [], S = [], M = [];
|
|
2316
2322
|
switch (this.LineInfo.Wairnum) {
|
|
2317
2323
|
case p.单分裂:
|
|
2318
|
-
this.ToffsetWires2B1.length >= 2 && (
|
|
2324
|
+
this.ToffsetWires2B1.length >= 2 && (t.push(this.ToffsetWires2B1[i - 2]), t.push(this.ToffsetWires2B1[i - 1]), this.ToffsetArcWires1B2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 2 && (I.push(this.ToffsetWires2B2[i - 2]), I.push(this.ToffsetWires2B2[i - 1]), this.ToffsetArcWires2B2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2319
2325
|
break;
|
|
2320
2326
|
case p.双分裂:
|
|
2321
|
-
this.ToffsetWires2B1.length >= 4 && (
|
|
2327
|
+
this.ToffsetWires2B1.length >= 4 && (t.push(this.ToffsetWires2B1[i - 4]), t.push(this.ToffsetWires2B1[i - 2]), this.ToffsetArcWires1B2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[i - 3]), l.push(this.ToffsetWires2B1[i - 1]), this.ToffsetArcWires1B2 = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 4 && (I.push(this.ToffsetWires2B2[i - 4]), I.push(this.ToffsetWires2B2[i - 2]), this.ToffsetArcWires2B2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2B2[i - 3]), P.push(this.ToffsetWires2B2[i - 1]), this.ToffsetArcWires2B2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2322
2328
|
break;
|
|
2323
2329
|
case p.四分裂:
|
|
2324
|
-
this.ToffsetWires2B1.length >= 8 && (
|
|
2330
|
+
this.ToffsetWires2B1.length >= 8 && (t.push(this.ToffsetWires2B1[i - 8]), t.push(this.ToffsetWires2B1[i - 4]), this.ToffsetArcWires1B2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[i - 7]), l.push(this.ToffsetWires2B1[i - 3]), this.ToffsetArcWires1B2 = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2B1[i - 6]), u.push(this.ToffsetWires2B1[i - 2]), this.ToffsetArcWires1B2 = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2B1[i - 5]), C.push(this.ToffsetWires2B1[i - 1]), this.ToffsetArcWires1B2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 8 && (I.push(this.ToffsetWires2B2[i - 8]), I.push(this.ToffsetWires2B2[i - 4]), this.ToffsetArcWires2B2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2B2[i - 7]), P.push(this.ToffsetWires2B2[i - 3]), this.ToffsetArcWires2B2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2B2[i - 6]), g.push(this.ToffsetWires2B2[i - 2]), this.ToffsetArcWires2B2 = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2B2[i - 5]), y.push(this.ToffsetWires2B2[i - 1]), this.ToffsetArcWires2B2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2325
2331
|
break;
|
|
2326
2332
|
case p.六分裂:
|
|
2327
|
-
this.ToffsetWires2B1.length >= 12 && (
|
|
2333
|
+
this.ToffsetWires2B1.length >= 12 && (t.push(this.ToffsetWires2B1[i - 12]), t.push(this.ToffsetWires2B1[i - 6]), this.ToffsetArcWires1B2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[i - 11]), l.push(this.ToffsetWires2B1[i - 5]), this.ToffsetArcWires1B2 = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2B1[i - 10]), u.push(this.ToffsetWires2B1[i - 4]), this.ToffsetArcWires1B2 = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2B1[i - 9]), C.push(this.ToffsetWires2B1[i - 3]), this.ToffsetArcWires1B2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires2B1[i - 8]), o.push(this.ToffsetWires2B1[i - 2]), this.ToffsetArcWires1B2 = f(o, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), c.push(this.ToffsetWires2B1[i - 7]), c.push(this.ToffsetWires2B1[i - 1]), this.ToffsetArcWires1B2 = f(c, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 12 && (I.push(this.ToffsetWires2B2[i - 12]), I.push(this.ToffsetWires2B2[i - 6]), this.ToffsetArcWires2B2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2B2[i - 11]), P.push(this.ToffsetWires2B2[i - 5]), this.ToffsetArcWires2B2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2B2[i - 10]), g.push(this.ToffsetWires2B2[i - 4]), this.ToffsetArcWires2B2 = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2B2[i - 9]), y.push(this.ToffsetWires2B2[i - 3]), this.ToffsetArcWires2B2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2B2[i - 8]), v.push(this.ToffsetWires2B2[i - 2]), this.ToffsetArcWires2B2 = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2B2[i - 7]), _.push(this.ToffsetWires2B2[i - 1]), this.ToffsetArcWires2B2 = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2328
2334
|
break;
|
|
2329
2335
|
case p.八分裂:
|
|
2330
|
-
this.ToffsetWires2B1.length >= 16 && (
|
|
2336
|
+
this.ToffsetWires2B1.length >= 16 && (t.push(this.ToffsetWires2B1[i - 16]), t.push(this.ToffsetWires2B1[i - 8]), this.ToffsetArcWires1B2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[i - 15]), l.push(this.ToffsetWires2B1[i - 7]), this.ToffsetArcWires1B2 = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2B1[i - 14]), u.push(this.ToffsetWires2B1[i - 6]), this.ToffsetArcWires1B2 = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2B1[i - 13]), C.push(this.ToffsetWires2B1[i - 5]), this.ToffsetArcWires1B2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires2B1[i - 12]), o.push(this.ToffsetWires2B1[i - 4]), this.ToffsetArcWires1B2 = f(o, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), c.push(this.ToffsetWires2B1[i - 11]), c.push(this.ToffsetWires2B1[i - 3]), this.ToffsetArcWires1B2 = f(c, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2B1[i - 10]), m.push(this.ToffsetWires2B1[i - 2]), this.ToffsetArcWires1B2 = f(m, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires2B1[i - 9]), b.push(this.ToffsetWires2B1[i - 1]), this.ToffsetArcWires1B2 = f(b, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 16 && (I.push(this.ToffsetWires2B2[i - 16]), I.push(this.ToffsetWires2B2[i - 8]), this.ToffsetArcWires2B2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2B2[i - 15]), P.push(this.ToffsetWires2B2[i - 7]), this.ToffsetArcWires2B2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2B2[i - 14]), g.push(this.ToffsetWires2B2[i - 6]), this.ToffsetArcWires2B2 = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2B2[i - 13]), y.push(this.ToffsetWires2B2[i - 5]), this.ToffsetArcWires2B2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2B2[i - 12]), v.push(this.ToffsetWires2B2[i - 4]), this.ToffsetArcWires2B2 = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2B2[i - 11]), _.push(this.ToffsetWires2B2[i - 3]), this.ToffsetArcWires2B2 = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), S.push(this.ToffsetWires2B2[i - 10]), S.push(this.ToffsetWires2B2[i - 2]), this.ToffsetArcWires2B2 = f(S, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), M.push(this.ToffsetWires2B2[i - 9]), M.push(this.ToffsetWires2B2[i - 1]), this.ToffsetArcWires2B2 = f(M, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2331
2337
|
break;
|
|
2332
2338
|
}
|
|
2333
2339
|
}
|
|
2334
2340
|
if (this.ToffsetWires2C1.length > 1 && this.ToffsetWires2C2.length > 1) {
|
|
2335
|
-
const
|
|
2341
|
+
const t = [], l = [], u = [], C = [], o = [], c = [], m = [], b = [], I = [], P = [], g = [], y = [], v = [], _ = [], S = [], M = [];
|
|
2336
2342
|
switch (this.LineInfo.Wairnum) {
|
|
2337
2343
|
case p.单分裂:
|
|
2338
|
-
this.ToffsetWires2C1.length >= 2 && (
|
|
2344
|
+
this.ToffsetWires2C1.length >= 2 && (t.push(this.ToffsetWires2C1[i - 2]), t.push(this.ToffsetWires2C1[i - 1]), this.ToffsetArcWires1C2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 2 && (I.push(this.ToffsetWires2C2[i - 2]), I.push(this.ToffsetWires2C2[i - 1]), this.ToffsetArcWires2C2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2339
2345
|
break;
|
|
2340
2346
|
case p.双分裂:
|
|
2341
|
-
this.ToffsetWires2C1.length >= 4 && (
|
|
2347
|
+
this.ToffsetWires2C1.length >= 4 && (t.push(this.ToffsetWires2C1[i - 4]), t.push(this.ToffsetWires2C1[i - 2]), this.ToffsetArcWires1C2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[i - 3]), l.push(this.ToffsetWires2C1[i - 1]), this.ToffsetArcWires1C2 = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 4 && (I.push(this.ToffsetWires2C2[i - 4]), I.push(this.ToffsetWires2C2[i - 2]), this.ToffsetArcWires2C2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2C2[i - 3]), P.push(this.ToffsetWires2C2[i - 1]), this.ToffsetArcWires2C2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2342
2348
|
break;
|
|
2343
2349
|
case p.四分裂:
|
|
2344
|
-
this.ToffsetWires2C1.length >= 8 && (
|
|
2350
|
+
this.ToffsetWires2C1.length >= 8 && (t.push(this.ToffsetWires2C1[i - 8]), t.push(this.ToffsetWires2C1[i - 4]), this.ToffsetArcWires1C2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[i - 7]), l.push(this.ToffsetWires2C1[i - 3]), this.ToffsetArcWires1C2 = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2C1[i - 6]), u.push(this.ToffsetWires2C1[i - 2]), this.ToffsetArcWires1C2 = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2C1[i - 5]), C.push(this.ToffsetWires2C1[i - 1]), this.ToffsetArcWires1C2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 8 && (I.push(this.ToffsetWires2C2[i - 8]), I.push(this.ToffsetWires2C2[i - 4]), this.ToffsetArcWires2C2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2C2[i - 7]), P.push(this.ToffsetWires2C2[i - 3]), this.ToffsetArcWires2C2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2C2[i - 6]), g.push(this.ToffsetWires2C2[i - 2]), this.ToffsetArcWires2C2 = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2C2[i - 5]), y.push(this.ToffsetWires2C2[i - 1]), this.ToffsetArcWires2C2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2345
2351
|
break;
|
|
2346
2352
|
case p.六分裂:
|
|
2347
|
-
this.ToffsetWires2C1.length >= 12 && (
|
|
2353
|
+
this.ToffsetWires2C1.length >= 12 && (t.push(this.ToffsetWires2C1[i - 12]), t.push(this.ToffsetWires2C1[i - 6]), this.ToffsetArcWires1C2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[i - 11]), l.push(this.ToffsetWires2C1[i - 5]), this.ToffsetArcWires1C2 = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2C1[i - 10]), u.push(this.ToffsetWires2C1[i - 4]), this.ToffsetArcWires1C2 = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2C1[i - 9]), C.push(this.ToffsetWires2C1[i - 3]), this.ToffsetArcWires1C2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires2C1[i - 8]), o.push(this.ToffsetWires2C1[i - 2]), this.ToffsetArcWires1C2 = f(o, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), c.push(this.ToffsetWires2C1[i - 7]), c.push(this.ToffsetWires2C1[i - 1]), this.ToffsetArcWires1C2 = f(c, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 12 && (I.push(this.ToffsetWires2C2[i - 12]), I.push(this.ToffsetWires2C2[i - 6]), this.ToffsetArcWires2C2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2C2[i - 11]), P.push(this.ToffsetWires2C2[i - 5]), this.ToffsetArcWires2C2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2C2[i - 10]), g.push(this.ToffsetWires2C2[i - 4]), this.ToffsetArcWires2C2 = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2C2[i - 9]), y.push(this.ToffsetWires2C2[i - 3]), this.ToffsetArcWires2C2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2C2[i - 8]), v.push(this.ToffsetWires2C2[i - 2]), this.ToffsetArcWires2C2 = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2C2[i - 7]), _.push(this.ToffsetWires2C2[i - 1]), this.ToffsetArcWires2C2 = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2348
2354
|
break;
|
|
2349
2355
|
case p.八分裂:
|
|
2350
|
-
this.ToffsetWires2C1.length >= 16 && (
|
|
2356
|
+
this.ToffsetWires2C1.length >= 16 && (t.push(this.ToffsetWires2C1[i - 16]), t.push(this.ToffsetWires2C1[i - 8]), this.ToffsetArcWires1C2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[i - 15]), l.push(this.ToffsetWires2C1[i - 7]), this.ToffsetArcWires1C2 = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2C1[i - 14]), u.push(this.ToffsetWires2C1[i - 6]), this.ToffsetArcWires1C2 = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2C1[i - 13]), C.push(this.ToffsetWires2C1[i - 5]), this.ToffsetArcWires1C2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires2C1[i - 12]), o.push(this.ToffsetWires2C1[i - 4]), this.ToffsetArcWires1C2 = f(o, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), c.push(this.ToffsetWires2C1[i - 11]), c.push(this.ToffsetWires2C1[i - 3]), this.ToffsetArcWires1C2 = f(c, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2C1[i - 10]), m.push(this.ToffsetWires2C1[i - 2]), this.ToffsetArcWires1C2 = f(m, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires2C1[i - 9]), b.push(this.ToffsetWires2C1[i - 1]), this.ToffsetArcWires1C2 = f(b, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 16 && (I.push(this.ToffsetWires2C2[i - 16]), I.push(this.ToffsetWires2C2[i - 8]), this.ToffsetArcWires2C2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2C2[i - 15]), P.push(this.ToffsetWires2C2[i - 7]), this.ToffsetArcWires2C2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2C2[i - 14]), g.push(this.ToffsetWires2C2[i - 6]), this.ToffsetArcWires2C2 = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2C2[i - 13]), y.push(this.ToffsetWires2C2[i - 5]), this.ToffsetArcWires2C2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2C2[i - 12]), v.push(this.ToffsetWires2C2[i - 4]), this.ToffsetArcWires2C2 = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2C2[i - 11]), _.push(this.ToffsetWires2C2[i - 3]), this.ToffsetArcWires2C2 = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), S.push(this.ToffsetWires2C2[i - 10]), S.push(this.ToffsetWires2C2[i - 2]), this.ToffsetArcWires2C2 = f(S, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), M.push(this.ToffsetWires2C2[i - 9]), M.push(this.ToffsetWires2C2[i - 1]), this.ToffsetArcWires2C2 = f(M, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2351
2357
|
break;
|
|
2352
2358
|
}
|
|
2353
2359
|
}
|
|
@@ -2391,16 +2397,16 @@ const es = class es {
|
|
|
2391
2397
|
`树木数据长度 (${this.LineInfo.Trees.length}) 与位置数据长度 (${this.offsetTrees.length}) 不匹配`
|
|
2392
2398
|
);
|
|
2393
2399
|
const e = Math.min(this.LineInfo.Trees.length, this.offsetTrees.length);
|
|
2394
|
-
for (let
|
|
2395
|
-
const r = this.LineInfo.Trees[
|
|
2396
|
-
r && s ? this.loadTreeAtIndex(
|
|
2400
|
+
for (let i = 0; i < e; i++) {
|
|
2401
|
+
const r = this.LineInfo.Trees[i], s = this.offsetTrees[i];
|
|
2402
|
+
r && s ? this.loadTreeAtIndex(i, s) : console.warn(`跳过无效的树木数据,索引: ${i}`);
|
|
2397
2403
|
}
|
|
2398
2404
|
console.log(`完成加载 ${e} 棵树木`);
|
|
2399
2405
|
}
|
|
2400
2406
|
/**
|
|
2401
2407
|
* 加载指定索引的树木
|
|
2402
2408
|
*/
|
|
2403
|
-
loadTreeAtIndex(e,
|
|
2409
|
+
loadTreeAtIndex(e, i) {
|
|
2404
2410
|
const r = this.LineInfo.Trees[e];
|
|
2405
2411
|
if (!r.modelurl || r.modelurl.trim() === "") {
|
|
2406
2412
|
console.warn(`Tree ${e} has invalid model URL: ${r.modelurl}. Skipping...`);
|
|
@@ -2420,7 +2426,7 @@ const es = class es {
|
|
|
2420
2426
|
this.entityCollectiontree.add(
|
|
2421
2427
|
Cs(
|
|
2422
2428
|
"tree-" + r.id,
|
|
2423
|
-
|
|
2429
|
+
i,
|
|
2424
2430
|
"tree-" + r.id,
|
|
2425
2431
|
T.uri,
|
|
2426
2432
|
new n.HeadingPitchRoll(0, 0, 0),
|
|
@@ -2439,7 +2445,7 @@ const es = class es {
|
|
|
2439
2445
|
console.warn(`Invalid tree index: ${e}. Valid range: 0-${this.LineInfo.Trees.length - 1}`);
|
|
2440
2446
|
return;
|
|
2441
2447
|
}
|
|
2442
|
-
const
|
|
2448
|
+
const i = this.LineInfo.Trees[e], r = n.Cartesian3.fromDegrees(i.lon, i.lat, i.alt + (i.treeH || 0));
|
|
2443
2449
|
this.viewer.camera.flyTo({
|
|
2444
2450
|
destination: r,
|
|
2445
2451
|
duration: 2,
|
|
@@ -2448,38 +2454,38 @@ const es = class es {
|
|
|
2448
2454
|
pitch: n.Math.toRadians(-60),
|
|
2449
2455
|
roll: n.Math.toRadians(0)
|
|
2450
2456
|
}
|
|
2451
|
-
}), console.log(`Flying to tree ${e}: lon=${
|
|
2457
|
+
}), console.log(`Flying to tree ${e}: lon=${i.lon}, lat=${i.lat}, alt=${i.alt}, treeH=${i.treeH}`);
|
|
2452
2458
|
}
|
|
2453
2459
|
/**
|
|
2454
2460
|
* 显示计算结果
|
|
2455
2461
|
* @param point 树木坐标点 [经度, 纬度, 高度]
|
|
2456
2462
|
*/
|
|
2457
2463
|
calcResult(e) {
|
|
2458
|
-
const
|
|
2464
|
+
const i = Qs(
|
|
2459
2465
|
e,
|
|
2460
2466
|
this.arcLine1A1,
|
|
2461
2467
|
this.arcLine1B1,
|
|
2462
2468
|
this.arcLine1D1
|
|
2463
2469
|
);
|
|
2464
|
-
js(e,
|
|
2470
|
+
js(e, i, this.entityCollectionplotting);
|
|
2465
2471
|
}
|
|
2466
2472
|
/**
|
|
2467
2473
|
* 加载树木点击监听功能
|
|
2468
2474
|
*/
|
|
2469
2475
|
loadTreeListen() {
|
|
2470
2476
|
this.treeHandler && this.removeTreeListen();
|
|
2471
|
-
const e = (
|
|
2477
|
+
const e = (i, r) => {
|
|
2472
2478
|
var T;
|
|
2473
|
-
const s =
|
|
2479
|
+
const s = i.scene.pick(r);
|
|
2474
2480
|
if (n.defined(s)) {
|
|
2475
2481
|
const W = n.defaultValue(s.id, (T = s.primitive) == null ? void 0 : T.id);
|
|
2476
2482
|
if (W instanceof n.Entity)
|
|
2477
2483
|
return W;
|
|
2478
2484
|
}
|
|
2479
2485
|
};
|
|
2480
|
-
this.ensurePlottingDataSourceAdded(), this.treeHandler = new n.ScreenSpaceEventHandler(this.viewer.canvas), this.treeHandler.setInputAction((
|
|
2486
|
+
this.ensurePlottingDataSourceAdded(), this.treeHandler = new n.ScreenSpaceEventHandler(this.viewer.canvas), this.treeHandler.setInputAction((i) => {
|
|
2481
2487
|
var s;
|
|
2482
|
-
const r = e(this.viewer,
|
|
2488
|
+
const r = e(this.viewer, i.position);
|
|
2483
2489
|
if (r && r.id) {
|
|
2484
2490
|
const T = String(r.id);
|
|
2485
2491
|
if (T.startsWith(es.TREE_ENTITY_PREFIX)) {
|
|
@@ -2514,12 +2520,12 @@ const es = class es {
|
|
|
2514
2520
|
LineChannelTerrainVerification() {
|
|
2515
2521
|
this.ensurePlottingDataSourceAdded(), this.LineInfo.Trees.forEach((e) => {
|
|
2516
2522
|
if (e) {
|
|
2517
|
-
const
|
|
2523
|
+
const i = [
|
|
2518
2524
|
e.lon,
|
|
2519
2525
|
e.lat,
|
|
2520
2526
|
Number(e.alt || 0) + Number(e.treeH || 0)
|
|
2521
2527
|
];
|
|
2522
|
-
this.calcResult(
|
|
2528
|
+
this.calcResult(i);
|
|
2523
2529
|
}
|
|
2524
2530
|
});
|
|
2525
2531
|
}
|
|
@@ -2539,13 +2545,19 @@ const es = class es {
|
|
|
2539
2545
|
}
|
|
2540
2546
|
//移除树木
|
|
2541
2547
|
RemoveTreeModel() {
|
|
2542
|
-
this.Keym == "OW_JPS_EEngin_001" && (this.viewer.dataSources.remove(this.dataSourcetree), this.entityCollectiontree.show = !1);
|
|
2548
|
+
this.Keym == "OW_JPS_EEngin_001" && (this.entityCollectiontree && this.entityCollectiontree.removeAll(), this.viewer.dataSources.contains(this.dataSourcetree) && this.viewer.dataSources.remove(this.dataSourcetree), this.entityCollectiontree.show = !1, this.loadedTreeIndices.clear(), this.isTreeModelRemoved = !0, this.isLineModelRemoved && this.cleanupDynamicLoadingResources());
|
|
2543
2549
|
}
|
|
2544
2550
|
/**
|
|
2545
2551
|
* 重新加载树木(用于切换动态/静态模式后)
|
|
2546
2552
|
*/
|
|
2547
2553
|
reloadTrees() {
|
|
2548
|
-
this.RemoveTreeModel(), this.dataSourcetree = new n.CustomDataSource(this.LineInfo.LineID + "tree"), this.entityCollectiontree = this.dataSourcetree.entities, this.loadTree();
|
|
2554
|
+
this.RemoveTreeModel(), this.dataSourcetree = new n.CustomDataSource(this.LineInfo.LineID + "tree"), this.entityCollectiontree = this.dataSourcetree.entities, this.viewer.dataSources.contains(this.dataSourcetree) || this.viewer.dataSources.add(this.dataSourcetree), this.isTreeModelRemoved = !1, this.loadTree();
|
|
2555
|
+
}
|
|
2556
|
+
/**
|
|
2557
|
+
* 重新加载线路(用于切换动态/静态模式后)
|
|
2558
|
+
*/
|
|
2559
|
+
reloadLines() {
|
|
2560
|
+
this.RemoveLineModel(), this.dataSource2 = new n.CustomDataSource(this.LineInfo.LineID + "tower"), this.entityCollection2 = this.dataSource2.entities, this.LinedataSource2 = new n.CustomDataSource(this.LineInfo.LineID + "wire"), this.LineentityCollection2 = this.LinedataSource2.entities, this.viewer.dataSources.contains(this.dataSource2) || this.viewer.dataSources.add(this.dataSource2), this.viewer.dataSources.contains(this.LinedataSource2) || this.viewer.dataSources.add(this.LinedataSource2), this.isLineModelRemoved = !1, this.loadLineModel();
|
|
2549
2561
|
}
|
|
2550
2562
|
LineSpriteLineinit() {
|
|
2551
2563
|
n.Material._materialCache.addMaterial(
|
|
@@ -2582,15 +2594,25 @@ const es = class es {
|
|
|
2582
2594
|
setLineVisible(e) {
|
|
2583
2595
|
this.Keym == "OW_JPS_EEngin_001" && (this.entityCollection2.show = e, this.LineentityCollection2.show = e);
|
|
2584
2596
|
}
|
|
2597
|
+
//设置显隐
|
|
2598
|
+
setTreeVisible(e) {
|
|
2599
|
+
this.Keym == "OW_JPS_EEngin_001" && (this.entityCollectiontree.show = e);
|
|
2600
|
+
}
|
|
2585
2601
|
//移除渲染电力线路
|
|
2586
2602
|
RemoveLineModel() {
|
|
2587
|
-
this.Keym == "OW_JPS_EEngin_001" && (this.viewer.dataSources.remove(this.dataSource2), this.entityCollection2.show = !1, this.viewer.dataSources.remove(this.LinedataSource2), this.LineentityCollection2.show = !1, this.
|
|
2603
|
+
this.Keym == "OW_JPS_EEngin_001" && (this.viewer.dataSources.remove(this.dataSource2), this.entityCollection2.show = !1, this.viewer.dataSources.remove(this.LinedataSource2), this.LineentityCollection2.show = !1, this.isLineModelRemoved = !0, this.isTreeModelRemoved ? this.cleanupDynamicLoadingResources() : this.loadedTowerIndices.clear());
|
|
2604
|
+
}
|
|
2605
|
+
/**
|
|
2606
|
+
* 清理所有动态加载相关资源
|
|
2607
|
+
*/
|
|
2608
|
+
cleanupDynamicLoadingResources() {
|
|
2609
|
+
this.cameraMoveHandler && (this.cameraMoveHandler(), this.cameraMoveHandler = null), this.loadedTowerIndices.clear(), this.loadedTreeIndices.clear(), this.modelCache.clear(), console.log("已清理所有动态加载资源");
|
|
2588
2610
|
}
|
|
2589
2611
|
};
|
|
2590
2612
|
// 树木实体ID前缀常量
|
|
2591
2613
|
w(es, "TREE_ENTITY_PREFIX", "tree-");
|
|
2592
2614
|
let ws = es;
|
|
2593
|
-
class
|
|
2615
|
+
class Ai {
|
|
2594
2616
|
constructor() {
|
|
2595
2617
|
// 杆塔id
|
|
2596
2618
|
w(this, "id", "");
|
|
@@ -2620,16 +2642,16 @@ class At {
|
|
|
2620
2642
|
w(this, "RollZ", 0);
|
|
2621
2643
|
}
|
|
2622
2644
|
}
|
|
2623
|
-
function
|
|
2645
|
+
function ei(a) {
|
|
2624
2646
|
debugger;
|
|
2625
2647
|
const e = a.split(`
|
|
2626
|
-
`),
|
|
2648
|
+
`), i = [], r = [], s = /^\s*(\d+)\s+([\d.-]+)\s+([\d.-]+)\s+([\d.-]+)\s+(-?\d+)/, T = /^\s*(\d+)\s+(\d+)\s+(\d+)\s*(?:#|$)/;
|
|
2627
2649
|
for (const W of e) {
|
|
2628
2650
|
const L = W.trim();
|
|
2629
2651
|
if (!L) continue;
|
|
2630
2652
|
const A = L.match(s);
|
|
2631
2653
|
if (A) {
|
|
2632
|
-
|
|
2654
|
+
i.push({
|
|
2633
2655
|
id: parseInt(A[1]),
|
|
2634
2656
|
x: parseFloat(A[2]),
|
|
2635
2657
|
y: parseFloat(A[3]),
|
|
@@ -2645,64 +2667,64 @@ function et(a) {
|
|
|
2645
2667
|
type: parseInt(d[3])
|
|
2646
2668
|
});
|
|
2647
2669
|
}
|
|
2648
|
-
return { TowerNodes:
|
|
2670
|
+
return { TowerNodes: i, connections: r };
|
|
2649
2671
|
}
|
|
2650
|
-
function
|
|
2672
|
+
function oi(a) {
|
|
2651
2673
|
const e = a.split(`
|
|
2652
|
-
`),
|
|
2674
|
+
`), i = [];
|
|
2653
2675
|
for (const r of e) {
|
|
2654
2676
|
if (!r.trim()) continue;
|
|
2655
2677
|
const s = r.trim().split(/\s+/).filter((L) => L !== ""), T = parseInt(s[0]);
|
|
2656
2678
|
if (isNaN(T)) continue;
|
|
2657
2679
|
const W = [];
|
|
2658
2680
|
for (let L = 1; L < s.length; L += 3) {
|
|
2659
|
-
const A = parseFloat(s[L]), d = parseFloat(s[L + 1]),
|
|
2660
|
-
if (!isNaN(A) && !isNaN(d) && !isNaN(
|
|
2681
|
+
const A = parseFloat(s[L]), d = parseFloat(s[L + 1]), t = parseFloat(s[L + 2]);
|
|
2682
|
+
if (!isNaN(A) && !isNaN(d) && !isNaN(t)) {
|
|
2661
2683
|
const l = Math.floor((L - 1) / 3) + 1;
|
|
2662
|
-
W.push({ timeStep: l, x: A, y: d, z:
|
|
2684
|
+
W.push({ timeStep: l, x: A, y: d, z: t });
|
|
2663
2685
|
}
|
|
2664
2686
|
}
|
|
2665
|
-
|
|
2687
|
+
i.push({
|
|
2666
2688
|
nodeId: T,
|
|
2667
2689
|
displacements: W
|
|
2668
2690
|
});
|
|
2669
2691
|
}
|
|
2670
|
-
return
|
|
2692
|
+
return i;
|
|
2671
2693
|
}
|
|
2672
2694
|
function Is(a) {
|
|
2673
2695
|
const e = {};
|
|
2674
|
-
return a.forEach((
|
|
2675
|
-
|
|
2696
|
+
return a.forEach((i) => {
|
|
2697
|
+
i.displacements.forEach((r) => {
|
|
2676
2698
|
e[r.timeStep] || (e[r.timeStep] = []), e[r.timeStep].push({
|
|
2677
|
-
nodeId:
|
|
2699
|
+
nodeId: i.nodeId,
|
|
2678
2700
|
...r
|
|
2679
2701
|
});
|
|
2680
2702
|
});
|
|
2681
2703
|
}), e;
|
|
2682
2704
|
}
|
|
2683
|
-
function
|
|
2705
|
+
function ri(a) {
|
|
2684
2706
|
const e = a.split(`
|
|
2685
|
-
`),
|
|
2707
|
+
`), i = [];
|
|
2686
2708
|
for (const s of e) {
|
|
2687
2709
|
if (!s.trim()) continue;
|
|
2688
2710
|
const T = s.match(/^\s*(\d+-\s*\d+)\s+((?:\d+\.\d+\s*)+)/);
|
|
2689
2711
|
if (T) {
|
|
2690
2712
|
const W = T[1].replace(/\s+/g, ""), L = T[2].trim().split(/\s+/).map(Number);
|
|
2691
|
-
|
|
2713
|
+
i.push({
|
|
2692
2714
|
elementId: W,
|
|
2693
2715
|
stressRatios: L
|
|
2694
2716
|
});
|
|
2695
2717
|
}
|
|
2696
2718
|
}
|
|
2697
2719
|
const r = [];
|
|
2698
|
-
if (
|
|
2699
|
-
const s =
|
|
2720
|
+
if (i.length > 0) {
|
|
2721
|
+
const s = i[0].stressRatios.length;
|
|
2700
2722
|
for (let T = 0; T < s; T++) {
|
|
2701
2723
|
const W = {
|
|
2702
2724
|
timeIndex: T,
|
|
2703
2725
|
elements: []
|
|
2704
2726
|
};
|
|
2705
|
-
for (const L of
|
|
2727
|
+
for (const L of i) {
|
|
2706
2728
|
let A;
|
|
2707
2729
|
const d = L.stressRatios[T];
|
|
2708
2730
|
d > 1 ? A = J.RED : d > 0.95 && d <= 1 ? A = J.PINK : d > 0.85 && d <= 0.95 ? A = J.YELLOW : d > 0.7 && d <= 0.85 ? A = J.GREEN : A = J.BLUE, W.elements.push({
|
|
@@ -2714,9 +2736,9 @@ function rt(a) {
|
|
|
2714
2736
|
r.push(W);
|
|
2715
2737
|
}
|
|
2716
2738
|
}
|
|
2717
|
-
return { byElement:
|
|
2739
|
+
return { byElement: i, byTime: r };
|
|
2718
2740
|
}
|
|
2719
|
-
class
|
|
2741
|
+
class hi {
|
|
2720
2742
|
constructor(e) {
|
|
2721
2743
|
w(this, "viewer");
|
|
2722
2744
|
w(this, "lines", []);
|
|
@@ -2726,8 +2748,8 @@ class ht {
|
|
|
2726
2748
|
* 添加一条线
|
|
2727
2749
|
* @returns 生成的Entity对象
|
|
2728
2750
|
*/
|
|
2729
|
-
addLine(e,
|
|
2730
|
-
const r = Es(this.viewer, e,
|
|
2751
|
+
addLine(e, i) {
|
|
2752
|
+
const r = Es(this.viewer, e, i);
|
|
2731
2753
|
return this.lines.push(r), r;
|
|
2732
2754
|
}
|
|
2733
2755
|
/** 移除所有线 */
|
|
@@ -2751,56 +2773,56 @@ class ht {
|
|
|
2751
2773
|
}
|
|
2752
2774
|
var Ms = { exports: {} };
|
|
2753
2775
|
(function(a, e) {
|
|
2754
|
-
(function(
|
|
2776
|
+
(function(i, r) {
|
|
2755
2777
|
r();
|
|
2756
|
-
})(
|
|
2757
|
-
function
|
|
2758
|
-
return typeof
|
|
2778
|
+
})(ts, function() {
|
|
2779
|
+
function i(d, t) {
|
|
2780
|
+
return typeof t > "u" ? t = { autoBom: !1 } : typeof t != "object" && (console.warn("Deprecated: Expected third argument to be a object"), t = { autoBom: !t }), t.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(d.type) ? new Blob(["\uFEFF", d], { type: d.type }) : d;
|
|
2759
2781
|
}
|
|
2760
|
-
function r(d,
|
|
2782
|
+
function r(d, t, l) {
|
|
2761
2783
|
var u = new XMLHttpRequest();
|
|
2762
2784
|
u.open("GET", d), u.responseType = "blob", u.onload = function() {
|
|
2763
|
-
A(u.response,
|
|
2785
|
+
A(u.response, t, l);
|
|
2764
2786
|
}, u.onerror = function() {
|
|
2765
2787
|
console.error("could not download file");
|
|
2766
2788
|
}, u.send();
|
|
2767
2789
|
}
|
|
2768
2790
|
function s(d) {
|
|
2769
|
-
var
|
|
2770
|
-
|
|
2791
|
+
var t = new XMLHttpRequest();
|
|
2792
|
+
t.open("HEAD", d, !1);
|
|
2771
2793
|
try {
|
|
2772
|
-
|
|
2794
|
+
t.send();
|
|
2773
2795
|
} catch {
|
|
2774
2796
|
}
|
|
2775
|
-
return 200 <=
|
|
2797
|
+
return 200 <= t.status && 299 >= t.status;
|
|
2776
2798
|
}
|
|
2777
2799
|
function T(d) {
|
|
2778
2800
|
try {
|
|
2779
2801
|
d.dispatchEvent(new MouseEvent("click"));
|
|
2780
2802
|
} catch {
|
|
2781
|
-
var
|
|
2782
|
-
|
|
2803
|
+
var t = document.createEvent("MouseEvents");
|
|
2804
|
+
t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), d.dispatchEvent(t);
|
|
2783
2805
|
}
|
|
2784
2806
|
}
|
|
2785
|
-
var W = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof
|
|
2786
|
-
} : "download" in HTMLAnchorElement.prototype && !L ? function(d,
|
|
2807
|
+
var W = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof ts == "object" && ts.global === ts ? ts : void 0, L = W.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), A = W.saveAs || (typeof window != "object" || window !== W ? function() {
|
|
2808
|
+
} : "download" in HTMLAnchorElement.prototype && !L ? function(d, t, l) {
|
|
2787
2809
|
var u = W.URL || W.webkitURL, C = document.createElement("a");
|
|
2788
|
-
|
|
2810
|
+
t = t || d.name || "download", C.download = t, C.rel = "noopener", typeof d == "string" ? (C.href = d, C.origin === location.origin ? T(C) : s(C.href) ? r(d, t, l) : T(C, C.target = "_blank")) : (C.href = u.createObjectURL(d), setTimeout(function() {
|
|
2789
2811
|
u.revokeObjectURL(C.href);
|
|
2790
2812
|
}, 4e4), setTimeout(function() {
|
|
2791
2813
|
T(C);
|
|
2792
2814
|
}, 0));
|
|
2793
|
-
} : "msSaveOrOpenBlob" in navigator ? function(d,
|
|
2794
|
-
if (
|
|
2795
|
-
else if (s(d)) r(d,
|
|
2815
|
+
} : "msSaveOrOpenBlob" in navigator ? function(d, t, l) {
|
|
2816
|
+
if (t = t || d.name || "download", typeof d != "string") navigator.msSaveOrOpenBlob(i(d, l), t);
|
|
2817
|
+
else if (s(d)) r(d, t, l);
|
|
2796
2818
|
else {
|
|
2797
2819
|
var u = document.createElement("a");
|
|
2798
2820
|
u.href = d, u.target = "_blank", setTimeout(function() {
|
|
2799
2821
|
T(u);
|
|
2800
2822
|
});
|
|
2801
2823
|
}
|
|
2802
|
-
} : function(d,
|
|
2803
|
-
if (u = u || open("", "_blank"), u && (u.document.title = u.document.body.innerText = "downloading..."), typeof d == "string") return r(d,
|
|
2824
|
+
} : function(d, t, l, u) {
|
|
2825
|
+
if (u = u || open("", "_blank"), u && (u.document.title = u.document.body.innerText = "downloading..."), typeof d == "string") return r(d, t, l);
|
|
2804
2826
|
var C = d.type === "application/octet-stream", o = /constructor/i.test(W.HTMLElement) || W.safari, c = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
2805
2827
|
if ((c || C && o || L) && typeof FileReader < "u") {
|
|
2806
2828
|
var m = new FileReader();
|
|
@@ -2820,27 +2842,27 @@ var Ms = { exports: {} };
|
|
|
2820
2842
|
})(Ms);
|
|
2821
2843
|
var cs = Ms.exports;
|
|
2822
2844
|
const ds = require("shp-write");
|
|
2823
|
-
class
|
|
2845
|
+
class fi {
|
|
2824
2846
|
// constructor(viewer: Cesium.Viewer, towerNodes: TowerNode[], connections: Connection[], towerFZS: TowerFZInfo) {
|
|
2825
|
-
constructor(e,
|
|
2847
|
+
constructor(e, i, r) {
|
|
2826
2848
|
// private viewer: Cesium.Viewer;
|
|
2827
2849
|
w(this, "towerNodes", []);
|
|
2828
2850
|
w(this, "connections", []);
|
|
2829
2851
|
w(this, "towerFZS");
|
|
2830
|
-
this.towerNodes = e, this.connections =
|
|
2852
|
+
this.towerNodes = e, this.connections = i, this.towerFZS = r;
|
|
2831
2853
|
}
|
|
2832
2854
|
// 导出杆塔数据为SHP文件
|
|
2833
2855
|
async exportTowerToSHP() {
|
|
2834
2856
|
try {
|
|
2835
|
-
const e = await this.generatePointFeatures(),
|
|
2836
|
-
await this.generateSHPFiles(e,
|
|
2857
|
+
const e = await this.generatePointFeatures(), i = await this.generateLineFeatures();
|
|
2858
|
+
await this.generateSHPFiles(e, i), console.log("SHP文件导出成功");
|
|
2837
2859
|
} catch (e) {
|
|
2838
2860
|
console.error("导出SHP文件失败:", e);
|
|
2839
2861
|
}
|
|
2840
2862
|
}
|
|
2841
2863
|
// 生成点要素数据 - 修复坐标格式
|
|
2842
2864
|
async generatePointFeatures() {
|
|
2843
|
-
const e = [],
|
|
2865
|
+
const e = [], i = new n.HeadingPitchRoll(
|
|
2844
2866
|
n.Math.toRadians(this.towerFZS.RollX),
|
|
2845
2867
|
this.towerFZS.RollY,
|
|
2846
2868
|
this.towerFZS.RollZ
|
|
@@ -2850,7 +2872,7 @@ class ft {
|
|
|
2850
2872
|
this.towerFZS.Altitude
|
|
2851
2873
|
);
|
|
2852
2874
|
for (const s of this.towerNodes) {
|
|
2853
|
-
const T = new n.Cartesian3(s.x, s.y, s.z), W = this.getPositionByHprAndOffset(r, T,
|
|
2875
|
+
const T = new n.Cartesian3(s.x, s.y, s.z), W = this.getPositionByHprAndOffset(r, T, i), L = n.Ellipsoid.WGS84.cartesianToCartographic(W), A = n.Math.toDegrees(L.longitude), d = n.Math.toDegrees(L.latitude), t = L.height, l = {
|
|
2854
2876
|
type: "Feature",
|
|
2855
2877
|
geometry: {
|
|
2856
2878
|
type: "Point",
|
|
@@ -2865,9 +2887,9 @@ class ft {
|
|
|
2865
2887
|
z: s.z,
|
|
2866
2888
|
longitude: A,
|
|
2867
2889
|
latitude: d,
|
|
2868
|
-
height:
|
|
2890
|
+
height: t,
|
|
2869
2891
|
// 高度作为属性存储
|
|
2870
|
-
elevation:
|
|
2892
|
+
elevation: t,
|
|
2871
2893
|
type: "tower_node"
|
|
2872
2894
|
}
|
|
2873
2895
|
};
|
|
@@ -2877,7 +2899,7 @@ class ft {
|
|
|
2877
2899
|
}
|
|
2878
2900
|
// 生成线要素数据 - 修复坐标格式
|
|
2879
2901
|
async generateLineFeatures() {
|
|
2880
|
-
const e = [],
|
|
2902
|
+
const e = [], i = new n.HeadingPitchRoll(
|
|
2881
2903
|
n.Math.toRadians(this.towerFZS.RollX),
|
|
2882
2904
|
this.towerFZS.RollY,
|
|
2883
2905
|
this.towerFZS.RollZ
|
|
@@ -2889,7 +2911,7 @@ class ft {
|
|
|
2889
2911
|
for (const s of this.connections) {
|
|
2890
2912
|
const T = this.towerNodes.find((g) => g.id === s.from), W = this.towerNodes.find((g) => g.id === s.to);
|
|
2891
2913
|
if (!T || !W) continue;
|
|
2892
|
-
const L = new n.Cartesian3(T.x, T.y, T.z), A = new n.Cartesian3(W.x, W.y, W.z), d = this.getPositionByHprAndOffset(r, L,
|
|
2914
|
+
const L = new n.Cartesian3(T.x, T.y, T.z), A = new n.Cartesian3(W.x, W.y, W.z), d = this.getPositionByHprAndOffset(r, L, i), t = this.getPositionByHprAndOffset(r, A, i), l = n.Ellipsoid.WGS84.cartesianToCartographic(d), u = n.Ellipsoid.WGS84.cartesianToCartographic(t), C = n.Math.toDegrees(l.longitude), o = n.Math.toDegrees(l.latitude), c = l.height, m = n.Math.toDegrees(u.longitude), b = n.Math.toDegrees(u.latitude), I = u.height, P = {
|
|
2893
2915
|
type: "Feature",
|
|
2894
2916
|
geometry: {
|
|
2895
2917
|
type: "LineString",
|
|
@@ -2910,7 +2932,7 @@ class ft {
|
|
|
2910
2932
|
// 终点高度
|
|
2911
2933
|
avg_height: (c + I) / 2,
|
|
2912
2934
|
// 平均高度
|
|
2913
|
-
length: this.calculateDistance(d,
|
|
2935
|
+
length: this.calculateDistance(d, t),
|
|
2914
2936
|
type: "tower_member",
|
|
2915
2937
|
width: this.towerFZS.TowerMembersWidth,
|
|
2916
2938
|
from_longitude: C,
|
|
@@ -2924,7 +2946,7 @@ class ft {
|
|
|
2924
2946
|
return e;
|
|
2925
2947
|
}
|
|
2926
2948
|
// 修复SHP文件生成方法
|
|
2927
|
-
async generateSHPFiles(e,
|
|
2949
|
+
async generateSHPFiles(e, i) {
|
|
2928
2950
|
try {
|
|
2929
2951
|
if (e.length > 0) {
|
|
2930
2952
|
const r = {
|
|
@@ -2933,24 +2955,24 @@ class ft {
|
|
|
2933
2955
|
}, s = ds.point(r);
|
|
2934
2956
|
this.downloadSHPFiles(s, "tower_nodes");
|
|
2935
2957
|
}
|
|
2936
|
-
if (
|
|
2958
|
+
if (i.length > 0) {
|
|
2937
2959
|
const r = {
|
|
2938
2960
|
type: "FeatureCollection",
|
|
2939
|
-
features:
|
|
2961
|
+
features: i
|
|
2940
2962
|
}, s = ds.line(r);
|
|
2941
2963
|
this.downloadSHPFiles(s, "tower_members");
|
|
2942
2964
|
}
|
|
2943
2965
|
} catch (r) {
|
|
2944
|
-
console.error("生成SHP文件时出错:", r), await this.alternativeExport(e,
|
|
2966
|
+
console.error("生成SHP文件时出错:", r), await this.alternativeExport(e, i);
|
|
2945
2967
|
}
|
|
2946
2968
|
}
|
|
2947
2969
|
// 下载SHP文件
|
|
2948
|
-
downloadSHPFiles(e,
|
|
2970
|
+
downloadSHPFiles(e, i) {
|
|
2949
2971
|
const r = new Blob([e], { type: "application/zip" });
|
|
2950
|
-
cs.saveAs(r, `${
|
|
2972
|
+
cs.saveAs(r, `${i}.zip`);
|
|
2951
2973
|
}
|
|
2952
2974
|
// 备用导出方案 - 导出为GeoJSON
|
|
2953
|
-
async alternativeExport(e,
|
|
2975
|
+
async alternativeExport(e, i) {
|
|
2954
2976
|
if (console.log("使用备用方案导出为GeoJSON格式"), e.length > 0) {
|
|
2955
2977
|
const r = {
|
|
2956
2978
|
type: "FeatureCollection",
|
|
@@ -2958,57 +2980,57 @@ class ft {
|
|
|
2958
2980
|
};
|
|
2959
2981
|
this.downloadJSON(r, "tower_nodes.geojson");
|
|
2960
2982
|
}
|
|
2961
|
-
if (
|
|
2983
|
+
if (i.length > 0) {
|
|
2962
2984
|
const r = {
|
|
2963
2985
|
type: "FeatureCollection",
|
|
2964
|
-
features:
|
|
2986
|
+
features: i
|
|
2965
2987
|
};
|
|
2966
2988
|
this.downloadJSON(r, "tower_members.geojson");
|
|
2967
2989
|
}
|
|
2968
2990
|
}
|
|
2969
2991
|
// 下载JSON文件
|
|
2970
|
-
downloadJSON(e,
|
|
2992
|
+
downloadJSON(e, i) {
|
|
2971
2993
|
const r = new Blob([JSON.stringify(e, null, 2)], {
|
|
2972
2994
|
type: "application/json"
|
|
2973
2995
|
});
|
|
2974
|
-
cs.saveAs(r,
|
|
2996
|
+
cs.saveAs(r, i);
|
|
2975
2997
|
}
|
|
2976
2998
|
// 计算两点之间的距离
|
|
2977
|
-
calculateDistance(e,
|
|
2978
|
-
return n.Cartesian3.distance(e,
|
|
2999
|
+
calculateDistance(e, i) {
|
|
3000
|
+
return n.Cartesian3.distance(e, i);
|
|
2979
3001
|
}
|
|
2980
3002
|
// 根据朝向和偏移量计算位置
|
|
2981
|
-
getPositionByHprAndOffset(e,
|
|
3003
|
+
getPositionByHprAndOffset(e, i, r) {
|
|
2982
3004
|
const s = n.Transforms.headingPitchRollToFixedFrame(e, r);
|
|
2983
|
-
return n.Matrix4.multiplyByPoint(s,
|
|
3005
|
+
return n.Matrix4.multiplyByPoint(s, i, new n.Cartesian3());
|
|
2984
3006
|
}
|
|
2985
3007
|
}
|
|
2986
|
-
class
|
|
2987
|
-
static async exportToCSV(e,
|
|
3008
|
+
class ni {
|
|
3009
|
+
static async exportToCSV(e, i, r) {
|
|
2988
3010
|
const s = this.exportNodesToCSV(e, r);
|
|
2989
3011
|
this.downloadCSV(s, "tower_nodes.csv");
|
|
2990
|
-
const T = this.exportConnectionsToCSV(
|
|
3012
|
+
const T = this.exportConnectionsToCSV(i, e, r);
|
|
2991
3013
|
this.downloadCSV(T, "tower_connections.csv");
|
|
2992
3014
|
}
|
|
2993
|
-
static exportNodesToCSV(e,
|
|
3015
|
+
static exportNodesToCSV(e, i) {
|
|
2994
3016
|
let r = `ID,X,Y,Z,Longitude,Latitude,Height
|
|
2995
3017
|
`;
|
|
2996
3018
|
const s = new n.HeadingPitchRoll(
|
|
2997
|
-
n.Math.toRadians(
|
|
2998
|
-
|
|
2999
|
-
|
|
3019
|
+
n.Math.toRadians(i.RollX),
|
|
3020
|
+
i.RollY,
|
|
3021
|
+
i.RollZ
|
|
3000
3022
|
), T = n.Cartesian3.fromDegrees(
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3023
|
+
i.Longitude,
|
|
3024
|
+
i.Latitude,
|
|
3025
|
+
i.Altitude
|
|
3004
3026
|
);
|
|
3005
3027
|
return e.forEach((W) => {
|
|
3006
|
-
const L = new n.Cartesian3(W.x, W.y, W.z), A = this.getPositionByHprAndOffset(T, L, s), d = n.Ellipsoid.WGS84.cartesianToCartographic(A),
|
|
3007
|
-
r += `${W.id},${W.x},${W.y},${W.z},${
|
|
3028
|
+
const L = new n.Cartesian3(W.x, W.y, W.z), A = this.getPositionByHprAndOffset(T, L, s), d = n.Ellipsoid.WGS84.cartesianToCartographic(A), t = n.Math.toDegrees(d.longitude), l = n.Math.toDegrees(d.latitude), u = d.height;
|
|
3029
|
+
r += `${W.id},${W.x},${W.y},${W.z},${t},${l},${u}
|
|
3008
3030
|
`;
|
|
3009
3031
|
}), r;
|
|
3010
3032
|
}
|
|
3011
|
-
static exportConnectionsToCSV(e,
|
|
3033
|
+
static exportConnectionsToCSV(e, i, r) {
|
|
3012
3034
|
let s = `FromNode,ToNode,FromX,FromY,FromZ,ToX,ToY,ToZ,Length
|
|
3013
3035
|
`;
|
|
3014
3036
|
const T = new n.HeadingPitchRoll(
|
|
@@ -3021,24 +3043,24 @@ class nt {
|
|
|
3021
3043
|
r.Altitude
|
|
3022
3044
|
);
|
|
3023
3045
|
return e.forEach((L) => {
|
|
3024
|
-
const A =
|
|
3046
|
+
const A = i.find((c) => c.id === L.from), d = i.find((c) => c.id === L.to);
|
|
3025
3047
|
if (!A || !d) return;
|
|
3026
|
-
const
|
|
3048
|
+
const t = new n.Cartesian3(A.x, A.y, A.z), l = new n.Cartesian3(d.x, d.y, d.z), u = this.getPositionByHprAndOffset(W, t, T), C = this.getPositionByHprAndOffset(W, l, T), o = n.Cartesian3.distance(u, C);
|
|
3027
3049
|
s += `${L.from},${L.to},${A.x},${A.y},${A.z},${d.x},${d.y},${d.z},${o}
|
|
3028
3050
|
`;
|
|
3029
3051
|
}), s;
|
|
3030
3052
|
}
|
|
3031
|
-
static downloadCSV(e,
|
|
3053
|
+
static downloadCSV(e, i) {
|
|
3032
3054
|
const r = new Blob([e], { type: "text/csv;charset=utf-8;" });
|
|
3033
|
-
cs.saveAs(r,
|
|
3055
|
+
cs.saveAs(r, i);
|
|
3034
3056
|
}
|
|
3035
|
-
static getPositionByHprAndOffset(e,
|
|
3057
|
+
static getPositionByHprAndOffset(e, i, r) {
|
|
3036
3058
|
const s = n.Transforms.headingPitchRollToFixedFrame(e, r);
|
|
3037
|
-
return n.Matrix4.multiplyByPoint(s,
|
|
3059
|
+
return n.Matrix4.multiplyByPoint(s, i, new n.Cartesian3());
|
|
3038
3060
|
}
|
|
3039
3061
|
}
|
|
3040
|
-
class
|
|
3041
|
-
constructor(e,
|
|
3062
|
+
class pi {
|
|
3063
|
+
constructor(e, i, r) {
|
|
3042
3064
|
//三维场景
|
|
3043
3065
|
w(this, "viewer");
|
|
3044
3066
|
w(this, "TowerFZS");
|
|
@@ -3060,7 +3082,7 @@ class pt {
|
|
|
3060
3082
|
w(this, "byTimes", []);
|
|
3061
3083
|
// 或者如果是Node.js环境:
|
|
3062
3084
|
w(this, "_animationInterval", null);
|
|
3063
|
-
this.Keym = r, this.viewer = e, this.TowerFZS =
|
|
3085
|
+
this.Keym = r, this.viewer = e, this.TowerFZS = i, this.dataSource2 = new n.CustomDataSource(this.TowerFZS.id), this.entityCollection2 = this.dataSource2.entities, this.TowerLineManager = new hi(this.viewer);
|
|
3064
3086
|
}
|
|
3065
3087
|
// 类的构造函数,用于初始化属性
|
|
3066
3088
|
// private shpExporter: TowerSHPExporter;
|
|
@@ -3070,9 +3092,9 @@ class pt {
|
|
|
3070
3092
|
loadfile() {
|
|
3071
3093
|
if (this.Keym != "OW_JPS_EEngin_001")
|
|
3072
3094
|
return;
|
|
3073
|
-
const { TowerNodes: e, connections:
|
|
3074
|
-
this.TowerNodes = e, this.connections =
|
|
3075
|
-
const { byTime: r } =
|
|
3095
|
+
const { TowerNodes: e, connections: i } = ei(this.TowerFZS.towerFZinfo);
|
|
3096
|
+
this.TowerNodes = e, this.connections = i, this.displacementData = oi(this.TowerFZS.towerDisFile);
|
|
3097
|
+
const { byTime: r } = ri(this.TowerFZS.stressFileContent);
|
|
3076
3098
|
this.byTimes = r;
|
|
3077
3099
|
debugger;
|
|
3078
3100
|
}
|
|
@@ -3081,10 +3103,10 @@ class pt {
|
|
|
3081
3103
|
if (this.Keym != "OW_JPS_EEngin_001")
|
|
3082
3104
|
return;
|
|
3083
3105
|
let e = new n.HeadingPitchRoll(n.Math.toRadians(this.TowerFZS.RollX), this.TowerFZS.RollY, this.TowerFZS.RollZ);
|
|
3084
|
-
const
|
|
3106
|
+
const i = n.Cartesian3.fromDegrees(this.TowerFZS.Longitude, this.TowerFZS.Latitude, this.TowerFZS.Altitude);
|
|
3085
3107
|
this.connections.forEach((r) => {
|
|
3086
3108
|
const s = this.TowerNodes.find((l) => l.id === r.from), T = this.TowerNodes.find((l) => l.id === r.to), W = [], L = new n.Cartesian3(s == null ? void 0 : s.x, s == null ? void 0 : s.y, s == null ? void 0 : s.z);
|
|
3087
|
-
W.push(B(
|
|
3109
|
+
W.push(B(i, L, e));
|
|
3088
3110
|
const A = os(
|
|
3089
3111
|
this.viewer,
|
|
3090
3112
|
W[0],
|
|
@@ -3098,8 +3120,8 @@ class pt {
|
|
|
3098
3120
|
);
|
|
3099
3121
|
this.pointEntities.push(A);
|
|
3100
3122
|
const d = new n.Cartesian3(T == null ? void 0 : T.x, T == null ? void 0 : T.y, T == null ? void 0 : T.z);
|
|
3101
|
-
W.push(B(
|
|
3102
|
-
const
|
|
3123
|
+
W.push(B(i, d, e));
|
|
3124
|
+
const t = os(
|
|
3103
3125
|
this.viewer,
|
|
3104
3126
|
W[1],
|
|
3105
3127
|
(s == null ? void 0 : s.id) + "",
|
|
@@ -3110,12 +3132,12 @@ class pt {
|
|
|
3110
3132
|
pixelOffset: [0, -30]
|
|
3111
3133
|
}
|
|
3112
3134
|
);
|
|
3113
|
-
this.pointEntities.push(
|
|
3135
|
+
this.pointEntities.push(t), this.TowerLineManager.addLine(W);
|
|
3114
3136
|
}), this.initSHPExporter();
|
|
3115
3137
|
}
|
|
3116
3138
|
// 使用修复后的SHP导出器
|
|
3117
3139
|
async exportToSHP() {
|
|
3118
|
-
await new
|
|
3140
|
+
await new fi(
|
|
3119
3141
|
this.TowerNodes,
|
|
3120
3142
|
this.connections,
|
|
3121
3143
|
this.TowerFZS
|
|
@@ -3123,7 +3145,7 @@ class pt {
|
|
|
3123
3145
|
}
|
|
3124
3146
|
// 如果SHP导出仍有问题,使用CSV备用方案
|
|
3125
3147
|
async exportToCSV() {
|
|
3126
|
-
await
|
|
3148
|
+
await ni.exportToCSV(
|
|
3127
3149
|
this.TowerNodes,
|
|
3128
3150
|
this.connections,
|
|
3129
3151
|
this.TowerFZS
|
|
@@ -3158,15 +3180,15 @@ class pt {
|
|
|
3158
3180
|
return;
|
|
3159
3181
|
}
|
|
3160
3182
|
debugger;
|
|
3161
|
-
const
|
|
3162
|
-
if (!
|
|
3183
|
+
const t = r.find((y) => y.nodeId === L.from), l = r.find((y) => y.nodeId === L.to);
|
|
3184
|
+
if (!t || !l) {
|
|
3163
3185
|
console.warn(`找不到连接 ${L.from}->${L.to} 的位移数据`);
|
|
3164
3186
|
return;
|
|
3165
3187
|
}
|
|
3166
3188
|
const u = new n.Cartesian3(
|
|
3167
|
-
A.x -
|
|
3168
|
-
A.y -
|
|
3169
|
-
A.z -
|
|
3189
|
+
A.x - t.x,
|
|
3190
|
+
A.y - t.y,
|
|
3191
|
+
A.z - t.z
|
|
3170
3192
|
), C = new n.Cartesian3(
|
|
3171
3193
|
d.x - l.x,
|
|
3172
3194
|
d.y - l.y,
|
|
@@ -3211,16 +3233,16 @@ class pt {
|
|
|
3211
3233
|
loadFZDISTower1(e) {
|
|
3212
3234
|
if (this.Keym != "OW_JPS_EEngin_001")
|
|
3213
3235
|
return;
|
|
3214
|
-
const
|
|
3236
|
+
const i = Is(this.displacementData);
|
|
3215
3237
|
let r = new n.HeadingPitchRoll(n.Math.toRadians(this.TowerFZS.RollX), this.TowerFZS.RollY, this.TowerFZS.RollZ);
|
|
3216
3238
|
const s = n.Cartesian3.fromDegrees(this.TowerFZS.Longitude, this.TowerFZS.Latitude, this.TowerFZS.Altitude);
|
|
3217
3239
|
this.connections.forEach((T) => {
|
|
3218
|
-
const W = this.TowerNodes.find((C) => C.id === T.from), L =
|
|
3219
|
-
|
|
3240
|
+
const W = this.TowerNodes.find((C) => C.id === T.from), L = i[e].find((C) => C.nodeId === T.from), A = this.TowerNodes.find((C) => C.id === T.to), d = i[e].find((C) => C.nodeId === T.to), t = [], l = new n.Cartesian3(W.x - L.x, W.y - L.y, W.z - L.z);
|
|
3241
|
+
t.push(B(s, l, r));
|
|
3220
3242
|
const u = new n.Cartesian3(A.x - d.x, A.y - d.y, A.z - d.z);
|
|
3221
|
-
|
|
3243
|
+
t.push(B(s, u, r));
|
|
3222
3244
|
debugger;
|
|
3223
|
-
this.entityCollection2.add(h(
|
|
3245
|
+
this.entityCollection2.add(h(t, T.from + "" + T.to, this.TowerFZS.TowerMembersWidth, this.TowerFZS.TowerMemberColor));
|
|
3224
3246
|
});
|
|
3225
3247
|
}
|
|
3226
3248
|
/**
|
|
@@ -3234,16 +3256,16 @@ class pt {
|
|
|
3234
3256
|
return;
|
|
3235
3257
|
}
|
|
3236
3258
|
let e = 1;
|
|
3237
|
-
const
|
|
3259
|
+
const i = this.displacementData.length;
|
|
3238
3260
|
this._animationInterval && (clearInterval(this._animationInterval), this._animationInterval = null);
|
|
3239
3261
|
const r = () => {
|
|
3240
|
-
if (this.viewer.dataSources.contains(this.dataSource2) && this.viewer.dataSources.remove(this.dataSource2, !0), e >
|
|
3262
|
+
if (this.viewer.dataSources.contains(this.dataSource2) && this.viewer.dataSources.remove(this.dataSource2, !0), e > i) {
|
|
3241
3263
|
e = 1;
|
|
3242
3264
|
return;
|
|
3243
3265
|
}
|
|
3244
3266
|
this.dataSource2 = new n.CustomDataSource("fztower"), this.entityCollection2 = this.dataSource2.entities;
|
|
3245
3267
|
try {
|
|
3246
|
-
this.loadFZDISTower(e), this.loadFZModel(), console.log(`正在显示位移帧: ${e}/${
|
|
3268
|
+
this.loadFZDISTower(e), this.loadFZModel(), console.log(`正在显示位移帧: ${e}/${i}`), e++;
|
|
3247
3269
|
} catch (s) {
|
|
3248
3270
|
console.error("加载位移帧时出错:", s), this._animationInterval && (clearInterval(this._animationInterval), this._animationInterval = null);
|
|
3249
3271
|
}
|
|
@@ -3272,20 +3294,20 @@ class pt {
|
|
|
3272
3294
|
}
|
|
3273
3295
|
}
|
|
3274
3296
|
export {
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3297
|
+
Ci as GUAPoint,
|
|
3298
|
+
Ti as InsulatorInfo,
|
|
3299
|
+
F as InsulatorType,
|
|
3300
|
+
hi as LineManager,
|
|
3279
3301
|
hs as LineNum,
|
|
3280
|
-
|
|
3281
|
-
|
|
3302
|
+
ti as LineType,
|
|
3303
|
+
pi as OWEEgineFZManager,
|
|
3282
3304
|
ws as OWEEgineManager,
|
|
3283
3305
|
G as PhaseSType,
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3306
|
+
Ai as TowerFZInfo,
|
|
3307
|
+
ci as TowerInfo,
|
|
3308
|
+
li as TowerLineInfo,
|
|
3287
3309
|
V as TowerType,
|
|
3288
|
-
|
|
3310
|
+
ui as TreeType,
|
|
3289
3311
|
p as WairnumType,
|
|
3290
3312
|
Cs as drawModel
|
|
3291
3313
|
};
|