ow-eengine-power 2.8.6 → 2.8.8
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
CHANGED
|
@@ -1386,8 +1386,6 @@ class us {
|
|
|
1386
1386
|
// 是否启用动态加载(默认启用以解决800km卡顿问题)
|
|
1387
1387
|
w(this, "isLineModelRemoved", !1);
|
|
1388
1388
|
// 线路模型是否被移除
|
|
1389
|
-
w(this, "cameraMoveHandler", null);
|
|
1390
|
-
// 相机移动监听器
|
|
1391
1389
|
// 回路1单根导线1
|
|
1392
1390
|
w(this, "offsetWires11", []);
|
|
1393
1391
|
// 回路1单根导线2
|
|
@@ -1539,14 +1537,6 @@ class us {
|
|
|
1539
1537
|
getDynamicLoadingEnabled() {
|
|
1540
1538
|
return this.isDynamicLoadingEnabled;
|
|
1541
1539
|
}
|
|
1542
|
-
/**
|
|
1543
|
-
* 设置相机移动监听器,用于动态加载/卸载杆塔和绝缘子
|
|
1544
|
-
*/
|
|
1545
|
-
setupCameraMoveListener() {
|
|
1546
|
-
this.cameraMoveHandler && this.cameraMoveHandler(), this.cameraMoveHandler = this.viewer.camera.moveEnd.addEventListener(() => {
|
|
1547
|
-
this.updateVisibleTowers();
|
|
1548
|
-
});
|
|
1549
|
-
}
|
|
1550
1540
|
/**
|
|
1551
1541
|
* 计算相机视野范围内的塔索引
|
|
1552
1542
|
*/
|
|
@@ -1747,7 +1737,7 @@ class us {
|
|
|
1747
1737
|
* 恢复线路模型
|
|
1748
1738
|
*/
|
|
1749
1739
|
restoreLineModels() {
|
|
1750
|
-
this.isLineModelRemoved = !1, this.isDynamicLoadingEnabled ?
|
|
1740
|
+
this.isLineModelRemoved = !1, this.isDynamicLoadingEnabled ? this.updateVisibleTowers() : this.loadAllTowersAtOnce();
|
|
1751
1741
|
}
|
|
1752
1742
|
/**
|
|
1753
1743
|
* 一次性加载所有塔和导线(静态加载模式)
|
|
@@ -2767,8 +2757,6 @@ class us {
|
|
|
2767
2757
|
* @returns 解析结果包含回路号、相序、起始塔索引、结束塔索引
|
|
2768
2758
|
*/
|
|
2769
2759
|
parseWireEntityName(t) {
|
|
2770
|
-
if (t == "导线1_A111-12")
|
|
2771
|
-
debugger;
|
|
2772
2760
|
const s = t.match(/^导线(\d+)_([ABC])\d*(\d+)-(\d+)$/);
|
|
2773
2761
|
return s ? {
|
|
2774
2762
|
circuit: parseInt(s[1]),
|
|
@@ -2920,7 +2908,7 @@ class us {
|
|
|
2920
2908
|
* 加载线路杆塔
|
|
2921
2909
|
*/
|
|
2922
2910
|
loadLineTower() {
|
|
2923
|
-
this.initializeLineData(), this.isDynamicLoadingEnabled ? (this.loadAllWiresOnly(), this.
|
|
2911
|
+
this.initializeLineData(), this.isDynamicLoadingEnabled ? (this.loadAllWiresOnly(), this.updateVisibleTowers()) : this.loadAllTowersAtOnce();
|
|
2924
2912
|
}
|
|
2925
2913
|
/**
|
|
2926
2914
|
* 适配lod加载导线数据
|
|
@@ -3095,8 +3083,8 @@ const St = class St {
|
|
|
3095
3083
|
e,
|
|
3096
3084
|
0,
|
|
3097
3085
|
// 最小显示距离
|
|
3098
|
-
|
|
3099
|
-
// 最大显示距离(
|
|
3086
|
+
800
|
|
3087
|
+
// 最大显示距离(800m)
|
|
3100
3088
|
);
|
|
3101
3089
|
this.entityCollectiontree.add(
|
|
3102
3090
|
le(
|
|
@@ -5524,6 +5512,7 @@ class Qs {
|
|
|
5524
5512
|
w(this, "selectedWire1Data", []);
|
|
5525
5513
|
w(this, "selectedWire1Phase", N.A相);
|
|
5526
5514
|
w(this, "originalWire1Color", null);
|
|
5515
|
+
w(this, "cameraMoveHandler", null);
|
|
5527
5516
|
this.viewer = t, this.LineInfo = s, this.lineConstruction = new us(t, s, r), this.terrainConstruction = new Ut(t, s, r), this.channelCalculation = new Ws(t), this.contourConstruction = new Fs(t), this.enableWireMeasurement = this.enableWireMeasurement.bind(this), this.removeWireListen = this.removeWireListen.bind(this);
|
|
5528
5517
|
}
|
|
5529
5518
|
/**
|
|
@@ -6248,6 +6237,15 @@ class Qs {
|
|
|
6248
6237
|
}
|
|
6249
6238
|
}
|
|
6250
6239
|
}
|
|
6240
|
+
// 相机移动监听器
|
|
6241
|
+
/**
|
|
6242
|
+
* 设置相机移动监听器,用于动态加载/卸载杆塔和绝缘子
|
|
6243
|
+
*/
|
|
6244
|
+
setupCameraMoveListener() {
|
|
6245
|
+
this.cameraMoveHandler && this.cameraMoveHandler(), this.cameraMoveHandler = this.viewer.camera.moveEnd.addEventListener(() => {
|
|
6246
|
+
this.lineConstruction.isDynamicLoadingEnabled && this.lineConstruction.updateVisibleTowers(), this.terrainConstruction.isDynamicLoadingEnabled && this.terrainConstruction.updateVisibleTrees();
|
|
6247
|
+
});
|
|
6248
|
+
}
|
|
6251
6249
|
}
|
|
6252
6250
|
class js {
|
|
6253
6251
|
constructor() {
|