ow-eengine-power 2.6.9 → 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.
@@ -17075,38 +17075,38 @@ class Vu {
17075
17075
  * @param distance 距离(米)
17076
17076
  * @param distanceType 测量类型
17077
17077
  */
17078
- drawWireToGroundDistanceByType(t, e, r, i, n = ye.树木) {
17079
- var p, d;
17080
- const o = [
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 f = "#eff819", u = g.Color.RED;
17085
- const l = this.distanceRuleConfig;
17086
- let a, c = !1;
17087
- if ((i === ht.净空距离 || i === ht.全部测量) && (a = (d = (p = l.typeRules.get(n)) == null ? void 0 : p.clearanceLevels) == null ? void 0 : d.find(
17088
- (h) => r >= h.minDistance && r <= h.maxDistance
17089
- )), a ? (f = a.color, u = g.Color.fromCssColorString(a.color)) : (c = !0, f = "#00ff00", u = g.Color.GREEN), a || c) {
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: o,
17092
+ positions: n,
17093
17093
  width: 2,
17094
- material: u,
17094
+ material: f,
17095
17095
  clampToGround: !1,
17096
17096
  shadows: g.ShadowMode.DISABLED
17097
17097
  }
17098
17098
  });
17099
- const h = g.Cartesian3.midpoint(
17100
- o[0],
17101
- o[1],
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: h,
17105
+ position: d,
17106
17106
  name: "净空距离",
17107
17107
  label: {
17108
17108
  text: this.getDistanceTypeLabel(i, r),
17109
- fillColor: g.Color.fromCssColorString(f),
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),