ow-eengine-power 2.3.7 → 2.3.9
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 +712 -702
- package/dist/OW_EEngine_Power.umd.cjs +7 -7
- package/package.json +1 -1
package/dist/OW_EEngine_Power.js
CHANGED
|
@@ -1,100 +1,100 @@
|
|
|
1
1
|
var ys = Object.defineProperty;
|
|
2
|
-
var gs = (
|
|
3
|
-
var
|
|
2
|
+
var gs = (a, o, e) => o in a ? ys(a, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[o] = e;
|
|
3
|
+
var p = (a, o, e) => gs(a, typeof o != "symbol" ? o + "" : o, e);
|
|
4
4
|
import * as n from "cesium";
|
|
5
|
-
import { Color as z, HeightReference as
|
|
6
|
-
function _s(
|
|
5
|
+
import { Color as z, HeightReference as ms, LabelStyle as bs } from "cesium";
|
|
6
|
+
function _s(a, o, e = {}) {
|
|
7
7
|
const {
|
|
8
8
|
color: h = z.WHITE,
|
|
9
9
|
width: s = 3,
|
|
10
|
-
clampToGround:
|
|
11
|
-
zIndex:
|
|
10
|
+
clampToGround: I = !1,
|
|
11
|
+
zIndex: W = 0,
|
|
12
12
|
dashed: A = !1,
|
|
13
13
|
dashLength: L = 10
|
|
14
14
|
} = e, i = A ? new n.PolylineDashMaterialProperty({
|
|
15
15
|
color: h,
|
|
16
16
|
dashLength: L
|
|
17
17
|
}) : new n.ColorMaterialProperty(h);
|
|
18
|
-
return
|
|
18
|
+
return a.entities.add({
|
|
19
19
|
polyline: {
|
|
20
20
|
positions: o,
|
|
21
21
|
width: s,
|
|
22
22
|
material: i,
|
|
23
|
-
clampToGround:
|
|
24
|
-
zIndex:
|
|
23
|
+
clampToGround: I,
|
|
24
|
+
zIndex: W
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
function r(
|
|
29
|
-
|
|
28
|
+
function r(a, o, e = 10, h = "#ba1919", s, I = !1) {
|
|
29
|
+
const W = {
|
|
30
|
+
show: !0,
|
|
31
|
+
positions: a,
|
|
32
|
+
clampToGround: I,
|
|
33
|
+
width: e,
|
|
34
|
+
material: n.Color.fromCssColorString(h),
|
|
35
|
+
arcType: n.ArcType.NONE,
|
|
36
|
+
shadows: n.ShadowMode.DISABLED,
|
|
37
|
+
// 关键优化:减少动态采样,提升静态线性能
|
|
38
|
+
granularity: I ? void 0 : 0
|
|
39
|
+
// 贴地线需要采样,空间线则无需
|
|
40
|
+
};
|
|
41
|
+
return s && (W.distanceDisplayCondition = new n.DistanceDisplayCondition(
|
|
42
|
+
0,
|
|
43
|
+
2e3
|
|
44
|
+
// distanceDisplayCondition[1]
|
|
45
|
+
)), {
|
|
30
46
|
name: o,
|
|
31
|
-
|
|
47
|
+
// 2. 按需加载标签:默认不显示,或同样受距离控制
|
|
48
|
+
label: s ? {
|
|
49
|
+
text: o,
|
|
50
|
+
font: "18px sans-serif",
|
|
51
|
+
distanceDisplayCondition: new n.DistanceDisplayCondition(
|
|
52
|
+
s[0],
|
|
53
|
+
Math.min(s[1], 5e3)
|
|
54
|
+
// 标签可视距离通常比线本身更近
|
|
55
|
+
)
|
|
56
|
+
} : {
|
|
32
57
|
text: o,
|
|
33
58
|
font: "18px sans-serif"
|
|
34
59
|
},
|
|
35
|
-
polyline:
|
|
36
|
-
show: !0,
|
|
37
|
-
// 定义线条的 Cartesian3 位置的数组
|
|
38
|
-
positions: W,
|
|
39
|
-
clampToGround: !1,
|
|
40
|
-
// 是否贴地
|
|
41
|
-
width: e,
|
|
42
|
-
// 如果arcType不是ArcType.NONE,则指定每个纬度和经度之间的角距离
|
|
43
|
-
// granularity: Cesium.Math.RADIANS_PER_DEGREE,
|
|
44
|
-
material: n.Color.fromCssColorString(h),
|
|
45
|
-
// 线低于地形时用于绘制折线的材质
|
|
46
|
-
// depthFailMaterial: Cesium.Color.WHITE,
|
|
47
|
-
// 折线段必须遵循的线型
|
|
48
|
-
arcType: n.ArcType.NONE,
|
|
49
|
-
shadows: n.ShadowMode.DISABLED
|
|
50
|
-
// 折线是投射还是接收光源的阴影
|
|
51
|
-
// distanceDisplayCondition: new Cesium.DistanceDisplayCondition(
|
|
52
|
-
// 1.0e3,
|
|
53
|
-
// 2.0e3
|
|
54
|
-
// ),
|
|
55
|
-
// 在地面上时将对地形,3D tiles还是对两者进行分类 type:ClassificationType default:ClassificationType.BOTH
|
|
56
|
-
// TERRAIN 将仅对地形进行分类;CESIUM_3D_TILE 将仅对3D Tiles进行分类;BOTH 将同时对Terrain和3D Tiles进行分类。
|
|
57
|
-
// classificationType: Cesium.ClassificationType.BOTH,
|
|
58
|
-
// 指定用于订购地面几何形状的z索引。仅在多边形为常数且未指定高度或拉伸高度的情况下才有效 type:ConstantProperty
|
|
59
|
-
// zIndex: 0,
|
|
60
|
-
}
|
|
60
|
+
polyline: W
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
|
-
function U(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
63
|
+
function U(a, o, e, h, s = new n.HeadingPitchRoll(0, 0, 0), I = 1, W) {
|
|
64
|
+
const A = {
|
|
65
|
+
show: !0,
|
|
66
|
+
uri: h,
|
|
67
|
+
scale: I,
|
|
68
|
+
heightReference: n.HeightReference.NONE
|
|
69
|
+
};
|
|
70
|
+
return W && (Array.isArray(W) ? A.distanceDisplayCondition = new n.DistanceDisplayCondition(
|
|
71
|
+
W[0],
|
|
72
|
+
W[1]
|
|
73
|
+
) : A.distanceDisplayCondition = W), {
|
|
74
|
+
id: a,
|
|
70
75
|
name: e,
|
|
71
76
|
position: o,
|
|
72
77
|
orientation: n.Transforms.headingPitchRollQuaternion(
|
|
73
78
|
o,
|
|
74
79
|
s
|
|
75
80
|
),
|
|
76
|
-
model:
|
|
77
|
-
show: !0,
|
|
78
|
-
uri: h,
|
|
79
|
-
scale: d,
|
|
80
|
-
heightReference: n.HeightReference.NONE
|
|
81
|
-
}
|
|
81
|
+
model: A
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
|
-
function x(
|
|
84
|
+
function x(a, o, e, h = {}) {
|
|
85
85
|
const {
|
|
86
86
|
pointColor: s = z.YELLOW,
|
|
87
|
-
pointSize:
|
|
88
|
-
labelColor:
|
|
87
|
+
pointSize: I = 12,
|
|
88
|
+
labelColor: W = z.WHITE,
|
|
89
89
|
fontSize: A = 16,
|
|
90
90
|
pixelOffset: L = [0, -20],
|
|
91
|
-
heightReference: i =
|
|
91
|
+
heightReference: i = ms.NONE
|
|
92
92
|
} = h;
|
|
93
|
-
return
|
|
93
|
+
return a.entities.add({
|
|
94
94
|
position: o,
|
|
95
95
|
point: {
|
|
96
96
|
color: s,
|
|
97
|
-
pixelSize:
|
|
97
|
+
pixelSize: I,
|
|
98
98
|
heightReference: i,
|
|
99
99
|
distanceDisplayCondition: new n.DistanceDisplayCondition(0, 100)
|
|
100
100
|
// 显示距离范围
|
|
@@ -102,9 +102,9 @@ function x(W, o, e, h = {}) {
|
|
|
102
102
|
label: {
|
|
103
103
|
text: e,
|
|
104
104
|
font: `${A}px sans-serif`,
|
|
105
|
-
fillColor:
|
|
105
|
+
fillColor: W,
|
|
106
106
|
pixelOffset: new n.Cartesian2(...L),
|
|
107
|
-
style:
|
|
107
|
+
style: bs.FILL_AND_OUTLINE,
|
|
108
108
|
outlineWidth: 2,
|
|
109
109
|
outlineColor: z.BLACK,
|
|
110
110
|
heightReference: i,
|
|
@@ -130,110 +130,110 @@ var D = 63710088e-1, Cs = {
|
|
|
130
130
|
radians: 1,
|
|
131
131
|
yards: D * 1.0936
|
|
132
132
|
};
|
|
133
|
-
function Q(
|
|
133
|
+
function Q(a, o, e) {
|
|
134
134
|
e === void 0 && (e = {});
|
|
135
135
|
var h = { type: "Feature" };
|
|
136
|
-
return (e.id === 0 || e.id) && (h.id = e.id), e.bbox && (h.bbox = e.bbox), h.properties = o || {}, h.geometry =
|
|
136
|
+
return (e.id === 0 || e.id) && (h.id = e.id), e.bbox && (h.bbox = e.bbox), h.properties = o || {}, h.geometry = a, h;
|
|
137
137
|
}
|
|
138
|
-
function $(
|
|
139
|
-
if (e === void 0 && (e = {}), !
|
|
138
|
+
function $(a, o, e) {
|
|
139
|
+
if (e === void 0 && (e = {}), !a)
|
|
140
140
|
throw new Error("coordinates is required");
|
|
141
|
-
if (!Array.isArray(
|
|
141
|
+
if (!Array.isArray(a))
|
|
142
142
|
throw new Error("coordinates must be an Array");
|
|
143
|
-
if (
|
|
143
|
+
if (a.length < 2)
|
|
144
144
|
throw new Error("coordinates must be at least 2 numbers long");
|
|
145
|
-
if (!
|
|
145
|
+
if (!Ws(a[0]) || !Ws(a[1]))
|
|
146
146
|
throw new Error("coordinates must contain numbers");
|
|
147
147
|
var h = {
|
|
148
148
|
type: "Point",
|
|
149
|
-
coordinates:
|
|
149
|
+
coordinates: a
|
|
150
150
|
};
|
|
151
151
|
return Q(h, o, e);
|
|
152
152
|
}
|
|
153
|
-
function G(
|
|
154
|
-
if (e === void 0 && (e = {}),
|
|
153
|
+
function G(a, o, e) {
|
|
154
|
+
if (e === void 0 && (e = {}), a.length < 2)
|
|
155
155
|
throw new Error("coordinates must be an array of two or more positions");
|
|
156
156
|
var h = {
|
|
157
157
|
type: "LineString",
|
|
158
|
-
coordinates:
|
|
158
|
+
coordinates: a
|
|
159
159
|
};
|
|
160
160
|
return Q(h, o, e);
|
|
161
161
|
}
|
|
162
|
-
function vs(
|
|
162
|
+
function vs(a, o) {
|
|
163
163
|
o === void 0 && (o = {});
|
|
164
164
|
var e = { type: "FeatureCollection" };
|
|
165
|
-
return o.id && (e.id = o.id), o.bbox && (e.bbox = o.bbox), e.features =
|
|
165
|
+
return o.id && (e.id = o.id), o.bbox && (e.bbox = o.bbox), e.features = a, e;
|
|
166
166
|
}
|
|
167
|
-
function As(
|
|
167
|
+
function As(a, o) {
|
|
168
168
|
o === void 0 && (o = "kilometers");
|
|
169
169
|
var e = Cs[o];
|
|
170
170
|
if (!e)
|
|
171
171
|
throw new Error(o + " units is invalid");
|
|
172
|
-
return
|
|
172
|
+
return a * e;
|
|
173
173
|
}
|
|
174
|
-
function ps(
|
|
174
|
+
function ps(a, o) {
|
|
175
175
|
o === void 0 && (o = "kilometers");
|
|
176
176
|
var e = Cs[o];
|
|
177
177
|
if (!e)
|
|
178
178
|
throw new Error(o + " units is invalid");
|
|
179
|
-
return
|
|
179
|
+
return a / e;
|
|
180
180
|
}
|
|
181
|
-
function rs(
|
|
182
|
-
var o =
|
|
181
|
+
function rs(a) {
|
|
182
|
+
var o = a % (2 * Math.PI);
|
|
183
183
|
return o * 180 / Math.PI;
|
|
184
184
|
}
|
|
185
|
-
function N(
|
|
186
|
-
var o =
|
|
185
|
+
function N(a) {
|
|
186
|
+
var o = a % 360;
|
|
187
187
|
return o * Math.PI / 180;
|
|
188
188
|
}
|
|
189
|
-
function ws(
|
|
190
|
-
if (o === void 0 && (o = "kilometers"), e === void 0 && (e = "kilometers"), !(
|
|
189
|
+
function ws(a, o, e) {
|
|
190
|
+
if (o === void 0 && (o = "kilometers"), e === void 0 && (e = "kilometers"), !(a >= 0))
|
|
191
191
|
throw new Error("length must be a positive number");
|
|
192
|
-
return As(ps(
|
|
192
|
+
return As(ps(a, o), e);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
return !isNaN(
|
|
194
|
+
function Ws(a) {
|
|
195
|
+
return !isNaN(a) && a !== null && !Array.isArray(a);
|
|
196
196
|
}
|
|
197
|
-
function ks(
|
|
198
|
-
return !!
|
|
197
|
+
function ks(a) {
|
|
198
|
+
return !!a && a.constructor === Object;
|
|
199
199
|
}
|
|
200
|
-
function Is(
|
|
201
|
-
if (
|
|
202
|
-
for (var h, s,
|
|
203
|
-
i =
|
|
200
|
+
function Is(a, o, e) {
|
|
201
|
+
if (a !== null)
|
|
202
|
+
for (var h, s, I, W, A, L, i, t = 0, u = 0, l, C = a.type, d = C === "FeatureCollection", g = C === "Feature", m = d ? a.features.length : 1, T = 0; T < m; T++) {
|
|
203
|
+
i = d ? a.features[T].geometry : g ? a.geometry : a, l = i ? i.type === "GeometryCollection" : !1, A = l ? i.geometries.length : 1;
|
|
204
204
|
for (var B = 0; B < A; B++) {
|
|
205
205
|
var P = 0, y = 0;
|
|
206
|
-
if (
|
|
207
|
-
L =
|
|
208
|
-
var
|
|
209
|
-
switch (t = 0,
|
|
206
|
+
if (W = l ? i.geometries[B] : i, W !== null) {
|
|
207
|
+
L = W.coordinates;
|
|
208
|
+
var b = W.type;
|
|
209
|
+
switch (t = 0, b) {
|
|
210
210
|
case null:
|
|
211
211
|
break;
|
|
212
212
|
case "Point":
|
|
213
213
|
if (o(
|
|
214
214
|
L,
|
|
215
|
-
|
|
215
|
+
u,
|
|
216
216
|
T,
|
|
217
217
|
P,
|
|
218
218
|
y
|
|
219
219
|
) === !1)
|
|
220
220
|
return !1;
|
|
221
|
-
|
|
221
|
+
u++, P++;
|
|
222
222
|
break;
|
|
223
223
|
case "LineString":
|
|
224
224
|
case "MultiPoint":
|
|
225
225
|
for (h = 0; h < L.length; h++) {
|
|
226
226
|
if (o(
|
|
227
227
|
L[h],
|
|
228
|
-
|
|
228
|
+
u,
|
|
229
229
|
T,
|
|
230
230
|
P,
|
|
231
231
|
y
|
|
232
232
|
) === !1)
|
|
233
233
|
return !1;
|
|
234
|
-
|
|
234
|
+
u++, b === "MultiPoint" && P++;
|
|
235
235
|
}
|
|
236
|
-
|
|
236
|
+
b === "LineString" && P++;
|
|
237
237
|
break;
|
|
238
238
|
case "Polygon":
|
|
239
239
|
case "MultiLineString":
|
|
@@ -241,31 +241,31 @@ function Is(W, o, e) {
|
|
|
241
241
|
for (s = 0; s < L[h].length - t; s++) {
|
|
242
242
|
if (o(
|
|
243
243
|
L[h][s],
|
|
244
|
-
|
|
244
|
+
u,
|
|
245
245
|
T,
|
|
246
246
|
P,
|
|
247
247
|
y
|
|
248
248
|
) === !1)
|
|
249
249
|
return !1;
|
|
250
|
-
|
|
250
|
+
u++;
|
|
251
251
|
}
|
|
252
|
-
|
|
252
|
+
b === "MultiLineString" && P++, b === "Polygon" && y++;
|
|
253
253
|
}
|
|
254
|
-
|
|
254
|
+
b === "Polygon" && P++;
|
|
255
255
|
break;
|
|
256
256
|
case "MultiPolygon":
|
|
257
257
|
for (h = 0; h < L.length; h++) {
|
|
258
258
|
for (y = 0, s = 0; s < L[h].length; s++) {
|
|
259
|
-
for (
|
|
259
|
+
for (I = 0; I < L[h][s].length - t; I++) {
|
|
260
260
|
if (o(
|
|
261
|
-
L[h][s][
|
|
262
|
-
|
|
261
|
+
L[h][s][I],
|
|
262
|
+
u,
|
|
263
263
|
T,
|
|
264
264
|
P,
|
|
265
265
|
y
|
|
266
266
|
) === !1)
|
|
267
267
|
return !1;
|
|
268
|
-
|
|
268
|
+
u++;
|
|
269
269
|
}
|
|
270
270
|
y++;
|
|
271
271
|
}
|
|
@@ -273,8 +273,8 @@ function Is(W, o, e) {
|
|
|
273
273
|
}
|
|
274
274
|
break;
|
|
275
275
|
case "GeometryCollection":
|
|
276
|
-
for (h = 0; h <
|
|
277
|
-
if (Is(
|
|
276
|
+
for (h = 0; h < W.geometries.length; h++)
|
|
277
|
+
if (Is(W.geometries[h], o) === !1)
|
|
278
278
|
return !1;
|
|
279
279
|
break;
|
|
280
280
|
default:
|
|
@@ -284,29 +284,29 @@ function Is(W, o, e) {
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
-
function Ss(
|
|
288
|
-
if (
|
|
289
|
-
o(
|
|
290
|
-
else if (
|
|
291
|
-
for (var e = 0; e <
|
|
287
|
+
function Ss(a, o) {
|
|
288
|
+
if (a.type === "Feature")
|
|
289
|
+
o(a, 0);
|
|
290
|
+
else if (a.type === "FeatureCollection")
|
|
291
|
+
for (var e = 0; e < a.features.length && o(a.features[e], e) !== !1; e++)
|
|
292
292
|
;
|
|
293
293
|
}
|
|
294
|
-
function Zs(
|
|
295
|
-
var e, h, s,
|
|
294
|
+
function Zs(a, o) {
|
|
295
|
+
var e, h, s, I, W, A, L, i, t, u, l = 0, C = a.type === "FeatureCollection", d = a.type === "Feature", g = C ? a.features.length : 1;
|
|
296
296
|
for (e = 0; e < g; e++) {
|
|
297
|
-
for (A = C ?
|
|
298
|
-
if (
|
|
297
|
+
for (A = C ? a.features[e].geometry : d ? a.geometry : a, i = C ? a.features[e].properties : d ? a.properties : {}, t = C ? a.features[e].bbox : d ? a.bbox : void 0, u = C ? a.features[e].id : d ? a.id : void 0, L = A ? A.type === "GeometryCollection" : !1, W = L ? A.geometries.length : 1, s = 0; s < W; s++) {
|
|
298
|
+
if (I = L ? A.geometries[s] : A, I === null) {
|
|
299
299
|
if (o(
|
|
300
300
|
null,
|
|
301
301
|
l,
|
|
302
302
|
i,
|
|
303
303
|
t,
|
|
304
|
-
|
|
304
|
+
u
|
|
305
305
|
) === !1)
|
|
306
306
|
return !1;
|
|
307
307
|
continue;
|
|
308
308
|
}
|
|
309
|
-
switch (
|
|
309
|
+
switch (I.type) {
|
|
310
310
|
case "Point":
|
|
311
311
|
case "LineString":
|
|
312
312
|
case "MultiPoint":
|
|
@@ -314,23 +314,23 @@ function Zs(W, o) {
|
|
|
314
314
|
case "MultiLineString":
|
|
315
315
|
case "MultiPolygon": {
|
|
316
316
|
if (o(
|
|
317
|
-
|
|
317
|
+
I,
|
|
318
318
|
l,
|
|
319
319
|
i,
|
|
320
320
|
t,
|
|
321
|
-
|
|
321
|
+
u
|
|
322
322
|
) === !1)
|
|
323
323
|
return !1;
|
|
324
324
|
break;
|
|
325
325
|
}
|
|
326
326
|
case "GeometryCollection": {
|
|
327
|
-
for (h = 0; h <
|
|
327
|
+
for (h = 0; h < I.geometries.length; h++)
|
|
328
328
|
if (o(
|
|
329
|
-
|
|
329
|
+
I.geometries[h],
|
|
330
330
|
l,
|
|
331
331
|
i,
|
|
332
332
|
t,
|
|
333
|
-
|
|
333
|
+
u
|
|
334
334
|
) === !1)
|
|
335
335
|
return !1;
|
|
336
336
|
break;
|
|
@@ -342,8 +342,8 @@ function Zs(W, o) {
|
|
|
342
342
|
l++;
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
function Ms(
|
|
346
|
-
Zs(
|
|
345
|
+
function Ms(a, o) {
|
|
346
|
+
Zs(a, function(e, h, s, I, W) {
|
|
347
347
|
var A = e === null ? null : e.type;
|
|
348
348
|
switch (A) {
|
|
349
349
|
case null:
|
|
@@ -351,7 +351,7 @@ function Ms(W, o) {
|
|
|
351
351
|
case "LineString":
|
|
352
352
|
case "Polygon":
|
|
353
353
|
return o(
|
|
354
|
-
Q(e, s, { bbox:
|
|
354
|
+
Q(e, s, { bbox: I, id: W }),
|
|
355
355
|
h,
|
|
356
356
|
0
|
|
357
357
|
) === !1 ? !1 : void 0;
|
|
@@ -369,42 +369,42 @@ function Ms(W, o) {
|
|
|
369
369
|
break;
|
|
370
370
|
}
|
|
371
371
|
for (var i = 0; i < e.coordinates.length; i++) {
|
|
372
|
-
var t = e.coordinates[i],
|
|
372
|
+
var t = e.coordinates[i], u = {
|
|
373
373
|
type: L,
|
|
374
374
|
coordinates: t
|
|
375
375
|
};
|
|
376
|
-
if (o(Q(
|
|
376
|
+
if (o(Q(u, s), h, i) === !1)
|
|
377
377
|
return !1;
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
|
-
function Es(
|
|
382
|
-
Ms(
|
|
383
|
-
var
|
|
381
|
+
function Es(a, o) {
|
|
382
|
+
Ms(a, function(e, h, s) {
|
|
383
|
+
var I = 0;
|
|
384
384
|
if (e.geometry) {
|
|
385
|
-
var
|
|
386
|
-
if (!(
|
|
385
|
+
var W = e.geometry.type;
|
|
386
|
+
if (!(W === "Point" || W === "MultiPoint")) {
|
|
387
387
|
var A, L = 0, i = 0, t = 0;
|
|
388
388
|
if (Is(
|
|
389
389
|
e,
|
|
390
|
-
function(
|
|
391
|
-
if (A === void 0 || h > L ||
|
|
392
|
-
A =
|
|
390
|
+
function(u, l, C, d, g) {
|
|
391
|
+
if (A === void 0 || h > L || d > i || g > t) {
|
|
392
|
+
A = u, L = h, i = d, t = g, I = 0;
|
|
393
393
|
return;
|
|
394
394
|
}
|
|
395
|
-
var
|
|
396
|
-
[A,
|
|
395
|
+
var m = G(
|
|
396
|
+
[A, u],
|
|
397
397
|
e.properties
|
|
398
398
|
);
|
|
399
399
|
if (o(
|
|
400
|
-
|
|
400
|
+
m,
|
|
401
401
|
h,
|
|
402
402
|
s,
|
|
403
403
|
g,
|
|
404
|
-
|
|
404
|
+
I
|
|
405
405
|
) === !1)
|
|
406
406
|
return !1;
|
|
407
|
-
|
|
407
|
+
I++, A = u;
|
|
408
408
|
}
|
|
409
409
|
) === !1)
|
|
410
410
|
return !1;
|
|
@@ -412,43 +412,43 @@ function Es(W, o) {
|
|
|
412
412
|
}
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
|
-
function K(
|
|
416
|
-
if (!
|
|
415
|
+
function K(a) {
|
|
416
|
+
if (!a)
|
|
417
417
|
throw new Error("coord is required");
|
|
418
|
-
if (!Array.isArray(
|
|
419
|
-
if (
|
|
420
|
-
return
|
|
421
|
-
if (
|
|
422
|
-
return
|
|
418
|
+
if (!Array.isArray(a)) {
|
|
419
|
+
if (a.type === "Feature" && a.geometry !== null && a.geometry.type === "Point")
|
|
420
|
+
return a.geometry.coordinates;
|
|
421
|
+
if (a.type === "Point")
|
|
422
|
+
return a.coordinates;
|
|
423
423
|
}
|
|
424
|
-
if (Array.isArray(
|
|
425
|
-
return
|
|
424
|
+
if (Array.isArray(a) && a.length >= 2 && !Array.isArray(a[0]) && !Array.isArray(a[1]))
|
|
425
|
+
return a;
|
|
426
426
|
throw new Error("coord must be GeoJSON Point or an Array of numbers");
|
|
427
427
|
}
|
|
428
|
-
function us(
|
|
429
|
-
if (!
|
|
428
|
+
function us(a, o, e) {
|
|
429
|
+
if (!a)
|
|
430
430
|
throw new Error("No feature passed");
|
|
431
431
|
if (!e)
|
|
432
432
|
throw new Error(".featureOf() requires a name");
|
|
433
|
-
if (!
|
|
433
|
+
if (!a || a.type !== "Feature" || !a.geometry)
|
|
434
434
|
throw new Error("Invalid input to " + e + ", Feature with geometry required");
|
|
435
|
-
if (!
|
|
436
|
-
throw new Error("Invalid input to " + e + ": must be a " + o + ", given " +
|
|
435
|
+
if (!a.geometry || a.geometry.type !== o)
|
|
436
|
+
throw new Error("Invalid input to " + e + ": must be a " + o + ", given " + a.geometry.type);
|
|
437
437
|
}
|
|
438
438
|
var j = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
439
|
-
function V(
|
|
439
|
+
function V(a, o, e) {
|
|
440
440
|
e === void 0 && (e = {});
|
|
441
|
-
var h = K(
|
|
441
|
+
var h = K(a), s = K(o), I = N(s[1] - h[1]), W = N(s[0] - h[0]), A = N(h[1]), L = N(s[1]), i = Math.pow(Math.sin(I / 2), 2) + Math.pow(Math.sin(W / 2), 2) * Math.cos(A) * Math.cos(L);
|
|
442
442
|
return As(2 * Math.atan2(Math.sqrt(i), Math.sqrt(1 - i)), e.units);
|
|
443
443
|
}
|
|
444
|
-
function Xs(
|
|
445
|
-
if (!
|
|
444
|
+
function Xs(a) {
|
|
445
|
+
if (!a)
|
|
446
446
|
throw new Error("geojson is required");
|
|
447
|
-
switch (
|
|
447
|
+
switch (a.type) {
|
|
448
448
|
case "Feature":
|
|
449
|
-
return ds(
|
|
449
|
+
return ds(a);
|
|
450
450
|
case "FeatureCollection":
|
|
451
|
-
return Ys(
|
|
451
|
+
return Ys(a);
|
|
452
452
|
case "Point":
|
|
453
453
|
case "LineString":
|
|
454
454
|
case "Polygon":
|
|
@@ -456,198 +456,198 @@ function Xs(W) {
|
|
|
456
456
|
case "MultiLineString":
|
|
457
457
|
case "MultiPolygon":
|
|
458
458
|
case "GeometryCollection":
|
|
459
|
-
return ns(
|
|
459
|
+
return ns(a);
|
|
460
460
|
default:
|
|
461
461
|
throw new Error("unknown GeoJSON type");
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
function ds(
|
|
464
|
+
function ds(a) {
|
|
465
465
|
var o = { type: "Feature" };
|
|
466
|
-
return Object.keys(
|
|
466
|
+
return Object.keys(a).forEach(function(e) {
|
|
467
467
|
switch (e) {
|
|
468
468
|
case "type":
|
|
469
469
|
case "properties":
|
|
470
470
|
case "geometry":
|
|
471
471
|
return;
|
|
472
472
|
default:
|
|
473
|
-
o[e] =
|
|
473
|
+
o[e] = a[e];
|
|
474
474
|
}
|
|
475
|
-
}), o.properties = Ls(
|
|
475
|
+
}), o.properties = Ls(a.properties), o.geometry = ns(a.geometry), o;
|
|
476
476
|
}
|
|
477
|
-
function Ls(
|
|
477
|
+
function Ls(a) {
|
|
478
478
|
var o = {};
|
|
479
|
-
return
|
|
480
|
-
var h =
|
|
479
|
+
return a && Object.keys(a).forEach(function(e) {
|
|
480
|
+
var h = a[e];
|
|
481
481
|
typeof h == "object" ? h === null ? o[e] = null : Array.isArray(h) ? o[e] = h.map(function(s) {
|
|
482
482
|
return s;
|
|
483
483
|
}) : o[e] = Ls(h) : o[e] = h;
|
|
484
484
|
}), o;
|
|
485
485
|
}
|
|
486
|
-
function Ys(
|
|
486
|
+
function Ys(a) {
|
|
487
487
|
var o = { type: "FeatureCollection" };
|
|
488
|
-
return Object.keys(
|
|
488
|
+
return Object.keys(a).forEach(function(e) {
|
|
489
489
|
switch (e) {
|
|
490
490
|
case "type":
|
|
491
491
|
case "features":
|
|
492
492
|
return;
|
|
493
493
|
default:
|
|
494
|
-
o[e] =
|
|
494
|
+
o[e] = a[e];
|
|
495
495
|
}
|
|
496
|
-
}), o.features =
|
|
496
|
+
}), o.features = a.features.map(function(e) {
|
|
497
497
|
return ds(e);
|
|
498
498
|
}), o;
|
|
499
499
|
}
|
|
500
|
-
function ns(
|
|
501
|
-
var o = { type:
|
|
502
|
-
return
|
|
500
|
+
function ns(a) {
|
|
501
|
+
var o = { type: a.type };
|
|
502
|
+
return a.bbox && (o.bbox = a.bbox), a.type === "GeometryCollection" ? (o.geometries = a.geometries.map(function(e) {
|
|
503
503
|
return ns(e);
|
|
504
|
-
}), o) : (o.coordinates = Bs(
|
|
504
|
+
}), o) : (o.coordinates = Bs(a.coordinates), o);
|
|
505
505
|
}
|
|
506
|
-
function Bs(
|
|
507
|
-
var o =
|
|
506
|
+
function Bs(a) {
|
|
507
|
+
var o = a;
|
|
508
508
|
return typeof o[0] != "object" ? o.slice() : o.map(function(e) {
|
|
509
509
|
return Bs(e);
|
|
510
510
|
});
|
|
511
511
|
}
|
|
512
|
-
function fs(
|
|
512
|
+
function fs(a, o, e, h) {
|
|
513
513
|
h === void 0 && (h = {});
|
|
514
|
-
var s = K(
|
|
515
|
-
return $([
|
|
514
|
+
var s = K(a), I = N(s[0]), W = N(s[1]), A = N(e), L = ps(o, h.units), i = Math.asin(Math.sin(W) * Math.cos(L) + Math.cos(W) * Math.sin(L) * Math.cos(A)), t = I + Math.atan2(Math.sin(A) * Math.sin(L) * Math.cos(W), Math.cos(L) - Math.sin(W) * Math.sin(i)), u = rs(t), l = rs(i);
|
|
515
|
+
return $([u, l], h.properties);
|
|
516
516
|
}
|
|
517
|
-
function is(
|
|
517
|
+
function is(a, o, e) {
|
|
518
518
|
if (e === void 0 && (e = {}), e.final === !0)
|
|
519
|
-
return Fs(
|
|
520
|
-
var h = K(
|
|
519
|
+
return Fs(a, o);
|
|
520
|
+
var h = K(a), s = K(o), I = N(h[0]), W = N(s[0]), A = N(h[1]), L = N(s[1]), i = Math.sin(W - I) * Math.cos(L), t = Math.cos(A) * Math.sin(L) - Math.sin(A) * Math.cos(L) * Math.cos(W - I);
|
|
521
521
|
return rs(Math.atan2(i, t));
|
|
522
522
|
}
|
|
523
|
-
function Fs(
|
|
524
|
-
var e = is(o,
|
|
523
|
+
function Fs(a, o) {
|
|
524
|
+
var e = is(o, a);
|
|
525
525
|
return e = (e + 180) % 360, e;
|
|
526
526
|
}
|
|
527
|
-
function Rs(
|
|
528
|
-
var e = V(
|
|
527
|
+
function Rs(a, o) {
|
|
528
|
+
var e = V(a, o), h = is(a, o), s = fs(a, e / 2, h);
|
|
529
529
|
return s;
|
|
530
530
|
}
|
|
531
|
-
function Ds(
|
|
532
|
-
if (!
|
|
531
|
+
function Ds(a, o) {
|
|
532
|
+
if (!a)
|
|
533
533
|
throw new Error("targetPoint is required");
|
|
534
534
|
if (!o)
|
|
535
535
|
throw new Error("points is required");
|
|
536
536
|
var e, h = 1 / 0, s = 0;
|
|
537
|
-
return Ss(o, function(
|
|
538
|
-
var A = V(
|
|
539
|
-
A < h && (s =
|
|
537
|
+
return Ss(o, function(I, W) {
|
|
538
|
+
var A = V(a, I);
|
|
539
|
+
A < h && (s = W, h = A);
|
|
540
540
|
}), e = Xs(o.features[s]), e.properties.featureIndex = s, e.properties.distanceToPoint = h, e;
|
|
541
541
|
}
|
|
542
|
-
function Hs(
|
|
542
|
+
function Hs(a, o, e) {
|
|
543
543
|
e === void 0 && (e = {});
|
|
544
|
-
var h = K(
|
|
544
|
+
var h = K(a), s = K(o);
|
|
545
545
|
s[0] += s[0] - h[0] > 180 ? -360 : h[0] - s[0] > 180 ? 360 : 0;
|
|
546
|
-
var
|
|
547
|
-
return
|
|
546
|
+
var I = Os(h, s), W = ws(I, "meters", e.units);
|
|
547
|
+
return W;
|
|
548
548
|
}
|
|
549
|
-
function Os(
|
|
549
|
+
function Os(a, o, e) {
|
|
550
550
|
e = e === void 0 ? D : Number(e);
|
|
551
|
-
var h = e, s =
|
|
551
|
+
var h = e, s = a[1] * Math.PI / 180, I = o[1] * Math.PI / 180, W = I - s, A = Math.abs(o[0] - a[0]) * Math.PI / 180;
|
|
552
552
|
A > Math.PI && (A -= 2 * Math.PI);
|
|
553
|
-
var L = Math.log(Math.tan(
|
|
554
|
-
return
|
|
553
|
+
var L = Math.log(Math.tan(I / 2 + Math.PI / 4) / Math.tan(s / 2 + Math.PI / 4)), i = Math.abs(L) > 1e-11 ? W / L : Math.cos(s), t = Math.sqrt(W * W + i * i * A * A), u = t * h;
|
|
554
|
+
return u;
|
|
555
555
|
}
|
|
556
|
-
function es(
|
|
557
|
-
if (e === void 0 && (e = {}), e.method || (e.method = "geodesic"), e.units || (e.units = "kilometers"), !
|
|
556
|
+
function es(a, o, e) {
|
|
557
|
+
if (e === void 0 && (e = {}), e.method || (e.method = "geodesic"), e.units || (e.units = "kilometers"), !a)
|
|
558
558
|
throw new Error("pt is required");
|
|
559
|
-
if (Array.isArray(
|
|
559
|
+
if (Array.isArray(a) ? a = $(a) : a.type === "Point" ? a = Q(a) : us(a, "Point", "point"), !o)
|
|
560
560
|
throw new Error("line is required");
|
|
561
561
|
Array.isArray(o) ? o = G(o) : o.type === "LineString" ? o = Q(o) : us(o, "LineString", "line");
|
|
562
|
-
var h = 1 / 0, s =
|
|
563
|
-
return Es(o, function(
|
|
564
|
-
var
|
|
562
|
+
var h = 1 / 0, s = a.geometry.coordinates;
|
|
563
|
+
return Es(o, function(I) {
|
|
564
|
+
var W = I.geometry.coordinates[0], A = I.geometry.coordinates[1], L = Ns(s, W, A, e);
|
|
565
565
|
L < h && (h = L);
|
|
566
566
|
}), ws(h, "degrees", e.units);
|
|
567
567
|
}
|
|
568
|
-
function Ns(
|
|
569
|
-
var s = [e[0] - o[0], e[1] - o[1]],
|
|
570
|
-
if (
|
|
571
|
-
return os(
|
|
568
|
+
function Ns(a, o, e, h) {
|
|
569
|
+
var s = [e[0] - o[0], e[1] - o[1]], I = [a[0] - o[0], a[1] - o[1]], W = ls(I, s);
|
|
570
|
+
if (W <= 0)
|
|
571
|
+
return os(a, o, { method: h.method, units: "degrees" });
|
|
572
572
|
var A = ls(s, s);
|
|
573
|
-
if (A <=
|
|
574
|
-
return os(
|
|
575
|
-
var L =
|
|
576
|
-
return os(
|
|
573
|
+
if (A <= W)
|
|
574
|
+
return os(a, e, { method: h.method, units: "degrees" });
|
|
575
|
+
var L = W / A, i = [o[0] + L * s[0], o[1] + L * s[1]];
|
|
576
|
+
return os(a, i, { method: h.method, units: "degrees" });
|
|
577
577
|
}
|
|
578
|
-
function ls(
|
|
579
|
-
return
|
|
578
|
+
function ls(a, o) {
|
|
579
|
+
return a[0] * o[0] + a[1] * o[1];
|
|
580
580
|
}
|
|
581
|
-
function os(
|
|
582
|
-
return e.method === "planar" ? Hs(
|
|
581
|
+
function os(a, o, e) {
|
|
582
|
+
return e.method === "planar" ? Hs(a, o, e) : V(a, o, e);
|
|
583
583
|
}
|
|
584
|
-
function Gs(
|
|
584
|
+
function Gs(a, o, e, h) {
|
|
585
585
|
if (h = h || {}, !ks(h)) throw new Error("options is invalid");
|
|
586
|
-
var s,
|
|
587
|
-
if (
|
|
588
|
-
else if (
|
|
586
|
+
var s, I = [];
|
|
587
|
+
if (a.type === "Feature") s = a.geometry.coordinates;
|
|
588
|
+
else if (a.type === "LineString") s = a.coordinates;
|
|
589
589
|
else throw new Error("input must be a LineString Feature or Geometry");
|
|
590
|
-
for (var
|
|
591
|
-
if (A > o &&
|
|
590
|
+
for (var W = s.length, A = 0, L, i, t, u = 0; u < s.length && !(o >= A && u === s.length - 1); u++) {
|
|
591
|
+
if (A > o && I.length === 0) {
|
|
592
592
|
if (L = o - A, !L)
|
|
593
|
-
return
|
|
594
|
-
i = is(s[
|
|
593
|
+
return I.push(s[u]), G(I);
|
|
594
|
+
i = is(s[u], s[u - 1]) - 180, t = fs(s[u], L, i, h), I.push(t.geometry.coordinates);
|
|
595
595
|
}
|
|
596
596
|
if (A >= e)
|
|
597
|
-
return L = e - A, L ? (i = is(s[
|
|
598
|
-
if (A >= o &&
|
|
599
|
-
return G(
|
|
600
|
-
A += V(s[
|
|
597
|
+
return L = e - A, L ? (i = is(s[u], s[u - 1]) - 180, t = fs(s[u], L, i, h), I.push(t.geometry.coordinates), G(I)) : (I.push(s[u]), G(I));
|
|
598
|
+
if (A >= o && I.push(s[u]), u === s.length - 1)
|
|
599
|
+
return G(I);
|
|
600
|
+
A += V(s[u], s[u + 1], h);
|
|
601
601
|
}
|
|
602
|
-
if (A < o && s.length ===
|
|
602
|
+
if (A < o && s.length === W)
|
|
603
603
|
throw new Error("Start position is beyond line");
|
|
604
604
|
var l = s[s.length - 1];
|
|
605
605
|
return G([l, l]);
|
|
606
606
|
}
|
|
607
607
|
const q = { units: "kilometers" };
|
|
608
|
-
function zs(
|
|
609
|
-
var { nearestDistance: s } = ss(
|
|
610
|
-
const A = Math.min(s,
|
|
611
|
-
return A === s ? o : A ===
|
|
608
|
+
function zs(a, o, e, h) {
|
|
609
|
+
var { nearestDistance: s } = ss(a, o), { nearestDistance: I } = ss(a, h), { nearestDistance: W } = ss(a, e);
|
|
610
|
+
const A = Math.min(s, W, I);
|
|
611
|
+
return A === s ? o : A === W ? e : h;
|
|
612
612
|
}
|
|
613
|
-
const $s = (
|
|
613
|
+
const $s = (a, o, e) => {
|
|
614
614
|
debugger;
|
|
615
|
-
const h = $(
|
|
615
|
+
const h = $(a.slice(0, 2)), { nearestCoord: s } = ss(a, o), I = o.findIndex(
|
|
616
616
|
(Z) => Z[0] == s[0] && Z[1] == s[1]
|
|
617
617
|
);
|
|
618
|
-
let
|
|
619
|
-
if (
|
|
620
|
-
|
|
621
|
-
else if (
|
|
622
|
-
|
|
618
|
+
let W = [];
|
|
619
|
+
if (I == 0)
|
|
620
|
+
W.push(o[0], o[1]);
|
|
621
|
+
else if (I == o.length - 1)
|
|
622
|
+
W.push(o[o.length - 2], o[o.length - 1]);
|
|
623
623
|
else {
|
|
624
|
-
const Z = [o[
|
|
625
|
-
var A = es(h, G(Z), q), L = es(h, G(
|
|
626
|
-
|
|
624
|
+
const Z = [o[I], o[I + 1]], as = [o[I - 1], o[I]];
|
|
625
|
+
var A = es(h, G(Z), q), L = es(h, G(as), q);
|
|
626
|
+
W = A > L ? as : Z;
|
|
627
627
|
}
|
|
628
|
-
console.log("附近的点",
|
|
629
|
-
const i = G([
|
|
630
|
-
var l = es(h, i, q), C = V(h, t, q) || 0,
|
|
631
|
-
let g =
|
|
632
|
-
|
|
633
|
-
const
|
|
628
|
+
console.log("附近的点", I, W);
|
|
629
|
+
const i = G([W[0].slice(0, 2), W[1].slice(0, 2)]), t = $(W[0].slice(0, 2)), u = $(W[1].slice(0, 2));
|
|
630
|
+
var l = es(h, i, q), C = V(h, t, q) || 0, d = Math.sqrt(C * C - l * l) || 0;
|
|
631
|
+
let g = W[0].slice(0, 2);
|
|
632
|
+
d > 0 && (g = Gs(i, 0, d, q).geometry.coordinates[1]);
|
|
633
|
+
const m = V(t, u, q), T = Math.abs(W[0][2] - W[1][2]), B = Math.min(W[0][2], W[1][2]), P = Math.max(W[0][2], W[1][2]), y = W[0][2] > W[1][2] ? P - d / m * T : d / m * T + B;
|
|
634
634
|
console.log("高度差>>>>", T), console.log("最小高度>>>>", B);
|
|
635
|
-
const
|
|
636
|
-
console.log("水平距离>>>>", _), console.log("竖直距离>>>>",
|
|
635
|
+
const b = y - a[2], _ = l * 1e3, v = Math.sqrt(_ * _ + b * b);
|
|
636
|
+
console.log("水平距离>>>>", _), console.log("竖直距离>>>>", b), console.log("直线距离>>>>", v);
|
|
637
637
|
const k = n.Cartesian3.fromDegrees(
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
638
|
+
a[0],
|
|
639
|
+
a[1],
|
|
640
|
+
a[2]
|
|
641
641
|
), S = n.Cartesian3.fromDegrees(g[0], g[1], y);
|
|
642
642
|
var M = Rs(
|
|
643
|
-
$([
|
|
643
|
+
$([a[0], a[1]]),
|
|
644
644
|
$([g[0], g[1]])
|
|
645
645
|
).geometry.coordinates;
|
|
646
646
|
const Y = {
|
|
647
647
|
position: n.Cartesian3.fromDegrees(
|
|
648
648
|
M[0],
|
|
649
649
|
M[1],
|
|
650
|
-
y -
|
|
650
|
+
y - b / 2
|
|
651
651
|
),
|
|
652
652
|
name: "直线距离",
|
|
653
653
|
label: {
|
|
@@ -690,74 +690,74 @@ const $s = (W, o, e) => {
|
|
|
690
690
|
};
|
|
691
691
|
e.add(Y), e.add(F);
|
|
692
692
|
};
|
|
693
|
-
function ss(
|
|
694
|
-
const e = $(
|
|
693
|
+
function ss(a, o) {
|
|
694
|
+
const e = $(a.slice(0, 2)), h = [];
|
|
695
695
|
o.forEach((A) => {
|
|
696
696
|
h.push($([A[0], A[1]]));
|
|
697
697
|
});
|
|
698
698
|
const s = vs(
|
|
699
699
|
h
|
|
700
|
-
),
|
|
700
|
+
), I = Ds(e, s), W = V(e, I, q);
|
|
701
701
|
return {
|
|
702
|
-
nearestCoord:
|
|
703
|
-
nearestDistance:
|
|
702
|
+
nearestCoord: I.geometry.coordinates,
|
|
703
|
+
nearestDistance: W
|
|
704
704
|
};
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function w(a, o, e, h, s) {
|
|
707
707
|
e || (e = new n.HeadingPitchRoll());
|
|
708
|
-
const
|
|
709
|
-
|
|
708
|
+
const I = n.Transforms.headingPitchRollQuaternion(
|
|
709
|
+
a,
|
|
710
710
|
e,
|
|
711
711
|
h,
|
|
712
712
|
s
|
|
713
|
-
),
|
|
714
|
-
n.Matrix3.fromQuaternion(
|
|
715
|
-
|
|
713
|
+
), W = n.Matrix4.fromRotationTranslation(
|
|
714
|
+
n.Matrix3.fromQuaternion(I, new n.Matrix3()),
|
|
715
|
+
a,
|
|
716
716
|
new n.Matrix4()
|
|
717
717
|
);
|
|
718
718
|
return n.Matrix4.multiplyByPoint(
|
|
719
|
-
|
|
719
|
+
W,
|
|
720
720
|
o,
|
|
721
721
|
new n.Cartesian3()
|
|
722
722
|
);
|
|
723
723
|
}
|
|
724
|
-
function O(
|
|
725
|
-
var e =
|
|
726
|
-
return [s, h,
|
|
724
|
+
function O(a, o) {
|
|
725
|
+
var e = a.cartesianToCartographic(o), h = n.Math.toDegrees(e.latitude), s = n.Math.toDegrees(e.longitude), I = e.height;
|
|
726
|
+
return [s, h, I];
|
|
727
727
|
}
|
|
728
|
-
function f(
|
|
728
|
+
function f(a, o = 6) {
|
|
729
729
|
const e = [];
|
|
730
|
-
for (var h = 0; h <
|
|
730
|
+
for (var h = 0; h < a.length - 1; h++)
|
|
731
731
|
e.push(
|
|
732
|
-
...qs(
|
|
732
|
+
...qs(a[h], a[h + 1], o * -1e3, 100)
|
|
733
733
|
);
|
|
734
734
|
return e;
|
|
735
735
|
}
|
|
736
|
-
function qs(
|
|
737
|
-
var s = [],
|
|
736
|
+
function qs(a, o, e, h) {
|
|
737
|
+
var s = [], I = n.Cartographic.fromCartesian(a), W = n.Cartographic.fromCartesian(o), A = I.longitude * 180 / Math.PI, L = I.latitude * 180 / Math.PI, i = W.longitude * 180 / Math.PI, t = W.latitude * 180 / Math.PI, u = Math.sqrt(
|
|
738
738
|
(A - i) * (A - i) + (L - t) * (L - t)
|
|
739
|
-
), l =
|
|
739
|
+
), l = u * e, C = n.Cartesian3.clone(a), d = n.Cartesian3.clone(o), g = n.Cartesian3.distance(
|
|
740
740
|
C,
|
|
741
741
|
n.Cartesian3.ZERO
|
|
742
|
-
),
|
|
743
|
-
if (n.Cartesian3.normalize(C, C), n.Cartesian3.normalize(
|
|
742
|
+
), m = n.Cartesian3.distance(d, n.Cartesian3.ZERO);
|
|
743
|
+
if (n.Cartesian3.normalize(C, C), n.Cartesian3.normalize(d, d), n.Cartesian3.distance(C, d) == 0)
|
|
744
744
|
return s;
|
|
745
|
-
var T = n.Cartesian3.angleBetween(C,
|
|
746
|
-
s.push(
|
|
745
|
+
var T = n.Cartesian3.angleBetween(C, d);
|
|
746
|
+
s.push(a);
|
|
747
747
|
for (var B = 1; B < h - 1; B++) {
|
|
748
|
-
var P = B * 1 / (h - 1), y = 1 - P,
|
|
748
|
+
var P = B * 1 / (h - 1), y = 1 - P, b = Math.sin(y * T) / Math.sin(T), _ = Math.sin(P * T) / Math.sin(T), v = n.Cartesian3.multiplyByScalar(
|
|
749
749
|
C,
|
|
750
|
-
|
|
750
|
+
b,
|
|
751
751
|
new n.Cartesian3()
|
|
752
752
|
), k = n.Cartesian3.multiplyByScalar(
|
|
753
|
-
|
|
753
|
+
d,
|
|
754
754
|
_,
|
|
755
755
|
new n.Cartesian3()
|
|
756
756
|
), S = n.Cartesian3.add(
|
|
757
757
|
v,
|
|
758
758
|
k,
|
|
759
759
|
new n.Cartesian3()
|
|
760
|
-
), M = P * Math.PI, X = g * y +
|
|
760
|
+
), M = P * Math.PI, X = g * y + m * P + Math.sin(M) * l;
|
|
761
761
|
S = n.Cartesian3.multiplyByScalar(
|
|
762
762
|
S,
|
|
763
763
|
X,
|
|
@@ -768,199 +768,208 @@ function qs(W, o, e, h) {
|
|
|
768
768
|
}
|
|
769
769
|
class it {
|
|
770
770
|
constructor() {
|
|
771
|
-
|
|
772
|
-
|
|
771
|
+
p(this, "LineID", "myEntity1");
|
|
772
|
+
p(this, "Tag", "");
|
|
773
773
|
// 线路杆塔台账
|
|
774
|
-
|
|
774
|
+
p(this, "towers", []);
|
|
775
775
|
//是否启用自定义相序 true 按照设置相序分类 false 按照集合顺序分类
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
776
|
+
p(this, "ISPhaseSequence", !1);
|
|
777
|
+
p(this, "Wairnum", 0);
|
|
778
|
+
p(this, "Type", 0);
|
|
779
|
+
p(this, "Trees", []);
|
|
780
780
|
// 导线颜色
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
781
|
+
p(this, "wireAColor", "#FFFFFF");
|
|
782
|
+
p(this, "wireBColor", "#FFFFFF");
|
|
783
|
+
p(this, "wireCColor", "#FFFFFF");
|
|
784
|
+
p(this, "wireTColor", "#FFFFFF");
|
|
785
785
|
//地线
|
|
786
|
-
|
|
787
|
-
|
|
786
|
+
p(this, "wireD1Color", "#FFFFFF");
|
|
787
|
+
p(this, "wireD2Color", "#FFFFFF");
|
|
788
788
|
// 导线宽度
|
|
789
|
-
|
|
789
|
+
p(this, "wireWidth", 1);
|
|
790
|
+
//线模型显隐距离
|
|
791
|
+
p(this, "LineDistanceDisplaymin", 0);
|
|
792
|
+
p(this, "LineDistanceDisplaymax", 5e3);
|
|
790
793
|
}
|
|
791
794
|
}
|
|
792
795
|
class et {
|
|
793
796
|
constructor() {
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
797
|
+
p(this, "id", "");
|
|
798
|
+
p(this, "modelid", "");
|
|
799
|
+
p(this, "lon", 0);
|
|
800
|
+
p(this, "lat", 0);
|
|
801
|
+
p(this, "alt", 0);
|
|
802
|
+
p(this, "treeH", 0);
|
|
803
|
+
p(this, "modelurl", "");
|
|
804
|
+
p(this, "treeScale", 1);
|
|
802
805
|
}
|
|
803
806
|
}
|
|
804
807
|
class ot {
|
|
805
808
|
constructor() {
|
|
806
809
|
// 杆塔id
|
|
807
|
-
|
|
810
|
+
p(this, "id", "");
|
|
808
811
|
// 杆塔名称
|
|
809
|
-
|
|
812
|
+
p(this, "name", "");
|
|
810
813
|
//杆塔类型
|
|
811
|
-
|
|
814
|
+
p(this, "type", 0);
|
|
812
815
|
// 经度
|
|
813
|
-
|
|
816
|
+
p(this, "Longitude", 0);
|
|
814
817
|
// 纬度
|
|
815
|
-
|
|
818
|
+
p(this, "Latitude", 0);
|
|
816
819
|
// 高程
|
|
817
|
-
|
|
820
|
+
p(this, "Altitude", 0);
|
|
818
821
|
// 转角
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
822
|
+
p(this, "RollX", 0);
|
|
823
|
+
p(this, "RollY", 90);
|
|
824
|
+
p(this, "RollZ", 0);
|
|
825
|
+
p(this, "towerScale", 1);
|
|
823
826
|
// 电线偏移高度,单位:米
|
|
824
|
-
|
|
827
|
+
p(this, "towerHeight", 0);
|
|
825
828
|
//模型路径
|
|
826
|
-
|
|
829
|
+
p(this, "towerModelUri", "");
|
|
827
830
|
//挂点信息
|
|
828
|
-
|
|
831
|
+
p(this, "towerPoint", []);
|
|
829
832
|
//绝缘子串
|
|
830
|
-
|
|
833
|
+
p(this, "Insulators", []);
|
|
834
|
+
//模型显隐距离
|
|
835
|
+
p(this, "DistanceDisplaymin", 0);
|
|
836
|
+
p(this, "DistanceDisplaymax", 1e3);
|
|
831
837
|
}
|
|
832
838
|
}
|
|
833
839
|
class rt {
|
|
834
840
|
constructor() {
|
|
835
841
|
// 绝缘子串id
|
|
836
|
-
|
|
842
|
+
p(this, "id", "");
|
|
837
843
|
// 绝缘子串名称
|
|
838
|
-
|
|
844
|
+
p(this, "name", "");
|
|
839
845
|
// 类型 地线串 耐张串 悬垂串 跳线串
|
|
840
|
-
|
|
841
|
-
|
|
846
|
+
p(this, "type", 0);
|
|
847
|
+
p(this, "WairFX", "进");
|
|
842
848
|
//串所属回路
|
|
843
|
-
|
|
849
|
+
p(this, "linenum", 1);
|
|
844
850
|
//分裂数
|
|
845
|
-
|
|
851
|
+
p(this, "Wairnum", 0);
|
|
846
852
|
//相序
|
|
847
|
-
|
|
853
|
+
p(this, "PhaseSequence", 0);
|
|
848
854
|
//串模型转角
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
855
|
+
p(this, "RollX", 0);
|
|
856
|
+
p(this, "RollY", 0);
|
|
857
|
+
p(this, "RollZ", 0);
|
|
852
858
|
//缩放
|
|
853
|
-
|
|
859
|
+
p(this, "InsulatorScale", 1);
|
|
854
860
|
//串长
|
|
855
|
-
|
|
861
|
+
p(this, "InsulatorLength", 0);
|
|
856
862
|
//模型路径
|
|
857
|
-
|
|
863
|
+
p(this, "InsulatorModelUri", "");
|
|
858
864
|
//挂点信息
|
|
859
|
-
|
|
865
|
+
p(this, "InsulatorPoint", []);
|
|
866
|
+
//模型显隐距离
|
|
867
|
+
p(this, "DistanceDisplaymin", 0);
|
|
868
|
+
p(this, "DistanceDisplaymax", 500);
|
|
860
869
|
}
|
|
861
870
|
}
|
|
862
871
|
class ft {
|
|
863
872
|
constructor() {
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
873
|
+
p(this, "name", "");
|
|
874
|
+
p(this, "X", -45);
|
|
875
|
+
p(this, "Y", 90);
|
|
876
|
+
p(this, "Z", 0);
|
|
868
877
|
}
|
|
869
878
|
}
|
|
870
|
-
var H = /* @__PURE__ */ ((
|
|
879
|
+
var H = /* @__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))(H || {}), J = /* @__PURE__ */ ((a) => (a[a.直线塔 = 0] = "直线塔", a[a.耐张塔 = 1] = "耐张塔", a[a.门架塔 = 2] = "门架塔", a[a.换位塔 = 3] = "换位塔", a))(J || {}), Js = /* @__PURE__ */ ((a) => (a[a.交流单回路 = 0] = "交流单回路", a[a.交流双回路 = 1] = "交流双回路", a[a.直流单回路 = 2] = "直流单回路", a[a.直流双回路 = 3] = "直流双回路", a[a.交流四回路 = 4] = "交流四回路", a))(Js || {}), ts = /* @__PURE__ */ ((a) => (a[a.地线 = 0] = "地线", a[a.回路一 = 1] = "回路一", a[a.回路二 = 2] = "回路二", a[a.回路三 = 3] = "回路三", a[a.回路四 = 4] = "回路四", a))(ts || {}), R = /* @__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))(R || {}), c = /* @__PURE__ */ ((a) => (a[a.单分裂 = 0] = "单分裂", a[a.双分裂 = 1] = "双分裂", a[a.四分裂 = 2] = "四分裂", a[a.六分裂 = 3] = "六分裂", a[a.八分裂 = 4] = "八分裂", a))(c || {});
|
|
871
880
|
class ht {
|
|
872
881
|
// private arcLine1D2: Cesium.Cartesian3[]= [];
|
|
873
882
|
// 类的构造函数,用于初始化属性
|
|
874
883
|
constructor(o, e, h) {
|
|
875
884
|
//三维场景
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
885
|
+
p(this, "viewer");
|
|
886
|
+
p(this, "LineInfo");
|
|
887
|
+
p(this, "Keym", "");
|
|
879
888
|
// 模型模型集合
|
|
880
|
-
|
|
881
|
-
|
|
889
|
+
p(this, "dataSource2");
|
|
890
|
+
p(this, "entityCollection2");
|
|
882
891
|
// 模型模型集合
|
|
883
|
-
|
|
884
|
-
|
|
892
|
+
p(this, "dataSourcetree");
|
|
893
|
+
p(this, "entityCollectiontree");
|
|
885
894
|
// 模型模型集合
|
|
886
|
-
|
|
887
|
-
|
|
895
|
+
p(this, "dataSourceplotting");
|
|
896
|
+
p(this, "entityCollectionplotting");
|
|
888
897
|
// // 模型模型集合
|
|
889
898
|
// private LinedataSource2;
|
|
890
899
|
// private LineentityCollection2;
|
|
891
900
|
// 塔集合
|
|
892
|
-
|
|
901
|
+
p(this, "offsetTowers", []);
|
|
893
902
|
// 回路1单根导线1
|
|
894
|
-
|
|
903
|
+
p(this, "offsetWires11", []);
|
|
895
904
|
// 回路1单根导线2
|
|
896
|
-
|
|
905
|
+
p(this, "offsetWires12", []);
|
|
897
906
|
// 回路1单根导线3
|
|
898
|
-
|
|
907
|
+
p(this, "offsetWires13", []);
|
|
899
908
|
// 回路2单根导线1
|
|
900
|
-
|
|
909
|
+
p(this, "offsetWires21", []);
|
|
901
910
|
// 回路2单根导线2
|
|
902
|
-
|
|
911
|
+
p(this, "offsetWires22", []);
|
|
903
912
|
// 回路2单根导线3
|
|
904
|
-
|
|
913
|
+
p(this, "offsetWires23", []);
|
|
905
914
|
// 回路一A跳线
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
915
|
+
p(this, "ToffsetArcWires1A", []);
|
|
916
|
+
p(this, "ToffsetArcWires2A", []);
|
|
917
|
+
p(this, "ToffsetWires1A1", []);
|
|
918
|
+
p(this, "ToffsetWires1A2", []);
|
|
910
919
|
// 回路一B跳线
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
920
|
+
p(this, "ToffsetArcWires1B", []);
|
|
921
|
+
p(this, "ToffsetArcWires2B", []);
|
|
922
|
+
p(this, "ToffsetWires1B1", []);
|
|
923
|
+
p(this, "ToffsetWires1B2", []);
|
|
915
924
|
// 回路一C跳线
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
925
|
+
p(this, "ToffsetArcWires1C", []);
|
|
926
|
+
p(this, "ToffsetArcWires2C", []);
|
|
927
|
+
p(this, "ToffsetWires1C1", []);
|
|
928
|
+
p(this, "ToffsetWires1C2", []);
|
|
920
929
|
// 回路二A跳线
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
930
|
+
p(this, "ToffsetArcWires1A2", []);
|
|
931
|
+
p(this, "ToffsetArcWires2A2", []);
|
|
932
|
+
p(this, "ToffsetWires2A1", []);
|
|
933
|
+
p(this, "ToffsetWires2A2", []);
|
|
925
934
|
// 回路二B跳线
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
935
|
+
p(this, "ToffsetArcWires1B2", []);
|
|
936
|
+
p(this, "ToffsetArcWires2B2", []);
|
|
937
|
+
p(this, "ToffsetWires2B1", []);
|
|
938
|
+
p(this, "ToffsetWires2B2", []);
|
|
930
939
|
// 回路二C跳线
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
940
|
+
p(this, "ToffsetArcWires1C2", []);
|
|
941
|
+
p(this, "ToffsetArcWires2C2", []);
|
|
942
|
+
p(this, "ToffsetWires2C1", []);
|
|
943
|
+
p(this, "ToffsetWires2C2", []);
|
|
935
944
|
// 回路一导线相序A
|
|
936
|
-
|
|
945
|
+
p(this, "offsetArcWires1A", []);
|
|
937
946
|
// 回路一导线相序B
|
|
938
|
-
|
|
947
|
+
p(this, "offsetArcWires1B", []);
|
|
939
948
|
// 回路一导线相序C
|
|
940
|
-
|
|
949
|
+
p(this, "offsetArcWires1C", []);
|
|
941
950
|
// 回路二导线相序A
|
|
942
|
-
|
|
951
|
+
p(this, "offsetArcWires2A", []);
|
|
943
952
|
// 回路二导线相序B
|
|
944
|
-
|
|
953
|
+
p(this, "offsetArcWires2B", []);
|
|
945
954
|
// 回路二导线相序C
|
|
946
|
-
|
|
955
|
+
p(this, "offsetArcWires2C", []);
|
|
947
956
|
//地线1
|
|
948
|
-
|
|
957
|
+
p(this, "offsetGrouundWires1", []);
|
|
949
958
|
//地线2
|
|
950
|
-
|
|
959
|
+
p(this, "offsetGrouundWires2", []);
|
|
951
960
|
// 单根地线1
|
|
952
|
-
|
|
961
|
+
p(this, "offsetGrouundWires11", []);
|
|
953
962
|
// 单根地线2
|
|
954
|
-
|
|
963
|
+
p(this, "offsetGrouundWires12", []);
|
|
955
964
|
// 电线(垂线)集合 用于计算
|
|
956
965
|
//回路1
|
|
957
|
-
|
|
958
|
-
|
|
966
|
+
p(this, "arcLine1A1", []);
|
|
967
|
+
p(this, "arcLine1B1", []);
|
|
959
968
|
// private arcLine1C1: Cesium.Cartesian3[] = [];
|
|
960
969
|
//地线
|
|
961
|
-
|
|
970
|
+
p(this, "arcLine1D1", []);
|
|
962
971
|
// 在类中添加私有属性来存储事件处理器和标记数据源
|
|
963
|
-
|
|
972
|
+
p(this, "treeHandler", null);
|
|
964
973
|
this.Keym = h, this.viewer = o, this.LineInfo = e, this.dataSource2 = new n.CustomDataSource(this.LineInfo.LineID), this.entityCollection2 = this.dataSource2.entities, this.dataSourcetree = new n.CustomDataSource("tree"), this.entityCollectiontree = this.dataSourcetree.entities, this.dataSourceplotting = new n.CustomDataSource("plotting"), this.entityCollectionplotting = this.dataSourceplotting.entities, this.dataSource2 = new n.CustomDataSource(this.LineInfo.LineID + "daoxian"), this.entityCollection2 = this.dataSource2.entities;
|
|
965
974
|
}
|
|
966
975
|
//单回路线路加载
|
|
@@ -972,45 +981,46 @@ class ht {
|
|
|
972
981
|
});
|
|
973
982
|
let o = 0, e = 0;
|
|
974
983
|
this.offsetTowers.forEach((h, s) => {
|
|
975
|
-
const
|
|
976
|
-
this.entityCollection2.add(U(this.LineInfo.towers[s].id, h, this.LineInfo.towers[s].name, this.LineInfo.towers[s].towerModelUri,
|
|
977
|
-
let
|
|
984
|
+
const I = new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[s].RollX), n.Math.toRadians(this.LineInfo.towers[s].RollY), n.Math.toRadians(this.LineInfo.towers[s].RollZ));
|
|
985
|
+
this.entityCollection2.add(U(this.LineInfo.towers[s].id, h, this.LineInfo.towers[s].name, this.LineInfo.towers[s].towerModelUri, I, this.LineInfo.towers[s].towerScale, [this.LineInfo.towers[s].DistanceDisplaymin, this.LineInfo.towers[s].DistanceDisplaymax]));
|
|
986
|
+
let W = new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[s].RollX), 0, 0), A = 0;
|
|
978
987
|
if (this.LineInfo.towers[s].Insulators.forEach((i) => {
|
|
979
988
|
if (this.LineInfo.towers[s].type == J.耐张塔)
|
|
980
989
|
switch (i.type) {
|
|
981
990
|
case R.耐张串:
|
|
982
|
-
let
|
|
991
|
+
let u = new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[s].RollX), 0, 0);
|
|
983
992
|
if (i.WairFX == "进") {
|
|
984
|
-
const
|
|
985
|
-
this.entityCollection2.add(U(i.id, T, i.name, i.InsulatorModelUri,
|
|
993
|
+
const m = new n.HeadingPitchRoll(n.Math.toRadians(i.RollX), n.Math.toRadians(-180), n.Math.toRadians(180)), T = w(h, new n.Cartesian3(this.LineInfo.towers[s].towerPoint[A].X, this.LineInfo.towers[s].towerPoint[A].Y, this.LineInfo.towers[s].towerPoint[A].Z), u);
|
|
994
|
+
this.entityCollection2.add(U(i.id, T, i.name, i.InsulatorModelUri, m, i.InsulatorScale, [i.DistanceDisplaymin, i.DistanceDisplaymax]));
|
|
986
995
|
} else {
|
|
987
|
-
const
|
|
996
|
+
const m = new n.HeadingPitchRoll(n.Math.toRadians(i.RollX), n.Math.toRadians(0), n.Math.toRadians(0)), T = w(h, new n.Cartesian3(this.LineInfo.towers[s].towerPoint[A].X, this.LineInfo.towers[s].towerPoint[A].Y, this.LineInfo.towers[s].towerPoint[A].Z), u);
|
|
988
997
|
this.entityCollection2.add(U(
|
|
989
998
|
i.id,
|
|
990
999
|
T,
|
|
991
1000
|
i.name,
|
|
992
1001
|
i.InsulatorModelUri,
|
|
993
|
-
|
|
994
|
-
i.InsulatorScale
|
|
1002
|
+
m,
|
|
1003
|
+
i.InsulatorScale,
|
|
1004
|
+
[i.DistanceDisplaymin, i.DistanceDisplaymax]
|
|
995
1005
|
));
|
|
996
1006
|
}
|
|
997
1007
|
break;
|
|
998
1008
|
case R.跳线串:
|
|
999
|
-
const l = new n.HeadingPitchRoll(n.Math.toRadians(i.RollX), n.Math.toRadians(i.RollY), n.Math.toRadians(i.RollZ)), C =
|
|
1009
|
+
const l = new n.HeadingPitchRoll(n.Math.toRadians(i.RollX), n.Math.toRadians(i.RollY), n.Math.toRadians(i.RollZ)), C = w(h, new n.Cartesian3(this.LineInfo.towers[s].towerPoint[A].X, this.LineInfo.towers[s].towerPoint[A].Y, this.LineInfo.towers[s].towerPoint[A].Z), W);
|
|
1000
1010
|
this.entityCollection2.add(U(i.id, C, i.name, i.InsulatorModelUri, l, i.InsulatorScale));
|
|
1001
1011
|
break;
|
|
1002
1012
|
case R.地线串:
|
|
1003
|
-
const
|
|
1004
|
-
this.entityCollection2.add(U(i.id, g, i.name, i.InsulatorModelUri,
|
|
1013
|
+
const d = new n.HeadingPitchRoll(n.Math.toRadians(i.RollX), n.Math.toRadians(i.RollY), n.Math.toRadians(i.RollZ)), g = w(h, new n.Cartesian3(this.LineInfo.towers[s].towerPoint[A].X, this.LineInfo.towers[s].towerPoint[A].Y, this.LineInfo.towers[s].towerPoint[A].Z), W);
|
|
1014
|
+
this.entityCollection2.add(U(i.id, g, i.name, i.InsulatorModelUri, d, i.InsulatorScale));
|
|
1005
1015
|
break;
|
|
1006
1016
|
}
|
|
1007
1017
|
else {
|
|
1008
|
-
const
|
|
1009
|
-
this.entityCollection2.add(U(i.id, l, i.name, i.InsulatorModelUri,
|
|
1018
|
+
const u = new n.HeadingPitchRoll(n.Math.toRadians(i.RollX), n.Math.toRadians(i.RollY), n.Math.toRadians(i.RollZ)), l = w(h, new n.Cartesian3(this.LineInfo.towers[s].towerPoint[A].X, this.LineInfo.towers[s].towerPoint[A].Y, this.LineInfo.towers[s].towerPoint[A].Z), W);
|
|
1019
|
+
this.entityCollection2.add(U(i.id, l, i.name, i.InsulatorModelUri, u, i.InsulatorScale, [i.DistanceDisplaymin, i.DistanceDisplaymax]));
|
|
1010
1020
|
}
|
|
1011
1021
|
const t = [];
|
|
1012
|
-
switch (i.InsulatorPoint.forEach((
|
|
1013
|
-
|
|
1022
|
+
switch (i.InsulatorPoint.forEach((u) => {
|
|
1023
|
+
u.Y = u.Y + this.LineInfo.towers[s].towerPoint[A].Y, u.Z = u.Z + this.LineInfo.towers[s].towerPoint[A].Z, t.push(w(h, new n.Cartesian3(u.X, u.Y, u.Z), W));
|
|
1014
1024
|
}), i.linenum) {
|
|
1015
1025
|
case ts.回路一:
|
|
1016
1026
|
if (this.LineInfo.ISPhaseSequence)
|
|
@@ -1039,23 +1049,23 @@ class ht {
|
|
|
1039
1049
|
else
|
|
1040
1050
|
switch (this.LineInfo.Wairnum) {
|
|
1041
1051
|
case c.单分裂:
|
|
1042
|
-
const
|
|
1043
|
-
this.offsetWires11.push(
|
|
1052
|
+
const u = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W);
|
|
1053
|
+
this.offsetWires11.push(u), this.ToffsetWires1A2.push(u);
|
|
1044
1054
|
break;
|
|
1045
1055
|
case c.双分裂:
|
|
1046
|
-
const l =
|
|
1056
|
+
const l = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), C = w(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W);
|
|
1047
1057
|
this.offsetWires11.push(l), this.offsetWires11.push(C), this.ToffsetWires1A2.push(l), this.ToffsetWires1A2.push(C);
|
|
1048
1058
|
break;
|
|
1049
1059
|
case c.四分裂:
|
|
1050
|
-
const
|
|
1051
|
-
this.offsetWires11.push(
|
|
1060
|
+
const d = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), g = w(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), m = w(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), T = w(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W);
|
|
1061
|
+
this.offsetWires11.push(d), this.offsetWires11.push(g), this.offsetWires11.push(m), this.offsetWires11.push(T), this.ToffsetWires1A2.push(d), this.ToffsetWires1A2.push(g), this.ToffsetWires1A2.push(m), this.ToffsetWires1A2.push(T);
|
|
1052
1062
|
break;
|
|
1053
1063
|
case c.六分裂:
|
|
1054
|
-
const B =
|
|
1055
|
-
this.offsetWires11.push(B), this.offsetWires11.push(P), this.offsetWires11.push(y), this.offsetWires11.push(
|
|
1064
|
+
const B = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), P = w(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), y = w(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), b = w(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W), _ = w(h, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), W), v = w(h, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), W);
|
|
1065
|
+
this.offsetWires11.push(B), this.offsetWires11.push(P), this.offsetWires11.push(y), this.offsetWires11.push(b), this.offsetWires11.push(_), this.offsetWires11.push(v), this.ToffsetWires1A2.push(B), this.ToffsetWires1A2.push(P), this.ToffsetWires1A2.push(y), this.ToffsetWires1A2.push(b), this.ToffsetWires1A2.push(_), this.ToffsetWires1A2.push(v);
|
|
1056
1066
|
break;
|
|
1057
1067
|
case c.八分裂:
|
|
1058
|
-
const k =
|
|
1068
|
+
const k = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), S = w(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), M = w(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), X = w(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W), Y = w(h, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), W), E = w(h, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), W), F = w(h, new n.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), W), Z = w(h, new n.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), W);
|
|
1059
1069
|
this.offsetWires11.push(k), this.offsetWires11.push(S), this.offsetWires11.push(M), this.offsetWires11.push(X), this.offsetWires11.push(Y), this.offsetWires11.push(E), this.offsetWires11.push(F), this.offsetWires11.push(Z), this.ToffsetWires1A2.push(k), this.ToffsetWires1A2.push(S), this.ToffsetWires1A2.push(M), this.ToffsetWires1A2.push(X), this.ToffsetWires1A2.push(Y), this.ToffsetWires1A2.push(E), this.ToffsetWires1A2.push(F), this.ToffsetWires1A2.push(Z);
|
|
1060
1070
|
break;
|
|
1061
1071
|
}
|
|
@@ -1101,23 +1111,23 @@ class ht {
|
|
|
1101
1111
|
else
|
|
1102
1112
|
switch (this.LineInfo.Wairnum) {
|
|
1103
1113
|
case c.单分裂:
|
|
1104
|
-
const
|
|
1105
|
-
this.offsetWires12.push(
|
|
1114
|
+
const u = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W);
|
|
1115
|
+
this.offsetWires12.push(u), this.ToffsetWires1B2.push(u);
|
|
1106
1116
|
break;
|
|
1107
1117
|
case c.双分裂:
|
|
1108
|
-
const l =
|
|
1118
|
+
const l = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), C = w(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W);
|
|
1109
1119
|
this.offsetWires12.push(l), this.offsetWires12.push(C), this.ToffsetWires1B2.push(l), this.ToffsetWires1B2.push(C);
|
|
1110
1120
|
break;
|
|
1111
1121
|
case c.四分裂:
|
|
1112
|
-
const
|
|
1113
|
-
this.offsetWires12.push(
|
|
1122
|
+
const d = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), g = w(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), m = w(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), T = w(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W);
|
|
1123
|
+
this.offsetWires12.push(d), this.offsetWires12.push(g), this.offsetWires12.push(m), this.offsetWires12.push(T), this.ToffsetWires1B2.push(d), this.ToffsetWires1B2.push(g), this.ToffsetWires1B2.push(m), this.ToffsetWires1B2.push(T);
|
|
1114
1124
|
break;
|
|
1115
1125
|
case c.六分裂:
|
|
1116
|
-
const B =
|
|
1117
|
-
this.offsetWires12.push(B), this.offsetWires12.push(P), this.offsetWires12.push(y), this.offsetWires12.push(
|
|
1126
|
+
const B = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), P = w(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), y = w(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), b = w(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W), _ = w(h, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), W), v = w(h, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), W);
|
|
1127
|
+
this.offsetWires12.push(B), this.offsetWires12.push(P), this.offsetWires12.push(y), this.offsetWires12.push(b), this.offsetWires12.push(_), this.offsetWires12.push(v), this.ToffsetWires1B2.push(B), this.ToffsetWires1B2.push(P), this.ToffsetWires1B2.push(y), this.ToffsetWires1B2.push(b), this.ToffsetWires1B2.push(_), this.ToffsetWires1B2.push(v);
|
|
1118
1128
|
break;
|
|
1119
1129
|
case c.八分裂:
|
|
1120
|
-
const k =
|
|
1130
|
+
const k = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), S = w(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), M = w(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), X = w(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W), Y = w(h, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), W), E = w(h, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), W), F = w(h, new n.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), W), Z = w(h, new n.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), W);
|
|
1121
1131
|
this.offsetWires12.push(k), this.offsetWires12.push(S), this.offsetWires12.push(M), this.offsetWires12.push(X), this.offsetWires12.push(Y), this.offsetWires12.push(E), this.offsetWires12.push(F), this.offsetWires12.push(Z), this.ToffsetWires1B2.push(k), this.ToffsetWires1B2.push(S), this.ToffsetWires1B2.push(M), this.ToffsetWires1B2.push(X), this.ToffsetWires1B2.push(Y), this.ToffsetWires1B2.push(E), this.ToffsetWires1B2.push(F), this.ToffsetWires1B2.push(Z);
|
|
1122
1132
|
break;
|
|
1123
1133
|
}
|
|
@@ -1163,23 +1173,23 @@ class ht {
|
|
|
1163
1173
|
else
|
|
1164
1174
|
switch (this.LineInfo.Wairnum) {
|
|
1165
1175
|
case c.单分裂:
|
|
1166
|
-
const
|
|
1167
|
-
this.offsetWires13.push(
|
|
1176
|
+
const u = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W);
|
|
1177
|
+
this.offsetWires13.push(u), this.ToffsetWires1C2.push(u);
|
|
1168
1178
|
break;
|
|
1169
1179
|
case c.双分裂:
|
|
1170
|
-
const l =
|
|
1180
|
+
const l = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), C = w(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W);
|
|
1171
1181
|
this.offsetWires13.push(l), this.offsetWires13.push(C), this.ToffsetWires1C2.push(l), this.ToffsetWires1C2.push(C);
|
|
1172
1182
|
break;
|
|
1173
1183
|
case c.四分裂:
|
|
1174
|
-
const
|
|
1175
|
-
this.offsetWires13.push(
|
|
1184
|
+
const d = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), g = w(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), m = w(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), T = w(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W);
|
|
1185
|
+
this.offsetWires13.push(d), this.offsetWires13.push(g), this.offsetWires13.push(m), this.offsetWires13.push(T), this.ToffsetWires1C2.push(d), this.ToffsetWires1C2.push(g), this.ToffsetWires1C2.push(m), this.ToffsetWires1C2.push(T);
|
|
1176
1186
|
break;
|
|
1177
1187
|
case c.六分裂:
|
|
1178
|
-
const B =
|
|
1179
|
-
this.offsetWires13.push(B), this.offsetWires13.push(P), this.offsetWires13.push(y), this.offsetWires13.push(
|
|
1188
|
+
const B = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), P = w(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), y = w(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), b = w(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W), _ = w(h, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), W), v = w(h, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), W);
|
|
1189
|
+
this.offsetWires13.push(B), this.offsetWires13.push(P), this.offsetWires13.push(y), this.offsetWires13.push(b), this.offsetWires13.push(_), this.offsetWires13.push(v), this.ToffsetWires1C2.push(B), this.ToffsetWires1C2.push(P), this.ToffsetWires1C2.push(y), this.ToffsetWires1C2.push(b), this.ToffsetWires1C2.push(_), this.ToffsetWires1C2.push(v);
|
|
1180
1190
|
break;
|
|
1181
1191
|
case c.八分裂:
|
|
1182
|
-
const k =
|
|
1192
|
+
const k = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), S = w(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), M = w(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), X = w(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W), Y = w(h, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), W), E = w(h, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), W), F = w(h, new n.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), W), Z = w(h, new n.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), W);
|
|
1183
1193
|
this.offsetWires13.push(k), this.offsetWires13.push(S), this.offsetWires13.push(M), this.offsetWires13.push(X), this.offsetWires13.push(Y), this.offsetWires13.push(E), this.offsetWires13.push(F), this.offsetWires13.push(Z), this.ToffsetWires1C2.push(k), this.ToffsetWires1C2.push(S), this.ToffsetWires1C2.push(M), this.ToffsetWires1C2.push(X), this.ToffsetWires1C2.push(Y), this.ToffsetWires1C2.push(E), this.ToffsetWires1C2.push(F), this.ToffsetWires1C2.push(Z);
|
|
1184
1194
|
break;
|
|
1185
1195
|
}
|
|
@@ -1206,18 +1216,18 @@ class ht {
|
|
|
1206
1216
|
else
|
|
1207
1217
|
switch (i.PhaseSequence) {
|
|
1208
1218
|
case H.A相:
|
|
1209
|
-
t.forEach((
|
|
1210
|
-
this.offsetWires11.push(
|
|
1219
|
+
t.forEach((u) => {
|
|
1220
|
+
this.offsetWires11.push(u);
|
|
1211
1221
|
});
|
|
1212
1222
|
break;
|
|
1213
1223
|
case H.B相:
|
|
1214
|
-
t.forEach((
|
|
1215
|
-
this.offsetWires12.push(
|
|
1224
|
+
t.forEach((u) => {
|
|
1225
|
+
this.offsetWires12.push(u);
|
|
1216
1226
|
});
|
|
1217
1227
|
break;
|
|
1218
1228
|
case H.C相:
|
|
1219
|
-
t.forEach((
|
|
1220
|
-
this.offsetWires13.push(
|
|
1229
|
+
t.forEach((u) => {
|
|
1230
|
+
this.offsetWires13.push(u);
|
|
1221
1231
|
});
|
|
1222
1232
|
break;
|
|
1223
1233
|
}
|
|
@@ -1246,44 +1256,44 @@ class ht {
|
|
|
1246
1256
|
case 4:
|
|
1247
1257
|
switch (this.LineInfo.Wairnum) {
|
|
1248
1258
|
case c.单分裂:
|
|
1249
|
-
const
|
|
1250
|
-
this.offsetWires11.push(
|
|
1259
|
+
const u = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W);
|
|
1260
|
+
this.offsetWires11.push(u), this.ToffsetWires1A2.push(u);
|
|
1251
1261
|
break;
|
|
1252
1262
|
case c.双分裂:
|
|
1253
|
-
const l =
|
|
1263
|
+
const l = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), C = w(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W);
|
|
1254
1264
|
this.offsetWires11.push(l), this.offsetWires11.push(C), this.ToffsetWires1A2.push(l), this.ToffsetWires1A2.push(C);
|
|
1255
1265
|
break;
|
|
1256
1266
|
}
|
|
1257
1267
|
break;
|
|
1258
1268
|
case 5:
|
|
1259
|
-
t.forEach((
|
|
1260
|
-
this.offsetWires12.push(
|
|
1269
|
+
t.forEach((u) => {
|
|
1270
|
+
this.offsetWires12.push(u), this.ToffsetWires1B1.push(u);
|
|
1261
1271
|
});
|
|
1262
1272
|
break;
|
|
1263
1273
|
case 6:
|
|
1264
|
-
t.forEach((
|
|
1265
|
-
this.ToffsetWires1B1.push(
|
|
1274
|
+
t.forEach((u) => {
|
|
1275
|
+
this.ToffsetWires1B1.push(u), this.ToffsetWires1B2.push(u);
|
|
1266
1276
|
});
|
|
1267
1277
|
break;
|
|
1268
1278
|
case 7:
|
|
1269
|
-
i.InsulatorPoint.forEach((
|
|
1270
|
-
const l =
|
|
1279
|
+
i.InsulatorPoint.forEach((u) => {
|
|
1280
|
+
const l = w(h, new n.Cartesian3(u.X * -1, u.Y, u.Z), W);
|
|
1271
1281
|
this.offsetWires12.push(l), this.ToffsetWires1B2.push(l);
|
|
1272
1282
|
});
|
|
1273
1283
|
break;
|
|
1274
1284
|
case 8:
|
|
1275
|
-
t.forEach((
|
|
1276
|
-
this.offsetWires13.push(
|
|
1285
|
+
t.forEach((u) => {
|
|
1286
|
+
this.offsetWires13.push(u), this.ToffsetWires1C1.push(u);
|
|
1277
1287
|
});
|
|
1278
1288
|
break;
|
|
1279
1289
|
case 9:
|
|
1280
|
-
t.forEach((
|
|
1281
|
-
this.ToffsetWires1C1.push(
|
|
1290
|
+
t.forEach((u) => {
|
|
1291
|
+
this.ToffsetWires1C1.push(u), this.ToffsetWires1C2.push(u);
|
|
1282
1292
|
});
|
|
1283
1293
|
break;
|
|
1284
1294
|
case 10:
|
|
1285
|
-
i.InsulatorPoint.forEach((
|
|
1286
|
-
const l =
|
|
1295
|
+
i.InsulatorPoint.forEach((u) => {
|
|
1296
|
+
const l = w(h, new n.Cartesian3(u.X * -1, u.Y, u.Z), W);
|
|
1287
1297
|
this.offsetWires13.push(l), this.ToffsetWires1C2.push(l);
|
|
1288
1298
|
});
|
|
1289
1299
|
break;
|
|
@@ -1291,18 +1301,18 @@ class ht {
|
|
|
1291
1301
|
else
|
|
1292
1302
|
switch (A) {
|
|
1293
1303
|
case 2:
|
|
1294
|
-
t.forEach((
|
|
1295
|
-
this.offsetWires11.push(
|
|
1304
|
+
t.forEach((u) => {
|
|
1305
|
+
this.offsetWires11.push(u);
|
|
1296
1306
|
});
|
|
1297
1307
|
break;
|
|
1298
1308
|
case 3:
|
|
1299
|
-
t.forEach((
|
|
1300
|
-
this.offsetWires12.push(
|
|
1309
|
+
t.forEach((u) => {
|
|
1310
|
+
this.offsetWires12.push(u);
|
|
1301
1311
|
});
|
|
1302
1312
|
break;
|
|
1303
1313
|
case 4:
|
|
1304
|
-
t.forEach((
|
|
1305
|
-
this.offsetWires13.push(
|
|
1314
|
+
t.forEach((u) => {
|
|
1315
|
+
this.offsetWires13.push(u);
|
|
1306
1316
|
});
|
|
1307
1317
|
break;
|
|
1308
1318
|
}
|
|
@@ -1334,23 +1344,23 @@ class ht {
|
|
|
1334
1344
|
else
|
|
1335
1345
|
switch (this.LineInfo.Wairnum) {
|
|
1336
1346
|
case c.单分裂:
|
|
1337
|
-
const
|
|
1338
|
-
this.offsetWires21.push(
|
|
1347
|
+
const u = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W);
|
|
1348
|
+
this.offsetWires21.push(u), this.ToffsetWires2A2.push(u);
|
|
1339
1349
|
break;
|
|
1340
1350
|
case c.双分裂:
|
|
1341
|
-
const l =
|
|
1351
|
+
const l = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), C = w(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W);
|
|
1342
1352
|
this.offsetWires21.push(l), this.offsetWires21.push(C), this.ToffsetWires2A2.push(l), this.ToffsetWires2A2.push(C);
|
|
1343
1353
|
break;
|
|
1344
1354
|
case c.四分裂:
|
|
1345
|
-
const
|
|
1346
|
-
this.offsetWires21.push(
|
|
1355
|
+
const d = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), g = w(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), m = w(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), T = w(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W);
|
|
1356
|
+
this.offsetWires21.push(d), this.offsetWires21.push(g), this.offsetWires21.push(m), this.offsetWires21.push(T), this.ToffsetWires2A2.push(d), this.ToffsetWires2A2.push(g), this.ToffsetWires2A2.push(m), this.ToffsetWires2A2.push(T);
|
|
1347
1357
|
break;
|
|
1348
1358
|
case c.六分裂:
|
|
1349
|
-
const B =
|
|
1350
|
-
this.offsetWires21.push(B), this.offsetWires21.push(P), this.offsetWires21.push(y), this.offsetWires21.push(
|
|
1359
|
+
const B = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), P = w(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), y = w(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), b = w(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W), _ = w(h, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), W), v = w(h, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), W);
|
|
1360
|
+
this.offsetWires21.push(B), this.offsetWires21.push(P), this.offsetWires21.push(y), this.offsetWires21.push(b), this.offsetWires21.push(_), this.offsetWires21.push(v), this.ToffsetWires2A2.push(B), this.ToffsetWires2A2.push(P), this.ToffsetWires2A2.push(y), this.ToffsetWires2A2.push(b), this.ToffsetWires2A2.push(_), this.ToffsetWires2A2.push(v);
|
|
1351
1361
|
break;
|
|
1352
1362
|
case c.八分裂:
|
|
1353
|
-
const k =
|
|
1363
|
+
const k = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), S = w(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), M = w(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), X = w(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W), Y = w(h, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), W), E = w(h, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), W), F = w(h, new n.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), W), Z = w(h, new n.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), W);
|
|
1354
1364
|
this.offsetWires21.push(k), this.offsetWires21.push(S), this.offsetWires21.push(M), this.offsetWires21.push(X), this.offsetWires21.push(Y), this.offsetWires21.push(E), this.offsetWires21.push(F), this.offsetWires21.push(Z), this.ToffsetWires2A2.push(k), this.ToffsetWires2A2.push(S), this.ToffsetWires2A2.push(M), this.ToffsetWires2A2.push(X), this.ToffsetWires2A2.push(Y), this.ToffsetWires2A2.push(E), this.ToffsetWires2A2.push(F), this.ToffsetWires2A2.push(Z);
|
|
1355
1365
|
break;
|
|
1356
1366
|
}
|
|
@@ -1396,23 +1406,23 @@ class ht {
|
|
|
1396
1406
|
else
|
|
1397
1407
|
switch (this.LineInfo.Wairnum) {
|
|
1398
1408
|
case c.单分裂:
|
|
1399
|
-
const
|
|
1400
|
-
this.offsetWires22.push(
|
|
1409
|
+
const u = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W);
|
|
1410
|
+
this.offsetWires22.push(u), this.ToffsetWires2B2.push(u);
|
|
1401
1411
|
break;
|
|
1402
1412
|
case c.双分裂:
|
|
1403
|
-
const l =
|
|
1413
|
+
const l = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), C = w(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W);
|
|
1404
1414
|
this.offsetWires22.push(l), this.offsetWires22.push(C), this.ToffsetWires2B2.push(l), this.ToffsetWires2B2.push(C);
|
|
1405
1415
|
break;
|
|
1406
1416
|
case c.四分裂:
|
|
1407
|
-
const
|
|
1408
|
-
this.offsetWires22.push(
|
|
1417
|
+
const d = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), g = w(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), m = w(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), T = w(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W);
|
|
1418
|
+
this.offsetWires22.push(d), this.offsetWires22.push(g), this.offsetWires22.push(m), this.offsetWires22.push(T), this.ToffsetWires2B2.push(d), this.ToffsetWires2B2.push(g), this.ToffsetWires2B2.push(m), this.ToffsetWires2B2.push(T);
|
|
1409
1419
|
break;
|
|
1410
1420
|
case c.六分裂:
|
|
1411
|
-
const B =
|
|
1412
|
-
this.offsetWires22.push(B), this.offsetWires22.push(P), this.offsetWires22.push(y), this.offsetWires22.push(
|
|
1421
|
+
const B = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), P = w(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), y = w(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), b = w(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W), _ = w(h, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), W), v = w(h, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), W);
|
|
1422
|
+
this.offsetWires22.push(B), this.offsetWires22.push(P), this.offsetWires22.push(y), this.offsetWires22.push(b), this.offsetWires22.push(_), this.offsetWires22.push(v), this.ToffsetWires2B2.push(B), this.ToffsetWires2B2.push(P), this.ToffsetWires2B2.push(y), this.ToffsetWires2B2.push(b), this.ToffsetWires2B2.push(_), this.ToffsetWires2B2.push(v);
|
|
1413
1423
|
break;
|
|
1414
1424
|
case c.八分裂:
|
|
1415
|
-
const k =
|
|
1425
|
+
const k = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), S = w(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), M = w(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), X = w(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W), Y = w(h, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), W), E = w(h, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), W), F = w(h, new n.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), W), Z = w(h, new n.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), W);
|
|
1416
1426
|
this.offsetWires22.push(k), this.offsetWires22.push(S), this.offsetWires22.push(M), this.offsetWires22.push(X), this.offsetWires22.push(Y), this.offsetWires22.push(E), this.offsetWires22.push(F), this.offsetWires22.push(Z), this.ToffsetWires2B2.push(k), this.ToffsetWires2B2.push(S), this.ToffsetWires2B2.push(M), this.ToffsetWires2B2.push(X), this.ToffsetWires2B2.push(Y), this.ToffsetWires2B2.push(E), this.ToffsetWires2B2.push(F), this.ToffsetWires2B2.push(Z);
|
|
1417
1427
|
break;
|
|
1418
1428
|
}
|
|
@@ -1458,23 +1468,23 @@ class ht {
|
|
|
1458
1468
|
else
|
|
1459
1469
|
switch (this.LineInfo.Wairnum) {
|
|
1460
1470
|
case c.单分裂:
|
|
1461
|
-
const
|
|
1462
|
-
this.offsetWires23.push(
|
|
1471
|
+
const u = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W);
|
|
1472
|
+
this.offsetWires23.push(u), this.ToffsetWires2C2.push(u);
|
|
1463
1473
|
break;
|
|
1464
1474
|
case c.双分裂:
|
|
1465
|
-
const l =
|
|
1475
|
+
const l = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), C = w(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W);
|
|
1466
1476
|
this.offsetWires23.push(l), this.offsetWires23.push(C), this.ToffsetWires2C2.push(l), this.ToffsetWires2C2.push(C);
|
|
1467
1477
|
break;
|
|
1468
1478
|
case c.四分裂:
|
|
1469
|
-
const
|
|
1470
|
-
this.offsetWires23.push(
|
|
1479
|
+
const d = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), g = w(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), m = w(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), T = w(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W);
|
|
1480
|
+
this.offsetWires23.push(d), this.offsetWires23.push(g), this.offsetWires23.push(m), this.offsetWires23.push(T), this.ToffsetWires2C2.push(d), this.ToffsetWires2C2.push(g), this.ToffsetWires2C2.push(m), this.ToffsetWires2C2.push(T);
|
|
1471
1481
|
break;
|
|
1472
1482
|
case c.六分裂:
|
|
1473
|
-
const B =
|
|
1474
|
-
this.offsetWires23.push(B), this.offsetWires23.push(P), this.offsetWires23.push(y), this.offsetWires23.push(
|
|
1483
|
+
const B = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), P = w(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), y = w(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), b = w(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W), _ = w(h, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), W), v = w(h, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), W);
|
|
1484
|
+
this.offsetWires23.push(B), this.offsetWires23.push(P), this.offsetWires23.push(y), this.offsetWires23.push(b), this.offsetWires23.push(_), this.offsetWires23.push(v), this.ToffsetWires2C2.push(B), this.ToffsetWires2C2.push(P), this.ToffsetWires2C2.push(y), this.ToffsetWires2C2.push(b), this.ToffsetWires2C2.push(_), this.ToffsetWires2C2.push(v);
|
|
1475
1485
|
break;
|
|
1476
1486
|
case c.八分裂:
|
|
1477
|
-
const k =
|
|
1487
|
+
const k = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), S = w(h, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), M = w(h, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), X = w(h, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W), Y = w(h, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), W), E = w(h, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), W), F = w(h, new n.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), W), Z = w(h, new n.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), W);
|
|
1478
1488
|
this.offsetWires23.push(k), this.offsetWires23.push(S), this.offsetWires23.push(M), this.offsetWires23.push(X), this.offsetWires23.push(Y), this.offsetWires23.push(E), this.offsetWires23.push(F), this.offsetWires23.push(Z), this.ToffsetWires2C2.push(k), this.ToffsetWires2C2.push(S), this.ToffsetWires2C2.push(M), this.ToffsetWires2C2.push(X), this.ToffsetWires2C2.push(Y), this.ToffsetWires2C2.push(E), this.ToffsetWires2C2.push(F), this.ToffsetWires2C2.push(Z);
|
|
1479
1489
|
break;
|
|
1480
1490
|
}
|
|
@@ -1501,18 +1511,18 @@ class ht {
|
|
|
1501
1511
|
else
|
|
1502
1512
|
switch (i.PhaseSequence) {
|
|
1503
1513
|
case H.A相:
|
|
1504
|
-
t.forEach((
|
|
1505
|
-
this.offsetWires21.push(
|
|
1514
|
+
t.forEach((u) => {
|
|
1515
|
+
this.offsetWires21.push(u);
|
|
1506
1516
|
});
|
|
1507
1517
|
break;
|
|
1508
1518
|
case H.B相:
|
|
1509
|
-
t.forEach((
|
|
1510
|
-
this.offsetWires22.push(
|
|
1519
|
+
t.forEach((u) => {
|
|
1520
|
+
this.offsetWires22.push(u);
|
|
1511
1521
|
});
|
|
1512
1522
|
break;
|
|
1513
1523
|
case H.C相:
|
|
1514
|
-
t.forEach((
|
|
1515
|
-
this.offsetWires23.push(
|
|
1524
|
+
t.forEach((u) => {
|
|
1525
|
+
this.offsetWires23.push(u);
|
|
1516
1526
|
});
|
|
1517
1527
|
break;
|
|
1518
1528
|
}
|
|
@@ -1525,8 +1535,8 @@ class ht {
|
|
|
1525
1535
|
this.ToffsetWires2A1.push(t[0]), this.ToffsetWires2A2.push(t[0]);
|
|
1526
1536
|
break;
|
|
1527
1537
|
case 13:
|
|
1528
|
-
const
|
|
1529
|
-
this.offsetWires21.push(
|
|
1538
|
+
const u = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W);
|
|
1539
|
+
this.offsetWires21.push(u), this.ToffsetWires2A2.push(u);
|
|
1530
1540
|
break;
|
|
1531
1541
|
case 14:
|
|
1532
1542
|
this.offsetWires22.push(t[0]), this.ToffsetWires2B1.push(t[0]);
|
|
@@ -1535,7 +1545,7 @@ class ht {
|
|
|
1535
1545
|
this.ToffsetWires2B1.push(t[0]), this.ToffsetWires2B2.push(t[0]);
|
|
1536
1546
|
break;
|
|
1537
1547
|
case 16:
|
|
1538
|
-
const l =
|
|
1548
|
+
const l = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W);
|
|
1539
1549
|
this.offsetWires22.push(l), this.ToffsetWires2B2.push(l);
|
|
1540
1550
|
break;
|
|
1541
1551
|
case 17:
|
|
@@ -1545,25 +1555,25 @@ class ht {
|
|
|
1545
1555
|
this.ToffsetWires2C1.push(t[0]), this.ToffsetWires2C2.push(t[0]);
|
|
1546
1556
|
break;
|
|
1547
1557
|
case 19:
|
|
1548
|
-
const C =
|
|
1558
|
+
const C = w(h, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W);
|
|
1549
1559
|
this.offsetWires23.push(C), this.ToffsetWires2C2.push(C);
|
|
1550
1560
|
break;
|
|
1551
1561
|
}
|
|
1552
1562
|
else
|
|
1553
1563
|
switch (A) {
|
|
1554
1564
|
case 5:
|
|
1555
|
-
t.forEach((
|
|
1556
|
-
this.offsetWires21.push(
|
|
1565
|
+
t.forEach((u) => {
|
|
1566
|
+
this.offsetWires21.push(u);
|
|
1557
1567
|
});
|
|
1558
1568
|
break;
|
|
1559
1569
|
case 6:
|
|
1560
|
-
t.forEach((
|
|
1561
|
-
this.offsetWires22.push(
|
|
1570
|
+
t.forEach((u) => {
|
|
1571
|
+
this.offsetWires22.push(u);
|
|
1562
1572
|
});
|
|
1563
1573
|
break;
|
|
1564
1574
|
case 7:
|
|
1565
|
-
t.forEach((
|
|
1566
|
-
this.offsetWires23.push(
|
|
1575
|
+
t.forEach((u) => {
|
|
1576
|
+
this.offsetWires23.push(u);
|
|
1567
1577
|
});
|
|
1568
1578
|
break;
|
|
1569
1579
|
}
|
|
@@ -1591,7 +1601,7 @@ class ht {
|
|
|
1591
1601
|
}
|
|
1592
1602
|
A = A + 1;
|
|
1593
1603
|
}), this.offsetWires11.length > 0 && s > 0) {
|
|
1594
|
-
const i = [], t = [],
|
|
1604
|
+
const i = [], t = [], u = [], l = [], C = [], d = [], g = [], m = [];
|
|
1595
1605
|
switch (this.LineInfo.Wairnum) {
|
|
1596
1606
|
case c.单分裂:
|
|
1597
1607
|
this.offsetWires11.length >= 2 && (i.push(this.offsetWires11[o]), i.push(this.offsetWires11[o - 1]), this.offsetArcWires1A = f(i), this.offsetArcWires1A.forEach((T) => {
|
|
@@ -1606,22 +1616,22 @@ class ht {
|
|
|
1606
1616
|
case c.四分裂:
|
|
1607
1617
|
this.offsetWires11.length >= 8 && (i.push(this.offsetWires11[o]), i.push(this.offsetWires11[o - 4]), this.offsetArcWires1A = f(i), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1A.forEach((T) => {
|
|
1608
1618
|
this.arcLine1A1.push(O(this.viewer.scene.globe.ellipsoid, T));
|
|
1609
|
-
}), t.push(this.offsetWires11[o + 1]), t.push(this.offsetWires11[o - 3]), this.offsetArcWires1A = f(t), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1619
|
+
}), t.push(this.offsetWires11[o + 1]), t.push(this.offsetWires11[o - 3]), this.offsetArcWires1A = f(t), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires11[o + 2]), u.push(this.offsetWires11[o - 2]), this.offsetArcWires1A = f(u), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires11[o + 3]), l.push(this.offsetWires11[o - 1]), this.offsetArcWires1A = f(l), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
1610
1620
|
break;
|
|
1611
1621
|
case c.六分裂:
|
|
1612
1622
|
this.offsetWires11.length >= 12 && (i.push(this.offsetWires11[o]), i.push(this.offsetWires11[o - 6]), this.offsetArcWires1A = f(i), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1A.forEach((T) => {
|
|
1613
1623
|
this.arcLine1A1.push(O(this.viewer.scene.globe.ellipsoid, T));
|
|
1614
|
-
}), t.push(this.offsetWires11[o + 1]), t.push(this.offsetWires11[o - 5]), this.offsetArcWires1A = f(t), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1624
|
+
}), t.push(this.offsetWires11[o + 1]), t.push(this.offsetWires11[o - 5]), this.offsetArcWires1A = f(t), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires11[o + 2]), u.push(this.offsetWires11[o - 4]), this.offsetArcWires1A = f(u), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires11[o + 3]), l.push(this.offsetWires11[o - 3]), this.offsetArcWires1A = f(l), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires11[o + 4]), C.push(this.offsetWires11[o - 2]), this.offsetArcWires1A = f(C), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), d.push(this.offsetWires11[o + 5]), d.push(this.offsetWires11[o - 1]), this.offsetArcWires1A = f(d), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
1615
1625
|
break;
|
|
1616
1626
|
case c.八分裂:
|
|
1617
1627
|
this.offsetWires11.length >= 16 && (i.push(this.offsetWires11[o]), i.push(this.offsetWires11[o - 8]), this.offsetArcWires1A = f(i), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1A.forEach((T) => {
|
|
1618
1628
|
this.arcLine1A1.push(O(this.viewer.scene.globe.ellipsoid, T));
|
|
1619
|
-
}), t.push(this.offsetWires11[o + 1]), t.push(this.offsetWires11[o - 7]), this.offsetArcWires1A = f(t), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1629
|
+
}), t.push(this.offsetWires11[o + 1]), t.push(this.offsetWires11[o - 7]), this.offsetArcWires1A = f(t), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires11[o + 2]), u.push(this.offsetWires11[o - 6]), this.offsetArcWires1A = f(u), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires11[o + 3]), l.push(this.offsetWires11[o - 5]), this.offsetArcWires1A = f(l), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires11[o + 4]), C.push(this.offsetWires11[o - 4]), this.offsetArcWires1A = f(C), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), d.push(this.offsetWires11[o + 5]), d.push(this.offsetWires11[o - 3]), this.offsetArcWires1A = f(d), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), g.push(this.offsetWires11[o + 6]), g.push(this.offsetWires11[o - 2]), this.offsetArcWires1A = f(g), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires11[o + 7]), m.push(this.offsetWires11[o - 1]), this.offsetArcWires1A = f(m), this.entityCollection2.add(r(this.offsetArcWires1A, "导线1_A8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
1620
1630
|
break;
|
|
1621
1631
|
}
|
|
1622
1632
|
}
|
|
1623
1633
|
if (this.offsetWires12.length > 0 && s > 0) {
|
|
1624
|
-
const i = [], t = [],
|
|
1634
|
+
const i = [], t = [], u = [], l = [], C = [], d = [], g = [], m = [];
|
|
1625
1635
|
switch (this.LineInfo.Wairnum) {
|
|
1626
1636
|
case c.单分裂:
|
|
1627
1637
|
i.push(this.offsetWires12[o]), i.push(this.offsetWires12[o - 1]), this.offsetArcWires1B = f(i), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((T) => {
|
|
@@ -1636,22 +1646,22 @@ class ht {
|
|
|
1636
1646
|
case c.四分裂:
|
|
1637
1647
|
i.push(this.offsetWires12[o]), i.push(this.offsetWires12[o - 4]), this.offsetArcWires1B = f(i), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((T) => {
|
|
1638
1648
|
this.arcLine1B1.push(O(this.viewer.scene.globe.ellipsoid, T));
|
|
1639
|
-
}), t.push(this.offsetWires12[o + 1]), t.push(this.offsetWires12[o - 3]), this.offsetArcWires1B = f(t), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1649
|
+
}), t.push(this.offsetWires12[o + 1]), t.push(this.offsetWires12[o - 3]), this.offsetArcWires1B = f(t), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires12[o + 2]), u.push(this.offsetWires12[o - 2]), this.offsetArcWires1B = f(u), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires12[o + 3]), l.push(this.offsetWires12[o - 1]), this.offsetArcWires1B = f(l), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1640
1650
|
break;
|
|
1641
1651
|
case c.六分裂:
|
|
1642
1652
|
i.push(this.offsetWires12[o]), i.push(this.offsetWires12[o - 6]), this.offsetArcWires1B = f(i), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((T) => {
|
|
1643
1653
|
this.arcLine1B1.push(O(this.viewer.scene.globe.ellipsoid, T));
|
|
1644
|
-
}), t.push(this.offsetWires12[o + 1]), t.push(this.offsetWires12[o - 5]), this.offsetArcWires1B = f(t), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1654
|
+
}), t.push(this.offsetWires12[o + 1]), t.push(this.offsetWires12[o - 5]), this.offsetArcWires1B = f(t), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires12[o + 2]), u.push(this.offsetWires12[o - 4]), this.offsetArcWires1B = f(u), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires12[o + 3]), l.push(this.offsetWires12[o - 3]), this.offsetArcWires1B = f(l), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires12[o + 4]), C.push(this.offsetWires12[o - 2]), this.offsetArcWires1B = f(C), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), d.push(this.offsetWires12[o + 5]), d.push(this.offsetWires12[o - 1]), this.offsetArcWires1B = f(d), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1645
1655
|
break;
|
|
1646
1656
|
case c.八分裂:
|
|
1647
1657
|
i.push(this.offsetWires12[o]), i.push(this.offsetWires12[o - 8]), this.offsetArcWires1B = f(i), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((T) => {
|
|
1648
1658
|
this.arcLine1B1.push(O(this.viewer.scene.globe.ellipsoid, T));
|
|
1649
|
-
}), t.push(this.offsetWires12[o + 1]), t.push(this.offsetWires12[o - 7]), this.offsetArcWires1B = f(t), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1659
|
+
}), t.push(this.offsetWires12[o + 1]), t.push(this.offsetWires12[o - 7]), this.offsetArcWires1B = f(t), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires12[o + 2]), u.push(this.offsetWires12[o - 6]), this.offsetArcWires1B = f(u), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires12[o + 3]), l.push(this.offsetWires12[o - 5]), this.offsetArcWires1B = f(l), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires12[o + 4]), C.push(this.offsetWires12[o - 4]), this.offsetArcWires1B = f(C), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), d.push(this.offsetWires12[o + 5]), d.push(this.offsetWires12[o - 3]), this.offsetArcWires1B = f(d), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), g.push(this.offsetWires12[o + 6]), g.push(this.offsetWires12[o - 2]), this.offsetArcWires1B = f(g), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires12[o + 7]), m.push(this.offsetWires12[o - 1]), this.offsetArcWires1B = f(m), this.entityCollection2.add(r(this.offsetArcWires1B, "导线1_B8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1650
1660
|
break;
|
|
1651
1661
|
}
|
|
1652
1662
|
}
|
|
1653
1663
|
if (this.offsetWires13.length > 0 && s > 0) {
|
|
1654
|
-
const i = [], t = [],
|
|
1664
|
+
const i = [], t = [], u = [], l = [], C = [], d = [], g = [], m = [];
|
|
1655
1665
|
switch (this.LineInfo.Wairnum) {
|
|
1656
1666
|
case c.单分裂:
|
|
1657
1667
|
i.push(this.offsetWires13[o]), i.push(this.offsetWires13[o - 1]), this.offsetArcWires1C = f(i), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
@@ -1660,18 +1670,18 @@ class ht {
|
|
|
1660
1670
|
i.push(this.offsetWires13[o]), i.push(this.offsetWires13[o - 2]), this.offsetArcWires1C = f(i), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires13[o + 1]), t.push(this.offsetWires13[o - 1]), this.offsetArcWires1C = f(t), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1661
1671
|
break;
|
|
1662
1672
|
case c.四分裂:
|
|
1663
|
-
i.push(this.offsetWires13[o]), i.push(this.offsetWires13[o - 4]), this.offsetArcWires1C = f(i), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires13[o + 1]), t.push(this.offsetWires13[o - 3]), this.offsetArcWires1C = f(t), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1673
|
+
i.push(this.offsetWires13[o]), i.push(this.offsetWires13[o - 4]), this.offsetArcWires1C = f(i), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires13[o + 1]), t.push(this.offsetWires13[o - 3]), this.offsetArcWires1C = f(t), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires13[o + 2]), u.push(this.offsetWires13[o - 2]), this.offsetArcWires1C = f(u), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires13[o + 3]), l.push(this.offsetWires13[o - 1]), this.offsetArcWires1C = f(l), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1664
1674
|
break;
|
|
1665
1675
|
case c.六分裂:
|
|
1666
|
-
i.push(this.offsetWires13[o]), i.push(this.offsetWires13[o - 6]), this.offsetArcWires1C = f(i), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires13[o + 1]), t.push(this.offsetWires13[o - 5]), this.offsetArcWires1C = f(t), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1676
|
+
i.push(this.offsetWires13[o]), i.push(this.offsetWires13[o - 6]), this.offsetArcWires1C = f(i), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires13[o + 1]), t.push(this.offsetWires13[o - 5]), this.offsetArcWires1C = f(t), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires13[o + 2]), u.push(this.offsetWires13[o - 4]), this.offsetArcWires1C = f(u), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires13[o + 3]), l.push(this.offsetWires13[o - 3]), this.offsetArcWires1C = f(l), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires13[o + 4]), C.push(this.offsetWires13[o - 2]), this.offsetArcWires1C = f(C), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), d.push(this.offsetWires13[o + 5]), d.push(this.offsetWires13[o - 1]), this.offsetArcWires1C = f(d), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1667
1677
|
break;
|
|
1668
1678
|
case c.八分裂:
|
|
1669
|
-
i.push(this.offsetWires13[o]), i.push(this.offsetWires13[o - 8]), this.offsetArcWires1C = f(i), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires13[o + 1]), t.push(this.offsetWires13[o - 7]), this.offsetArcWires1C = f(t), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1679
|
+
i.push(this.offsetWires13[o]), i.push(this.offsetWires13[o - 8]), this.offsetArcWires1C = f(i), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires13[o + 1]), t.push(this.offsetWires13[o - 7]), this.offsetArcWires1C = f(t), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires13[o + 2]), u.push(this.offsetWires13[o - 6]), this.offsetArcWires1C = f(u), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires13[o + 3]), l.push(this.offsetWires13[o - 5]), this.offsetArcWires1C = f(l), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires13[o + 4]), C.push(this.offsetWires13[o - 4]), this.offsetArcWires1C = f(C), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), d.push(this.offsetWires13[o + 5]), d.push(this.offsetWires13[o - 3]), this.offsetArcWires1C = f(d), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), g.push(this.offsetWires13[o + 6]), g.push(this.offsetWires13[o - 2]), this.offsetArcWires1C = f(g), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires13[o + 7]), m.push(this.offsetWires13[o - 1]), this.offsetArcWires1C = f(m), this.entityCollection2.add(r(this.offsetArcWires1C, "导线1_C8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1670
1680
|
break;
|
|
1671
1681
|
}
|
|
1672
1682
|
}
|
|
1673
1683
|
if (this.offsetWires21.length > 0 && s > 0) {
|
|
1674
|
-
const i = [], t = [],
|
|
1684
|
+
const i = [], t = [], u = [], l = [], C = [], d = [], g = [], m = [];
|
|
1675
1685
|
switch (this.LineInfo.Wairnum) {
|
|
1676
1686
|
case c.单分裂:
|
|
1677
1687
|
i.push(this.offsetWires21[o]), i.push(this.offsetWires21[o - 1]), this.offsetArcWires2A = f(i), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
@@ -1680,18 +1690,18 @@ class ht {
|
|
|
1680
1690
|
i.push(this.offsetWires21[o]), i.push(this.offsetWires21[o - 2]), this.offsetArcWires2A = f(i), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires21[o + 1]), t.push(this.offsetWires21[o - 1]), this.offsetArcWires2A = f(t), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1681
1691
|
break;
|
|
1682
1692
|
case c.四分裂:
|
|
1683
|
-
i.push(this.offsetWires21[o]), i.push(this.offsetWires21[o - 4]), this.offsetArcWires2A = f(i), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires21[o + 1]), t.push(this.offsetWires21[o - 3]), this.offsetArcWires2A = f(t), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1693
|
+
i.push(this.offsetWires21[o]), i.push(this.offsetWires21[o - 4]), this.offsetArcWires2A = f(i), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires21[o + 1]), t.push(this.offsetWires21[o - 3]), this.offsetArcWires2A = f(t), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires21[o + 2]), u.push(this.offsetWires21[o - 2]), this.offsetArcWires2A = f(u), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires21[o + 3]), l.push(this.offsetWires21[o - 1]), this.offsetArcWires2A = f(l), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1684
1694
|
break;
|
|
1685
1695
|
case c.六分裂:
|
|
1686
|
-
i.push(this.offsetWires21[o]), i.push(this.offsetWires21[o - 6]), this.offsetArcWires2A = f(i), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires21[o + 1]), t.push(this.offsetWires21[o - 5]), this.offsetArcWires2A = f(t), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1696
|
+
i.push(this.offsetWires21[o]), i.push(this.offsetWires21[o - 6]), this.offsetArcWires2A = f(i), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires21[o + 1]), t.push(this.offsetWires21[o - 5]), this.offsetArcWires2A = f(t), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires21[o + 2]), u.push(this.offsetWires21[o - 4]), this.offsetArcWires2A = f(u), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires21[o + 3]), l.push(this.offsetWires21[o - 3]), this.offsetArcWires2A = f(l), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires21[o + 4]), C.push(this.offsetWires21[o - 2]), this.offsetArcWires2A = f(C), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), d.push(this.offsetWires21[o + 5]), d.push(this.offsetWires21[o - 1]), this.offsetArcWires2A = f(d), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1687
1697
|
break;
|
|
1688
1698
|
case c.八分裂:
|
|
1689
|
-
i.push(this.offsetWires21[o]), i.push(this.offsetWires21[o - 8]), this.offsetArcWires2A = f(i), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires21[o + 1]), t.push(this.offsetWires21[o - 7]), this.offsetArcWires2A = f(t), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1699
|
+
i.push(this.offsetWires21[o]), i.push(this.offsetWires21[o - 8]), this.offsetArcWires2A = f(i), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires21[o + 1]), t.push(this.offsetWires21[o - 7]), this.offsetArcWires2A = f(t), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires21[o + 2]), u.push(this.offsetWires21[o - 6]), this.offsetArcWires2A = f(u), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires21[o + 3]), l.push(this.offsetWires21[o - 5]), this.offsetArcWires2A = f(l), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires21[o + 4]), C.push(this.offsetWires21[o - 4]), this.offsetArcWires2A = f(C), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), d.push(this.offsetWires21[o + 5]), d.push(this.offsetWires21[o - 3]), this.offsetArcWires2A = f(d), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), g.push(this.offsetWires21[o + 6]), g.push(this.offsetWires21[o - 2]), this.offsetArcWires2A = f(g), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires21[o + 7]), m.push(this.offsetWires21[o - 1]), this.offsetArcWires2A = f(m), this.entityCollection2.add(r(this.offsetArcWires2A, "导线2_A8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1690
1700
|
break;
|
|
1691
1701
|
}
|
|
1692
1702
|
}
|
|
1693
1703
|
if (this.offsetWires22.length > 0 && s > 0) {
|
|
1694
|
-
const i = [], t = [],
|
|
1704
|
+
const i = [], t = [], u = [], l = [], C = [], d = [], g = [], m = [];
|
|
1695
1705
|
switch (this.LineInfo.Wairnum) {
|
|
1696
1706
|
case c.单分裂:
|
|
1697
1707
|
i.push(this.offsetWires22[o]), i.push(this.offsetWires22[o - 1]), this.offsetArcWires2B = f(i), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
@@ -1700,18 +1710,18 @@ class ht {
|
|
|
1700
1710
|
i.push(this.offsetWires22[o]), i.push(this.offsetWires22[o - 2]), this.offsetArcWires2B = f(i), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires22[o + 1]), t.push(this.offsetWires22[o - 1]), this.offsetArcWires2B = f(t), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1701
1711
|
break;
|
|
1702
1712
|
case c.四分裂:
|
|
1703
|
-
i.push(this.offsetWires22[o]), i.push(this.offsetWires22[o - 4]), this.offsetArcWires2B = f(i), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires22[o + 1]), t.push(this.offsetWires22[o - 3]), this.offsetArcWires2B = f(t), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1713
|
+
i.push(this.offsetWires22[o]), i.push(this.offsetWires22[o - 4]), this.offsetArcWires2B = f(i), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires22[o + 1]), t.push(this.offsetWires22[o - 3]), this.offsetArcWires2B = f(t), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires22[o + 2]), u.push(this.offsetWires22[o - 2]), this.offsetArcWires2B = f(u), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires22[o + 3]), l.push(this.offsetWires22[o - 1]), this.offsetArcWires2B = f(l), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1704
1714
|
break;
|
|
1705
1715
|
case c.六分裂:
|
|
1706
|
-
i.push(this.offsetWires22[o]), i.push(this.offsetWires22[o - 6]), this.offsetArcWires2B = f(i), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires22[o + 1]), t.push(this.offsetWires22[o - 5]), this.offsetArcWires2B = f(t), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1716
|
+
i.push(this.offsetWires22[o]), i.push(this.offsetWires22[o - 6]), this.offsetArcWires2B = f(i), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires22[o + 1]), t.push(this.offsetWires22[o - 5]), this.offsetArcWires2B = f(t), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires22[o + 2]), u.push(this.offsetWires22[o - 4]), this.offsetArcWires2B = f(u), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires22[o + 3]), l.push(this.offsetWires22[o - 3]), this.offsetArcWires2B = f(l), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires22[o + 4]), C.push(this.offsetWires22[o - 2]), this.offsetArcWires2B = f(C), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), d.push(this.offsetWires22[o + 5]), d.push(this.offsetWires22[o - 1]), this.offsetArcWires2B = f(d), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1707
1717
|
break;
|
|
1708
1718
|
case c.八分裂:
|
|
1709
|
-
i.push(this.offsetWires22[o]), i.push(this.offsetWires22[o - 8]), this.offsetArcWires2B = f(i), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires22[o + 1]), t.push(this.offsetWires22[o - 7]), this.offsetArcWires2B = f(t), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1719
|
+
i.push(this.offsetWires22[o]), i.push(this.offsetWires22[o - 8]), this.offsetArcWires2B = f(i), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires22[o + 1]), t.push(this.offsetWires22[o - 7]), this.offsetArcWires2B = f(t), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires22[o + 2]), u.push(this.offsetWires22[o - 6]), this.offsetArcWires2B = f(u), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires22[o + 3]), l.push(this.offsetWires22[o - 5]), this.offsetArcWires2B = f(l), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires22[o + 4]), C.push(this.offsetWires22[o - 4]), this.offsetArcWires2B = f(C), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), d.push(this.offsetWires22[o + 5]), d.push(this.offsetWires22[o - 3]), this.offsetArcWires2B = f(d), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), g.push(this.offsetWires22[o + 6]), g.push(this.offsetWires22[o - 2]), this.offsetArcWires2B = f(g), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires22[o + 7]), m.push(this.offsetWires22[o - 1]), this.offsetArcWires2B = f(m), this.entityCollection2.add(r(this.offsetArcWires2B, "导线2_B8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1710
1720
|
break;
|
|
1711
1721
|
}
|
|
1712
1722
|
}
|
|
1713
1723
|
if (this.offsetWires23.length > 0 && s > 0) {
|
|
1714
|
-
const i = [], t = [],
|
|
1724
|
+
const i = [], t = [], u = [], l = [], C = [], d = [], g = [], m = [];
|
|
1715
1725
|
switch (this.LineInfo.Wairnum) {
|
|
1716
1726
|
case c.单分裂:
|
|
1717
1727
|
i.push(this.offsetWires23[o]), i.push(this.offsetWires23[o - 1]), this.offsetArcWires2C = f(i), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
@@ -1720,13 +1730,13 @@ class ht {
|
|
|
1720
1730
|
i.push(this.offsetWires23[o]), i.push(this.offsetWires23[o - 2]), this.offsetArcWires2C = f(i), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires23[o + 1]), t.push(this.offsetWires23[o - 1]), this.offsetArcWires2C = f(t), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1721
1731
|
break;
|
|
1722
1732
|
case c.四分裂:
|
|
1723
|
-
i.push(this.offsetWires23[o]), i.push(this.offsetWires23[o - 4]), this.offsetArcWires2C = f(i), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires23[o + 1]), t.push(this.offsetWires23[o - 3]), this.offsetArcWires2C = f(t), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1733
|
+
i.push(this.offsetWires23[o]), i.push(this.offsetWires23[o - 4]), this.offsetArcWires2C = f(i), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires23[o + 1]), t.push(this.offsetWires23[o - 3]), this.offsetArcWires2C = f(t), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires23[o + 2]), u.push(this.offsetWires23[o - 2]), this.offsetArcWires2C = f(u), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires23[o + 3]), l.push(this.offsetWires23[o - 1]), this.offsetArcWires2C = f(l), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1724
1734
|
break;
|
|
1725
1735
|
case c.六分裂:
|
|
1726
|
-
i.push(this.offsetWires23[o]), i.push(this.offsetWires23[o - 6]), this.offsetArcWires2C = f(i), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires23[o + 1]), t.push(this.offsetWires23[o - 5]), this.offsetArcWires2C = f(t), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1736
|
+
i.push(this.offsetWires23[o]), i.push(this.offsetWires23[o - 6]), this.offsetArcWires2C = f(i), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires23[o + 1]), t.push(this.offsetWires23[o - 5]), this.offsetArcWires2C = f(t), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires23[o + 2]), u.push(this.offsetWires23[o - 4]), this.offsetArcWires2C = f(u), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires23[o + 3]), l.push(this.offsetWires23[o - 3]), this.offsetArcWires2C = f(l), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires23[o + 4]), C.push(this.offsetWires23[o - 2]), this.offsetArcWires2C = f(C), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), d.push(this.offsetWires23[o + 5]), d.push(this.offsetWires23[o - 1]), this.offsetArcWires2C = f(d), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1727
1737
|
break;
|
|
1728
1738
|
case c.八分裂:
|
|
1729
|
-
i.push(this.offsetWires23[o]), i.push(this.offsetWires23[o - 8]), this.offsetArcWires2C = f(i), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires23[o + 1]), t.push(this.offsetWires23[o - 7]), this.offsetArcWires2C = f(t), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)),
|
|
1739
|
+
i.push(this.offsetWires23[o]), i.push(this.offsetWires23[o - 8]), this.offsetArcWires2C = f(i), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), t.push(this.offsetWires23[o + 1]), t.push(this.offsetWires23[o - 7]), this.offsetArcWires2C = f(t), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires23[o + 2]), u.push(this.offsetWires23[o - 6]), this.offsetArcWires2C = f(u), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires23[o + 3]), l.push(this.offsetWires23[o - 5]), this.offsetArcWires2C = f(l), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires23[o + 4]), C.push(this.offsetWires23[o - 4]), this.offsetArcWires2C = f(C), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), d.push(this.offsetWires23[o + 5]), d.push(this.offsetWires23[o - 3]), this.offsetArcWires2C = f(d), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), g.push(this.offsetWires23[o + 6]), g.push(this.offsetWires23[o - 2]), this.offsetArcWires2C = f(g), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires23[o + 7]), m.push(this.offsetWires23[o - 1]), this.offsetArcWires2C = f(m), this.entityCollection2.add(r(this.offsetArcWires2C, "导线2_C8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
1730
1740
|
break;
|
|
1731
1741
|
}
|
|
1732
1742
|
}
|
|
@@ -1734,8 +1744,8 @@ class ht {
|
|
|
1734
1744
|
const i = [];
|
|
1735
1745
|
i.push(this.offsetGrouundWires11[s]), i.push(this.offsetGrouundWires11[s - 1]);
|
|
1736
1746
|
const t = [];
|
|
1737
|
-
t.push(this.offsetGrouundWires12[s]), t.push(this.offsetGrouundWires12[s - 1]), this.offsetGrouundWires1 = f(i, 2), this.offsetGrouundWires2 = f(t, 2), this.offsetGrouundWires1.forEach((
|
|
1738
|
-
this.arcLine1D1.push(O(this.viewer.scene.globe.ellipsoid,
|
|
1747
|
+
t.push(this.offsetGrouundWires12[s]), t.push(this.offsetGrouundWires12[s - 1]), this.offsetGrouundWires1 = f(i, 2), this.offsetGrouundWires2 = f(t, 2), this.offsetGrouundWires1.forEach((u) => {
|
|
1748
|
+
this.arcLine1D1.push(O(this.viewer.scene.globe.ellipsoid, u));
|
|
1739
1749
|
}), this.entityCollection2.add(r(this.offsetGrouundWires1, "地线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireD1Color)), this.entityCollection2.add(r(this.offsetGrouundWires2, "地线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireD2Color));
|
|
1740
1750
|
}
|
|
1741
1751
|
let L = 2;
|
|
@@ -1758,7 +1768,7 @@ class ht {
|
|
|
1758
1768
|
break;
|
|
1759
1769
|
}
|
|
1760
1770
|
if (this.ToffsetWires1A1.length > 1 && this.ToffsetWires1A2.length > 1) {
|
|
1761
|
-
const i = [], t = [],
|
|
1771
|
+
const i = [], t = [], u = [], l = [], C = [], d = [], g = [], m = [], T = [], B = [], P = [], y = [], b = [], _ = [], v = [], k = [];
|
|
1762
1772
|
switch (this.LineInfo.Wairnum) {
|
|
1763
1773
|
case c.单分裂:
|
|
1764
1774
|
this.ToffsetWires1A1.length >= 2 && (i.push(this.ToffsetWires1A1[e - 2]), i.push(this.ToffsetWires1A1[e - 1]), this.ToffsetArcWires1A = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 2 && (T.push(this.ToffsetWires1A2[e - 2]), T.push(this.ToffsetWires1A2[e - 1]), this.ToffsetArcWires2A = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
@@ -1767,18 +1777,18 @@ class ht {
|
|
|
1767
1777
|
this.ToffsetWires1A1.length >= 4 && (i.push(this.ToffsetWires1A1[e - 4]), i.push(this.ToffsetWires1A1[e - 2]), this.ToffsetArcWires1A = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1A1[e - 3]), t.push(this.ToffsetWires1A1[e - 1]), this.ToffsetArcWires1A = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 4 && (T.push(this.ToffsetWires1A2[e - 4]), T.push(this.ToffsetWires1A2[e - 2]), this.ToffsetArcWires2A = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1A2[e - 3]), B.push(this.ToffsetWires1A2[e - 1]), this.ToffsetArcWires2A = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1768
1778
|
break;
|
|
1769
1779
|
case c.四分裂:
|
|
1770
|
-
this.ToffsetWires1A1.length >= 8 && (i.push(this.ToffsetWires1A1[e - 8]), i.push(this.ToffsetWires1A1[e - 4]), this.ToffsetArcWires1A = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1A1[e - 7]), t.push(this.ToffsetWires1A1[e - 3]), this.ToffsetArcWires1A = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1780
|
+
this.ToffsetWires1A1.length >= 8 && (i.push(this.ToffsetWires1A1[e - 8]), i.push(this.ToffsetWires1A1[e - 4]), this.ToffsetArcWires1A = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1A1[e - 7]), t.push(this.ToffsetWires1A1[e - 3]), this.ToffsetArcWires1A = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1A1[e - 6]), u.push(this.ToffsetWires1A1[e - 2]), this.ToffsetArcWires1A = f(u, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[e - 5]), l.push(this.ToffsetWires1A1[e - 1]), this.ToffsetArcWires1A = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 8 && (T.push(this.ToffsetWires1A2[e - 8]), T.push(this.ToffsetWires1A2[e - 4]), this.ToffsetArcWires2A = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1A2[e - 7]), B.push(this.ToffsetWires1A2[e - 3]), this.ToffsetArcWires2A = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1A2[e - 6]), P.push(this.ToffsetWires1A2[e - 2]), this.ToffsetArcWires2A = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1A2[e - 5]), y.push(this.ToffsetWires1A2[e - 1]), this.ToffsetArcWires2A = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1771
1781
|
break;
|
|
1772
1782
|
case c.六分裂:
|
|
1773
|
-
this.ToffsetWires1A1.length >= 12 && (i.push(this.ToffsetWires1A1[e - 12]), i.push(this.ToffsetWires1A1[e - 6]), this.ToffsetArcWires1A = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1A1[e - 11]), t.push(this.ToffsetWires1A1[e - 5]), this.ToffsetArcWires1A = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1783
|
+
this.ToffsetWires1A1.length >= 12 && (i.push(this.ToffsetWires1A1[e - 12]), i.push(this.ToffsetWires1A1[e - 6]), this.ToffsetArcWires1A = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1A1[e - 11]), t.push(this.ToffsetWires1A1[e - 5]), this.ToffsetArcWires1A = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1A1[e - 10]), u.push(this.ToffsetWires1A1[e - 4]), this.ToffsetArcWires1A = f(u, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[e - 9]), l.push(this.ToffsetWires1A1[e - 3]), this.ToffsetArcWires1A = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1A1[e - 8]), C.push(this.ToffsetWires1A1[e - 2]), this.ToffsetArcWires1A = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), d.push(this.ToffsetWires1A1[e - 7]), d.push(this.ToffsetWires1A1[e - 1]), this.ToffsetArcWires1A = f(d, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 12 && (T.push(this.ToffsetWires1A2[e - 12]), T.push(this.ToffsetWires1A2[e - 6]), this.ToffsetArcWires2A = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1A2[e - 11]), B.push(this.ToffsetWires1A2[e - 5]), this.ToffsetArcWires2A = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1A2[e - 10]), P.push(this.ToffsetWires1A2[e - 4]), this.ToffsetArcWires2A = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1A2[e - 9]), y.push(this.ToffsetWires1A2[e - 3]), this.ToffsetArcWires2A = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires1A2[e - 8]), b.push(this.ToffsetWires1A2[e - 2]), this.ToffsetArcWires2A = f(b, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1A2[e - 7]), _.push(this.ToffsetWires1A2[e - 1]), this.ToffsetArcWires2A = f(_, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1774
1784
|
break;
|
|
1775
1785
|
case c.八分裂:
|
|
1776
|
-
this.ToffsetWires1A1.length >= 16 && (i.push(this.ToffsetWires1A1[e - 16]), i.push(this.ToffsetWires1A1[e - 8]), this.ToffsetArcWires1A = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1A1[e - 15]), t.push(this.ToffsetWires1A1[e - 7]), this.ToffsetArcWires1A = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1786
|
+
this.ToffsetWires1A1.length >= 16 && (i.push(this.ToffsetWires1A1[e - 16]), i.push(this.ToffsetWires1A1[e - 8]), this.ToffsetArcWires1A = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1A1[e - 15]), t.push(this.ToffsetWires1A1[e - 7]), this.ToffsetArcWires1A = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1A1[e - 14]), u.push(this.ToffsetWires1A1[e - 6]), this.ToffsetArcWires1A = f(u, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[e - 13]), l.push(this.ToffsetWires1A1[e - 5]), this.ToffsetArcWires1A = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1A1[e - 12]), C.push(this.ToffsetWires1A1[e - 4]), this.ToffsetArcWires1A = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), d.push(this.ToffsetWires1A1[e - 11]), d.push(this.ToffsetWires1A1[e - 3]), this.ToffsetArcWires1A = f(d, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1A1[e - 10]), g.push(this.ToffsetWires1A1[e - 2]), this.ToffsetArcWires1A = f(g, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1A1[e - 9]), m.push(this.ToffsetWires1A1[e - 1]), this.ToffsetArcWires1A = f(m, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A, "1A1跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 16 && (T.push(this.ToffsetWires1A2[e - 16]), T.push(this.ToffsetWires1A2[e - 8]), this.ToffsetArcWires2A = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1A2[e - 15]), B.push(this.ToffsetWires1A2[e - 7]), this.ToffsetArcWires2A = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1A2[e - 14]), P.push(this.ToffsetWires1A2[e - 6]), this.ToffsetArcWires2A = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1A2[e - 13]), y.push(this.ToffsetWires1A2[e - 5]), this.ToffsetArcWires2A = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires1A2[e - 12]), b.push(this.ToffsetWires1A2[e - 4]), this.ToffsetArcWires2A = f(b, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1A2[e - 11]), _.push(this.ToffsetWires1A2[e - 3]), this.ToffsetArcWires2A = f(_, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1A2[e - 10]), v.push(this.ToffsetWires1A2[e - 2]), this.ToffsetArcWires2A = f(v, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), k.push(this.ToffsetWires1A2[e - 9]), k.push(this.ToffsetWires1A2[e - 1]), this.ToffsetArcWires2A = f(k, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A, "1A2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1777
1787
|
break;
|
|
1778
1788
|
}
|
|
1779
1789
|
}
|
|
1780
1790
|
if (this.ToffsetWires1B1.length > 1 && this.ToffsetWires1B2.length > 1) {
|
|
1781
|
-
const i = [], t = [],
|
|
1791
|
+
const i = [], t = [], u = [], l = [], C = [], d = [], g = [], m = [], T = [], B = [], P = [], y = [], b = [], _ = [], v = [], k = [];
|
|
1782
1792
|
switch (this.LineInfo.Wairnum) {
|
|
1783
1793
|
case c.单分裂:
|
|
1784
1794
|
this.ToffsetWires1B1.length >= 2 && (i.push(this.ToffsetWires1B1[e - 2]), i.push(this.ToffsetWires1B1[e - 1]), this.ToffsetArcWires1B = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 2 && (T.push(this.ToffsetWires1B2[e - 2]), T.push(this.ToffsetWires1B2[e - 1]), this.ToffsetArcWires2B = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
@@ -1787,18 +1797,18 @@ class ht {
|
|
|
1787
1797
|
this.ToffsetWires1B1.length >= 4 && (i.push(this.ToffsetWires1B1[e - 4]), i.push(this.ToffsetWires1B1[e - 2]), this.ToffsetArcWires1B = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1B1[e - 3]), t.push(this.ToffsetWires1B1[e - 1]), this.ToffsetArcWires1B = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 4 && (T.push(this.ToffsetWires1B2[e - 4]), T.push(this.ToffsetWires1B2[e - 2]), this.ToffsetArcWires2B = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1B2[e - 3]), B.push(this.ToffsetWires1B2[e - 1]), this.ToffsetArcWires2B = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1788
1798
|
break;
|
|
1789
1799
|
case c.四分裂:
|
|
1790
|
-
this.ToffsetWires1B1.length >= 8 && (i.push(this.ToffsetWires1B1[e - 8]), i.push(this.ToffsetWires1B1[e - 4]), this.ToffsetArcWires1B = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1B1[e - 7]), t.push(this.ToffsetWires1B1[e - 3]), this.ToffsetArcWires1B = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1800
|
+
this.ToffsetWires1B1.length >= 8 && (i.push(this.ToffsetWires1B1[e - 8]), i.push(this.ToffsetWires1B1[e - 4]), this.ToffsetArcWires1B = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1B1[e - 7]), t.push(this.ToffsetWires1B1[e - 3]), this.ToffsetArcWires1B = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1B1[e - 6]), u.push(this.ToffsetWires1B1[e - 2]), this.ToffsetArcWires1B = f(u, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[e - 5]), l.push(this.ToffsetWires1B1[e - 1]), this.ToffsetArcWires1B = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 8 && (T.push(this.ToffsetWires1B2[e - 8]), T.push(this.ToffsetWires1B2[e - 4]), this.ToffsetArcWires2B = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1B2[e - 7]), B.push(this.ToffsetWires1B2[e - 3]), this.ToffsetArcWires2B = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1B2[e - 6]), P.push(this.ToffsetWires1B2[e - 2]), this.ToffsetArcWires2B = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1B2[e - 5]), y.push(this.ToffsetWires1B2[e - 1]), this.ToffsetArcWires2B = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1791
1801
|
break;
|
|
1792
1802
|
case c.六分裂:
|
|
1793
|
-
this.ToffsetWires1B1.length >= 12 && (i.push(this.ToffsetWires1B1[e - 12]), i.push(this.ToffsetWires1B1[e - 6]), this.ToffsetArcWires1B = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1B1[e - 11]), t.push(this.ToffsetWires1B1[e - 5]), this.ToffsetArcWires1B = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1803
|
+
this.ToffsetWires1B1.length >= 12 && (i.push(this.ToffsetWires1B1[e - 12]), i.push(this.ToffsetWires1B1[e - 6]), this.ToffsetArcWires1B = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1B1[e - 11]), t.push(this.ToffsetWires1B1[e - 5]), this.ToffsetArcWires1B = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1B1[e - 10]), u.push(this.ToffsetWires1B1[e - 4]), this.ToffsetArcWires1B = f(u, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[e - 9]), l.push(this.ToffsetWires1B1[e - 3]), this.ToffsetArcWires1B = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1B1[e - 8]), C.push(this.ToffsetWires1B1[e - 2]), this.ToffsetArcWires1B = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), d.push(this.ToffsetWires1B1[e - 7]), d.push(this.ToffsetWires1B1[e - 1]), this.ToffsetArcWires1B = f(d, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 12 && (T.push(this.ToffsetWires1B2[e - 12]), T.push(this.ToffsetWires1B2[e - 6]), this.ToffsetArcWires2B = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1B2[e - 11]), B.push(this.ToffsetWires1B2[e - 5]), this.ToffsetArcWires2B = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1B2[e - 10]), P.push(this.ToffsetWires1B2[e - 4]), this.ToffsetArcWires2B = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1B2[e - 9]), y.push(this.ToffsetWires1B2[e - 3]), this.ToffsetArcWires2B = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires1B2[e - 8]), b.push(this.ToffsetWires1B2[e - 2]), this.ToffsetArcWires2B = f(b, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1B2[e - 7]), _.push(this.ToffsetWires1B2[e - 1]), this.ToffsetArcWires2B = f(_, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1794
1804
|
break;
|
|
1795
1805
|
case c.八分裂:
|
|
1796
|
-
this.ToffsetWires1B1.length >= 16 && (i.push(this.ToffsetWires1B1[e - 16]), i.push(this.ToffsetWires1B1[e - 8]), this.ToffsetArcWires1B = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1B1[e - 15]), t.push(this.ToffsetWires1B1[e - 7]), this.ToffsetArcWires1B = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1806
|
+
this.ToffsetWires1B1.length >= 16 && (i.push(this.ToffsetWires1B1[e - 16]), i.push(this.ToffsetWires1B1[e - 8]), this.ToffsetArcWires1B = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1B1[e - 15]), t.push(this.ToffsetWires1B1[e - 7]), this.ToffsetArcWires1B = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1B1[e - 14]), u.push(this.ToffsetWires1B1[e - 6]), this.ToffsetArcWires1B = f(u, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[e - 13]), l.push(this.ToffsetWires1B1[e - 5]), this.ToffsetArcWires1B = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1B1[e - 12]), C.push(this.ToffsetWires1B1[e - 4]), this.ToffsetArcWires1B = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), d.push(this.ToffsetWires1B1[e - 11]), d.push(this.ToffsetWires1B1[e - 3]), this.ToffsetArcWires1B = f(d, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1B1[e - 10]), g.push(this.ToffsetWires1B1[e - 2]), this.ToffsetArcWires1B = f(g, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1B1[e - 9]), m.push(this.ToffsetWires1B1[e - 1]), this.ToffsetArcWires1B = f(m, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B, "1B1跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 16 && (T.push(this.ToffsetWires1B2[e - 16]), T.push(this.ToffsetWires1B2[e - 8]), this.ToffsetArcWires2B = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1B2[e - 15]), B.push(this.ToffsetWires1B2[e - 7]), this.ToffsetArcWires2B = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1B2[e - 14]), P.push(this.ToffsetWires1B2[e - 6]), this.ToffsetArcWires2B = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1B2[e - 13]), y.push(this.ToffsetWires1B2[e - 5]), this.ToffsetArcWires2B = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires1B2[e - 12]), b.push(this.ToffsetWires1B2[e - 4]), this.ToffsetArcWires2B = f(b, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1B2[e - 11]), _.push(this.ToffsetWires1B2[e - 3]), this.ToffsetArcWires2B = f(_, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1B2[e - 10]), v.push(this.ToffsetWires1B2[e - 2]), this.ToffsetArcWires2B = f(v, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), k.push(this.ToffsetWires1B2[e - 9]), k.push(this.ToffsetWires1B2[e - 1]), this.ToffsetArcWires2B = f(k, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B, "1B2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1797
1807
|
break;
|
|
1798
1808
|
}
|
|
1799
1809
|
}
|
|
1800
1810
|
if (this.ToffsetWires1C1.length > 1 && this.ToffsetWires1C2.length > 1) {
|
|
1801
|
-
const i = [], t = [],
|
|
1811
|
+
const i = [], t = [], u = [], l = [], C = [], d = [], g = [], m = [], T = [], B = [], P = [], y = [], b = [], _ = [], v = [], k = [];
|
|
1802
1812
|
switch (this.LineInfo.Wairnum) {
|
|
1803
1813
|
case c.单分裂:
|
|
1804
1814
|
this.ToffsetWires1C1.length >= 2 && (i.push(this.ToffsetWires1C1[e - 2]), i.push(this.ToffsetWires1C1[e - 1]), this.ToffsetArcWires1C = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 2 && (T.push(this.ToffsetWires1C2[e - 2]), T.push(this.ToffsetWires1C2[e - 1]), this.ToffsetArcWires2C = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
@@ -1807,18 +1817,18 @@ class ht {
|
|
|
1807
1817
|
this.ToffsetWires1C1.length >= 4 && (i.push(this.ToffsetWires1C1[e - 4]), i.push(this.ToffsetWires1C1[e - 2]), this.ToffsetArcWires1C = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1C1[e - 3]), t.push(this.ToffsetWires1C1[e - 1]), this.ToffsetArcWires1C = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 4 && (T.push(this.ToffsetWires1C2[e - 4]), T.push(this.ToffsetWires1C2[e - 2]), this.ToffsetArcWires2C = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1C2[e - 3]), B.push(this.ToffsetWires1C2[e - 1]), this.ToffsetArcWires2C = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1808
1818
|
break;
|
|
1809
1819
|
case c.四分裂:
|
|
1810
|
-
this.ToffsetWires1C1.length >= 8 && (i.push(this.ToffsetWires1C1[e - 8]), i.push(this.ToffsetWires1C1[e - 4]), this.ToffsetArcWires1C = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1C1[e - 7]), t.push(this.ToffsetWires1C1[e - 3]), this.ToffsetArcWires1C = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1820
|
+
this.ToffsetWires1C1.length >= 8 && (i.push(this.ToffsetWires1C1[e - 8]), i.push(this.ToffsetWires1C1[e - 4]), this.ToffsetArcWires1C = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1C1[e - 7]), t.push(this.ToffsetWires1C1[e - 3]), this.ToffsetArcWires1C = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1C1[e - 6]), u.push(this.ToffsetWires1C1[e - 2]), this.ToffsetArcWires1C = f(u, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[e - 5]), l.push(this.ToffsetWires1C1[e - 1]), this.ToffsetArcWires1C = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 8 && (T.push(this.ToffsetWires1C2[e - 8]), T.push(this.ToffsetWires1C2[e - 4]), this.ToffsetArcWires2C = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1C2[e - 7]), B.push(this.ToffsetWires1C2[e - 3]), this.ToffsetArcWires2C = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1C2[e - 6]), P.push(this.ToffsetWires1C2[e - 2]), this.ToffsetArcWires2C = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1C2[e - 5]), y.push(this.ToffsetWires1C2[e - 1]), this.ToffsetArcWires2C = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1811
1821
|
break;
|
|
1812
1822
|
case c.六分裂:
|
|
1813
|
-
this.ToffsetWires1C1.length >= 12 && (i.push(this.ToffsetWires1C1[e - 12]), i.push(this.ToffsetWires1C1[e - 6]), this.ToffsetArcWires1C = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1C1[e - 11]), t.push(this.ToffsetWires1C1[e - 5]), this.ToffsetArcWires1C = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1823
|
+
this.ToffsetWires1C1.length >= 12 && (i.push(this.ToffsetWires1C1[e - 12]), i.push(this.ToffsetWires1C1[e - 6]), this.ToffsetArcWires1C = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1C1[e - 11]), t.push(this.ToffsetWires1C1[e - 5]), this.ToffsetArcWires1C = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1C1[e - 10]), u.push(this.ToffsetWires1C1[e - 4]), this.ToffsetArcWires1C = f(u, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[e - 9]), l.push(this.ToffsetWires1C1[e - 3]), this.ToffsetArcWires1C = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1C1[e - 8]), C.push(this.ToffsetWires1C1[e - 2]), this.ToffsetArcWires1C = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), d.push(this.ToffsetWires1C1[e - 7]), d.push(this.ToffsetWires1C1[e - 1]), this.ToffsetArcWires1C = f(d, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 12 && (T.push(this.ToffsetWires1C2[e - 12]), T.push(this.ToffsetWires1C2[e - 6]), this.ToffsetArcWires2C = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1C2[e - 11]), B.push(this.ToffsetWires1C2[e - 5]), this.ToffsetArcWires2C = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1C2[e - 10]), P.push(this.ToffsetWires1C2[e - 4]), this.ToffsetArcWires2C = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1C2[e - 9]), y.push(this.ToffsetWires1C2[e - 3]), this.ToffsetArcWires2C = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires1C2[e - 8]), b.push(this.ToffsetWires1C2[e - 2]), this.ToffsetArcWires2C = f(b, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1C2[e - 7]), _.push(this.ToffsetWires1C2[e - 1]), this.ToffsetArcWires2C = f(_, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1814
1824
|
break;
|
|
1815
1825
|
case c.八分裂:
|
|
1816
|
-
this.ToffsetWires1C1.length >= 16 && (i.push(this.ToffsetWires1C1[e - 16]), i.push(this.ToffsetWires1C1[e - 8]), this.ToffsetArcWires1C = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1C1[e - 15]), t.push(this.ToffsetWires1C1[e - 7]), this.ToffsetArcWires1C = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1826
|
+
this.ToffsetWires1C1.length >= 16 && (i.push(this.ToffsetWires1C1[e - 16]), i.push(this.ToffsetWires1C1[e - 8]), this.ToffsetArcWires1C = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires1C1[e - 15]), t.push(this.ToffsetWires1C1[e - 7]), this.ToffsetArcWires1C = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1C1[e - 14]), u.push(this.ToffsetWires1C1[e - 6]), this.ToffsetArcWires1C = f(u, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[e - 13]), l.push(this.ToffsetWires1C1[e - 5]), this.ToffsetArcWires1C = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1C1[e - 12]), C.push(this.ToffsetWires1C1[e - 4]), this.ToffsetArcWires1C = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), d.push(this.ToffsetWires1C1[e - 11]), d.push(this.ToffsetWires1C1[e - 3]), this.ToffsetArcWires1C = f(d, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1C1[e - 10]), g.push(this.ToffsetWires1C1[e - 2]), this.ToffsetArcWires1C = f(g, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1C1[e - 9]), m.push(this.ToffsetWires1C1[e - 1]), this.ToffsetArcWires1C = f(m, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C, "1C1跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 16 && (T.push(this.ToffsetWires1C2[e - 16]), T.push(this.ToffsetWires1C2[e - 8]), this.ToffsetArcWires2C = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1C2[e - 15]), B.push(this.ToffsetWires1C2[e - 7]), this.ToffsetArcWires2C = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1C2[e - 14]), P.push(this.ToffsetWires1C2[e - 6]), this.ToffsetArcWires2C = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1C2[e - 13]), y.push(this.ToffsetWires1C2[e - 5]), this.ToffsetArcWires2C = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires1C2[e - 12]), b.push(this.ToffsetWires1C2[e - 4]), this.ToffsetArcWires2C = f(b, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1C2[e - 11]), _.push(this.ToffsetWires1C2[e - 3]), this.ToffsetArcWires2C = f(_, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1C2[e - 10]), v.push(this.ToffsetWires1C2[e - 2]), this.ToffsetArcWires2C = f(v, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), k.push(this.ToffsetWires1C2[e - 9]), k.push(this.ToffsetWires1C2[e - 1]), this.ToffsetArcWires2C = f(k, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C, "1C2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1817
1827
|
break;
|
|
1818
1828
|
}
|
|
1819
1829
|
}
|
|
1820
1830
|
if (this.ToffsetWires2A1.length > 1 && this.ToffsetWires2A2.length > 1) {
|
|
1821
|
-
const i = [], t = [],
|
|
1831
|
+
const i = [], t = [], u = [], l = [], C = [], d = [], g = [], m = [], T = [], B = [], P = [], y = [], b = [], _ = [], v = [], k = [];
|
|
1822
1832
|
switch (this.LineInfo.Wairnum) {
|
|
1823
1833
|
case c.单分裂:
|
|
1824
1834
|
this.ToffsetWires2A1.length >= 2 && (i.push(this.ToffsetWires2A1[e - 2]), i.push(this.ToffsetWires2A1[e - 1]), this.ToffsetArcWires1A2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 2 && (T.push(this.ToffsetWires2A2[e - 2]), T.push(this.ToffsetWires2A2[e - 1]), this.ToffsetArcWires2A2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
@@ -1827,18 +1837,18 @@ class ht {
|
|
|
1827
1837
|
this.ToffsetWires2A1.length >= 4 && (i.push(this.ToffsetWires2A1[e - 4]), i.push(this.ToffsetWires2A1[e - 2]), this.ToffsetArcWires1A2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2A1[e - 3]), t.push(this.ToffsetWires2A1[e - 1]), this.ToffsetArcWires1A2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 4 && (T.push(this.ToffsetWires2A2[e - 4]), T.push(this.ToffsetWires2A2[e - 2]), this.ToffsetArcWires2A2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2A2[e - 3]), B.push(this.ToffsetWires2A2[e - 1]), this.ToffsetArcWires2A2 = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1828
1838
|
break;
|
|
1829
1839
|
case c.四分裂:
|
|
1830
|
-
this.ToffsetWires2A1.length >= 8 && (i.push(this.ToffsetWires2A1[e - 8]), i.push(this.ToffsetWires2A1[e - 4]), this.ToffsetArcWires1A2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2A1[e - 7]), t.push(this.ToffsetWires2A1[e - 3]), this.ToffsetArcWires1A2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1840
|
+
this.ToffsetWires2A1.length >= 8 && (i.push(this.ToffsetWires2A1[e - 8]), i.push(this.ToffsetWires2A1[e - 4]), this.ToffsetArcWires1A2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2A1[e - 7]), t.push(this.ToffsetWires2A1[e - 3]), this.ToffsetArcWires1A2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2A1[e - 6]), u.push(this.ToffsetWires2A1[e - 2]), this.ToffsetArcWires1A2 = f(u, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[e - 5]), l.push(this.ToffsetWires2A1[e - 1]), this.ToffsetArcWires1A2 = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 8 && (T.push(this.ToffsetWires2A2[e - 8]), T.push(this.ToffsetWires2A2[e - 4]), this.ToffsetArcWires2A2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2A2[e - 7]), B.push(this.ToffsetWires2A2[e - 3]), this.ToffsetArcWires2A2 = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2A2[e - 6]), P.push(this.ToffsetWires2A2[e - 2]), this.ToffsetArcWires2A2 = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2A2[e - 5]), y.push(this.ToffsetWires2A2[e - 1]), this.ToffsetArcWires2A2 = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1831
1841
|
break;
|
|
1832
1842
|
case c.六分裂:
|
|
1833
|
-
this.ToffsetWires2A1.length >= 12 && (i.push(this.ToffsetWires2A1[e - 12]), i.push(this.ToffsetWires2A1[e - 6]), this.ToffsetArcWires1A2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2A1[e - 11]), t.push(this.ToffsetWires2A1[e - 5]), this.ToffsetArcWires1A2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1843
|
+
this.ToffsetWires2A1.length >= 12 && (i.push(this.ToffsetWires2A1[e - 12]), i.push(this.ToffsetWires2A1[e - 6]), this.ToffsetArcWires1A2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2A1[e - 11]), t.push(this.ToffsetWires2A1[e - 5]), this.ToffsetArcWires1A2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2A1[e - 10]), u.push(this.ToffsetWires2A1[e - 4]), this.ToffsetArcWires1A2 = f(u, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[e - 9]), l.push(this.ToffsetWires2A1[e - 3]), this.ToffsetArcWires1A2 = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2A1[e - 8]), C.push(this.ToffsetWires2A1[e - 2]), this.ToffsetArcWires1A2 = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), d.push(this.ToffsetWires2A1[e - 7]), d.push(this.ToffsetWires2A1[e - 1]), this.ToffsetArcWires1A2 = f(d, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 12 && (T.push(this.ToffsetWires2A2[e - 12]), T.push(this.ToffsetWires2A2[e - 6]), this.ToffsetArcWires2A2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2A2[e - 11]), B.push(this.ToffsetWires2A2[e - 5]), this.ToffsetArcWires2A2 = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2A2[e - 10]), P.push(this.ToffsetWires2A2[e - 4]), this.ToffsetArcWires2A2 = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2A2[e - 9]), y.push(this.ToffsetWires2A2[e - 3]), this.ToffsetArcWires2A2 = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires2A2[e - 8]), b.push(this.ToffsetWires2A2[e - 2]), this.ToffsetArcWires2A2 = f(b, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2A2[e - 7]), _.push(this.ToffsetWires2A2[e - 1]), this.ToffsetArcWires2A2 = f(_, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1834
1844
|
break;
|
|
1835
1845
|
case c.八分裂:
|
|
1836
|
-
this.ToffsetWires2A1.length >= 16 && (i.push(this.ToffsetWires2A1[e - 16]), i.push(this.ToffsetWires2A1[e - 8]), this.ToffsetArcWires1A2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2A1[e - 15]), t.push(this.ToffsetWires2A1[e - 7]), this.ToffsetArcWires1A2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1846
|
+
this.ToffsetWires2A1.length >= 16 && (i.push(this.ToffsetWires2A1[e - 16]), i.push(this.ToffsetWires2A1[e - 8]), this.ToffsetArcWires1A2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2A1[e - 15]), t.push(this.ToffsetWires2A1[e - 7]), this.ToffsetArcWires1A2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2A1[e - 14]), u.push(this.ToffsetWires2A1[e - 6]), this.ToffsetArcWires1A2 = f(u, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[e - 13]), l.push(this.ToffsetWires2A1[e - 5]), this.ToffsetArcWires1A2 = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2A1[e - 12]), C.push(this.ToffsetWires2A1[e - 4]), this.ToffsetArcWires1A2 = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), d.push(this.ToffsetWires2A1[e - 11]), d.push(this.ToffsetWires2A1[e - 3]), this.ToffsetArcWires1A2 = f(d, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2A1[e - 10]), g.push(this.ToffsetWires2A1[e - 2]), this.ToffsetArcWires1A2 = f(g, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2A1[e - 9]), m.push(this.ToffsetWires2A1[e - 1]), this.ToffsetArcWires1A2 = f(m, 15), this.entityCollection2.add(r(this.ToffsetArcWires1A2, "2A1跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 16 && (T.push(this.ToffsetWires2A2[e - 16]), T.push(this.ToffsetWires2A2[e - 8]), this.ToffsetArcWires2A2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2A2[e - 15]), B.push(this.ToffsetWires2A2[e - 7]), this.ToffsetArcWires2A2 = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2A2[e - 14]), P.push(this.ToffsetWires2A2[e - 6]), this.ToffsetArcWires2A2 = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2A2[e - 13]), y.push(this.ToffsetWires2A2[e - 5]), this.ToffsetArcWires2A2 = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires2A2[e - 12]), b.push(this.ToffsetWires2A2[e - 4]), this.ToffsetArcWires2A2 = f(b, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2A2[e - 11]), _.push(this.ToffsetWires2A2[e - 3]), this.ToffsetArcWires2A2 = f(_, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2A2[e - 10]), v.push(this.ToffsetWires2A2[e - 2]), this.ToffsetArcWires2A2 = f(v, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), k.push(this.ToffsetWires2A2[e - 9]), k.push(this.ToffsetWires2A2[e - 1]), this.ToffsetArcWires2A2 = f(k, 15), this.entityCollection2.add(r(this.ToffsetArcWires2A2, "2A2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1837
1847
|
break;
|
|
1838
1848
|
}
|
|
1839
1849
|
}
|
|
1840
1850
|
if (this.ToffsetWires2B1.length > 1 && this.ToffsetWires2B2.length > 1) {
|
|
1841
|
-
const i = [], t = [],
|
|
1851
|
+
const i = [], t = [], u = [], l = [], C = [], d = [], g = [], m = [], T = [], B = [], P = [], y = [], b = [], _ = [], v = [], k = [];
|
|
1842
1852
|
switch (this.LineInfo.Wairnum) {
|
|
1843
1853
|
case c.单分裂:
|
|
1844
1854
|
this.ToffsetWires2B1.length >= 2 && (i.push(this.ToffsetWires2B1[e - 2]), i.push(this.ToffsetWires2B1[e - 1]), this.ToffsetArcWires1B2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 2 && (T.push(this.ToffsetWires2B2[e - 2]), T.push(this.ToffsetWires2B2[e - 1]), this.ToffsetArcWires2B2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
@@ -1847,18 +1857,18 @@ class ht {
|
|
|
1847
1857
|
this.ToffsetWires2B1.length >= 4 && (i.push(this.ToffsetWires2B1[e - 4]), i.push(this.ToffsetWires2B1[e - 2]), this.ToffsetArcWires1B2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2B1[e - 3]), t.push(this.ToffsetWires2B1[e - 1]), this.ToffsetArcWires1B2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 4 && (T.push(this.ToffsetWires2B2[e - 4]), T.push(this.ToffsetWires2B2[e - 2]), this.ToffsetArcWires2B2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2B2[e - 3]), B.push(this.ToffsetWires2B2[e - 1]), this.ToffsetArcWires2B2 = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1848
1858
|
break;
|
|
1849
1859
|
case c.四分裂:
|
|
1850
|
-
this.ToffsetWires2B1.length >= 8 && (i.push(this.ToffsetWires2B1[e - 8]), i.push(this.ToffsetWires2B1[e - 4]), this.ToffsetArcWires1B2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2B1[e - 7]), t.push(this.ToffsetWires2B1[e - 3]), this.ToffsetArcWires1B2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1860
|
+
this.ToffsetWires2B1.length >= 8 && (i.push(this.ToffsetWires2B1[e - 8]), i.push(this.ToffsetWires2B1[e - 4]), this.ToffsetArcWires1B2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2B1[e - 7]), t.push(this.ToffsetWires2B1[e - 3]), this.ToffsetArcWires1B2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2B1[e - 6]), u.push(this.ToffsetWires2B1[e - 2]), this.ToffsetArcWires1B2 = f(u, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[e - 5]), l.push(this.ToffsetWires2B1[e - 1]), this.ToffsetArcWires1B2 = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 8 && (T.push(this.ToffsetWires2B2[e - 8]), T.push(this.ToffsetWires2B2[e - 4]), this.ToffsetArcWires2B2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2B2[e - 7]), B.push(this.ToffsetWires2B2[e - 3]), this.ToffsetArcWires2B2 = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2B2[e - 6]), P.push(this.ToffsetWires2B2[e - 2]), this.ToffsetArcWires2B2 = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2B2[e - 5]), y.push(this.ToffsetWires2B2[e - 1]), this.ToffsetArcWires2B2 = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1851
1861
|
break;
|
|
1852
1862
|
case c.六分裂:
|
|
1853
|
-
this.ToffsetWires2B1.length >= 12 && (i.push(this.ToffsetWires2B1[e - 12]), i.push(this.ToffsetWires2B1[e - 6]), this.ToffsetArcWires1B2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2B1[e - 11]), t.push(this.ToffsetWires2B1[e - 5]), this.ToffsetArcWires1B2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1863
|
+
this.ToffsetWires2B1.length >= 12 && (i.push(this.ToffsetWires2B1[e - 12]), i.push(this.ToffsetWires2B1[e - 6]), this.ToffsetArcWires1B2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2B1[e - 11]), t.push(this.ToffsetWires2B1[e - 5]), this.ToffsetArcWires1B2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2B1[e - 10]), u.push(this.ToffsetWires2B1[e - 4]), this.ToffsetArcWires1B2 = f(u, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[e - 9]), l.push(this.ToffsetWires2B1[e - 3]), this.ToffsetArcWires1B2 = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2B1[e - 8]), C.push(this.ToffsetWires2B1[e - 2]), this.ToffsetArcWires1B2 = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), d.push(this.ToffsetWires2B1[e - 7]), d.push(this.ToffsetWires2B1[e - 1]), this.ToffsetArcWires1B2 = f(d, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 12 && (T.push(this.ToffsetWires2B2[e - 12]), T.push(this.ToffsetWires2B2[e - 6]), this.ToffsetArcWires2B2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2B2[e - 11]), B.push(this.ToffsetWires2B2[e - 5]), this.ToffsetArcWires2B2 = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2B2[e - 10]), P.push(this.ToffsetWires2B2[e - 4]), this.ToffsetArcWires2B2 = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2B2[e - 9]), y.push(this.ToffsetWires2B2[e - 3]), this.ToffsetArcWires2B2 = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires2B2[e - 8]), b.push(this.ToffsetWires2B2[e - 2]), this.ToffsetArcWires2B2 = f(b, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2B2[e - 7]), _.push(this.ToffsetWires2B2[e - 1]), this.ToffsetArcWires2B2 = f(_, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1854
1864
|
break;
|
|
1855
1865
|
case c.八分裂:
|
|
1856
|
-
this.ToffsetWires2B1.length >= 16 && (i.push(this.ToffsetWires2B1[e - 16]), i.push(this.ToffsetWires2B1[e - 8]), this.ToffsetArcWires1B2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2B1[e - 15]), t.push(this.ToffsetWires2B1[e - 7]), this.ToffsetArcWires1B2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1866
|
+
this.ToffsetWires2B1.length >= 16 && (i.push(this.ToffsetWires2B1[e - 16]), i.push(this.ToffsetWires2B1[e - 8]), this.ToffsetArcWires1B2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2B1[e - 15]), t.push(this.ToffsetWires2B1[e - 7]), this.ToffsetArcWires1B2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2B1[e - 14]), u.push(this.ToffsetWires2B1[e - 6]), this.ToffsetArcWires1B2 = f(u, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[e - 13]), l.push(this.ToffsetWires2B1[e - 5]), this.ToffsetArcWires1B2 = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2B1[e - 12]), C.push(this.ToffsetWires2B1[e - 4]), this.ToffsetArcWires1B2 = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), d.push(this.ToffsetWires2B1[e - 11]), d.push(this.ToffsetWires2B1[e - 3]), this.ToffsetArcWires1B2 = f(d, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2B1[e - 10]), g.push(this.ToffsetWires2B1[e - 2]), this.ToffsetArcWires1B2 = f(g, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2B1[e - 9]), m.push(this.ToffsetWires2B1[e - 1]), this.ToffsetArcWires1B2 = f(m, 15), this.entityCollection2.add(r(this.ToffsetArcWires1B2, "2B1跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 16 && (T.push(this.ToffsetWires2B2[e - 16]), T.push(this.ToffsetWires2B2[e - 8]), this.ToffsetArcWires2B2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2B2[e - 15]), B.push(this.ToffsetWires2B2[e - 7]), this.ToffsetArcWires2B2 = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2B2[e - 14]), P.push(this.ToffsetWires2B2[e - 6]), this.ToffsetArcWires2B2 = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2B2[e - 13]), y.push(this.ToffsetWires2B2[e - 5]), this.ToffsetArcWires2B2 = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires2B2[e - 12]), b.push(this.ToffsetWires2B2[e - 4]), this.ToffsetArcWires2B2 = f(b, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2B2[e - 11]), _.push(this.ToffsetWires2B2[e - 3]), this.ToffsetArcWires2B2 = f(_, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2B2[e - 10]), v.push(this.ToffsetWires2B2[e - 2]), this.ToffsetArcWires2B2 = f(v, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), k.push(this.ToffsetWires2B2[e - 9]), k.push(this.ToffsetWires2B2[e - 1]), this.ToffsetArcWires2B2 = f(k, 15), this.entityCollection2.add(r(this.ToffsetArcWires2B2, "2B2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1857
1867
|
break;
|
|
1858
1868
|
}
|
|
1859
1869
|
}
|
|
1860
1870
|
if (this.ToffsetWires2C1.length > 1 && this.ToffsetWires2C2.length > 1) {
|
|
1861
|
-
const i = [], t = [],
|
|
1871
|
+
const i = [], t = [], u = [], l = [], C = [], d = [], g = [], m = [], T = [], B = [], P = [], y = [], b = [], _ = [], v = [], k = [];
|
|
1862
1872
|
switch (this.LineInfo.Wairnum) {
|
|
1863
1873
|
case c.单分裂:
|
|
1864
1874
|
this.ToffsetWires2C1.length >= 2 && (i.push(this.ToffsetWires2C1[e - 2]), i.push(this.ToffsetWires2C1[e - 1]), this.ToffsetArcWires1C2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 2 && (T.push(this.ToffsetWires2C2[e - 2]), T.push(this.ToffsetWires2C2[e - 1]), this.ToffsetArcWires2C2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
@@ -1867,13 +1877,13 @@ class ht {
|
|
|
1867
1877
|
this.ToffsetWires2C1.length >= 4 && (i.push(this.ToffsetWires2C1[e - 4]), i.push(this.ToffsetWires2C1[e - 2]), this.ToffsetArcWires1C2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2C1[e - 3]), t.push(this.ToffsetWires2C1[e - 1]), this.ToffsetArcWires1C2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 4 && (T.push(this.ToffsetWires2C2[e - 4]), T.push(this.ToffsetWires2C2[e - 2]), this.ToffsetArcWires2C2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2C2[e - 3]), B.push(this.ToffsetWires2C2[e - 1]), this.ToffsetArcWires2C2 = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1868
1878
|
break;
|
|
1869
1879
|
case c.四分裂:
|
|
1870
|
-
this.ToffsetWires2C1.length >= 8 && (i.push(this.ToffsetWires2C1[e - 8]), i.push(this.ToffsetWires2C1[e - 4]), this.ToffsetArcWires1C2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2C1[e - 7]), t.push(this.ToffsetWires2C1[e - 3]), this.ToffsetArcWires1C2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1880
|
+
this.ToffsetWires2C1.length >= 8 && (i.push(this.ToffsetWires2C1[e - 8]), i.push(this.ToffsetWires2C1[e - 4]), this.ToffsetArcWires1C2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2C1[e - 7]), t.push(this.ToffsetWires2C1[e - 3]), this.ToffsetArcWires1C2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2C1[e - 6]), u.push(this.ToffsetWires2C1[e - 2]), this.ToffsetArcWires1C2 = f(u, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[e - 5]), l.push(this.ToffsetWires2C1[e - 1]), this.ToffsetArcWires1C2 = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 8 && (T.push(this.ToffsetWires2C2[e - 8]), T.push(this.ToffsetWires2C2[e - 4]), this.ToffsetArcWires2C2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2C2[e - 7]), B.push(this.ToffsetWires2C2[e - 3]), this.ToffsetArcWires2C2 = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2C2[e - 6]), P.push(this.ToffsetWires2C2[e - 2]), this.ToffsetArcWires2C2 = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2C2[e - 5]), y.push(this.ToffsetWires2C2[e - 1]), this.ToffsetArcWires2C2 = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1871
1881
|
break;
|
|
1872
1882
|
case c.六分裂:
|
|
1873
|
-
this.ToffsetWires2C1.length >= 12 && (i.push(this.ToffsetWires2C1[e - 12]), i.push(this.ToffsetWires2C1[e - 6]), this.ToffsetArcWires1C2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2C1[e - 11]), t.push(this.ToffsetWires2C1[e - 5]), this.ToffsetArcWires1C2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1883
|
+
this.ToffsetWires2C1.length >= 12 && (i.push(this.ToffsetWires2C1[e - 12]), i.push(this.ToffsetWires2C1[e - 6]), this.ToffsetArcWires1C2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2C1[e - 11]), t.push(this.ToffsetWires2C1[e - 5]), this.ToffsetArcWires1C2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2C1[e - 10]), u.push(this.ToffsetWires2C1[e - 4]), this.ToffsetArcWires1C2 = f(u, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[e - 9]), l.push(this.ToffsetWires2C1[e - 3]), this.ToffsetArcWires1C2 = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2C1[e - 8]), C.push(this.ToffsetWires2C1[e - 2]), this.ToffsetArcWires1C2 = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), d.push(this.ToffsetWires2C1[e - 7]), d.push(this.ToffsetWires2C1[e - 1]), this.ToffsetArcWires1C2 = f(d, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 12 && (T.push(this.ToffsetWires2C2[e - 12]), T.push(this.ToffsetWires2C2[e - 6]), this.ToffsetArcWires2C2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2C2[e - 11]), B.push(this.ToffsetWires2C2[e - 5]), this.ToffsetArcWires2C2 = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2C2[e - 10]), P.push(this.ToffsetWires2C2[e - 4]), this.ToffsetArcWires2C2 = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2C2[e - 9]), y.push(this.ToffsetWires2C2[e - 3]), this.ToffsetArcWires2C2 = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires2C2[e - 8]), b.push(this.ToffsetWires2C2[e - 2]), this.ToffsetArcWires2C2 = f(b, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2C2[e - 7]), _.push(this.ToffsetWires2C2[e - 1]), this.ToffsetArcWires2C2 = f(_, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1874
1884
|
break;
|
|
1875
1885
|
case c.八分裂:
|
|
1876
|
-
this.ToffsetWires2C1.length >= 16 && (i.push(this.ToffsetWires2C1[e - 16]), i.push(this.ToffsetWires2C1[e - 8]), this.ToffsetArcWires1C2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2C1[e - 15]), t.push(this.ToffsetWires2C1[e - 7]), this.ToffsetArcWires1C2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
1886
|
+
this.ToffsetWires2C1.length >= 16 && (i.push(this.ToffsetWires2C1[e - 16]), i.push(this.ToffsetWires2C1[e - 8]), this.ToffsetArcWires1C2 = f(i, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), t.push(this.ToffsetWires2C1[e - 15]), t.push(this.ToffsetWires2C1[e - 7]), this.ToffsetArcWires1C2 = f(t, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2C1[e - 14]), u.push(this.ToffsetWires2C1[e - 6]), this.ToffsetArcWires1C2 = f(u, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[e - 13]), l.push(this.ToffsetWires2C1[e - 5]), this.ToffsetArcWires1C2 = f(l, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2C1[e - 12]), C.push(this.ToffsetWires2C1[e - 4]), this.ToffsetArcWires1C2 = f(C, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), d.push(this.ToffsetWires2C1[e - 11]), d.push(this.ToffsetWires2C1[e - 3]), this.ToffsetArcWires1C2 = f(d, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2C1[e - 10]), g.push(this.ToffsetWires2C1[e - 2]), this.ToffsetArcWires1C2 = f(g, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2C1[e - 9]), m.push(this.ToffsetWires2C1[e - 1]), this.ToffsetArcWires1C2 = f(m, 15), this.entityCollection2.add(r(this.ToffsetArcWires1C2, "2C1跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 16 && (T.push(this.ToffsetWires2C2[e - 16]), T.push(this.ToffsetWires2C2[e - 8]), this.ToffsetArcWires2C2 = f(T, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2C2[e - 15]), B.push(this.ToffsetWires2C2[e - 7]), this.ToffsetArcWires2C2 = f(B, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2C2[e - 14]), P.push(this.ToffsetWires2C2[e - 6]), this.ToffsetArcWires2C2 = f(P, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2C2[e - 13]), y.push(this.ToffsetWires2C2[e - 5]), this.ToffsetArcWires2C2 = f(y, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires2C2[e - 12]), b.push(this.ToffsetWires2C2[e - 4]), this.ToffsetArcWires2C2 = f(b, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2C2[e - 11]), _.push(this.ToffsetWires2C2[e - 3]), this.ToffsetArcWires2C2 = f(_, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2C2[e - 10]), v.push(this.ToffsetWires2C2[e - 2]), this.ToffsetArcWires2C2 = f(v, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), k.push(this.ToffsetWires2C2[e - 9]), k.push(this.ToffsetWires2C2[e - 1]), this.ToffsetArcWires2C2 = f(k, 15), this.entityCollection2.add(r(this.ToffsetArcWires2C2, "2C2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
1877
1887
|
break;
|
|
1878
1888
|
}
|
|
1879
1889
|
}
|
|
@@ -1967,29 +1977,29 @@ class ht {
|
|
|
1967
1977
|
loadTreeListen() {
|
|
1968
1978
|
this.treeHandler && this.removeTreeListen();
|
|
1969
1979
|
const o = (e, h) => {
|
|
1970
|
-
var
|
|
1980
|
+
var I;
|
|
1971
1981
|
const s = e.scene.pick(h);
|
|
1972
1982
|
if (n.defined(s)) {
|
|
1973
|
-
const
|
|
1974
|
-
if (
|
|
1975
|
-
return
|
|
1983
|
+
const W = n.defaultValue(s.id, (I = s.primitive) == null ? void 0 : I.id);
|
|
1984
|
+
if (W instanceof n.Entity)
|
|
1985
|
+
return W;
|
|
1976
1986
|
}
|
|
1977
1987
|
};
|
|
1978
1988
|
this.treeHandler = new n.ScreenSpaceEventHandler(this.viewer.canvas), this.treeHandler.setInputAction((e) => {
|
|
1979
1989
|
var s;
|
|
1980
1990
|
const h = o(this.viewer, e.position);
|
|
1981
1991
|
if (h && h.id && h.id.startsWith("tree-")) {
|
|
1982
|
-
const
|
|
1992
|
+
const I = h.id.replace("tree-", ""), W = (s = this.LineInfo.Trees) == null ? void 0 : s.find((A) => {
|
|
1983
1993
|
var L;
|
|
1984
|
-
return ((L = A.id) == null ? void 0 : L.toString()) ===
|
|
1994
|
+
return ((L = A.id) == null ? void 0 : L.toString()) === I;
|
|
1985
1995
|
});
|
|
1986
|
-
if (
|
|
1996
|
+
if (W) {
|
|
1987
1997
|
const A = [
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
Number(
|
|
1998
|
+
W.lon,
|
|
1999
|
+
W.lat,
|
|
2000
|
+
Number(W.lat || 0) + Number(W.treeH || 0)
|
|
1991
2001
|
];
|
|
1992
|
-
console.log("拾取树木:",
|
|
2002
|
+
console.log("拾取树木:", W, "坐标:", A), this.calcResult(A);
|
|
1993
2003
|
}
|
|
1994
2004
|
}
|
|
1995
2005
|
}, n.ScreenSpaceEventType.LEFT_CLICK), this.viewer.dataSources.add(this.dataSourceplotting), this.entityCollectionplotting.show = !0;
|
|
@@ -2022,11 +2032,11 @@ class ht {
|
|
|
2022
2032
|
loadLineModel() {
|
|
2023
2033
|
this.Keym == "OW_JPS_EEngin_001" && (this.viewer.dataSources.add(this.dataSource2), this.viewer.entities.show);
|
|
2024
2034
|
}
|
|
2025
|
-
|
|
2035
|
+
//加载渲染树木
|
|
2026
2036
|
loadtreeModel() {
|
|
2027
|
-
this.Keym == "OW_JPS_EEngin_001" && (this.viewer.dataSources.add(this.dataSourcetree), this.
|
|
2037
|
+
this.Keym == "OW_JPS_EEngin_001" && (this.viewer.dataSources.add(this.dataSourcetree), this.entityCollectiontree.show = !0);
|
|
2028
2038
|
}
|
|
2029
|
-
|
|
2039
|
+
//移除树木
|
|
2030
2040
|
RemoveTreeModel() {
|
|
2031
2041
|
this.Keym == "OW_JPS_EEngin_001" && (this.viewer.dataSources.remove(this.dataSourcetree), this.entityCollectiontree.show = !1);
|
|
2032
2042
|
}
|
|
@@ -2073,39 +2083,39 @@ class ht {
|
|
|
2073
2083
|
class nt {
|
|
2074
2084
|
constructor() {
|
|
2075
2085
|
// 杆塔id
|
|
2076
|
-
|
|
2086
|
+
p(this, "id", "");
|
|
2077
2087
|
// 杆塔名称
|
|
2078
|
-
|
|
2088
|
+
p(this, "name", "");
|
|
2079
2089
|
//角钢和圆钢都是用线模拟
|
|
2080
2090
|
//单塔仿真文件
|
|
2081
|
-
|
|
2091
|
+
p(this, "towerFZinfo", "");
|
|
2082
2092
|
//位移文件
|
|
2083
|
-
|
|
2093
|
+
p(this, "towerDisFile", "");
|
|
2084
2094
|
//解析应力比文件
|
|
2085
|
-
|
|
2086
|
-
|
|
2095
|
+
p(this, "stressFileContent", "");
|
|
2096
|
+
p(this, "streesistrue", 0);
|
|
2087
2097
|
// 杆件颜色
|
|
2088
|
-
|
|
2098
|
+
p(this, "TowerMemberColor", "#FFFFFF");
|
|
2089
2099
|
// 杆件宽度
|
|
2090
|
-
|
|
2100
|
+
p(this, "TowerMembersWidth", 2);
|
|
2091
2101
|
// 经度
|
|
2092
|
-
|
|
2102
|
+
p(this, "Longitude", 0);
|
|
2093
2103
|
// 纬度
|
|
2094
|
-
|
|
2104
|
+
p(this, "Latitude", 0);
|
|
2095
2105
|
// 高程
|
|
2096
|
-
|
|
2106
|
+
p(this, "Altitude", 0);
|
|
2097
2107
|
// 转角
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2108
|
+
p(this, "RollX", 0);
|
|
2109
|
+
p(this, "RollY", 90);
|
|
2110
|
+
p(this, "RollZ", 0);
|
|
2101
2111
|
}
|
|
2102
2112
|
}
|
|
2103
|
-
function Ks(
|
|
2113
|
+
function Ks(a) {
|
|
2104
2114
|
debugger;
|
|
2105
|
-
const o =
|
|
2106
|
-
`), e = [], h = [], s = /^\s*(\d+)\s+([\d.-]+)\s+([\d.-]+)\s+([\d.-]+)\s+(-?\d+)/,
|
|
2107
|
-
for (const
|
|
2108
|
-
const A =
|
|
2115
|
+
const o = a.split(`
|
|
2116
|
+
`), e = [], h = [], s = /^\s*(\d+)\s+([\d.-]+)\s+([\d.-]+)\s+([\d.-]+)\s+(-?\d+)/, I = /^\s*(\d+)\s+(\d+)\s+(\d+)\s*(?:#|$)/;
|
|
2117
|
+
for (const W of o) {
|
|
2118
|
+
const A = W.trim();
|
|
2109
2119
|
if (!A) continue;
|
|
2110
2120
|
const L = A.match(s);
|
|
2111
2121
|
if (L) {
|
|
@@ -2118,7 +2128,7 @@ function Ks(W) {
|
|
|
2118
2128
|
});
|
|
2119
2129
|
continue;
|
|
2120
2130
|
}
|
|
2121
|
-
const i = A.match(
|
|
2131
|
+
const i = A.match(I);
|
|
2122
2132
|
i && h.push({
|
|
2123
2133
|
from: parseInt(i[1]),
|
|
2124
2134
|
to: parseInt(i[2]),
|
|
@@ -2127,31 +2137,31 @@ function Ks(W) {
|
|
|
2127
2137
|
}
|
|
2128
2138
|
return { TowerNodes: e, connections: h };
|
|
2129
2139
|
}
|
|
2130
|
-
function Vs(
|
|
2131
|
-
const o =
|
|
2140
|
+
function Vs(a) {
|
|
2141
|
+
const o = a.split(`
|
|
2132
2142
|
`), e = [];
|
|
2133
2143
|
for (const h of o) {
|
|
2134
2144
|
if (!h.trim()) continue;
|
|
2135
|
-
const s = h.trim().split(/\s+/).filter((A) => A !== ""),
|
|
2136
|
-
if (isNaN(
|
|
2137
|
-
const
|
|
2145
|
+
const s = h.trim().split(/\s+/).filter((A) => A !== ""), I = parseInt(s[0]);
|
|
2146
|
+
if (isNaN(I)) continue;
|
|
2147
|
+
const W = [];
|
|
2138
2148
|
for (let A = 1; A < s.length; A += 3) {
|
|
2139
2149
|
const L = parseFloat(s[A]), i = parseFloat(s[A + 1]), t = parseFloat(s[A + 2]);
|
|
2140
2150
|
if (!isNaN(L) && !isNaN(i) && !isNaN(t)) {
|
|
2141
|
-
const
|
|
2142
|
-
|
|
2151
|
+
const u = Math.floor((A - 1) / 3) + 1;
|
|
2152
|
+
W.push({ timeStep: u, x: L, y: i, z: t });
|
|
2143
2153
|
}
|
|
2144
2154
|
}
|
|
2145
2155
|
e.push({
|
|
2146
|
-
nodeId:
|
|
2147
|
-
displacements:
|
|
2156
|
+
nodeId: I,
|
|
2157
|
+
displacements: W
|
|
2148
2158
|
});
|
|
2149
2159
|
}
|
|
2150
2160
|
return e;
|
|
2151
2161
|
}
|
|
2152
|
-
function cs(
|
|
2162
|
+
function cs(a) {
|
|
2153
2163
|
const o = {};
|
|
2154
|
-
return
|
|
2164
|
+
return a.forEach((e) => {
|
|
2155
2165
|
e.displacements.forEach((h) => {
|
|
2156
2166
|
o[h.timeStep] || (o[h.timeStep] = []), o[h.timeStep].push({
|
|
2157
2167
|
nodeId: e.nodeId,
|
|
@@ -2160,16 +2170,16 @@ function cs(W) {
|
|
|
2160
2170
|
});
|
|
2161
2171
|
}), o;
|
|
2162
2172
|
}
|
|
2163
|
-
function Us(
|
|
2164
|
-
const o =
|
|
2173
|
+
function Us(a) {
|
|
2174
|
+
const o = a.split(`
|
|
2165
2175
|
`), e = [];
|
|
2166
2176
|
for (const s of o) {
|
|
2167
2177
|
if (!s.trim()) continue;
|
|
2168
|
-
const
|
|
2169
|
-
if (
|
|
2170
|
-
const
|
|
2178
|
+
const I = s.match(/^\s*(\d+-\s*\d+)\s+((?:\d+\.\d+\s*)+)/);
|
|
2179
|
+
if (I) {
|
|
2180
|
+
const W = I[1].replace(/\s+/g, ""), A = I[2].trim().split(/\s+/).map(Number);
|
|
2171
2181
|
e.push({
|
|
2172
|
-
elementId:
|
|
2182
|
+
elementId: W,
|
|
2173
2183
|
stressRatios: A
|
|
2174
2184
|
});
|
|
2175
2185
|
}
|
|
@@ -2177,29 +2187,29 @@ function Us(W) {
|
|
|
2177
2187
|
const h = [];
|
|
2178
2188
|
if (e.length > 0) {
|
|
2179
2189
|
const s = e[0].stressRatios.length;
|
|
2180
|
-
for (let
|
|
2181
|
-
const
|
|
2182
|
-
timeIndex:
|
|
2190
|
+
for (let I = 0; I < s; I++) {
|
|
2191
|
+
const W = {
|
|
2192
|
+
timeIndex: I,
|
|
2183
2193
|
elements: []
|
|
2184
2194
|
};
|
|
2185
2195
|
for (const A of e) {
|
|
2186
2196
|
let L;
|
|
2187
|
-
const i = A.stressRatios[
|
|
2188
|
-
i > 1 ? L = z.RED : i > 0.95 && i <= 1 ? L = z.PINK : i > 0.85 && i <= 0.95 ? L = z.YELLOW : i > 0.7 && i <= 0.85 ? L = z.GREEN : L = z.BLUE,
|
|
2197
|
+
const i = A.stressRatios[I];
|
|
2198
|
+
i > 1 ? L = z.RED : i > 0.95 && i <= 1 ? L = z.PINK : i > 0.85 && i <= 0.95 ? L = z.YELLOW : i > 0.7 && i <= 0.85 ? L = z.GREEN : L = z.BLUE, W.elements.push({
|
|
2189
2199
|
elementId: A.elementId,
|
|
2190
2200
|
stressRatio: i,
|
|
2191
2201
|
ylbColor: L
|
|
2192
2202
|
});
|
|
2193
2203
|
}
|
|
2194
|
-
h.push(
|
|
2204
|
+
h.push(W);
|
|
2195
2205
|
}
|
|
2196
2206
|
}
|
|
2197
2207
|
return { byElement: e, byTime: h };
|
|
2198
2208
|
}
|
|
2199
2209
|
class Qs {
|
|
2200
2210
|
constructor(o) {
|
|
2201
|
-
|
|
2202
|
-
|
|
2211
|
+
p(this, "viewer");
|
|
2212
|
+
p(this, "lines", []);
|
|
2203
2213
|
this.viewer = o;
|
|
2204
2214
|
}
|
|
2205
2215
|
/**
|
|
@@ -2230,17 +2240,17 @@ class Qs {
|
|
|
2230
2240
|
// }
|
|
2231
2241
|
}
|
|
2232
2242
|
var Ps = { exports: {} };
|
|
2233
|
-
(function(
|
|
2243
|
+
(function(a, o) {
|
|
2234
2244
|
(function(e, h) {
|
|
2235
2245
|
h();
|
|
2236
2246
|
})(j, function() {
|
|
2237
2247
|
function e(i, t) {
|
|
2238
2248
|
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(i.type) ? new Blob(["\uFEFF", i], { type: i.type }) : i;
|
|
2239
2249
|
}
|
|
2240
|
-
function h(i, t,
|
|
2250
|
+
function h(i, t, u) {
|
|
2241
2251
|
var l = new XMLHttpRequest();
|
|
2242
2252
|
l.open("GET", i), l.responseType = "blob", l.onload = function() {
|
|
2243
|
-
L(l.response, t,
|
|
2253
|
+
L(l.response, t, u);
|
|
2244
2254
|
}, l.onerror = function() {
|
|
2245
2255
|
console.error("could not download file");
|
|
2246
2256
|
}, l.send();
|
|
@@ -2254,7 +2264,7 @@ var Ps = { exports: {} };
|
|
|
2254
2264
|
}
|
|
2255
2265
|
return 200 <= t.status && 299 >= t.status;
|
|
2256
2266
|
}
|
|
2257
|
-
function
|
|
2267
|
+
function I(i) {
|
|
2258
2268
|
try {
|
|
2259
2269
|
i.dispatchEvent(new MouseEvent("click"));
|
|
2260
2270
|
} catch {
|
|
@@ -2262,40 +2272,40 @@ var Ps = { exports: {} };
|
|
|
2262
2272
|
t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), i.dispatchEvent(t);
|
|
2263
2273
|
}
|
|
2264
2274
|
}
|
|
2265
|
-
var
|
|
2266
|
-
} : "download" in HTMLAnchorElement.prototype && !A ? function(i, t,
|
|
2267
|
-
var l =
|
|
2268
|
-
t = t || i.name || "download", C.download = t, C.rel = "noopener", typeof i == "string" ? (C.href = i, C.origin === location.origin ?
|
|
2275
|
+
var W = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof j == "object" && j.global === j ? j : void 0, A = W.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), L = W.saveAs || (typeof window != "object" || window !== W ? function() {
|
|
2276
|
+
} : "download" in HTMLAnchorElement.prototype && !A ? function(i, t, u) {
|
|
2277
|
+
var l = W.URL || W.webkitURL, C = document.createElement("a");
|
|
2278
|
+
t = t || i.name || "download", C.download = t, C.rel = "noopener", typeof i == "string" ? (C.href = i, C.origin === location.origin ? I(C) : s(C.href) ? h(i, t, u) : I(C, C.target = "_blank")) : (C.href = l.createObjectURL(i), setTimeout(function() {
|
|
2269
2279
|
l.revokeObjectURL(C.href);
|
|
2270
2280
|
}, 4e4), setTimeout(function() {
|
|
2271
|
-
|
|
2281
|
+
I(C);
|
|
2272
2282
|
}, 0));
|
|
2273
|
-
} : "msSaveOrOpenBlob" in navigator ? function(i, t,
|
|
2274
|
-
if (t = t || i.name || "download", typeof i != "string") navigator.msSaveOrOpenBlob(e(i,
|
|
2275
|
-
else if (s(i)) h(i, t,
|
|
2283
|
+
} : "msSaveOrOpenBlob" in navigator ? function(i, t, u) {
|
|
2284
|
+
if (t = t || i.name || "download", typeof i != "string") navigator.msSaveOrOpenBlob(e(i, u), t);
|
|
2285
|
+
else if (s(i)) h(i, t, u);
|
|
2276
2286
|
else {
|
|
2277
2287
|
var l = document.createElement("a");
|
|
2278
2288
|
l.href = i, l.target = "_blank", setTimeout(function() {
|
|
2279
|
-
|
|
2289
|
+
I(l);
|
|
2280
2290
|
});
|
|
2281
2291
|
}
|
|
2282
|
-
} : function(i, t,
|
|
2283
|
-
if (l = l || open("", "_blank"), l && (l.document.title = l.document.body.innerText = "downloading..."), typeof i == "string") return h(i, t,
|
|
2284
|
-
var C = i.type === "application/octet-stream",
|
|
2285
|
-
if ((g || C &&
|
|
2286
|
-
var
|
|
2287
|
-
|
|
2288
|
-
var P =
|
|
2292
|
+
} : function(i, t, u, l) {
|
|
2293
|
+
if (l = l || open("", "_blank"), l && (l.document.title = l.document.body.innerText = "downloading..."), typeof i == "string") return h(i, t, u);
|
|
2294
|
+
var C = i.type === "application/octet-stream", d = /constructor/i.test(W.HTMLElement) || W.safari, g = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
2295
|
+
if ((g || C && d || A) && typeof FileReader < "u") {
|
|
2296
|
+
var m = new FileReader();
|
|
2297
|
+
m.onloadend = function() {
|
|
2298
|
+
var P = m.result;
|
|
2289
2299
|
P = g ? P : P.replace(/^data:[^;]*;/, "data:attachment/file;"), l ? l.location.href = P : location = P, l = null;
|
|
2290
|
-
},
|
|
2300
|
+
}, m.readAsDataURL(i);
|
|
2291
2301
|
} else {
|
|
2292
|
-
var T =
|
|
2302
|
+
var T = W.URL || W.webkitURL, B = T.createObjectURL(i);
|
|
2293
2303
|
l ? l.location = B : location.href = B, l = null, setTimeout(function() {
|
|
2294
2304
|
T.revokeObjectURL(B);
|
|
2295
2305
|
}, 4e4);
|
|
2296
2306
|
}
|
|
2297
2307
|
});
|
|
2298
|
-
|
|
2308
|
+
W.saveAs = L.saveAs = L, a.exports = L;
|
|
2299
2309
|
});
|
|
2300
2310
|
})(Ps);
|
|
2301
2311
|
var hs = Ps.exports;
|
|
@@ -2304,9 +2314,9 @@ class js {
|
|
|
2304
2314
|
// constructor(viewer: Cesium.Viewer, towerNodes: TowerNode[], connections: Connection[], towerFZS: TowerFZInfo) {
|
|
2305
2315
|
constructor(o, e, h) {
|
|
2306
2316
|
// private viewer: Cesium.Viewer;
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2317
|
+
p(this, "towerNodes", []);
|
|
2318
|
+
p(this, "connections", []);
|
|
2319
|
+
p(this, "towerFZS");
|
|
2310
2320
|
this.towerNodes = o, this.connections = e, this.towerFZS = h;
|
|
2311
2321
|
}
|
|
2312
2322
|
// 导出杆塔数据为SHP文件
|
|
@@ -2330,7 +2340,7 @@ class js {
|
|
|
2330
2340
|
this.towerFZS.Altitude
|
|
2331
2341
|
);
|
|
2332
2342
|
for (const s of this.towerNodes) {
|
|
2333
|
-
const
|
|
2343
|
+
const I = new n.Cartesian3(s.x, s.y, s.z), W = this.getPositionByHprAndOffset(h, I, e), A = n.Ellipsoid.WGS84.cartesianToCartographic(W), L = n.Math.toDegrees(A.longitude), i = n.Math.toDegrees(A.latitude), t = A.height, u = {
|
|
2334
2344
|
type: "Feature",
|
|
2335
2345
|
geometry: {
|
|
2336
2346
|
type: "Point",
|
|
@@ -2351,7 +2361,7 @@ class js {
|
|
|
2351
2361
|
type: "tower_node"
|
|
2352
2362
|
}
|
|
2353
2363
|
};
|
|
2354
|
-
o.push(
|
|
2364
|
+
o.push(u);
|
|
2355
2365
|
}
|
|
2356
2366
|
return o;
|
|
2357
2367
|
}
|
|
@@ -2367,16 +2377,16 @@ class js {
|
|
|
2367
2377
|
this.towerFZS.Altitude
|
|
2368
2378
|
);
|
|
2369
2379
|
for (const s of this.connections) {
|
|
2370
|
-
const
|
|
2371
|
-
if (!
|
|
2372
|
-
const A = new n.Cartesian3(
|
|
2380
|
+
const I = this.towerNodes.find((y) => y.id === s.from), W = this.towerNodes.find((y) => y.id === s.to);
|
|
2381
|
+
if (!I || !W) continue;
|
|
2382
|
+
const A = new n.Cartesian3(I.x, I.y, I.z), L = new n.Cartesian3(W.x, W.y, W.z), i = this.getPositionByHprAndOffset(h, A, e), t = this.getPositionByHprAndOffset(h, L, e), u = n.Ellipsoid.WGS84.cartesianToCartographic(i), l = n.Ellipsoid.WGS84.cartesianToCartographic(t), C = n.Math.toDegrees(u.longitude), d = n.Math.toDegrees(u.latitude), g = u.height, m = n.Math.toDegrees(l.longitude), T = n.Math.toDegrees(l.latitude), B = l.height, P = {
|
|
2373
2383
|
type: "Feature",
|
|
2374
2384
|
geometry: {
|
|
2375
2385
|
type: "LineString",
|
|
2376
2386
|
coordinates: [
|
|
2377
|
-
[C,
|
|
2387
|
+
[C, d],
|
|
2378
2388
|
// 起点,二维坐标
|
|
2379
|
-
[
|
|
2389
|
+
[m, T]
|
|
2380
2390
|
// 终点,二维坐标
|
|
2381
2391
|
]
|
|
2382
2392
|
},
|
|
@@ -2394,8 +2404,8 @@ class js {
|
|
|
2394
2404
|
type: "tower_member",
|
|
2395
2405
|
width: this.towerFZS.TowerMembersWidth,
|
|
2396
2406
|
from_longitude: C,
|
|
2397
|
-
from_latitude:
|
|
2398
|
-
to_longitude:
|
|
2407
|
+
from_latitude: d,
|
|
2408
|
+
to_longitude: m,
|
|
2399
2409
|
to_latitude: T
|
|
2400
2410
|
}
|
|
2401
2411
|
};
|
|
@@ -2467,8 +2477,8 @@ class xs {
|
|
|
2467
2477
|
static async exportToCSV(o, e, h) {
|
|
2468
2478
|
const s = this.exportNodesToCSV(o, h);
|
|
2469
2479
|
this.downloadCSV(s, "tower_nodes.csv");
|
|
2470
|
-
const
|
|
2471
|
-
this.downloadCSV(
|
|
2480
|
+
const I = this.exportConnectionsToCSV(e, o, h);
|
|
2481
|
+
this.downloadCSV(I, "tower_connections.csv");
|
|
2472
2482
|
}
|
|
2473
2483
|
static exportNodesToCSV(o, e) {
|
|
2474
2484
|
let h = `ID,X,Y,Z,Longitude,Latitude,Height
|
|
@@ -2477,25 +2487,25 @@ class xs {
|
|
|
2477
2487
|
n.Math.toRadians(e.RollX),
|
|
2478
2488
|
e.RollY,
|
|
2479
2489
|
e.RollZ
|
|
2480
|
-
),
|
|
2490
|
+
), I = n.Cartesian3.fromDegrees(
|
|
2481
2491
|
e.Longitude,
|
|
2482
2492
|
e.Latitude,
|
|
2483
2493
|
e.Altitude
|
|
2484
2494
|
);
|
|
2485
|
-
return o.forEach((
|
|
2486
|
-
const A = new n.Cartesian3(
|
|
2487
|
-
h += `${
|
|
2495
|
+
return o.forEach((W) => {
|
|
2496
|
+
const A = new n.Cartesian3(W.x, W.y, W.z), L = this.getPositionByHprAndOffset(I, A, s), i = n.Ellipsoid.WGS84.cartesianToCartographic(L), t = n.Math.toDegrees(i.longitude), u = n.Math.toDegrees(i.latitude), l = i.height;
|
|
2497
|
+
h += `${W.id},${W.x},${W.y},${W.z},${t},${u},${l}
|
|
2488
2498
|
`;
|
|
2489
2499
|
}), h;
|
|
2490
2500
|
}
|
|
2491
2501
|
static exportConnectionsToCSV(o, e, h) {
|
|
2492
2502
|
let s = `FromNode,ToNode,FromX,FromY,FromZ,ToX,ToY,ToZ,Length
|
|
2493
2503
|
`;
|
|
2494
|
-
const
|
|
2504
|
+
const I = new n.HeadingPitchRoll(
|
|
2495
2505
|
n.Math.toRadians(h.RollX),
|
|
2496
2506
|
h.RollY,
|
|
2497
2507
|
h.RollZ
|
|
2498
|
-
),
|
|
2508
|
+
), W = n.Cartesian3.fromDegrees(
|
|
2499
2509
|
h.Longitude,
|
|
2500
2510
|
h.Latitude,
|
|
2501
2511
|
h.Altitude
|
|
@@ -2503,8 +2513,8 @@ class xs {
|
|
|
2503
2513
|
return o.forEach((A) => {
|
|
2504
2514
|
const L = e.find((g) => g.id === A.from), i = e.find((g) => g.id === A.to);
|
|
2505
2515
|
if (!L || !i) return;
|
|
2506
|
-
const t = new n.Cartesian3(L.x, L.y, L.z),
|
|
2507
|
-
s += `${A.from},${A.to},${L.x},${L.y},${L.z},${i.x},${i.y},${i.z},${
|
|
2516
|
+
const t = new n.Cartesian3(L.x, L.y, L.z), u = new n.Cartesian3(i.x, i.y, i.z), l = this.getPositionByHprAndOffset(W, t, I), C = this.getPositionByHprAndOffset(W, u, I), d = n.Cartesian3.distance(l, C);
|
|
2517
|
+
s += `${A.from},${A.to},${L.x},${L.y},${L.z},${i.x},${i.y},${i.z},${d}
|
|
2508
2518
|
`;
|
|
2509
2519
|
}), s;
|
|
2510
2520
|
}
|
|
@@ -2517,29 +2527,29 @@ class xs {
|
|
|
2517
2527
|
return n.Matrix4.multiplyByPoint(s, e, new n.Cartesian3());
|
|
2518
2528
|
}
|
|
2519
2529
|
}
|
|
2520
|
-
class
|
|
2530
|
+
class at {
|
|
2521
2531
|
constructor(o, e, h) {
|
|
2522
2532
|
//三维场景
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2533
|
+
p(this, "viewer");
|
|
2534
|
+
p(this, "TowerFZS");
|
|
2535
|
+
p(this, "Keym", "");
|
|
2526
2536
|
// 模型模型集合
|
|
2527
|
-
|
|
2528
|
-
|
|
2537
|
+
p(this, "dataSource2");
|
|
2538
|
+
p(this, "entityCollection2");
|
|
2529
2539
|
// 创建一个数组来存储所有点实体
|
|
2530
|
-
|
|
2540
|
+
p(this, "pointEntities", []);
|
|
2531
2541
|
//杆件管理对象
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2542
|
+
p(this, "TowerLineManager");
|
|
2543
|
+
p(this, "TowerNodes", []);
|
|
2544
|
+
p(this, "connections", []);
|
|
2545
|
+
p(this, "displacementData", []);
|
|
2536
2546
|
// 在类属性中添加(浏览器环境)
|
|
2537
2547
|
// private _animationInterval: number | null = null;
|
|
2538
2548
|
// 该字段已废弃,后续如需按单元查询应力比可启用
|
|
2539
2549
|
// private byElemens: ElementStressData[] = [];
|
|
2540
|
-
|
|
2550
|
+
p(this, "byTimes", []);
|
|
2541
2551
|
// 或者如果是Node.js环境:
|
|
2542
|
-
|
|
2552
|
+
p(this, "_animationInterval", null);
|
|
2543
2553
|
this.Keym = h, this.viewer = o, this.TowerFZS = e, this.dataSource2 = new n.CustomDataSource(this.TowerFZS.id), this.entityCollection2 = this.dataSource2.entities, this.TowerLineManager = new Qs(this.viewer);
|
|
2544
2554
|
}
|
|
2545
2555
|
// 类的构造函数,用于初始化属性
|
|
@@ -2563,11 +2573,11 @@ class Wt {
|
|
|
2563
2573
|
let o = new n.HeadingPitchRoll(n.Math.toRadians(this.TowerFZS.RollX), this.TowerFZS.RollY, this.TowerFZS.RollZ);
|
|
2564
2574
|
const e = n.Cartesian3.fromDegrees(this.TowerFZS.Longitude, this.TowerFZS.Latitude, this.TowerFZS.Altitude);
|
|
2565
2575
|
this.connections.forEach((h) => {
|
|
2566
|
-
const s = this.TowerNodes.find((
|
|
2567
|
-
|
|
2576
|
+
const s = this.TowerNodes.find((u) => u.id === h.from), I = this.TowerNodes.find((u) => u.id === h.to), W = [], A = new n.Cartesian3(s == null ? void 0 : s.x, s == null ? void 0 : s.y, s == null ? void 0 : s.z);
|
|
2577
|
+
W.push(w(e, A, o));
|
|
2568
2578
|
const L = x(
|
|
2569
2579
|
this.viewer,
|
|
2570
|
-
|
|
2580
|
+
W[0],
|
|
2571
2581
|
(s == null ? void 0 : s.id) + "",
|
|
2572
2582
|
{
|
|
2573
2583
|
pointColor: n.Color.RED,
|
|
@@ -2577,11 +2587,11 @@ class Wt {
|
|
|
2577
2587
|
}
|
|
2578
2588
|
);
|
|
2579
2589
|
this.pointEntities.push(L);
|
|
2580
|
-
const i = new n.Cartesian3(
|
|
2581
|
-
|
|
2590
|
+
const i = new n.Cartesian3(I == null ? void 0 : I.x, I == null ? void 0 : I.y, I == null ? void 0 : I.z);
|
|
2591
|
+
W.push(w(e, i, o));
|
|
2582
2592
|
const t = x(
|
|
2583
2593
|
this.viewer,
|
|
2584
|
-
|
|
2594
|
+
W[1],
|
|
2585
2595
|
(s == null ? void 0 : s.id) + "",
|
|
2586
2596
|
{
|
|
2587
2597
|
pointColor: n.Color.RED,
|
|
@@ -2590,7 +2600,7 @@ class Wt {
|
|
|
2590
2600
|
pixelOffset: [0, -30]
|
|
2591
2601
|
}
|
|
2592
2602
|
);
|
|
2593
|
-
this.pointEntities.push(t), this.TowerLineManager.addLine(
|
|
2603
|
+
this.pointEntities.push(t), this.TowerLineManager.addLine(W);
|
|
2594
2604
|
}), this.initSHPExporter();
|
|
2595
2605
|
}
|
|
2596
2606
|
// 使用修复后的SHP导出器
|
|
@@ -2622,24 +2632,24 @@ class Wt {
|
|
|
2622
2632
|
console.warn(`未找到时间步 ${o} 的位移数据`);
|
|
2623
2633
|
return;
|
|
2624
2634
|
}
|
|
2625
|
-
const
|
|
2635
|
+
const I = new n.HeadingPitchRoll(
|
|
2626
2636
|
n.Math.toRadians(this.TowerFZS.RollX),
|
|
2627
2637
|
this.TowerFZS.RollY,
|
|
2628
2638
|
this.TowerFZS.RollZ
|
|
2629
|
-
),
|
|
2639
|
+
), W = n.Cartesian3.fromDegrees(
|
|
2630
2640
|
this.TowerFZS.Longitude,
|
|
2631
2641
|
this.TowerFZS.Latitude,
|
|
2632
2642
|
this.TowerFZS.Altitude
|
|
2633
2643
|
);
|
|
2634
2644
|
this.connections.forEach((A) => {
|
|
2635
|
-
const L = this.TowerNodes.find((
|
|
2645
|
+
const L = this.TowerNodes.find((b) => b.id === A.from), i = this.TowerNodes.find((b) => b.id === A.to);
|
|
2636
2646
|
if (!L || !i) {
|
|
2637
2647
|
console.warn(`找不到连接 ${A.from}->${A.to} 的节点`);
|
|
2638
2648
|
return;
|
|
2639
2649
|
}
|
|
2640
2650
|
debugger;
|
|
2641
|
-
const t = h.find((
|
|
2642
|
-
if (!t || !
|
|
2651
|
+
const t = h.find((b) => b.nodeId === A.from), u = h.find((b) => b.nodeId === A.to);
|
|
2652
|
+
if (!t || !u) {
|
|
2643
2653
|
console.warn(`找不到连接 ${A.from}->${A.to} 的位移数据`);
|
|
2644
2654
|
return;
|
|
2645
2655
|
}
|
|
@@ -2648,12 +2658,12 @@ class Wt {
|
|
|
2648
2658
|
L.y - t.y,
|
|
2649
2659
|
L.z - t.z
|
|
2650
2660
|
), C = new n.Cartesian3(
|
|
2651
|
-
i.x -
|
|
2652
|
-
i.y -
|
|
2653
|
-
i.z -
|
|
2654
|
-
),
|
|
2661
|
+
i.x - u.x,
|
|
2662
|
+
i.y - u.y,
|
|
2663
|
+
i.z - u.z
|
|
2664
|
+
), d = w(W, l, I), g = x(
|
|
2655
2665
|
this.viewer,
|
|
2656
|
-
|
|
2666
|
+
d,
|
|
2657
2667
|
A.from + "",
|
|
2658
2668
|
{
|
|
2659
2669
|
pointColor: n.Color.RED,
|
|
@@ -2663,9 +2673,9 @@ class Wt {
|
|
|
2663
2673
|
}
|
|
2664
2674
|
);
|
|
2665
2675
|
this.pointEntities.push(g);
|
|
2666
|
-
const
|
|
2676
|
+
const m = w(W, C, I), T = x(
|
|
2667
2677
|
this.viewer,
|
|
2668
|
-
|
|
2678
|
+
m,
|
|
2669
2679
|
A.to + "",
|
|
2670
2680
|
{
|
|
2671
2681
|
pointColor: n.Color.RED,
|
|
@@ -2675,7 +2685,7 @@ class Wt {
|
|
|
2675
2685
|
}
|
|
2676
2686
|
);
|
|
2677
2687
|
this.pointEntities.push(T);
|
|
2678
|
-
const B = [
|
|
2688
|
+
const B = [d, m], P = A.from + "-" + A.to, y = s == null ? void 0 : s.elements.find((b) => b.elementId === P);
|
|
2679
2689
|
debugger;
|
|
2680
2690
|
this.TowerLineManager.addLine(B, {
|
|
2681
2691
|
color: y == null ? void 0 : y.ylbColor,
|
|
@@ -2694,13 +2704,13 @@ class Wt {
|
|
|
2694
2704
|
const e = cs(this.displacementData);
|
|
2695
2705
|
let h = new n.HeadingPitchRoll(n.Math.toRadians(this.TowerFZS.RollX), this.TowerFZS.RollY, this.TowerFZS.RollZ);
|
|
2696
2706
|
const s = n.Cartesian3.fromDegrees(this.TowerFZS.Longitude, this.TowerFZS.Latitude, this.TowerFZS.Altitude);
|
|
2697
|
-
this.connections.forEach((
|
|
2698
|
-
const
|
|
2699
|
-
t.push(
|
|
2707
|
+
this.connections.forEach((I) => {
|
|
2708
|
+
const W = this.TowerNodes.find((C) => C.id === I.from), A = e[o].find((C) => C.nodeId === I.from), L = this.TowerNodes.find((C) => C.id === I.to), i = e[o].find((C) => C.nodeId === I.to), t = [], u = new n.Cartesian3(W.x - A.x, W.y - A.y, W.z - A.z);
|
|
2709
|
+
t.push(w(s, u, h));
|
|
2700
2710
|
const l = new n.Cartesian3(L.x - i.x, L.y - i.y, L.z - i.z);
|
|
2701
|
-
t.push(
|
|
2711
|
+
t.push(w(s, l, h));
|
|
2702
2712
|
debugger;
|
|
2703
|
-
this.entityCollection2.add(r(t,
|
|
2713
|
+
this.entityCollection2.add(r(t, I.from + "" + I.to, this.TowerFZS.TowerMembersWidth, this.TowerFZS.TowerMemberColor));
|
|
2704
2714
|
});
|
|
2705
2715
|
}
|
|
2706
2716
|
/**
|
|
@@ -2758,7 +2768,7 @@ export {
|
|
|
2758
2768
|
Qs as LineManager,
|
|
2759
2769
|
ts as LineNum,
|
|
2760
2770
|
Js as LineType,
|
|
2761
|
-
|
|
2771
|
+
at as OWEEgineFZManager,
|
|
2762
2772
|
ht as OWEEgineManager,
|
|
2763
2773
|
H as PhaseSType,
|
|
2764
2774
|
nt as TowerFZInfo,
|