zywlgis 0.5.42 → 0.5.43
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/ZYWLGIS.es.js +32 -13
- package/dist/ZYWLGIS.umd.js +4 -4
- package/package.json +1 -1
- package/vite.config.js +1 -0
package/dist/ZYWLGIS.es.js
CHANGED
|
@@ -134765,7 +134765,10 @@ class k {
|
|
|
134765
134765
|
let i = e.map(async (r) => {
|
|
134766
134766
|
if (t === Cesium.ClassificationType.BOTH || t === Cesium.ClassificationType.CESIUM_3D_TILE) {
|
|
134767
134767
|
let s = this.transformCartographic(r);
|
|
134768
|
-
return
|
|
134768
|
+
return A.scene.sampleHeight(s) === void 0 ? s = (await this.calculateTerrainHeight(
|
|
134769
|
+
A,
|
|
134770
|
+
r
|
|
134771
|
+
)).position : s.height = A.scene.sampleHeight(s), this.transformCartesian3(s);
|
|
134769
134772
|
} else return t === Cesium.ClassificationType.TERRAIN ? (await this.calculateTerrainHeight(
|
|
134770
134773
|
A,
|
|
134771
134774
|
r
|
|
@@ -161058,7 +161061,7 @@ function MoA(...n) {
|
|
|
161058
161061
|
return new IoA(...n);
|
|
161059
161062
|
}
|
|
161060
161063
|
MoA.localizePositions = IoA.localizePositions;
|
|
161061
|
-
const WqA = "0.5.
|
|
161064
|
+
const WqA = "0.5.43", _qA = {
|
|
161062
161065
|
version: WqA
|
|
161063
161066
|
}, hU = {
|
|
161064
161067
|
POINTERMOVE: "pointermove",
|
|
@@ -165842,12 +165845,14 @@ class QWA {
|
|
|
165842
165845
|
geometryInstances: w,
|
|
165843
165846
|
appearance: u,
|
|
165844
165847
|
show: this.visible_,
|
|
165845
|
-
asynchronous: !1
|
|
165848
|
+
asynchronous: !1,
|
|
165849
|
+
releaseGeometryInstances: !1
|
|
165846
165850
|
}) : c = new Cesium.Primitive({
|
|
165847
165851
|
geometryInstances: w,
|
|
165848
165852
|
appearance: u,
|
|
165849
165853
|
show: this.visible_,
|
|
165850
|
-
asynchronous: !1
|
|
165854
|
+
asynchronous: !1,
|
|
165855
|
+
releaseGeometryInstances: !1
|
|
165851
165856
|
});
|
|
165852
165857
|
const Q = new Cesium.PolylineMaterialAppearance({
|
|
165853
165858
|
material: new Cesium.Material({
|
|
@@ -165873,7 +165878,8 @@ class QWA {
|
|
|
165873
165878
|
geometryInstances: v,
|
|
165874
165879
|
appearance: Q,
|
|
165875
165880
|
show: this.visible_,
|
|
165876
|
-
asynchronous: !1
|
|
165881
|
+
asynchronous: !1,
|
|
165882
|
+
releaseGeometryInstances: !1
|
|
165877
165883
|
});
|
|
165878
165884
|
} else {
|
|
165879
165885
|
const v = new Cesium.GeometryInstance({
|
|
@@ -165887,7 +165893,8 @@ class QWA {
|
|
|
165887
165893
|
geometryInstances: v,
|
|
165888
165894
|
appearance: Q,
|
|
165889
165895
|
show: this.visible_,
|
|
165890
|
-
asynchronous: !1
|
|
165896
|
+
asynchronous: !1,
|
|
165897
|
+
releaseGeometryInstances: !1
|
|
165891
165898
|
});
|
|
165892
165899
|
}
|
|
165893
165900
|
this.geometryInstance_ && g.remove(this.geometryInstance_), c && (this.geometryInstance_ = g.add(c)), this.geometryOutlineInstance_ && g.remove(this.geometryOutlineInstance_), h && (this.geometryOutlineInstance_ = g.add(
|
|
@@ -167533,6 +167540,7 @@ class CWA {
|
|
|
167533
167540
|
appearance: c,
|
|
167534
167541
|
show: this.visible_,
|
|
167535
167542
|
asynchronous: !1,
|
|
167543
|
+
releaseGeometryInstances: !1,
|
|
167536
167544
|
classificationType: Cesium.ClassificationType.TERRAIN
|
|
167537
167545
|
}), P = new Cesium.GroundPolylinePrimitive({
|
|
167538
167546
|
geometryInstances: new Cesium.GeometryInstance({
|
|
@@ -167545,6 +167553,7 @@ class CWA {
|
|
|
167545
167553
|
appearance: h,
|
|
167546
167554
|
show: this.visible_,
|
|
167547
167555
|
asynchronous: !1,
|
|
167556
|
+
releaseGeometryInstances: !1,
|
|
167548
167557
|
classificationType: Cesium.ClassificationType.TERRAIN
|
|
167549
167558
|
})) : (D = new Cesium.Primitive({
|
|
167550
167559
|
geometryInstances: new Cesium.GeometryInstance({
|
|
@@ -167557,7 +167566,8 @@ class CWA {
|
|
|
167557
167566
|
}),
|
|
167558
167567
|
appearance: c,
|
|
167559
167568
|
show: this.visible_,
|
|
167560
|
-
asynchronous: !1
|
|
167569
|
+
asynchronous: !1,
|
|
167570
|
+
releaseGeometryInstances: !1
|
|
167561
167571
|
}), P = new Cesium.Primitive({
|
|
167562
167572
|
geometryInstances: new Cesium.GeometryInstance({
|
|
167563
167573
|
id: i,
|
|
@@ -167568,7 +167578,8 @@ class CWA {
|
|
|
167568
167578
|
}),
|
|
167569
167579
|
appearance: h,
|
|
167570
167580
|
show: this.visible_,
|
|
167571
|
-
asynchronous: !1
|
|
167581
|
+
asynchronous: !1,
|
|
167582
|
+
releaseGeometryInstances: !1
|
|
167572
167583
|
})), this.geometryInstance_ && l.remove(this.geometryInstance_), this.geometryInstance_ = l.add(D), this.geometryOutlineInstance_ && l.remove(this.geometryOutlineInstance_), this.geometryOutlineInstance_ = l.add(P);
|
|
167573
167584
|
} else {
|
|
167574
167585
|
this.clearGeometry();
|
|
@@ -171847,12 +171858,14 @@ class BWA {
|
|
|
171847
171858
|
appearance: h,
|
|
171848
171859
|
show: this.visible_,
|
|
171849
171860
|
asynchronous: !1,
|
|
171861
|
+
releaseGeometryInstances: !1,
|
|
171850
171862
|
classificationType: this.isClampTo3DTILE_ ? Cesium.ClassificationType.BOTH : Cesium.ClassificationType.TERRAIN
|
|
171851
171863
|
}) : D = new Cesium.Primitive({
|
|
171852
171864
|
geometryInstances: g,
|
|
171853
171865
|
appearance: h,
|
|
171854
171866
|
show: this.visible_,
|
|
171855
|
-
asynchronous: !1
|
|
171867
|
+
asynchronous: !1,
|
|
171868
|
+
releaseGeometryInstances: !1
|
|
171856
171869
|
});
|
|
171857
171870
|
const u = new Cesium.PolylineMaterialAppearance({
|
|
171858
171871
|
material: new Cesium.Material({
|
|
@@ -171879,6 +171892,7 @@ class BWA {
|
|
|
171879
171892
|
appearance: u,
|
|
171880
171893
|
show: this.visible_,
|
|
171881
171894
|
asynchronous: !1,
|
|
171895
|
+
releaseGeometryInstances: !1,
|
|
171882
171896
|
classificationType: this.isClampTo3DTILE_ ? Cesium.ClassificationType.BOTH : Cesium.ClassificationType.TERRAIN
|
|
171883
171897
|
});
|
|
171884
171898
|
} else {
|
|
@@ -171893,7 +171907,8 @@ class BWA {
|
|
|
171893
171907
|
geometryInstances: w,
|
|
171894
171908
|
appearance: u,
|
|
171895
171909
|
show: this.visible_,
|
|
171896
|
-
asynchronous: !1
|
|
171910
|
+
asynchronous: !1,
|
|
171911
|
+
releaseGeometryInstances: !1
|
|
171897
171912
|
});
|
|
171898
171913
|
}
|
|
171899
171914
|
this.geometryInstance_ && c.remove(this.geometryInstance_), D && (this.geometryInstance_ = c.add(D)), this.geometryOutlineInstance_ && c.remove(this.geometryOutlineInstance_), P && (this.geometryOutlineInstance_ = c.add(
|
|
@@ -177476,12 +177491,14 @@ class xWA {
|
|
|
177476
177491
|
appearance: v,
|
|
177477
177492
|
show: this.visible_,
|
|
177478
177493
|
asynchronous: !1,
|
|
177494
|
+
releaseGeometryInstances: !1,
|
|
177479
177495
|
classificationType: this.isClampTo3DTILE_ ? Cesium.ClassificationType.BOTH : Cesium.ClassificationType.TERRAIN
|
|
177480
177496
|
}) : u = new Cesium.Primitive({
|
|
177481
177497
|
geometryInstances: E,
|
|
177482
177498
|
appearance: v,
|
|
177483
177499
|
show: this.visible_,
|
|
177484
|
-
asynchronous: !1
|
|
177500
|
+
asynchronous: !1,
|
|
177501
|
+
releaseGeometryInstances: !1
|
|
177485
177502
|
}), this.isClampToGround_ || this.isClampTo3DTILE_) {
|
|
177486
177503
|
const p = new Cesium.GeometryInstance({
|
|
177487
177504
|
id: i,
|
|
@@ -177495,6 +177512,7 @@ class xWA {
|
|
|
177495
177512
|
appearance: this.polylineAppearance,
|
|
177496
177513
|
show: this.visible_,
|
|
177497
177514
|
asynchronous: !1,
|
|
177515
|
+
releaseGeometryInstances: !1,
|
|
177498
177516
|
classificationType: this.isClampTo3DTILE_ ? Cesium.ClassificationType.BOTH : Cesium.ClassificationType.TERRAIN
|
|
177499
177517
|
});
|
|
177500
177518
|
} else {
|
|
@@ -177509,7 +177527,8 @@ class xWA {
|
|
|
177509
177527
|
geometryInstances: p,
|
|
177510
177528
|
appearance: this.polylineAppearance,
|
|
177511
177529
|
show: this.visible_,
|
|
177512
|
-
asynchronous: !1
|
|
177530
|
+
asynchronous: !1,
|
|
177531
|
+
releaseGeometryInstances: !1
|
|
177513
177532
|
});
|
|
177514
177533
|
}
|
|
177515
177534
|
this.geometryInstance_ && Q.remove(this.geometryInstance_), u && (this.geometryInstance_ = Q.add(u)), this.geometryOutlineInstance_ && Q.remove(this.geometryOutlineInstance_), w && (this.geometryOutlineInstance_ = Q.add(
|
|
@@ -196969,7 +196988,7 @@ const xte = (n, A) => {
|
|
|
196969
196988
|
}
|
|
196970
196989
|
).then((a) => {
|
|
196971
196990
|
console.log("新增完成");
|
|
196972
|
-
}), console.log(`新增了${n}数据>>>>>>>>>>`, o));
|
|
196991
|
+
}), console.log(`新增了${n}数据>>>>>>>>>>`, o), alert("加载完成"));
|
|
196973
196992
|
});
|
|
196974
196993
|
},
|
|
196975
196994
|
async setZYWLAnnotations(n, A) {
|