earthsdk3 3.2.0-beta.4 → 3.2.0-beta.6

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/earthsdk3.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Xd = Object.defineProperty;
2
2
  var Yd = (n, e, t) => e in n ? Xd(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var f = (n, e, t) => Yd(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { Destroyable as ae, Event as V, reactJson as Ue, getReactFuncs as wo, react as Q, setExtProp as nu, createGuid as lh, getExtProp as ta, ObservableSet as Hd, ReactiveVariable as Ju, createAnimateFrame as uh, reactArrayWithUndefined as Mt, extendClassProps as U, ObjResettingWithEvent as ur, reactDeepArrayWithUndefined as ch, min as Dc, objsIterator as Yo, max as Oc, Vector as jl, reactJsonWithUndefined as et, TreeItem as fp, bind as ce, every as Jd, createTimeoutWithStartValues as Zd, Tree as tu, createProcessingFromAsyncFunc as hh, CancelError as Kd, ObservableArray as pp, Player as Qd, createNextAnimateFrameEvent as ir, SceneObjectWithId as $d, clamp as dp, pluckProperty as Gh, reactDeepArray as eg, reactPositions as fh, reactArray as me, nextAnimateFrame as tg, sleep as gp, reactArrayCollectionWithUndefined as rg, reactPositionsSet as ng, track as z, length as ig, DomElementEvent as gs, PointerClick as sg, PointerHover as og, getDomEventCurrentTargetPos as ms } from "xbsj-base";
4
+ import { Destroyable as ae, Event as V, reactJson as Ue, getReactFuncs as wo, react as Q, setExtProp as nu, createGuid as lh, getExtProp as ta, ObservableSet as Hd, ReactiveVariable as Ju, createAnimateFrame as uh, reactArrayWithUndefined as Mt, extendClassProps as U, ObjResettingWithEvent as ur, reactDeepArrayWithUndefined as ch, min as Dc, objsIterator as Yo, max as Oc, Vector as jl, reactJsonWithUndefined as et, TreeItem as fp, bind as ce, every as Jd, createTimeoutWithStartValues as Zd, Tree as tu, createProcessingFromAsyncFunc as hh, CancelError as Kd, ObservableArray as pp, Player as Qd, createNextAnimateFrameEvent as ir, SceneObjectWithId as $d, clamp as dp, pluckProperty as Gh, reactDeepArray as eg, reactPositions as fh, reactArray as ge, nextAnimateFrame as tg, sleep as gp, reactArrayCollectionWithUndefined as rg, reactPositionsSet as ng, track as z, length as ig, DomElementEvent as gs, PointerClick as sg, PointerHover as og, getDomEventCurrentTargetPos as ms } from "xbsj-base";
5
5
  import * as Mc from "@turf/turf";
6
6
  import mp from "proj4";
7
7
  class ag extends ae {
@@ -944,7 +944,7 @@ class wg extends ae {
944
944
  * @returns 符合条件的场景对象实例数组或单个实例,如果未找到则返回 undefined
945
945
  */
946
946
  getSceneObject(t) {
947
- if (!t) return Array.from(this._sceneObjs.values());
947
+ if (!t && t != "") return Array.from(this._sceneObjs.values());
948
948
  if (t.startsWith("ES")) {
949
949
  const r = [];
950
950
  for (const i of this._sceneObjs.values())
@@ -14489,7 +14489,7 @@ An.prototype.build = function(e) {
14489
14489
  };
14490
14490
  An.prototype.collectLineEdge = function(e, t, r) {
14491
14491
  var i = e.getLabel(), s = e.getEdge();
14492
- e.isLineEdge() && !e.isVisited() && ge.isResultOfOp(i, t) && !s.isCovered() && (r.add(s), e.setVisitedEdge(!0));
14492
+ e.isLineEdge() && !e.isVisited() && me.isResultOfOp(i, t) && !s.isCovered() && (r.add(s), e.setVisitedEdge(!0));
14493
14493
  };
14494
14494
  An.prototype.findCoveredLineEdges = function() {
14495
14495
  for (var e = this, t = this._op.getGraph().getNodes().iterator(); t.hasNext(); ) {
@@ -14520,7 +14520,7 @@ An.prototype.collectBoundaryTouchEdge = function(e, t, r) {
14520
14520
  var i = e.getLabel();
14521
14521
  if (e.isLineEdge() || e.isVisited() || e.isInteriorAreaEdge() || e.getEdge().isInResult())
14522
14522
  return null;
14523
- ve.isTrue(!(e.isInResult() || e.getSym().isInResult()) || !e.getEdge().isInResult()), ge.isResultOfOp(i, t) && t === ge.INTERSECTION && (r.add(e.getEdge()), e.setVisitedEdge(!0));
14523
+ ve.isTrue(!(e.isInResult() || e.getSym().isInResult()) || !e.getEdge().isInResult()), me.isResultOfOp(i, t) && t === me.INTERSECTION && (r.add(e.getEdge()), e.setVisitedEdge(!0));
14524
14524
  };
14525
14525
  An.prototype.interfaces_ = function() {
14526
14526
  return [];
@@ -14543,9 +14543,9 @@ Ro.prototype.filterCoveredNodeToPoint = function(e) {
14543
14543
  Ro.prototype.extractNonCoveredResultNodes = function(e) {
14544
14544
  for (var t = this, r = this._op.getGraph().getNodes().iterator(); r.hasNext(); ) {
14545
14545
  var i = r.next();
14546
- if (!i.isInResult() && !i.isIncidentEdgeInResult() && (i.getEdges().getDegree() === 0 || e === ge.INTERSECTION)) {
14546
+ if (!i.isInResult() && !i.isIncidentEdgeInResult() && (i.getEdges().getDegree() === 0 || e === me.INTERSECTION)) {
14547
14547
  var s = i.getLabel();
14548
- ge.isResultOfOp(s, e) && t.filterCoveredNodeToPoint(i);
14548
+ me.isResultOfOp(s, e) && t.filterCoveredNodeToPoint(i);
14549
14549
  }
14550
14550
  }
14551
14551
  };
@@ -14927,7 +14927,7 @@ Et.prototype.prepareResult = function(e) {
14927
14927
  return this._cbr.addCommonBits(e), e;
14928
14928
  };
14929
14929
  Et.prototype.getResultGeometry = function(e) {
14930
- var t = this.snap(this._geom), r = ge.overlayOp(t[0], t[1], e);
14930
+ var t = this.snap(this._geom), r = me.overlayOp(t[0], t[1], e);
14931
14931
  return this.prepareResult(r);
14932
14932
  };
14933
14933
  Et.prototype.checkValid = function(e) {
@@ -14951,16 +14951,16 @@ Et.overlayOp = function(e, t, r) {
14951
14951
  return i.getResultGeometry(r);
14952
14952
  };
14953
14953
  Et.union = function(e, t) {
14954
- return Et.overlayOp(e, t, ge.UNION);
14954
+ return Et.overlayOp(e, t, me.UNION);
14955
14955
  };
14956
14956
  Et.intersection = function(e, t) {
14957
- return Et.overlayOp(e, t, ge.INTERSECTION);
14957
+ return Et.overlayOp(e, t, me.INTERSECTION);
14958
14958
  };
14959
14959
  Et.symDifference = function(e, t) {
14960
- return Et.overlayOp(e, t, ge.SYMDIFFERENCE);
14960
+ return Et.overlayOp(e, t, me.SYMDIFFERENCE);
14961
14961
  };
14962
14962
  Et.difference = function(e, t) {
14963
- return Et.overlayOp(e, t, ge.DIFFERENCE);
14963
+ return Et.overlayOp(e, t, me.DIFFERENCE);
14964
14964
  };
14965
14965
  var Yt = function(e, t) {
14966
14966
  this._geom = new Array(2).fill(null), this._geom[0] = e, this._geom[1] = t;
@@ -14968,7 +14968,7 @@ var Yt = function(e, t) {
14968
14968
  Yt.prototype.getResultGeometry = function(e) {
14969
14969
  var t = null, r = !1, i = null;
14970
14970
  try {
14971
- t = ge.overlayOp(this._geom[0], this._geom[1], e);
14971
+ t = me.overlayOp(this._geom[0], this._geom[1], e);
14972
14972
  var s = !0;
14973
14973
  s && (r = !0);
14974
14974
  } catch (o) {
@@ -14998,16 +14998,16 @@ Yt.overlayOp = function(e, t, r) {
14998
14998
  return i.getResultGeometry(r);
14999
14999
  };
15000
15000
  Yt.union = function(e, t) {
15001
- return Yt.overlayOp(e, t, ge.UNION);
15001
+ return Yt.overlayOp(e, t, me.UNION);
15002
15002
  };
15003
15003
  Yt.intersection = function(e, t) {
15004
- return Yt.overlayOp(e, t, ge.INTERSECTION);
15004
+ return Yt.overlayOp(e, t, me.INTERSECTION);
15005
15005
  };
15006
15006
  Yt.symDifference = function(e, t) {
15007
- return Yt.overlayOp(e, t, ge.SYMDIFFERENCE);
15007
+ return Yt.overlayOp(e, t, me.SYMDIFFERENCE);
15008
15008
  };
15009
15009
  Yt.difference = function(e, t) {
15010
- return Yt.overlayOp(e, t, ge.DIFFERENCE);
15010
+ return Yt.overlayOp(e, t, me.DIFFERENCE);
15011
15011
  };
15012
15012
  var gu = function() {
15013
15013
  this.mce = null, this.chainIndex = null;
@@ -15602,7 +15602,7 @@ Os.map = function() {
15602
15602
  };
15603
15603
  Os.MapOp = function() {
15604
15604
  };
15605
- var ge = function(n) {
15605
+ var me = function(n) {
15606
15606
  function e() {
15607
15607
  var t = arguments[0], r = arguments[1];
15608
15608
  n.call(this, t, r), this._ptLocator = new fn(), this._geomFact = null, this._resultGeom = null, this._graph = null, this._edgeList = new hn(), this._resultPolyList = new G(), this._resultLineList = new G(), this._resultPointList = new G(), this._graph = new Qe(new Hp()), this._geomFact = t.getFactory();
@@ -15709,13 +15709,13 @@ var ge = function(n) {
15709
15709
  return e;
15710
15710
  }, e;
15711
15711
  }(Ea);
15712
- ge.overlayOp = function(n, e, t) {
15713
- var r = new ge(n, e), i = r.getResultGeometry(t);
15712
+ me.overlayOp = function(n, e, t) {
15713
+ var r = new me(n, e), i = r.getResultGeometry(t);
15714
15714
  return i;
15715
15715
  };
15716
- ge.intersection = function(n, e) {
15716
+ me.intersection = function(n, e) {
15717
15717
  if (n.isEmpty() || e.isEmpty())
15718
- return ge.createEmptyResult(ge.INTERSECTION, n, e, n.getFactory());
15718
+ return me.createEmptyResult(me.INTERSECTION, n, e, n.getFactory());
15719
15719
  if (n.isGeometryCollection()) {
15720
15720
  var t = e;
15721
15721
  return Lo.map(n, {
@@ -15727,40 +15727,40 @@ ge.intersection = function(n, e) {
15727
15727
  }
15728
15728
  });
15729
15729
  }
15730
- return n.checkNotGeometryCollection(n), n.checkNotGeometryCollection(e), Yt.overlayOp(n, e, ge.INTERSECTION);
15730
+ return n.checkNotGeometryCollection(n), n.checkNotGeometryCollection(e), Yt.overlayOp(n, e, me.INTERSECTION);
15731
15731
  };
15732
- ge.symDifference = function(n, e) {
15732
+ me.symDifference = function(n, e) {
15733
15733
  if (n.isEmpty() || e.isEmpty()) {
15734
15734
  if (n.isEmpty() && e.isEmpty())
15735
- return ge.createEmptyResult(ge.SYMDIFFERENCE, n, e, n.getFactory());
15735
+ return me.createEmptyResult(me.SYMDIFFERENCE, n, e, n.getFactory());
15736
15736
  if (n.isEmpty())
15737
15737
  return e.copy();
15738
15738
  if (e.isEmpty())
15739
15739
  return n.copy();
15740
15740
  }
15741
- return n.checkNotGeometryCollection(n), n.checkNotGeometryCollection(e), Yt.overlayOp(n, e, ge.SYMDIFFERENCE);
15741
+ return n.checkNotGeometryCollection(n), n.checkNotGeometryCollection(e), Yt.overlayOp(n, e, me.SYMDIFFERENCE);
15742
15742
  };
15743
- ge.resultDimension = function(n, e, t) {
15743
+ me.resultDimension = function(n, e, t) {
15744
15744
  var r = e.getDimension(), i = t.getDimension(), s = -1;
15745
15745
  switch (n) {
15746
- case ge.INTERSECTION:
15746
+ case me.INTERSECTION:
15747
15747
  s = Math.min(r, i);
15748
15748
  break;
15749
- case ge.UNION:
15749
+ case me.UNION:
15750
15750
  s = Math.max(r, i);
15751
15751
  break;
15752
- case ge.DIFFERENCE:
15752
+ case me.DIFFERENCE:
15753
15753
  s = r;
15754
15754
  break;
15755
- case ge.SYMDIFFERENCE:
15755
+ case me.SYMDIFFERENCE:
15756
15756
  s = Math.max(r, i);
15757
15757
  break;
15758
15758
  }
15759
15759
  return s;
15760
15760
  };
15761
- ge.createEmptyResult = function(n, e, t, r) {
15761
+ me.createEmptyResult = function(n, e, t, r) {
15762
15762
  var i = null;
15763
- switch (ge.resultDimension(n, e, t)) {
15763
+ switch (me.resultDimension(n, e, t)) {
15764
15764
  case -1:
15765
15765
  i = r.createGeometryCollection(new Array(0).fill(null));
15766
15766
  break;
@@ -15776,32 +15776,32 @@ ge.createEmptyResult = function(n, e, t, r) {
15776
15776
  }
15777
15777
  return i;
15778
15778
  };
15779
- ge.difference = function(n, e) {
15780
- return n.isEmpty() ? ge.createEmptyResult(ge.DIFFERENCE, n, e, n.getFactory()) : e.isEmpty() ? n.copy() : (n.checkNotGeometryCollection(n), n.checkNotGeometryCollection(e), Yt.overlayOp(n, e, ge.DIFFERENCE));
15779
+ me.difference = function(n, e) {
15780
+ return n.isEmpty() ? me.createEmptyResult(me.DIFFERENCE, n, e, n.getFactory()) : e.isEmpty() ? n.copy() : (n.checkNotGeometryCollection(n), n.checkNotGeometryCollection(e), Yt.overlayOp(n, e, me.DIFFERENCE));
15781
15781
  };
15782
- ge.isResultOfOp = function() {
15782
+ me.isResultOfOp = function() {
15783
15783
  if (arguments.length === 2) {
15784
15784
  var n = arguments[0], e = arguments[1], t = n.getLocation(0), r = n.getLocation(1);
15785
- return ge.isResultOfOp(t, r, e);
15785
+ return me.isResultOfOp(t, r, e);
15786
15786
  } else if (arguments.length === 3) {
15787
15787
  var i = arguments[0], s = arguments[1], o = arguments[2];
15788
15788
  switch (i === L.BOUNDARY && (i = L.INTERIOR), s === L.BOUNDARY && (s = L.INTERIOR), o) {
15789
- case ge.INTERSECTION:
15789
+ case me.INTERSECTION:
15790
15790
  return i === L.INTERIOR && s === L.INTERIOR;
15791
- case ge.UNION:
15791
+ case me.UNION:
15792
15792
  return i === L.INTERIOR || s === L.INTERIOR;
15793
- case ge.DIFFERENCE:
15793
+ case me.DIFFERENCE:
15794
15794
  return i === L.INTERIOR && s !== L.INTERIOR;
15795
- case ge.SYMDIFFERENCE:
15795
+ case me.SYMDIFFERENCE:
15796
15796
  return i === L.INTERIOR && s !== L.INTERIOR || i !== L.INTERIOR && s === L.INTERIOR;
15797
15797
  }
15798
15798
  return !1;
15799
15799
  }
15800
15800
  };
15801
- ge.INTERSECTION = 1;
15802
- ge.UNION = 2;
15803
- ge.DIFFERENCE = 3;
15804
- ge.SYMDIFFERENCE = 4;
15801
+ me.INTERSECTION = 1;
15802
+ me.UNION = 2;
15803
+ me.DIFFERENCE = 3;
15804
+ me.SYMDIFFERENCE = 4;
15805
15805
  var Ki = function() {
15806
15806
  this._g = null, this._boundaryDistanceTolerance = null, this._linework = null, this._ptLocator = new fn(), this._seg = new se();
15807
15807
  var e = arguments[0], t = arguments[1];
@@ -15921,7 +15921,7 @@ Nr.prototype.addTestPts = function(e) {
15921
15921
  this._testCoords.addAll(t.getPoints(5 * this._boundaryDistanceTolerance));
15922
15922
  };
15923
15923
  Nr.prototype.isValidResult = function(e, t) {
15924
- var r = ge.isResultOfOp(t[0], t[1], e), i = t[2] === L.INTERIOR, s = !(r ^ i);
15924
+ var r = me.isResultOfOp(t[0], t[1], e), i = t[2] === L.INTERIOR, s = !(r ^ i);
15925
15925
  return s || this.reportResult(e, t, r), s;
15926
15926
  };
15927
15927
  Nr.prototype.getInvalidLocation = function() {
@@ -16126,13 +16126,13 @@ rc.prototype.getClass = function() {
16126
16126
  rc.union = function(e, t) {
16127
16127
  if (e.isEmpty() || t.isEmpty()) {
16128
16128
  if (e.isEmpty() && t.isEmpty())
16129
- return ge.createEmptyResult(ge.UNION, e, t, e.getFactory());
16129
+ return me.createEmptyResult(me.UNION, e, t, e.getFactory());
16130
16130
  if (e.isEmpty())
16131
16131
  return t.copy();
16132
16132
  if (t.isEmpty())
16133
16133
  return e.copy();
16134
16134
  }
16135
- return e.checkNotGeometryCollection(e), e.checkNotGeometryCollection(t), Yt.overlayOp(e, t, ge.UNION);
16135
+ return e.checkNotGeometryCollection(e), e.checkNotGeometryCollection(t), Yt.overlayOp(e, t, me.UNION);
16136
16136
  };
16137
16137
  function Hs() {
16138
16138
  return new nc();
@@ -21378,11 +21378,11 @@ f(W, "defaults", {
21378
21378
  n.createDefaultProps = () => ({
21379
21379
  ...Ce.createDefaultProps(),
21380
21380
  /**位置点 [经,纬,高] */
21381
- position: me([0, 0, 0]),
21381
+ position: ge([0, 0, 0]),
21382
21382
  /**姿态 [h,p,r] */
21383
- rotation: me([0, 0, 0]),
21383
+ rotation: ge([0, 0, 0]),
21384
21384
  /**缩放 [x,y,z] */
21385
- scale: me([1, 1, 1]),
21385
+ scale: ge([1, 1, 1]),
21386
21386
  /**最小可视距离 */
21387
21387
  minVisibleDistance: Q(0),
21388
21388
  /**最大可视距离 */
@@ -21963,11 +21963,11 @@ f(Dt, "defaults", {
21963
21963
  /** 是否启用屏幕渲染,默认true */
21964
21964
  screenRender: !0,
21965
21965
  /** 元素尺寸,格式为[width, height],默认100×100 */
21966
- size: me([100, 100]),
21966
+ size: ge([100, 100]),
21967
21967
  /** 锚点位置,取值范围[0,1],默认底部居中(0.5,1) */
21968
- anchor: me([0.5, 1]),
21968
+ anchor: ge([0.5, 1]),
21969
21969
  /** 位置偏移量,格式为[x,y],默认无偏移 */
21970
- offset: me([0, 0]),
21970
+ offset: ge([0, 0]),
21971
21971
  /** 是否根据内容自动调整大小,默认true */
21972
21972
  sizeByContent: !0,
21973
21973
  /**
@@ -21997,9 +21997,9 @@ f(Dt, "defaults", {
21997
21997
  /** UE 骨骼套接字名称,用于骨骼绑定 */
21998
21998
  socketName: "",
21999
21999
  /** 3D位置偏移,格式为[x,y,z],默认无偏移 */
22000
- positionOffset: me([0, 0, 0]),
22000
+ positionOffset: ge([0, 0, 0]),
22001
22001
  /** 3D旋转偏移,格式为[pitch,yaw,roll],默认无旋转 */
22002
- rotationOffset: me([0, 0, 0])
22002
+ rotationOffset: ge([0, 0, 0])
22003
22003
  });
22004
22004
  })(Dt || (Dt = {}));
22005
22005
  U(Dt.prototype, Dt.createDefaultProps);
@@ -22086,7 +22086,7 @@ const Jt = class Jt extends Ce {
22086
22086
  /**
22087
22087
  * 私有属性,挖坑 ID 数组,使用 reactArray 函数进行响应式处理。
22088
22088
  */
22089
- f(this, "_excavateId", this.dv(me([])));
22089
+ f(this, "_excavateId", this.dv(ge([])));
22090
22090
  }
22091
22091
  /**
22092
22092
  * 获取类型名称。
@@ -22647,7 +22647,7 @@ let Rt = Jt;
22647
22647
  /**
22648
22648
  * 高亮颜色,以数组形式表示的 RGBA 颜色值,默认值为红色([1, 0, 0, 1])。
22649
22649
  */
22650
- highlightColor: me([1, 0, 0, 1]),
22650
+ highlightColor: ge([1, 0, 0, 1]),
22651
22651
  /**
22652
22652
  * 偏移量,三维向量,初始值为未定义。
22653
22653
  */
@@ -22655,11 +22655,11 @@ let Rt = Jt;
22655
22655
  /**
22656
22656
  * 旋转角度,三维向量,初始值为 [0, 0, 0]。
22657
22657
  */
22658
- rotation: me([0, 0, 0]),
22658
+ rotation: ge([0, 0, 0]),
22659
22659
  /**
22660
22660
  * 基于图像的光照因子,二维向量,默认值为 [1, 1]。
22661
22661
  */
22662
- czmImageBasedLightingFactor: me([1, 1]),
22662
+ czmImageBasedLightingFactor: ge([1, 1]),
22663
22663
  /**
22664
22664
  * 动态环境贴图管理器,初始值为未定义。
22665
22665
  */
@@ -22721,7 +22721,7 @@ let Rt = Jt;
22721
22721
  /**
22722
22722
  * 裁剪平面边缘颜色,以数组形式表示的 RGBA 颜色值,默认值为白色([1, 1, 1, 1])。
22723
22723
  */
22724
- clippingPlaneEdgeColor: me([1, 1, 1, 1]),
22724
+ clippingPlaneEdgeColor: ge([1, 1, 1, 1]),
22725
22725
  /**
22726
22726
  * 裁剪平面边缘宽度,默认值为 2。
22727
22727
  */
@@ -23169,7 +23169,7 @@ f(jn, "defaults", {
23169
23169
  *
23170
23170
  * 例如 :['SquareMeter','SquareKilometer', 'MU','Hectare','PerimeterMeter','PerimeterKilometer']
23171
23171
  */
23172
- units: me(["SquareKilometer", "PerimeterKilometer"])
23172
+ units: ge(["SquareKilometer", "PerimeterKilometer"])
23173
23173
  }));
23174
23174
  let pc = jn;
23175
23175
  U(pc.prototype, pc.createDefaultProps);
@@ -23251,7 +23251,7 @@ let Ta = Js;
23251
23251
  /** 位置编辑标志,可选值为布尔类型或 undefined */
23252
23252
  positionEditing: void 0,
23253
23253
  /** 粒子系统的偏移量,使用响应式数组 */
23254
- translation: me([0, 0, 0])
23254
+ translation: ge([0, 0, 0])
23255
23255
  });
23256
23256
  })(Ta || (Ta = {}));
23257
23257
  U(Ta.prototype, Ta.createDefaultProps);
@@ -23339,11 +23339,11 @@ let Na = Zt;
23339
23339
  /** 是否反转剖切效果 */
23340
23340
  reverse: !1,
23341
23341
  /** 边框颜色,使用响应式数组 */
23342
- edgeColor: me([1, 1, 1, 1]),
23342
+ edgeColor: ge([1, 1, 1, 1]),
23343
23343
  /** 边框宽度 */
23344
23344
  edgeWidth: 2,
23345
23345
  /** 体的尺寸,使用响应式数组 */
23346
- size: me([10, 10, 10]),
23346
+ size: ge([10, 10, 10]),
23347
23347
  /**
23348
23348
  * 目标 ES3DTileset ID ,为空时代表裁切地形
23349
23349
  */
@@ -24430,7 +24430,7 @@ let Ma = Ks;
24430
24430
  * 反应式数组,表示线框颜色,默认为白色(RGBA: [1, 1, 1, 1])。
24431
24431
  * @type {reactArray<[number, number, number, number]>}
24432
24432
  */
24433
- edgeColor: me([1, 1, 1, 1]),
24433
+ edgeColor: ge([1, 1, 1, 1]),
24434
24434
  /**
24435
24435
  * 数值,线框宽度,默认为 2。
24436
24436
  * @type {number}
@@ -25318,7 +25318,7 @@ let Aa = $s;
25318
25318
  /**特效图 */
25319
25319
  image: "",
25320
25320
  /**位置偏移 */
25321
- translation: me([0, 0, 0])
25321
+ translation: ge([0, 0, 0])
25322
25322
  });
25323
25323
  })(Aa || (Aa = {}));
25324
25324
  U(Aa.prototype, Aa.createDefaultProps);
@@ -25707,7 +25707,7 @@ let ka = vt;
25707
25707
  /** 透明度 默认1 */
25708
25708
  opacity: 1,
25709
25709
  /** 偏移比例 默认[0.5, 1.0] */
25710
- anchor: me([0.5, 1]),
25710
+ anchor: ge([0.5, 1]),
25711
25711
  // 为undefined时设置为[0.5, 1.0]
25712
25712
  /** 实例类字符串 默认 defaulInstanceClassStr */
25713
25713
  instanceClassStr: void 0,
@@ -26197,7 +26197,7 @@ let za = di;
26197
26197
  * @default [1, 1, 1, 1]
26198
26198
  * 数组顺序为 [红, 绿, 蓝, 透明度],取值范围 0-1
26199
26199
  */
26200
- czmColor: me([1, 1, 1, 1]),
26200
+ czmColor: ge([1, 1, 1, 1]),
26201
26201
  /**
26202
26202
  * 是否允许模型被鼠标拾取(交互选中)
26203
26203
  * @type {boolean}
@@ -26216,7 +26216,7 @@ let za = di;
26216
26216
  * @default [1, 1]
26217
26217
  * 二维向量分别控制 X 轴和 Y 轴方向的反射强度
26218
26218
  */
26219
- czmImageBasedLightingFactor: me([1, 1]),
26219
+ czmImageBasedLightingFactor: ge([1, 1]),
26220
26220
  /**
26221
26221
  * 大气散射强度(已弃用,Cesium 引擎专用)
26222
26222
  * @type {number}
@@ -28413,9 +28413,9 @@ let Ja = Cs;
28413
28413
  /** 日照分析的采样间距,单位为米,默认值为 10 米。 */
28414
28414
  sampleDistance: 10,
28415
28415
  /** 日照分析的起始颜色,以四维向量表示,默认值为 [1, 1, 0, 1]。 */
28416
- startColor: me([1, 1, 0, 1]),
28416
+ startColor: ge([1, 1, 0, 1]),
28417
28417
  /** 日照分析的结束颜色,以四维向量表示,默认值为 [1, 0, 0, 1]。 */
28418
- endColor: me([1, 0, 0, 1]),
28418
+ endColor: ge([1, 0, 0, 1]),
28419
28419
  /** 日照分析的起始时间,以时间戳表示,默认值为 0(对应 8 点)。 */
28420
28420
  startTime: 0,
28421
28421
  /** 日照分析的结束时间,以时间戳表示,默认值为 36000000(对应 18 点)。 */
@@ -28540,7 +28540,7 @@ let Za = yr;
28540
28540
  * @type {ESJVector4D}
28541
28541
  * 默认值:[-180, -90, 180, 90]
28542
28542
  */
28543
- rectangle: me([-180, -90, 180, 90]),
28543
+ rectangle: ge([-180, -90, 180, 90]),
28544
28544
  /**
28545
28545
  * 层级序号,支持Number。
28546
28546
  * @type {number}
@@ -28744,25 +28744,25 @@ let Ka = _n;
28744
28744
  * @type {ESJColor}
28745
28745
  * 默认值: [1, 1, 1, 1]
28746
28746
  */
28747
- color: me([1, 1, 1, 1]),
28747
+ color: ge([1, 1, 1, 1]),
28748
28748
  /**
28749
28749
  * 文本标签的背景颜色。
28750
28750
  * @type {ESJColor}
28751
28751
  * 默认值: [0, 0, 0, 0.8]
28752
28752
  */
28753
- backgroundColor: me([0, 0, 0, 0.8]),
28753
+ backgroundColor: ge([0, 0, 0, 0.8]),
28754
28754
  /**
28755
28755
  * 文本标签的内边距。
28756
28756
  * @type {ESJVector4D}
28757
28757
  * 默认值: [5, 5, 5, 5]
28758
28758
  */
28759
- padding: me([5, 5, 5, 5]),
28759
+ padding: ge([5, 5, 5, 5]),
28760
28760
  /**
28761
28761
  * 文本标签的边框圆角。
28762
28762
  * @type {ESJVector4D}
28763
28763
  * 默认值: [6, 6, 6, 6]
28764
28764
  */
28765
- borderRadius: me([6, 6, 6, 6]),
28765
+ borderRadius: ge([6, 6, 6, 6]),
28766
28766
  /**
28767
28767
  * 文本标签的边框宽度。
28768
28768
  * @type {number}
@@ -28774,7 +28774,7 @@ let Ka = _n;
28774
28774
  * @type {ESJColor}
28775
28775
  * 默认值: [1, 1, 1, 1]
28776
28776
  */
28777
- borderColor: me([1, 1, 1, 1]),
28777
+ borderColor: ge([1, 1, 1, 1]),
28778
28778
  /**
28779
28779
  * 文本标签的边框样式。
28780
28780
  * @type {string}
@@ -29527,13 +29527,13 @@ let rl = mi;
29527
29527
  * @type {ESJVector3D}
29528
29528
  * 默认值:[0, 0, 0]
29529
29529
  */
29530
- positionOffset: me([0, 0, 0]),
29530
+ positionOffset: ge([0, 0, 0]),
29531
29531
  /**
29532
29532
  * 旋转偏移,用于指定部件的旋转偏移。
29533
29533
  * @type {ESJVector3D}
29534
29534
  * 默认值:[0, 0, 0]
29535
29535
  */
29536
- rotationOffset: me([0, 0, 0]),
29536
+ rotationOffset: ge([0, 0, 0]),
29537
29537
  /**
29538
29538
  * 透明度,用于指定部件的透明度。
29539
29539
  * @type {number}
@@ -31974,8 +31974,15 @@ f(ji, "defaults", {
31974
31974
  ...Ie.defaults,
31975
31975
  interpolation: 0.5,
31976
31976
  //插值距离,单位米,为0时不插值
31977
- offsetHeight: 0
31977
+ offsetHeight: 0,
31978
31978
  //三角面整体偏移高度
31979
+ // 面积单位
31980
+ unitsMode: [
31981
+ ["平方米", "SquareMeter"],
31982
+ ["平方千米", "SquareKilometer"],
31983
+ ["亩", "MU"],
31984
+ ["公顷", "Hectare"]
31985
+ ]
31979
31986
  });
31980
31987
  let dl = ji;
31981
31988
  ((n) => {
@@ -31992,7 +31999,18 @@ let dl = ji;
31992
31999
  * @type {number | undefined}
31993
32000
  * 默认值:undefined 0
31994
32001
  */
31995
- offsetHeight: void 0
32002
+ offsetHeight: void 0,
32003
+ /**
32004
+ * 面积单位,默认值 ['SquareMeter']
32005
+ * @type { string[] }
32006
+ * ['平方米', 'SquareMeter'],
32007
+ * ['平方千米', 'SquareKilometer'],
32008
+ * ['亩', 'MU'],
32009
+ * ['公顷', 'Hectare']
32010
+ *
32011
+ * 例如 :['SquareMeter','SquareKilometer', 'MU']
32012
+ */
32013
+ units: ge(["SquareMeter"])
31996
32014
  });
31997
32015
  })(dl || (dl = {}));
31998
32016
  U(dl.prototype, dl.createDefaultProps);
@@ -32446,7 +32464,7 @@ let yl = ao;
32446
32464
  /**
32447
32465
  * 关卡加载距离,表示从当前视角到关卡加载点的距离。
32448
32466
  */
32449
- levelOffset: me([0, 0, 0]),
32467
+ levelOffset: ge([0, 0, 0]),
32450
32468
  /**
32451
32469
  * 关卡加载距离,表示从当前视角到关卡加载点的距离。
32452
32470
  */
@@ -32673,12 +32691,12 @@ let wl = zr;
32673
32691
  * 可视区域颜色,默认为绿色。[0, 1, 0, 1]
32674
32692
  * @type {ESJColor}
32675
32693
  */
32676
- visibleColor: me([0, 1, 0, 1]),
32694
+ visibleColor: ge([0, 1, 0, 1]),
32677
32695
  /**
32678
32696
  * 遮挡区域颜色,默认为红色。[1, 0, 0, 1]
32679
32697
  * @type {ESJColor}
32680
32698
  */
32681
- invisibleColor: me([1, 0, 0, 1]),
32699
+ invisibleColor: ge([1, 0, 0, 1]),
32682
32700
  /**
32683
32701
  * 视点高度偏移,默认为 0。
32684
32702
  */
@@ -32974,11 +32992,11 @@ let Sl = Qo;
32974
32992
  /**
32975
32993
  * POI 的尺寸,格式为 [宽度, 高度],单位为像素。
32976
32994
  */
32977
- size: me([100, 100]),
32995
+ size: ge([100, 100]),
32978
32996
  /**
32979
32997
  * POI 的锚点位置,取值范围 [0,0] 到 [1,1],表示相对于自身尺寸的锚点位置。
32980
32998
  */
32981
- anchor: me([0.5, 1]),
32999
+ anchor: ge([0.5, 1]),
32982
33000
  /**
32983
33001
  * 是否根据内容自动调整大小,启用后 size 属性将被忽略。
32984
33002
  */
@@ -35536,7 +35554,7 @@ let jo = _r;
35536
35554
  /**
35537
35555
  * 折线的颜色,使用响应式数组表示,格式为 [R, G, B, A],默认值为 [1, 1, 1, 1]。
35538
35556
  */
35539
- color: me([1, 1, 1, 1]),
35557
+ color: ge([1, 1, 1, 1]),
35540
35558
  /**
35541
35559
  * 一个布尔属性,指定折线是否有虚线效果,默认值为 false。
35542
35560
  */
@@ -35544,7 +35562,7 @@ let jo = _r;
35544
35562
  /**
35545
35563
  * 虚线的间隙颜色,使用响应式数组表示,格式为 [R, G, B, A],默认值为 [0, 0, 0, 0]。
35546
35564
  */
35547
- gapColor: me([0, 0, 0, 0]),
35565
+ gapColor: ge([0, 0, 0, 0]),
35548
35566
  /**
35549
35567
  * 虚线的长度,默认值为 16。
35550
35568
  */
@@ -35927,7 +35945,7 @@ let Ol = Wi;
35927
35945
  /**
35928
35946
  * 原点比例和偏移,格式为 [左比例, 上比例, 左偏移, 上偏移],初始值为 [0.5, 1, 0, 0]。
35929
35947
  */
35930
- originRatioAndOffset: me([0.5, 1, 0, 0]),
35948
+ originRatioAndOffset: ge([0.5, 1, 0, 0]),
35931
35949
  /**
35932
35950
  * 文本的透明度,初始值为 1。
35933
35951
  */
@@ -35943,19 +35961,19 @@ let Ol = Wi;
35943
35961
  /**
35944
35962
  * 文本的颜色,格式为 RGBA 数组,初始值为 [1, 1, 1, 1](白色不透明)。
35945
35963
  */
35946
- color: me([1, 1, 1, 1]),
35964
+ color: ge([1, 1, 1, 1]),
35947
35965
  /**
35948
35966
  * 文本背景的颜色,格式为 RGBA 数组,初始值为 [0, 0, 0, 0.8](黑色 80% 透明度)。
35949
35967
  */
35950
- backgroundColor: me([0, 0, 0, 0.8]),
35968
+ backgroundColor: ge([0, 0, 0, 0.8]),
35951
35969
  /**
35952
35970
  * 文本的内边距,格式为 [上, 右, 下, 左],初始值为 [5, 5, 5, 5]。
35953
35971
  */
35954
- padding: me([5, 5, 5, 5]),
35972
+ padding: ge([5, 5, 5, 5]),
35955
35973
  /**
35956
35974
  * 文本边框的圆角,格式为 [左上, 右上, 右下, 左下],初始值为 [6, 6, 6, 6]。
35957
35975
  */
35958
- borderRadius: me([6, 6, 6, 6]),
35976
+ borderRadius: ge([6, 6, 6, 6]),
35959
35977
  /**
35960
35978
  * 文本边框的宽度,初始值为 0。
35961
35979
  */
@@ -35963,7 +35981,7 @@ let Ol = Wi;
35963
35981
  /**
35964
35982
  * 文本边框的颜色,格式为 RGBA 数组,初始值为 [1, 1, 1, 1](白色不透明)。
35965
35983
  */
35966
- borderColor: me([1, 1, 1, 1]),
35984
+ borderColor: ge([1, 1, 1, 1]),
35967
35985
  /**
35968
35986
  * 文本边框的样式,初始值为 "solid"(实线)。
35969
35987
  */
@@ -36042,7 +36060,7 @@ let Ml = ea;
36042
36060
  * @type {reactArray<ESJColor>}
36043
36061
  * @default [1, 1, 0, 1]
36044
36062
  */
36045
- color: me([1, 1, 0, 1])
36063
+ color: ge([1, 1, 0, 1])
36046
36064
  });
36047
36065
  })(Ml || (Ml = {}));
36048
36066
  U(Ml.prototype, Ml.createDefaultProps);
@@ -36589,7 +36607,7 @@ let Al = Gn;
36589
36607
  * 背景颜色,默认为 [71 / 255, 71 / 255, 71 / 255, 0.8]。
36590
36608
  * @type {ESJColor}
36591
36609
  */
36592
- bgColor: me([71 / 255, 71 / 255, 71 / 255, 0.8])
36610
+ bgColor: ge([71 / 255, 71 / 255, 71 / 255, 0.8])
36593
36611
  });
36594
36612
  })(Al || (Al = {}));
36595
36613
  U(Al.prototype, Al.createDefaultProps);
@@ -36682,7 +36700,7 @@ let Fl = Wn;
36682
36700
  * 背景颜色,默认为 [71 / 255, 71 / 255, 71 / 255, 0.8]。
36683
36701
  * @type {ESJColor}
36684
36702
  */
36685
- bgColor: me([71 / 255, 71 / 255, 71 / 255, 0.8])
36703
+ bgColor: ge([71 / 255, 71 / 255, 71 / 255, 0.8])
36686
36704
  });
36687
36705
  })(Fl || (Fl = {}));
36688
36706
  U(Fl.prototype, Fl.createDefaultProps);
@@ -37196,7 +37214,7 @@ class h0 extends ae {
37196
37214
  /**
37197
37215
  * 私有属性,存储通道配置的响应式数组。
37198
37216
  */
37199
- f(this, "_channels", this.dv(me([])));
37217
+ f(this, "_channels", this.dv(ge([])));
37200
37218
  this._objectManager = t, this._player = this._objectManager.player, this.dv(new ur(this.channelsChanged, () => {
37201
37219
  if (this.channels.length === 0) return;
37202
37220
  const r = [];
@@ -39431,7 +39449,7 @@ function hp(n) {
39431
39449
  }
39432
39450
  let Ql;
39433
39451
  try {
39434
- const n = "earthsdk3", e = "3.2.0-beta.4", t = "2025-07-04T10:20:51.000Z", r = "北京西部世界科技有限公司", i = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", s = "a72307dee56578eb83034b271b346e609f39af59", a = ((Date.now() - 1751624451e3) / 36e5).toFixed(1), l = `%c🌏 ${n}%c ${e}.${s.slice(0, 8)}.${t} (距今${a}个小时)
39452
+ const n = "earthsdk3", e = "3.2.0-beta.6", t = "2025-07-08T09:18:44.000Z", r = "北京西部世界科技有限公司", i = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", s = "798c9f9e364c0e89c5611fb7689e92715ba748df", a = ((Date.now() - 1751966324e3) / 36e5).toFixed(1), l = `%c🌏 ${n}%c ${e}.${s.slice(0, 8)}.${t} (距今${a}个小时)
39435
39453
  %c${i ? i + `
39436
39454
  ` : ""}当前网站正在使用${n},此软件版权归${r}所有
39437
39455
  `;
@@ -39445,7 +39463,7 @@ try {
39445
39463
  },
39446
39464
  // @ts-ignore
39447
39465
  get gituri() {
39448
- return GITURI_ && GITURI_.replace("${commitId}", "a72307dee56578eb83034b271b346e609f39af59");
39466
+ return GITURI_ && GITURI_.replace("${commitId}", "798c9f9e364c0e89c5611fb7689e92715ba748df");
39449
39467
  },
39450
39468
  // @ts-ignore
39451
39469
  get info() {
@@ -39453,7 +39471,7 @@ try {
39453
39471
  },
39454
39472
  // @ts-ignore
39455
39473
  get date() {
39456
- return "2025-07-04T10:20:51.000Z";
39474
+ return "2025-07-08T09:18:44.000Z";
39457
39475
  },
39458
39476
  // @ts-ignore
39459
39477
  get author() {
@@ -39461,7 +39479,7 @@ try {
39461
39479
  },
39462
39480
  // @ts-ignore
39463
39481
  get version() {
39464
- return "3.2.0-beta.4";
39482
+ return "3.2.0-beta.6";
39465
39483
  },
39466
39484
  // @ts-ignore
39467
39485
  get name() {
@@ -39469,7 +39487,7 @@ try {
39469
39487
  },
39470
39488
  // @ts-ignore
39471
39489
  get commitId() {
39472
- return "a72307dee56578eb83034b271b346e609f39af59";
39490
+ return "798c9f9e364c0e89c5611fb7689e92715ba748df";
39473
39491
  },
39474
39492
  /**
39475
39493
  * 打印版权信息到控制台