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