earthsdk3-cesium 3.6.0-beta.6 → 3.6.0-beta.7
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-cesium.iife.js +116 -116
- package/dist/earthsdk3-cesium.js +103 -92
- package/dist/earthsdk3-cesium.umd.cjs +7 -7
- package/dist/types/ESCesiumViewer/ViewerExtensions/ScreenManager/ScreenLayer.d.ts +2 -2
- package/dist/types/ESCesiumViewer/ViewerExtensions/ScreenManager/ScreenLayer.d.ts.map +1 -1
- package/dist/types/ESCesiumViewer/ViewerExtensions/ScreenManager/index.d.ts +1 -1
- package/dist/types/ESCesiumViewer/ViewerExtensions/ScreenManager/index.d.ts.map +1 -1
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/EventManager.d.ts +1 -1
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/EventManager.d.ts.map +1 -1
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/TileLoader.d.ts.map +1 -1
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/TileRenderer.d.ts +2 -2
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/TileRenderer.d.ts.map +1 -1
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/index.d.ts +1 -1
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/index.d.ts.map +1 -1
- package/dist/types/utils/czmUtils/calculateImageTiles.d.ts +2 -2
- package/dist/types/utils/czmUtils/calculateImageTiles.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/earthsdk3-cesium.js
CHANGED
|
@@ -20,7 +20,12 @@ function mx() {
|
|
|
20
20
|
});
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
fetch("https://cdn.jsdelivr.net/gh/CesiumGS/cesium/packages/engine/Source/Core/Ion.js").then((t) => t.text()).then((t) => {
|
|
24
|
+
const i = t.match(/defaultAccessToken\s*=\s*["'`](.*?)["'`]/);
|
|
25
|
+
i && (h.Ion.defaultAccessToken = i[1], console.log("更新默认Cesium.Ion.Token成功"));
|
|
26
|
+
}).catch((t) => {
|
|
27
|
+
h.Ion.defaultAccessToken = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJhN2VkNDM5ZS1jMDk0LTQ3NDItOTM5ZS00MzU3M2M1MTc2ZTkiLCJpZCI6MjU5LCJpYXQiOjE3NjIxODg4MDB9.ZZG574sONzeHxsX8HJMaL_ZiGA3dh_HrOxL7DrKRcd4";
|
|
28
|
+
});
|
|
24
29
|
const Aa = class Aa extends k {
|
|
25
30
|
};
|
|
26
31
|
g(Aa, "defaults", { enabled: !0 }), g(Aa, "createDefaultProps", () => ({ ...Aa.defaults }));
|
|
@@ -1690,8 +1695,7 @@ class Db extends k {
|
|
|
1690
1695
|
const kb = new h.Rectangle();
|
|
1691
1696
|
function Fb(t, i, e) {
|
|
1692
1697
|
let s = /* @__PURE__ */ new Set();
|
|
1693
|
-
if (!i) return
|
|
1694
|
-
if (Array.isArray(t) || (t = [t]), t.length == 0) return [];
|
|
1698
|
+
if (!i || (t instanceof Array || (t = [t]), t.length == 0)) return s;
|
|
1695
1699
|
const o = ns(e.tilingScheme ?? { type: "WebMercatorTilingScheme" }) ?? new h.WebMercatorTilingScheme(), n = {
|
|
1696
1700
|
tilingScheme: o,
|
|
1697
1701
|
rectangle: h.Rectangle.intersection(
|
|
@@ -1703,30 +1707,30 @@ function Fb(t, i, e) {
|
|
|
1703
1707
|
tileWidth: e.tileWidth ?? 256,
|
|
1704
1708
|
tileHeight: e.tileHeight ?? 256
|
|
1705
1709
|
}, r = n.tilingScheme;
|
|
1706
|
-
for (
|
|
1707
|
-
const l =
|
|
1708
|
-
if (!
|
|
1709
|
-
|
|
1710
|
-
const
|
|
1711
|
-
let
|
|
1710
|
+
for (const a of t) {
|
|
1711
|
+
const l = h.Rectangle.intersection(a.rectangle, n.rectangle, kb);
|
|
1712
|
+
if (!l) continue;
|
|
1713
|
+
l.south > 0 ? l.south : l.north < 0 && l.north;
|
|
1714
|
+
const c = i.getLevelMaximumGeometricError(a.level);
|
|
1715
|
+
let d = zb(
|
|
1712
1716
|
n,
|
|
1713
|
-
|
|
1714
|
-
Math.abs(
|
|
1717
|
+
c,
|
|
1718
|
+
Math.abs(l.south) < Math.abs(l.north) ? l.south : l.north
|
|
1715
1719
|
);
|
|
1716
|
-
|
|
1717
|
-
const
|
|
1718
|
-
|
|
1719
|
-
const
|
|
1720
|
-
|
|
1721
|
-
const
|
|
1722
|
-
Math.abs(
|
|
1723
|
-
const
|
|
1724
|
-
Math.abs(
|
|
1725
|
-
for (let
|
|
1726
|
-
for (let
|
|
1727
|
-
s.add({ x:
|
|
1728
|
-
}
|
|
1729
|
-
return
|
|
1720
|
+
d = Math.max(0, d);
|
|
1721
|
+
const u = e.maximumLevel;
|
|
1722
|
+
u !== void 0 && (d = Math.min(d, u));
|
|
1723
|
+
const p = e.minimumLevel;
|
|
1724
|
+
p !== void 0 && (d = Math.max(d, p));
|
|
1725
|
+
const f = r.positionToTileXY(h.Rectangle.northwest(l), d), m = r.positionToTileXY(h.Rectangle.southeast(l), d), v = a.rectangle.width / 512, y = a.rectangle.height / 512, _ = r.tileXYToRectangle(f.x, f.y, d);
|
|
1726
|
+
Math.abs(_.south - a.rectangle.north) < y && f.y < m.y && ++f.y, Math.abs(_.east - a.rectangle.west) < v && f.x < m.x && ++f.x;
|
|
1727
|
+
const C = r.tileXYToRectangle(m.x, m.y, d);
|
|
1728
|
+
Math.abs(C.north - a.rectangle.south) < y && m.y > f.y && --m.y, Math.abs(C.west - a.rectangle.east) < v && m.x > f.x && --m.x;
|
|
1729
|
+
for (let b = f.x; b <= m.x; b++)
|
|
1730
|
+
for (let T = f.y; T <= m.y; T++)
|
|
1731
|
+
s.add({ x: b, y: T, level: d });
|
|
1732
|
+
}
|
|
1733
|
+
return s;
|
|
1730
1734
|
}
|
|
1731
1735
|
function zb(t, i, e) {
|
|
1732
1736
|
const s = t.tilingScheme, o = s.ellipsoid, n = s.projection instanceof h.GeographicProjection ? 1 : Math.cos(e), r = s.rectangle, l = o.maximumRadius * r.width * n / (t.tileWidth * s.getNumberOfXTilesAtLevel(0)) / i, c = Math.log(l) / Math.log(2);
|
|
@@ -27707,13 +27711,13 @@ const nl = class nl extends Zi {
|
|
|
27707
27711
|
let l = {
|
|
27708
27712
|
id: "",
|
|
27709
27713
|
layer: "",
|
|
27710
|
-
screenObjectIds:
|
|
27714
|
+
screenObjectIds: /* @__PURE__ */ new Set()
|
|
27711
27715
|
};
|
|
27712
27716
|
const c = () => {
|
|
27713
27717
|
l.id != "" && (r.remove(l.layer, l.id, { label: l.screenObjectIds }), l = {
|
|
27714
27718
|
id: "",
|
|
27715
27719
|
layer: "",
|
|
27716
|
-
screenObjectIds:
|
|
27720
|
+
screenObjectIds: /* @__PURE__ */ new Set()
|
|
27717
27721
|
});
|
|
27718
27722
|
};
|
|
27719
27723
|
this.ad(() => {
|
|
@@ -27745,7 +27749,7 @@ const nl = class nl extends Zi {
|
|
|
27745
27749
|
zOrder: e.zIndex ?? rt.defaults.zIndex,
|
|
27746
27750
|
properties: y.properties
|
|
27747
27751
|
}, B = r.addLabel(e.id, e.typeName, v, D);
|
|
27748
|
-
l.id = B.id, l.layer = B.layer, l.screenObjectIds.
|
|
27752
|
+
l.id = B.id, l.layer = B.layer, l.screenObjectIds.add(B.screenObjectId);
|
|
27749
27753
|
});
|
|
27750
27754
|
});
|
|
27751
27755
|
};
|
|
@@ -27778,13 +27782,13 @@ const nl = class nl extends Zi {
|
|
|
27778
27782
|
let l = {
|
|
27779
27783
|
id: "",
|
|
27780
27784
|
layer: "",
|
|
27781
|
-
screenObjectIds:
|
|
27785
|
+
screenObjectIds: /* @__PURE__ */ new Set()
|
|
27782
27786
|
};
|
|
27783
27787
|
const c = () => {
|
|
27784
27788
|
l.id != "" && (r.remove(l.layer, l.id, { billboard: l.screenObjectIds }), l = {
|
|
27785
27789
|
id: "",
|
|
27786
27790
|
layer: "",
|
|
27787
|
-
screenObjectIds:
|
|
27791
|
+
screenObjectIds: /* @__PURE__ */ new Set()
|
|
27788
27792
|
});
|
|
27789
27793
|
}, d = () => {
|
|
27790
27794
|
if (c(), !((e.imageShow ?? rt.defaults.imageShow) && (e.show ?? rt.defaults.show)) || !this.pointFeatures) return;
|
|
@@ -27810,7 +27814,7 @@ const nl = class nl extends Zi {
|
|
|
27810
27814
|
zOrder: e.zIndex ?? rt.defaults.zIndex,
|
|
27811
27815
|
properties: _.properties
|
|
27812
27816
|
}, B = r.addImage(e.id, e.typeName, y, D);
|
|
27813
|
-
l.id = B.id, l.layer = B.layer, l.screenObjectIds.
|
|
27817
|
+
l.id = B.id, l.layer = B.layer, l.screenObjectIds.add(B.screenObjectId);
|
|
27814
27818
|
});
|
|
27815
27819
|
});
|
|
27816
27820
|
};
|
|
@@ -28088,8 +28092,8 @@ const ll = class ll extends Ie {
|
|
|
28088
28092
|
a(), this.d(e.rotationChanged.don(a));
|
|
28089
28093
|
{
|
|
28090
28094
|
const l = () => {
|
|
28091
|
-
if (a(), !e.instances) {
|
|
28092
|
-
n.instances =
|
|
28095
|
+
if (a(), !e.instances || e.instances.length == 0) {
|
|
28096
|
+
n.instances = void 0;
|
|
28093
28097
|
return;
|
|
28094
28098
|
}
|
|
28095
28099
|
n.instances = e.instances.map((c) => {
|
|
@@ -33021,9 +33025,9 @@ const Be = class Be extends Zi {
|
|
|
33021
33025
|
});
|
|
33022
33026
|
c.ad(() => f());
|
|
33023
33027
|
{
|
|
33024
|
-
let v = { id: "", layer: "", screenObjectIds:
|
|
33028
|
+
let v = { id: "", layer: "", screenObjectIds: /* @__PURE__ */ new Set() }, y = { id: "", layer: "", screenObjectIds: /* @__PURE__ */ new Set() };
|
|
33025
33029
|
const _ = () => {
|
|
33026
|
-
v && (r.remove(v.layer, v.id, { label: v.screenObjectIds }), v = { id: "", layer: "", screenObjectIds:
|
|
33030
|
+
v && (r.remove(v.layer, v.id, { label: v.screenObjectIds }), v = { id: "", layer: "", screenObjectIds: /* @__PURE__ */ new Set() }), y && (r.remove(y.layer, y.id, { billboard: y.screenObjectIds }), y = { id: "", layer: "", screenObjectIds: /* @__PURE__ */ new Set() });
|
|
33027
33031
|
};
|
|
33028
33032
|
c.ad(() => {
|
|
33029
33033
|
_();
|
|
@@ -33070,7 +33074,7 @@ const Be = class Be extends Zi {
|
|
|
33070
33074
|
pixelOffset: new h.Cartesian2(-Y.anchorPixelOffset[0] * Be.scaleFactor, -Y.anchorPixelOffset[1] * Be.scaleFactor),
|
|
33071
33075
|
imageSubRegion: new h.BoundingRectangle(...Y.imagePixelOffset, ...Y.imageSize)
|
|
33072
33076
|
}, we = r.addImage(e.id, e.typeName, ye, J), Ce = r.addLabel(e.id, e.typeName, le, J);
|
|
33073
|
-
y.id = we.id, y.layer = we.layer, y.screenObjectIds.
|
|
33077
|
+
y.id = we.id, y.layer = we.layer, y.screenObjectIds.add(we.screenObjectId), v.id = Ce.id, v.layer = Ce.layer, v.screenObjectIds.add(Ce.screenObjectId);
|
|
33074
33078
|
for (let Ee = 0; Ee < I.id.length; Ee++)
|
|
33075
33079
|
W.set(I.id[Ee].id, 1);
|
|
33076
33080
|
}
|
|
@@ -33082,7 +33086,7 @@ const Be = class Be extends Zi {
|
|
|
33082
33086
|
name: J,
|
|
33083
33087
|
position: $
|
|
33084
33088
|
}, Y = r.addImage(e.id, e.typeName, G, Z), te = r.addLabel(e.id, e.typeName, N, Z);
|
|
33085
|
-
y.id = Y.id, y.layer = Y.layer, y.screenObjectIds.
|
|
33089
|
+
y.id = Y.id, y.layer = Y.layer, y.screenObjectIds.add(Y.screenObjectId), v.id = te.id, v.layer = te.layer, v.screenObjectIds.add(te.screenObjectId);
|
|
33086
33090
|
}
|
|
33087
33091
|
};
|
|
33088
33092
|
C();
|
|
@@ -46434,23 +46438,27 @@ class E5 extends k {
|
|
|
46434
46438
|
const [o, n, r] = s.split("-").map(Number), l = this.tileSchemes.get(e) === "tms" ? Math.pow(2, o) - r - 1 : r, c = { tileKey: s, sources: /* @__PURE__ */ new Map() }, d = this.sourcesMap.get(e);
|
|
46435
46439
|
if (!d) return c;
|
|
46436
46440
|
for (const [y, _] of d.entries()) {
|
|
46437
|
-
|
|
46438
|
-
const C = _.tiles
|
|
46439
|
-
|
|
46440
|
-
|
|
46441
|
-
|
|
46442
|
-
|
|
46443
|
-
|
|
46444
|
-
if (
|
|
46445
|
-
|
|
46446
|
-
|
|
46447
|
-
|
|
46448
|
-
N
|
|
46441
|
+
c.sources.has(y) || c.sources.set(y, /* @__PURE__ */ new Map());
|
|
46442
|
+
const C = Array.isArray(_.tiles) ? _.tiles : [_.tiles];
|
|
46443
|
+
for (const b of C) {
|
|
46444
|
+
if (!b.includes("{z}") || _.maxzoom && o > _.maxzoom || _.minzoom && o < _.minzoom) continue;
|
|
46445
|
+
const T = b.replace("{z}", o.toString()).replace("{x}", n.toString()).replace("{y}", l.toString());
|
|
46446
|
+
try {
|
|
46447
|
+
const E = await hp.fetchArrayBuffer({ url: T });
|
|
46448
|
+
if (!E) continue;
|
|
46449
|
+
const D = new fx(E), B = new gx(D);
|
|
46450
|
+
for (const N in B.layers)
|
|
46451
|
+
if (Object.prototype.hasOwnProperty.call(B.layers, N)) {
|
|
46452
|
+
const G = B.layers[N], W = /* @__PURE__ */ new Set();
|
|
46453
|
+
for (let L = 0; L < G.length; L++) {
|
|
46454
|
+
const V = G.feature(L);
|
|
46455
|
+
W.add(V.toGeoJSON(n, r, o));
|
|
46456
|
+
}
|
|
46457
|
+
(f = c.sources.get(y)) == null || f.set(N, W);
|
|
46449
46458
|
}
|
|
46450
|
-
|
|
46451
|
-
}
|
|
46452
|
-
|
|
46453
|
-
console.error(`Failed to load tile ${s}:`, b);
|
|
46459
|
+
} catch (E) {
|
|
46460
|
+
console.error(`Failed to load tile ${s}:`, E);
|
|
46461
|
+
}
|
|
46454
46462
|
}
|
|
46455
46463
|
}
|
|
46456
46464
|
return (m = this.pendingRequests.get(e)) == null || m.delete(s), ((v = this.pendingRequests.get(e)) == null ? void 0 : v.size) === 0 && this.pendingRequests.delete(e), c;
|
|
@@ -46467,7 +46475,7 @@ class A5 extends k {
|
|
|
46467
46475
|
}
|
|
46468
46476
|
renderTile(e, s) {
|
|
46469
46477
|
var a;
|
|
46470
|
-
const o =
|
|
46478
|
+
const o = /* @__PURE__ */ new Set(), n = this.styleManager.getStyle(e);
|
|
46471
46479
|
if (!n) return;
|
|
46472
46480
|
for (const l of n) {
|
|
46473
46481
|
if (l.maxzoom || l.minzoom) {
|
|
@@ -46486,7 +46494,7 @@ class A5 extends k {
|
|
|
46486
46494
|
position: d,
|
|
46487
46495
|
name: c.properties.NAME ?? c.properties.name,
|
|
46488
46496
|
index: l.id + c.properties.osm_id
|
|
46489
|
-
}).screenObjectId), u && o.
|
|
46497
|
+
}).screenObjectId), u && !o.has(u) && o.add(u), p && !o.has(p) && o.add(p);
|
|
46490
46498
|
}
|
|
46491
46499
|
}
|
|
46492
46500
|
let r = this.renderedTiles.get(e);
|
|
@@ -46507,7 +46515,10 @@ class A5 extends k {
|
|
|
46507
46515
|
n && (this.screenManager.remove("VectorTile", e, n), o == null || o.delete(s), (o == null ? void 0 : o.size) === 0 && this.renderedTiles.delete(e));
|
|
46508
46516
|
} else {
|
|
46509
46517
|
const n = o == null ? void 0 : o.values();
|
|
46510
|
-
|
|
46518
|
+
if (n) {
|
|
46519
|
+
const r = new Set([...n].flatMap((a) => [...a]));
|
|
46520
|
+
this.screenManager.remove("VectorTile", e, r, !0), this.renderedTiles.delete(e);
|
|
46521
|
+
}
|
|
46511
46522
|
}
|
|
46512
46523
|
}
|
|
46513
46524
|
removeAll() {
|
|
@@ -46624,7 +46635,7 @@ class I5 extends k {
|
|
|
46624
46635
|
registerEvent(e, s, o) {
|
|
46625
46636
|
var r;
|
|
46626
46637
|
const n = `${e}-${s}`;
|
|
46627
|
-
this.callbacks.has(n) || this.callbacks.set(n,
|
|
46638
|
+
this.callbacks.has(n) || this.callbacks.set(n, /* @__PURE__ */ new Set()), (r = this.callbacks.get(n)) == null || r.add(o);
|
|
46628
46639
|
}
|
|
46629
46640
|
dispatchEvent(e) {
|
|
46630
46641
|
var o;
|
|
@@ -46675,8 +46686,8 @@ class R5 extends k {
|
|
|
46675
46686
|
tileWidth: n.sceneObject.tileSize,
|
|
46676
46687
|
maximumLevel: n.sceneObject.maximumLevel,
|
|
46677
46688
|
minimumLevel: n.sceneObject.minimumLevel
|
|
46678
|
-
};
|
|
46679
|
-
|
|
46689
|
+
}, a = /* @__PURE__ */ new Set();
|
|
46690
|
+
Fb(e.scene.globe._surface._tilesToRender, e.scene.terrainProvider, r).forEach((l) => a.add(`${l.level}-${l.x}-${l.y}`)), !s.has(o) && s.set(o, a);
|
|
46680
46691
|
}
|
|
46681
46692
|
this.updateTiles(s);
|
|
46682
46693
|
}
|
|
@@ -46690,7 +46701,7 @@ class R5 extends k {
|
|
|
46690
46701
|
const l = new Set(((s = this.tilesCache.get(n)) == null ? void 0 : s.keys()) ?? []), c = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set();
|
|
46691
46702
|
for (const u of l) {
|
|
46692
46703
|
const p = (o = this.tileRenderer.renderedTiles.get(n)) == null ? void 0 : o.get(u);
|
|
46693
|
-
if (p)
|
|
46704
|
+
if (!(!p || p.size == 0))
|
|
46694
46705
|
if (r.has(u))
|
|
46695
46706
|
for (const f of p) c.add(f);
|
|
46696
46707
|
else
|
|
@@ -46698,7 +46709,7 @@ class R5 extends k {
|
|
|
46698
46709
|
}
|
|
46699
46710
|
for (const u of c)
|
|
46700
46711
|
d.delete(u);
|
|
46701
|
-
this.tileRenderer.update(n,
|
|
46712
|
+
this.tileRenderer.update(n, d, !1), this.tileRenderer.update(n, c, !0);
|
|
46702
46713
|
for (const u of r)
|
|
46703
46714
|
l.has(u) || (this.tilesCache.set(n, u, void 0), this.tileLoader.fetchTile(n, u).then((p) => {
|
|
46704
46715
|
p && (this.tilesCache.set(n, u, p), this.tileRenderer.renderTile(n, p));
|
|
@@ -46782,7 +46793,7 @@ class F5 extends k {
|
|
|
46782
46793
|
addLabel(e, s, o) {
|
|
46783
46794
|
const n = this.makeScreenObjectId(e, o.index ?? Ne()), r = Ve(o.position), a = this.getOrCreateObject(n, r);
|
|
46784
46795
|
if (a.label)
|
|
46785
|
-
return a.labelRefCount++,
|
|
46796
|
+
return a.labelRefCount++, a.label.show = s.show ?? !0, n;
|
|
46786
46797
|
const l = this.screenManager.labelCollection.add({
|
|
46787
46798
|
...s,
|
|
46788
46799
|
position: r,
|
|
@@ -46806,7 +46817,7 @@ class F5 extends k {
|
|
|
46806
46817
|
addImage(e, s, o) {
|
|
46807
46818
|
const n = this.makeScreenObjectId(e, o.index ?? Ne()), r = Ve(o.position), a = this.getOrCreateObject(n, r);
|
|
46808
46819
|
if (a.billboard)
|
|
46809
|
-
return a.billboardRefCount++,
|
|
46820
|
+
return a.billboardRefCount++, a.billboard.show = s.show ?? !0, n;
|
|
46810
46821
|
const l = this.screenManager.billboardCollection.add({
|
|
46811
46822
|
...s,
|
|
46812
46823
|
position: r,
|
|
@@ -46830,7 +46841,7 @@ class F5 extends k {
|
|
|
46830
46841
|
addRectangle(e, s, o, n) {
|
|
46831
46842
|
const r = this.makeScreenObjectId(e, o.index ?? Ne()), a = Ve(o.position), l = this.getOrCreateObject(r, a);
|
|
46832
46843
|
if (l.rectangle)
|
|
46833
|
-
return l.rectangleRefCount++,
|
|
46844
|
+
return l.rectangleRefCount++, r;
|
|
46834
46845
|
const c = this.screenManager.rectangleCollection.add({
|
|
46835
46846
|
...hx(s.element),
|
|
46836
46847
|
...s,
|
|
@@ -46850,7 +46861,7 @@ class F5 extends k {
|
|
|
46850
46861
|
* 2. 遍历类型ID集合,更新对应对象的样式属性
|
|
46851
46862
|
*/
|
|
46852
46863
|
update(e, s) {
|
|
46853
|
-
const o =
|
|
46864
|
+
const o = e instanceof Set ? e : /* @__PURE__ */ new Set([e]);
|
|
46854
46865
|
for (const n of o) {
|
|
46855
46866
|
const r = this.objects.get(n);
|
|
46856
46867
|
if (r)
|
|
@@ -46870,28 +46881,28 @@ class F5 extends k {
|
|
|
46870
46881
|
* @param removeInfo - 对象的类型ID集合(用于精确移除)
|
|
46871
46882
|
* @returns 如果移除成功返回 true,否则返回 false
|
|
46872
46883
|
*/
|
|
46873
|
-
remove(e) {
|
|
46874
|
-
const
|
|
46875
|
-
if (
|
|
46876
|
-
for (const
|
|
46877
|
-
const
|
|
46878
|
-
|
|
46884
|
+
remove(e, s = !1) {
|
|
46885
|
+
const o = e instanceof Set ? e : typeof e == "string" ? /* @__PURE__ */ new Set([e]) : e;
|
|
46886
|
+
if (o instanceof Set) {
|
|
46887
|
+
for (const n of o) {
|
|
46888
|
+
const r = this.objects.get(n);
|
|
46889
|
+
r && (r.label && (r.labelRefCount > 1 && !s ? r.labelRefCount-- : (this.screenManager.labelCollection.remove(r.label), r.label = void 0)), r.billboard && (r.billboardRefCount > 1 && !s ? r.billboardRefCount-- : (this.screenManager.billboardCollection.remove(r.billboard), r.billboard = void 0)), r.rectangle && (r.rectangleRefCount > 1 && !s ? r.rectangleRefCount-- : (this.screenManager.rectangleCollection.remove(r.rectangle), r.rectangle = void 0)), this.tryDeleteEmpty(n));
|
|
46879
46890
|
}
|
|
46880
46891
|
return !0;
|
|
46881
46892
|
} else {
|
|
46882
|
-
for (const
|
|
46883
|
-
const
|
|
46884
|
-
for (const
|
|
46885
|
-
if (!
|
|
46886
|
-
const
|
|
46887
|
-
if (
|
|
46888
|
-
if (
|
|
46889
|
-
|
|
46893
|
+
for (const n of Object.keys(o)) {
|
|
46894
|
+
const r = o[n] instanceof Set ? o[n] : /* @__PURE__ */ new Set([o[n]]);
|
|
46895
|
+
for (const a of r) {
|
|
46896
|
+
if (!a) continue;
|
|
46897
|
+
const l = this.objects.get(a);
|
|
46898
|
+
if (l) {
|
|
46899
|
+
if (l[`${n}RefCount`] > 1 && !s)
|
|
46900
|
+
l[`${n}RefCount`]--;
|
|
46890
46901
|
else {
|
|
46891
|
-
const
|
|
46892
|
-
|
|
46902
|
+
const c = l[n];
|
|
46903
|
+
c && (this.screenManager.collectionMap[n].remove(c), l[n] = void 0);
|
|
46893
46904
|
}
|
|
46894
|
-
this.tryDeleteEmpty(
|
|
46905
|
+
this.tryDeleteEmpty(a);
|
|
46895
46906
|
}
|
|
46896
46907
|
}
|
|
46897
46908
|
}
|
|
@@ -47098,15 +47109,15 @@ class O5 extends k {
|
|
|
47098
47109
|
}
|
|
47099
47110
|
update(e, s, o, n) {
|
|
47100
47111
|
const r = this.getLayer(e);
|
|
47101
|
-
return
|
|
47112
|
+
return o instanceof Set && o.size === 0 ? !1 : (r.update(o, n), this.refresh(), !0);
|
|
47102
47113
|
}
|
|
47103
|
-
remove(e, s, o) {
|
|
47104
|
-
const
|
|
47105
|
-
if (!
|
|
47114
|
+
remove(e, s, o, n = !1) {
|
|
47115
|
+
const r = this.getLayer(e);
|
|
47116
|
+
if (!r.remove(o, n)) {
|
|
47106
47117
|
console.warn(`屏幕管理器,删除${s}下的内容失败!`);
|
|
47107
47118
|
return;
|
|
47108
47119
|
}
|
|
47109
|
-
!
|
|
47120
|
+
!r.layerIsEffective() && !r.isDestroyed() && (r.destroy(), this.layers.delete(e)), this.refresh();
|
|
47110
47121
|
}
|
|
47111
47122
|
setRules(e, s) {
|
|
47112
47123
|
Reflect.has(e, "avoidance") && this.avoidanceManager.updateAvoidanceLayer(e.avoidance, s), this.refresh();
|
|
@@ -51062,7 +51073,7 @@ let qe = Pt;
|
|
|
51062
51073
|
ae(qe.prototype, qe.createDefaultProps);
|
|
51063
51074
|
let ap;
|
|
51064
51075
|
try {
|
|
51065
|
-
const t = "earthsdk3-cesium", i = "3.6.0-beta.
|
|
51076
|
+
const t = "earthsdk3-cesium", i = "3.6.0-beta.7", e = "2025-11-21T08:49:25.000Z", s = "北京西部世界科技有限公司", o = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", n = "0e3ca8b8366860dc0f51a8bc93f13eb5150cd663", a = ((Date.now() - 1763714965e3) / 36e5).toFixed(1), l = `%c🌏 ${t}%c ${i}.${n.slice(0, 8)}.${e} (距今${a}个小时)
|
|
51066
51077
|
%c${o ? o + `
|
|
51067
51078
|
` : ""}当前网站正在使用${t},此软件版权归${s}所有
|
|
51068
51079
|
`;
|
|
@@ -51076,7 +51087,7 @@ try {
|
|
|
51076
51087
|
},
|
|
51077
51088
|
// @ts-ignore
|
|
51078
51089
|
get gituri() {
|
|
51079
|
-
return GITURI_ && GITURI_.replace("${commitId}", "
|
|
51090
|
+
return GITURI_ && GITURI_.replace("${commitId}", "0e3ca8b8366860dc0f51a8bc93f13eb5150cd663");
|
|
51080
51091
|
},
|
|
51081
51092
|
// @ts-ignore
|
|
51082
51093
|
get info() {
|
|
@@ -51084,7 +51095,7 @@ try {
|
|
|
51084
51095
|
},
|
|
51085
51096
|
// @ts-ignore
|
|
51086
51097
|
get date() {
|
|
51087
|
-
return "2025-11-
|
|
51098
|
+
return "2025-11-21T08:49:25.000Z";
|
|
51088
51099
|
},
|
|
51089
51100
|
// @ts-ignore
|
|
51090
51101
|
get author() {
|
|
@@ -51092,7 +51103,7 @@ try {
|
|
|
51092
51103
|
},
|
|
51093
51104
|
// @ts-ignore
|
|
51094
51105
|
get version() {
|
|
51095
|
-
return "3.6.0-beta.
|
|
51106
|
+
return "3.6.0-beta.7";
|
|
51096
51107
|
},
|
|
51097
51108
|
// @ts-ignore
|
|
51098
51109
|
get name() {
|
|
@@ -51100,7 +51111,7 @@ try {
|
|
|
51100
51111
|
},
|
|
51101
51112
|
// @ts-ignore
|
|
51102
51113
|
get commitId() {
|
|
51103
|
-
return "
|
|
51114
|
+
return "0e3ca8b8366860dc0f51a8bc93f13eb5150cd663";
|
|
51104
51115
|
},
|
|
51105
51116
|
print() {
|
|
51106
51117
|
console.info(
|