ow-eengine-power 2.8.7 → 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
|
* 一次性加载所有塔和导线(静态加载模式)
|
|
@@ -2918,7 +2908,7 @@ class us {
|
|
|
2918
2908
|
* 加载线路杆塔
|
|
2919
2909
|
*/
|
|
2920
2910
|
loadLineTower() {
|
|
2921
|
-
this.initializeLineData(), this.isDynamicLoadingEnabled ? (this.loadAllWiresOnly(), this.
|
|
2911
|
+
this.initializeLineData(), this.isDynamicLoadingEnabled ? (this.loadAllWiresOnly(), this.updateVisibleTowers()) : this.loadAllTowersAtOnce();
|
|
2922
2912
|
}
|
|
2923
2913
|
/**
|
|
2924
2914
|
* 适配lod加载导线数据
|
|
@@ -3093,8 +3083,8 @@ const St = class St {
|
|
|
3093
3083
|
e,
|
|
3094
3084
|
0,
|
|
3095
3085
|
// 最小显示距离
|
|
3096
|
-
|
|
3097
|
-
// 最大显示距离(
|
|
3086
|
+
800
|
|
3087
|
+
// 最大显示距离(800m)
|
|
3098
3088
|
);
|
|
3099
3089
|
this.entityCollectiontree.add(
|
|
3100
3090
|
le(
|
|
@@ -5522,6 +5512,7 @@ class Qs {
|
|
|
5522
5512
|
w(this, "selectedWire1Data", []);
|
|
5523
5513
|
w(this, "selectedWire1Phase", N.A相);
|
|
5524
5514
|
w(this, "originalWire1Color", null);
|
|
5515
|
+
w(this, "cameraMoveHandler", null);
|
|
5525
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);
|
|
5526
5517
|
}
|
|
5527
5518
|
/**
|
|
@@ -6246,6 +6237,15 @@ class Qs {
|
|
|
6246
6237
|
}
|
|
6247
6238
|
}
|
|
6248
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
|
+
}
|
|
6249
6249
|
}
|
|
6250
6250
|
class js {
|
|
6251
6251
|
constructor() {
|