ow-eengine-power 2.6.8 → 2.7.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
CHANGED
|
@@ -17075,38 +17075,38 @@ class Vu {
|
|
|
17075
17075
|
* @param distance 距离(米)
|
|
17076
17076
|
* @param distanceType 测量类型
|
|
17077
17077
|
*/
|
|
17078
|
-
drawWireToGroundDistanceByType(t, e, r, i
|
|
17079
|
-
var
|
|
17080
|
-
const
|
|
17078
|
+
drawWireToGroundDistanceByType(t, e, r, i) {
|
|
17079
|
+
var c, p;
|
|
17080
|
+
const n = [
|
|
17081
17081
|
g.Cartesian3.fromDegrees(t[0], t[1], t[2]),
|
|
17082
17082
|
g.Cartesian3.fromDegrees(e[0], e[1], e[2])
|
|
17083
17083
|
];
|
|
17084
|
-
let
|
|
17085
|
-
const
|
|
17086
|
-
let
|
|
17087
|
-
if (i === ht.净空距离 && (
|
|
17088
|
-
(
|
|
17089
|
-
)),
|
|
17084
|
+
let o = "#eff819", f = g.Color.RED;
|
|
17085
|
+
const u = this.distanceRuleConfig;
|
|
17086
|
+
let l, a = !1;
|
|
17087
|
+
if ((i === ht.净空距离 || i === ht.全部测量) && (l = (p = (c = u.typeRules.get(ye.导线)) == null ? void 0 : c.clearanceLevels) == null ? void 0 : p.find(
|
|
17088
|
+
(d) => r >= d.minDistance && r <= d.maxDistance
|
|
17089
|
+
)), l ? (o = l.color, f = g.Color.fromCssColorString(l.color)) : (a = !0, o = "#00ff00", f = g.Color.GREEN), l || a) {
|
|
17090
17090
|
this.entityCollectionplotting.add({
|
|
17091
17091
|
polyline: {
|
|
17092
|
-
positions:
|
|
17092
|
+
positions: n,
|
|
17093
17093
|
width: 2,
|
|
17094
|
-
material:
|
|
17094
|
+
material: f,
|
|
17095
17095
|
clampToGround: !1,
|
|
17096
17096
|
shadows: g.ShadowMode.DISABLED
|
|
17097
17097
|
}
|
|
17098
17098
|
});
|
|
17099
|
-
const
|
|
17100
|
-
|
|
17101
|
-
|
|
17099
|
+
const d = g.Cartesian3.midpoint(
|
|
17100
|
+
n[0],
|
|
17101
|
+
n[1],
|
|
17102
17102
|
new g.Cartesian3()
|
|
17103
17103
|
);
|
|
17104
17104
|
this.entityCollectionplotting.add({
|
|
17105
|
-
position:
|
|
17105
|
+
position: d,
|
|
17106
17106
|
name: "净空距离",
|
|
17107
17107
|
label: {
|
|
17108
17108
|
text: this.getDistanceTypeLabel(i, r),
|
|
17109
|
-
fillColor: g.Color.fromCssColorString(
|
|
17109
|
+
fillColor: g.Color.fromCssColorString(o),
|
|
17110
17110
|
font: "12px sans-serif",
|
|
17111
17111
|
pixelOffset: new g.Cartesian2(0, 0),
|
|
17112
17112
|
scaleByDistance: new g.NearFarScalar(1e3, 1.5, 2e3, 1),
|