earthsdk3-cesium 3.6.0-beta.5 → 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 +133 -133
- package/dist/earthsdk3-cesium.js +344 -318
- package/dist/earthsdk3-cesium.umd.cjs +23 -23
- package/dist/types/CzmObjects/general/CzmES3DTileset/Czm3DTiles/index.d.ts.map +1 -1
- 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/StyleManager.d.ts +16 -9
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/StyleManager.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/dist/types/utils/czmUtils/getCzmCode/getCzmCodeFromESImageryLayer.d.ts.map +1 -1
- package/dist/types/utils/czmUtils/getCzmCode/getCzmCodeFromESTerrainLayer.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 }));
|
|
@@ -134,7 +139,7 @@ function as(t, i) {
|
|
|
134
139
|
return ke(t, i);
|
|
135
140
|
throw new Error("toCartesian error: should not be here!");
|
|
136
141
|
}
|
|
137
|
-
function
|
|
142
|
+
function nB(t, i) {
|
|
138
143
|
if (t instanceof h.Cartesian2)
|
|
139
144
|
return yx(t, i);
|
|
140
145
|
if (t instanceof h.Cartesian3)
|
|
@@ -143,7 +148,7 @@ function rB(t, i) {
|
|
|
143
148
|
return wx(t, i);
|
|
144
149
|
throw new Error("fromCartesian error: should not be here!");
|
|
145
150
|
}
|
|
146
|
-
function
|
|
151
|
+
function rB(t, i) {
|
|
147
152
|
return i = i || new h.Cartographic(), i.longitude = h.Math.toRadians(t[0]), i.latitude = h.Math.toRadians(t[1]), i.height = t[2], i;
|
|
148
153
|
}
|
|
149
154
|
function Sr(t, i) {
|
|
@@ -152,49 +157,49 @@ function Sr(t, i) {
|
|
|
152
157
|
function de(t, i) {
|
|
153
158
|
return i = i || new h.Color(), i.red = t[0], i.green = t[1], i.blue = t[2], i.alpha = t[3], i;
|
|
154
159
|
}
|
|
155
|
-
function
|
|
160
|
+
function aB(t, i) {
|
|
156
161
|
return i = i || [0, 0, 0, 0], i[0] = t.red, i[1] = t.green, i[2] = t.blue, i[3] = t.alpha, i;
|
|
157
162
|
}
|
|
158
163
|
function Jo(t, i) {
|
|
159
164
|
return i = i || new h.NearFarScalar(), i.near = t[0], i.nearValue = t[1], i.far = t[2], i.farValue = t[3], i;
|
|
160
165
|
}
|
|
161
|
-
function
|
|
166
|
+
function lB(t, i) {
|
|
162
167
|
return i = i || [0, 0, 0, 0], i[0] = t.near, i[1] = t.nearValue, i[2] = t.far, i[3] = t.farValue, i;
|
|
163
168
|
}
|
|
164
169
|
function Cx(t, i) {
|
|
165
170
|
return i = i || new h.HeadingPitchRoll(), i.heading = h.Math.toRadians(t[0] - 90), i.pitch = h.Math.toRadians(t[1]), i.roll = h.Math.toRadians(t[2]), i;
|
|
166
171
|
}
|
|
167
|
-
function
|
|
172
|
+
function hB(t, i) {
|
|
168
173
|
return i = i || [0, 0, 0], i[0] = h.Math.toDegrees(t.heading + h.Math.PI_OVER_TWO), i[1] = h.Math.toDegrees(t.pitch), i[2] = h.Math.toDegrees(t.roll), i;
|
|
169
174
|
}
|
|
170
175
|
function Hd(t, i) {
|
|
171
176
|
return i = i || new h.DistanceDisplayCondition(), i.near = t[0], i.far = t[1], i;
|
|
172
177
|
}
|
|
173
|
-
function
|
|
178
|
+
function cB(t, i) {
|
|
174
179
|
return i = i || [0, 0], i[0] = t.near, i[1] = t.far, i;
|
|
175
180
|
}
|
|
176
|
-
function
|
|
181
|
+
function dB(t, i) {
|
|
177
182
|
return i = i || new h.Quaternion(), i.x = t[0], i.y = t[1], i.z = t[2], i.w = t[3], i;
|
|
178
183
|
}
|
|
179
|
-
function
|
|
184
|
+
function uB(t, i) {
|
|
180
185
|
return i = i || [0, 0, 0, 0], i[0] = t.x, i[1] = t.y, i[2] = t.z, i[3] = t.w, i;
|
|
181
186
|
}
|
|
182
187
|
const _x = new h.HeadingPitchRoll(), Px = new h.Cartesian3();
|
|
183
|
-
function
|
|
188
|
+
function pB(t, i, e) {
|
|
184
189
|
const s = Cx(i, _x), o = Ve(t, Px);
|
|
185
190
|
return h.Transforms.headingPitchRollQuaternion(o, s, void 0, void 0, e);
|
|
186
191
|
}
|
|
187
192
|
function ht(t, i) {
|
|
188
193
|
return i = i || new h.Rectangle(), i.west = t[0] * Math.PI / 180, i.south = t[1] * Math.PI / 180, i.east = t[2] * Math.PI / 180, i.north = t[3] * Math.PI / 180, i;
|
|
189
194
|
}
|
|
190
|
-
function
|
|
195
|
+
function fB(t, i) {
|
|
191
196
|
return i = i || [0, 0, 0, 0], i[0] = t.west, i[1] = t.south, i[2] = t.east, i[3] = t.north, i;
|
|
192
197
|
}
|
|
193
198
|
const xx = new h.Cartesian3();
|
|
194
199
|
function De(t, i) {
|
|
195
200
|
return i = i || new h.Ellipsoid(), h.Ellipsoid.fromCartesian3(h.Cartesian3.fromArray(t, void 0, xx), i);
|
|
196
201
|
}
|
|
197
|
-
function
|
|
202
|
+
function gB(t, i) {
|
|
198
203
|
return i = i || [0, 0, 0], i[0] = t.radii.x, i[1] = t.radii.y, i[2] = t.radii.z, i;
|
|
199
204
|
}
|
|
200
205
|
function ns(t) {
|
|
@@ -496,7 +501,7 @@ function Tr(t, i, e, s) {
|
|
|
496
501
|
const o = Bd(t, e), n = pr(t, e), r = Math.cos(n * Math.PI / 180) * Math.cos(i * Math.PI / 180) + Math.sin(n * Math.PI / 180) * Math.sin(i * Math.PI / 180);
|
|
497
502
|
return r > 0 ? Ot(t, o, i, s) : Ot(t, o, i + 180, s), [r > 0 ? o : -o, s];
|
|
498
503
|
}
|
|
499
|
-
function
|
|
504
|
+
function mB(t, i, e) {
|
|
500
505
|
const s = e * 0.1, o = [];
|
|
501
506
|
for (let n = -9; n < 10; ++n) {
|
|
502
507
|
const r = Ot(t, s * n, i);
|
|
@@ -504,7 +509,7 @@ function vB(t, i, e) {
|
|
|
504
509
|
}
|
|
505
510
|
return o;
|
|
506
511
|
}
|
|
507
|
-
function
|
|
512
|
+
function vB(t, i) {
|
|
508
513
|
return q1(t, i).geometry.coordinates;
|
|
509
514
|
}
|
|
510
515
|
const Dg = new h.Cartesian3(), Fx = new h.Ray(), zx = new h.Plane(h.Cartesian3.UNIT_X, 0);
|
|
@@ -632,7 +637,7 @@ function Rw(t, i) {
|
|
|
632
637
|
return r.height = (o.height + n.height) * 0.5, [r.longitude * s, r.latitude * s, r.height];
|
|
633
638
|
}
|
|
634
639
|
const Lg = new h.Cartesian4(), Wx = new h.Matrix4();
|
|
635
|
-
function
|
|
640
|
+
function yB() {
|
|
636
641
|
return { left: 0, top: 0, right: 0, bottom: 0, depth: 0 };
|
|
637
642
|
}
|
|
638
643
|
function Hx(t, i) {
|
|
@@ -1229,7 +1234,7 @@ const Ug = ze(async (t, i) => {
|
|
|
1229
1234
|
Math.max(...n.map((l) => l[5]))
|
|
1230
1235
|
], e.tilesUrl.root.children = a), e;
|
|
1231
1236
|
});
|
|
1232
|
-
function
|
|
1237
|
+
function wB(t) {
|
|
1233
1238
|
return new Promise((i, e) => {
|
|
1234
1239
|
Ug.restart(void 0, t), Ug.completeEvent.don((s) => {
|
|
1235
1240
|
i(s);
|
|
@@ -1413,19 +1418,20 @@ async function vr(t, i, e) {
|
|
|
1413
1418
|
});
|
|
1414
1419
|
}
|
|
1415
1420
|
function bb(t) {
|
|
1416
|
-
if (t.url)
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1421
|
+
if (!t.url) return;
|
|
1422
|
+
const [i, e, s, o] = t.rectangle;
|
|
1423
|
+
return (
|
|
1424
|
+
/*js*/
|
|
1425
|
+
`(async ()=>{
|
|
1420
1426
|
var terrainProvider = await Cesium.CesiumTerrainProvider.fromUrl(
|
|
1421
1427
|
${Sb(typeof t.url == "object" ? t.url.url : t.url)}
|
|
1422
1428
|
);
|
|
1423
1429
|
viewer.terrainProvider = terrainProvider;
|
|
1424
1430
|
viewer.camera.flyTo({
|
|
1425
|
-
destination: Cesium.Rectangle.fromDegrees(
|
|
1431
|
+
destination: Cesium.Rectangle.fromDegrees(${i}, ${e}, ${s}, ${o})
|
|
1426
1432
|
});
|
|
1427
1433
|
})()`
|
|
1428
|
-
|
|
1434
|
+
);
|
|
1429
1435
|
}
|
|
1430
1436
|
function Sb(t) {
|
|
1431
1437
|
let i;
|
|
@@ -1433,22 +1439,26 @@ function Sb(t) {
|
|
|
1433
1439
|
const s = +t.substring(6);
|
|
1434
1440
|
Number.isFinite(s) && (i = `Cesium.IonResource.fromAssetId(${s})`);
|
|
1435
1441
|
} else
|
|
1436
|
-
i = `'${oe.context.getStrFromEnv(t)}'`;
|
|
1442
|
+
i = `'${oe.context.getStrFromEnv(t).replace("/layer.json", "")}'`;
|
|
1437
1443
|
return i;
|
|
1438
1444
|
}
|
|
1439
1445
|
function Tb(t) {
|
|
1440
1446
|
if (!t.url) return;
|
|
1441
1447
|
const i = oe.context.getStrFromEnv(typeof t.url == "string" ? t.url : t.url.url), e = [];
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1448
|
+
e.push(`url: '${i}'`);
|
|
1449
|
+
const s = i.endsWith(".xml") ? "TileMapServiceImageryProvider" : "UrlTemplateImageryProvider", [o, n, r, a] = t.rectangle ?? [-180, -90, 180, 90];
|
|
1450
|
+
return (
|
|
1451
|
+
/*js*/
|
|
1452
|
+
`
|
|
1453
|
+
var imageryProvider = new Cesium.${s}({
|
|
1454
|
+
${e.map((c) => `${c}`).join(`,
|
|
1446
1455
|
`)}
|
|
1447
1456
|
});
|
|
1448
1457
|
viewer.imageryLayers.addImageryProvider(imageryProvider);
|
|
1449
1458
|
viewer.camera.flyTo({
|
|
1450
|
-
destination: Cesium.Rectangle.fromDegrees(
|
|
1451
|
-
})
|
|
1459
|
+
destination: Cesium.Rectangle.fromDegrees(${o}, ${n}, ${r}, ${a})
|
|
1460
|
+
});`
|
|
1461
|
+
);
|
|
1452
1462
|
}
|
|
1453
1463
|
function Eb(t) {
|
|
1454
1464
|
var n, r;
|
|
@@ -1480,7 +1490,7 @@ function Ab(t) {
|
|
|
1480
1490
|
}
|
|
1481
1491
|
return i = i || `"${oe.context.getStrFromEnv(e)}"`, i;
|
|
1482
1492
|
}
|
|
1483
|
-
function
|
|
1493
|
+
function CB(t) {
|
|
1484
1494
|
return t instanceof bh ? Tb(t) : t instanceof wa ? bb(t) : t instanceof _i ? Eb(t) : "getCzmCode目前只支持影像地形或瓦片";
|
|
1485
1495
|
}
|
|
1486
1496
|
function Gw(t, i) {
|
|
@@ -1685,8 +1695,7 @@ class Db extends k {
|
|
|
1685
1695
|
const kb = new h.Rectangle();
|
|
1686
1696
|
function Fb(t, i, e) {
|
|
1687
1697
|
let s = /* @__PURE__ */ new Set();
|
|
1688
|
-
if (!i) return
|
|
1689
|
-
if (Array.isArray(t) || (t = [t]), t.length == 0) return [];
|
|
1698
|
+
if (!i || (t instanceof Array || (t = [t]), t.length == 0)) return s;
|
|
1690
1699
|
const o = ns(e.tilingScheme ?? { type: "WebMercatorTilingScheme" }) ?? new h.WebMercatorTilingScheme(), n = {
|
|
1691
1700
|
tilingScheme: o,
|
|
1692
1701
|
rectangle: h.Rectangle.intersection(
|
|
@@ -1698,30 +1707,30 @@ function Fb(t, i, e) {
|
|
|
1698
1707
|
tileWidth: e.tileWidth ?? 256,
|
|
1699
1708
|
tileHeight: e.tileHeight ?? 256
|
|
1700
1709
|
}, r = n.tilingScheme;
|
|
1701
|
-
for (
|
|
1702
|
-
const l =
|
|
1703
|
-
if (!
|
|
1704
|
-
|
|
1705
|
-
const
|
|
1706
|
-
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(
|
|
1707
1716
|
n,
|
|
1708
|
-
|
|
1709
|
-
Math.abs(
|
|
1717
|
+
c,
|
|
1718
|
+
Math.abs(l.south) < Math.abs(l.north) ? l.south : l.north
|
|
1710
1719
|
);
|
|
1711
|
-
|
|
1712
|
-
const
|
|
1713
|
-
|
|
1714
|
-
const
|
|
1715
|
-
|
|
1716
|
-
const
|
|
1717
|
-
Math.abs(
|
|
1718
|
-
const
|
|
1719
|
-
Math.abs(
|
|
1720
|
-
for (let
|
|
1721
|
-
for (let
|
|
1722
|
-
s.add({ x:
|
|
1723
|
-
}
|
|
1724
|
-
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;
|
|
1725
1734
|
}
|
|
1726
1735
|
function zb(t, i, e) {
|
|
1727
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);
|
|
@@ -1829,7 +1838,7 @@ class Ob extends k {
|
|
|
1829
1838
|
const [n, r, a] = ki(e), [l, c, d] = ki(s), [u, p, f] = ki(o);
|
|
1830
1839
|
}
|
|
1831
1840
|
}
|
|
1832
|
-
function
|
|
1841
|
+
function _B(t, i) {
|
|
1833
1842
|
const e = document.createElement("a");
|
|
1834
1843
|
e.href = t;
|
|
1835
1844
|
const s = e.href, o = new Image();
|
|
@@ -1860,7 +1869,7 @@ function Hg(t, i = !1) {
|
|
|
1860
1869
|
const e = ad(t[0], i), s = ad(t[1], i), o = Tf(t[2]);
|
|
1861
1870
|
return [e, s, o];
|
|
1862
1871
|
}
|
|
1863
|
-
function
|
|
1872
|
+
function PB(t) {
|
|
1864
1873
|
return Math.abs(t) < 1e6 ? `${t.toFixed(2)} m²` : `${(t / 1e6).toFixed(2)} km²`;
|
|
1865
1874
|
}
|
|
1866
1875
|
function Qr(t, i = 48) {
|
|
@@ -2004,7 +2013,7 @@ function $g(t, i) {
|
|
|
2004
2013
|
const _ = [...new Array(o).keys()], C = _.map((E) => [E, E + o + 1, E + o + 2, E, E + o + 2, E + 1]), b = _.map((E) => [E, E + o + 2, E + o + 1, E, E + 1, E + o + 2]), T = [...C, ...b].flat();
|
|
2005
2014
|
t.indexTypedArray = new Uint16Array(T);
|
|
2006
2015
|
}
|
|
2007
|
-
function
|
|
2016
|
+
function xB(t, i) {
|
|
2008
2017
|
for (let [e, { defaultValue: s, componentName: o, originPropName: n = e }] of Object.entries(i))
|
|
2009
2018
|
Reflect.has(t, e) ? console.error(`Prop(${e}) conflicts!`) : Object.defineProperties(t, {
|
|
2010
2019
|
[e]: {
|
|
@@ -2022,7 +2031,7 @@ function bB(t, i) {
|
|
|
2022
2031
|
}
|
|
2023
2032
|
});
|
|
2024
2033
|
}
|
|
2025
|
-
function
|
|
2034
|
+
function bB(t) {
|
|
2026
2035
|
const i = {};
|
|
2027
2036
|
for (let [e, { defaultValue: s }] of Object.entries(t))
|
|
2028
2037
|
i[e] = s;
|
|
@@ -5209,12 +5218,12 @@ let Qe = it;
|
|
|
5209
5218
|
});
|
|
5210
5219
|
})(Qe || (Qe = {}));
|
|
5211
5220
|
ae(Qe.prototype, Qe.createDefaultProps);
|
|
5212
|
-
class
|
|
5221
|
+
class TB extends dw {
|
|
5213
5222
|
constructor() {
|
|
5214
5223
|
super(), this.contentDiv.style.backgroundColor = "rgba(0, 0, 0, 0.8)", this.contentDiv.style.borderRadius = "3px", this.contentDiv.style.color = "rgb(255, 255, 255)", this.contentDiv.style.padding = "1px 5px 1px 5px", this.contentDiv.style.fontSize = "12px", this.contentDiv.style.whiteSpace = "nowrap", this.contentDiv.innerText = "未定义光标信息!", this.originRatioX = 0, this.originRatioY = 0, this.originOffsetX = -16;
|
|
5215
5224
|
}
|
|
5216
5225
|
}
|
|
5217
|
-
class
|
|
5226
|
+
class EB extends k {
|
|
5218
5227
|
constructor(e, s) {
|
|
5219
5228
|
super();
|
|
5220
5229
|
g(this, "_cursorDiv");
|
|
@@ -5403,7 +5412,7 @@ class Kw extends k {
|
|
|
5403
5412
|
return this._zOrderChanged || (this._zOrderChanged = new q()), this._zOrderChanged;
|
|
5404
5413
|
}
|
|
5405
5414
|
}
|
|
5406
|
-
class
|
|
5415
|
+
class AB extends k {
|
|
5407
5416
|
// status: CzmCanvasAndDivSwitchPoiStatus
|
|
5408
5417
|
constructor(e, s, o, n) {
|
|
5409
5418
|
super();
|
|
@@ -19231,7 +19240,7 @@ class rM extends h.WebMercatorTilingScheme {
|
|
|
19231
19240
|
};
|
|
19232
19241
|
}
|
|
19233
19242
|
}
|
|
19234
|
-
function
|
|
19243
|
+
function IB(t) {
|
|
19235
19244
|
if (t.type === "GeographicTilingScheme")
|
|
19236
19245
|
return "new Cesium.GeographicTilingScheme()";
|
|
19237
19246
|
if (t.type === "WebMercatorTilingScheme")
|
|
@@ -22217,7 +22226,6 @@ const ui = class ui extends k {
|
|
|
22217
22226
|
get idChanged() {
|
|
22218
22227
|
return this._id.changed;
|
|
22219
22228
|
}
|
|
22220
|
-
// getCzmCode() { return getCzmCodeFromCzm3DTiles(this); }
|
|
22221
22229
|
get czmViewer() {
|
|
22222
22230
|
return this._czmViewer;
|
|
22223
22231
|
}
|
|
@@ -27703,13 +27711,13 @@ const nl = class nl extends Zi {
|
|
|
27703
27711
|
let l = {
|
|
27704
27712
|
id: "",
|
|
27705
27713
|
layer: "",
|
|
27706
|
-
screenObjectIds:
|
|
27714
|
+
screenObjectIds: /* @__PURE__ */ new Set()
|
|
27707
27715
|
};
|
|
27708
27716
|
const c = () => {
|
|
27709
27717
|
l.id != "" && (r.remove(l.layer, l.id, { label: l.screenObjectIds }), l = {
|
|
27710
27718
|
id: "",
|
|
27711
27719
|
layer: "",
|
|
27712
|
-
screenObjectIds:
|
|
27720
|
+
screenObjectIds: /* @__PURE__ */ new Set()
|
|
27713
27721
|
});
|
|
27714
27722
|
};
|
|
27715
27723
|
this.ad(() => {
|
|
@@ -27741,7 +27749,7 @@ const nl = class nl extends Zi {
|
|
|
27741
27749
|
zOrder: e.zIndex ?? rt.defaults.zIndex,
|
|
27742
27750
|
properties: y.properties
|
|
27743
27751
|
}, B = r.addLabel(e.id, e.typeName, v, D);
|
|
27744
|
-
l.id = B.id, l.layer = B.layer, l.screenObjectIds.
|
|
27752
|
+
l.id = B.id, l.layer = B.layer, l.screenObjectIds.add(B.screenObjectId);
|
|
27745
27753
|
});
|
|
27746
27754
|
});
|
|
27747
27755
|
};
|
|
@@ -27774,13 +27782,13 @@ const nl = class nl extends Zi {
|
|
|
27774
27782
|
let l = {
|
|
27775
27783
|
id: "",
|
|
27776
27784
|
layer: "",
|
|
27777
|
-
screenObjectIds:
|
|
27785
|
+
screenObjectIds: /* @__PURE__ */ new Set()
|
|
27778
27786
|
};
|
|
27779
27787
|
const c = () => {
|
|
27780
27788
|
l.id != "" && (r.remove(l.layer, l.id, { billboard: l.screenObjectIds }), l = {
|
|
27781
27789
|
id: "",
|
|
27782
27790
|
layer: "",
|
|
27783
|
-
screenObjectIds:
|
|
27791
|
+
screenObjectIds: /* @__PURE__ */ new Set()
|
|
27784
27792
|
});
|
|
27785
27793
|
}, d = () => {
|
|
27786
27794
|
if (c(), !((e.imageShow ?? rt.defaults.imageShow) && (e.show ?? rt.defaults.show)) || !this.pointFeatures) return;
|
|
@@ -27806,7 +27814,7 @@ const nl = class nl extends Zi {
|
|
|
27806
27814
|
zOrder: e.zIndex ?? rt.defaults.zIndex,
|
|
27807
27815
|
properties: _.properties
|
|
27808
27816
|
}, B = r.addImage(e.id, e.typeName, y, D);
|
|
27809
|
-
l.id = B.id, l.layer = B.layer, l.screenObjectIds.
|
|
27817
|
+
l.id = B.id, l.layer = B.layer, l.screenObjectIds.add(B.screenObjectId);
|
|
27810
27818
|
});
|
|
27811
27819
|
});
|
|
27812
27820
|
};
|
|
@@ -28084,8 +28092,8 @@ const ll = class ll extends Ie {
|
|
|
28084
28092
|
a(), this.d(e.rotationChanged.don(a));
|
|
28085
28093
|
{
|
|
28086
28094
|
const l = () => {
|
|
28087
|
-
if (a(), !e.instances) {
|
|
28088
|
-
n.instances =
|
|
28095
|
+
if (a(), !e.instances || e.instances.length == 0) {
|
|
28096
|
+
n.instances = void 0;
|
|
28089
28097
|
return;
|
|
28090
28098
|
}
|
|
28091
28099
|
n.instances = e.instances.map((c) => {
|
|
@@ -29821,7 +29829,7 @@ const ml = class ml extends Zi {
|
|
|
29821
29829
|
requestVertexNormals: !0
|
|
29822
29830
|
};
|
|
29823
29831
|
} else
|
|
29824
|
-
m.includes("/layer.json") && (typeof f == "string" ? f = m.
|
|
29832
|
+
m.includes("/layer.json") && (typeof f == "string" ? f = m.replace("/layer.json", "") : f.url = m.replace("/layer.json", "")), this._czmProvider.value = {
|
|
29825
29833
|
type: "CesiumTerrainProvider",
|
|
29826
29834
|
url: f,
|
|
29827
29835
|
requestMetadata: !0,
|
|
@@ -33017,9 +33025,9 @@ const Be = class Be extends Zi {
|
|
|
33017
33025
|
});
|
|
33018
33026
|
c.ad(() => f());
|
|
33019
33027
|
{
|
|
33020
|
-
let v = { id: "", layer: "", screenObjectIds:
|
|
33028
|
+
let v = { id: "", layer: "", screenObjectIds: /* @__PURE__ */ new Set() }, y = { id: "", layer: "", screenObjectIds: /* @__PURE__ */ new Set() };
|
|
33021
33029
|
const _ = () => {
|
|
33022
|
-
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() });
|
|
33023
33031
|
};
|
|
33024
33032
|
c.ad(() => {
|
|
33025
33033
|
_();
|
|
@@ -33066,7 +33074,7 @@ const Be = class Be extends Zi {
|
|
|
33066
33074
|
pixelOffset: new h.Cartesian2(-Y.anchorPixelOffset[0] * Be.scaleFactor, -Y.anchorPixelOffset[1] * Be.scaleFactor),
|
|
33067
33075
|
imageSubRegion: new h.BoundingRectangle(...Y.imagePixelOffset, ...Y.imageSize)
|
|
33068
33076
|
}, we = r.addImage(e.id, e.typeName, ye, J), Ce = r.addLabel(e.id, e.typeName, le, J);
|
|
33069
|
-
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);
|
|
33070
33078
|
for (let Ee = 0; Ee < I.id.length; Ee++)
|
|
33071
33079
|
W.set(I.id[Ee].id, 1);
|
|
33072
33080
|
}
|
|
@@ -33078,7 +33086,7 @@ const Be = class Be extends Zi {
|
|
|
33078
33086
|
name: J,
|
|
33079
33087
|
position: $
|
|
33080
33088
|
}, Y = r.addImage(e.id, e.typeName, G, Z), te = r.addLabel(e.id, e.typeName, N, Z);
|
|
33081
|
-
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);
|
|
33082
33090
|
}
|
|
33083
33091
|
};
|
|
33084
33092
|
C();
|
|
@@ -45889,7 +45897,7 @@ class f5 extends k {
|
|
|
45889
45897
|
p !== e.currentTime && (e.currentTime = p);
|
|
45890
45898
|
}));
|
|
45891
45899
|
{
|
|
45892
|
-
const u = new
|
|
45900
|
+
const u = new B5(d, e);
|
|
45893
45901
|
X0(d, u);
|
|
45894
45902
|
}
|
|
45895
45903
|
e.setStatus("Created"), e.setStatusLog("成功创建Cesium视口!"), s(d);
|
|
@@ -46430,23 +46438,27 @@ class E5 extends k {
|
|
|
46430
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);
|
|
46431
46439
|
if (!d) return c;
|
|
46432
46440
|
for (const [y, _] of d.entries()) {
|
|
46433
|
-
|
|
46434
|
-
const C = _.tiles
|
|
46435
|
-
|
|
46436
|
-
|
|
46437
|
-
|
|
46438
|
-
|
|
46439
|
-
|
|
46440
|
-
if (
|
|
46441
|
-
|
|
46442
|
-
|
|
46443
|
-
|
|
46444
|
-
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);
|
|
46445
46458
|
}
|
|
46446
|
-
|
|
46447
|
-
}
|
|
46448
|
-
|
|
46449
|
-
console.error(`Failed to load tile ${s}:`, b);
|
|
46459
|
+
} catch (E) {
|
|
46460
|
+
console.error(`Failed to load tile ${s}:`, E);
|
|
46461
|
+
}
|
|
46450
46462
|
}
|
|
46451
46463
|
}
|
|
46452
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;
|
|
@@ -46463,7 +46475,7 @@ class A5 extends k {
|
|
|
46463
46475
|
}
|
|
46464
46476
|
renderTile(e, s) {
|
|
46465
46477
|
var a;
|
|
46466
|
-
const o =
|
|
46478
|
+
const o = /* @__PURE__ */ new Set(), n = this.styleManager.getStyle(e);
|
|
46467
46479
|
if (!n) return;
|
|
46468
46480
|
for (const l of n) {
|
|
46469
46481
|
if (l.maxzoom || l.minzoom) {
|
|
@@ -46482,7 +46494,7 @@ class A5 extends k {
|
|
|
46482
46494
|
position: d,
|
|
46483
46495
|
name: c.properties.NAME ?? c.properties.name,
|
|
46484
46496
|
index: l.id + c.properties.osm_id
|
|
46485
|
-
}).screenObjectId), u && o.
|
|
46497
|
+
}).screenObjectId), u && !o.has(u) && o.add(u), p && !o.has(p) && o.add(p);
|
|
46486
46498
|
}
|
|
46487
46499
|
}
|
|
46488
46500
|
let r = this.renderedTiles.get(e);
|
|
@@ -46503,7 +46515,10 @@ class A5 extends k {
|
|
|
46503
46515
|
n && (this.screenManager.remove("VectorTile", e, n), o == null || o.delete(s), (o == null ? void 0 : o.size) === 0 && this.renderedTiles.delete(e));
|
|
46504
46516
|
} else {
|
|
46505
46517
|
const n = o == null ? void 0 : o.values();
|
|
46506
|
-
|
|
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
|
+
}
|
|
46507
46522
|
}
|
|
46508
46523
|
}
|
|
46509
46524
|
removeAll() {
|
|
@@ -46516,11 +46531,17 @@ class M5 extends k {
|
|
|
46516
46531
|
constructor() {
|
|
46517
46532
|
super();
|
|
46518
46533
|
g(this, "defaultStyle", /* @__PURE__ */ new Map());
|
|
46534
|
+
g(this, "defaultSprite", /* @__PURE__ */ new Map());
|
|
46519
46535
|
}
|
|
46520
|
-
add(e) {
|
|
46536
|
+
async add(e) {
|
|
46537
|
+
var o;
|
|
46538
|
+
if (typeof e.mvtLayerJson.mainJson != "string" && ((o = e.mvtLayerJson.mainJson) != null && o.sprite)) {
|
|
46539
|
+
const n = e.mvtLayerJson.mainJson.sprite, r = await h.Resource.fetchJson({ url: n + ".json" });
|
|
46540
|
+
r && this.defaultSprite.set(e.sceneObject.id, [n + ".png", r]);
|
|
46541
|
+
}
|
|
46521
46542
|
const s = e.mvtLayerJson.pointJson;
|
|
46522
|
-
for (const
|
|
46523
|
-
this.setDefaultStyle(e.sceneObject.id,
|
|
46543
|
+
for (const n of s)
|
|
46544
|
+
this.setDefaultStyle(e.sceneObject.id, this.getStyleFromMVTLayers(e.sceneObject.id, n));
|
|
46524
46545
|
}
|
|
46525
46546
|
remove(e) {
|
|
46526
46547
|
this.defaultStyle.delete(e.sceneObject.id);
|
|
@@ -46532,42 +46553,47 @@ class M5 extends k {
|
|
|
46532
46553
|
getStyle(e) {
|
|
46533
46554
|
return this.defaultStyle.get(e) ?? /* @__PURE__ */ new Set();
|
|
46534
46555
|
}
|
|
46535
|
-
|
|
46536
|
-
|
|
46537
|
-
|
|
46538
|
-
|
|
46539
|
-
|
|
46540
|
-
|
|
46541
|
-
|
|
46542
|
-
|
|
46543
|
-
|
|
46544
|
-
|
|
46545
|
-
|
|
46546
|
-
|
|
46547
|
-
|
|
46548
|
-
|
|
46549
|
-
|
|
46550
|
-
|
|
46551
|
-
|
|
46552
|
-
const
|
|
46553
|
-
if (
|
|
46554
|
-
const r =
|
|
46555
|
-
|
|
46556
|
+
/**
|
|
46557
|
+
* 从MVTLayers的样式中获取Cesium的Label或Billboard样式
|
|
46558
|
+
* @param layerStyle MVTLayers的样式
|
|
46559
|
+
* @returns 样式
|
|
46560
|
+
*/
|
|
46561
|
+
getStyleFromMVTLayers(e, s) {
|
|
46562
|
+
const o = {
|
|
46563
|
+
id: s.id,
|
|
46564
|
+
type: s.type,
|
|
46565
|
+
source: s.source,
|
|
46566
|
+
"source-layer": s["source-layer"],
|
|
46567
|
+
labelStyle: void 0,
|
|
46568
|
+
billboardStyle: void 0,
|
|
46569
|
+
polygonStyle: void 0,
|
|
46570
|
+
polylineStyle: void 0
|
|
46571
|
+
};
|
|
46572
|
+
if (Reflect.has(s, "minzoom") && (o.minzoom = s.minzoom), Reflect.has(s, "maxzoom") && (o.maxzoom = s.maxzoom), Reflect.has(s, "type") && s.type === "symbol" && Reflect.has(s, "layout")) {
|
|
46573
|
+
const n = s.layout;
|
|
46574
|
+
if (Reflect.has(n, "icon-image")) {
|
|
46575
|
+
const r = o.billboardStyle = {}, a = this.defaultSprite.get(e);
|
|
46576
|
+
a && a[1][n["icon-image"]] ? (r.image = a[0], r.imageSubRegion = new h.BoundingRectangle(a[1][n["icon-image"]].x, a[1][n["icon-image"]].y, a[1][n["icon-image"]].width, a[1][n["icon-image"]].height)) : r.image = n["icon-image"];
|
|
46577
|
+
const { horizontalOrigin: l, verticalOrigin: c } = $0(n["icon-anchor"] ?? "center");
|
|
46578
|
+
if (r.horizontalOrigin = l, r.verticalOrigin = c, Reflect.has(s, "paint")) {
|
|
46579
|
+
const d = s.paint;
|
|
46580
|
+
r.color = h.Color.fromCssColorString(d["icon-color"] ?? "#FFFFFF").withAlpha(d["icon-opacity"] ?? 1);
|
|
46581
|
+
}
|
|
46582
|
+
r.rotation = h.Math.toRadians(n["icon-rotate"] ?? 0), r.scale = n["icon-size"] ?? 1, r.show = (n.visibility ?? "visible") === "visible";
|
|
46556
46583
|
}
|
|
46557
|
-
|
|
46558
|
-
|
|
46559
|
-
|
|
46560
|
-
|
|
46561
|
-
|
|
46562
|
-
|
|
46563
|
-
|
|
46564
|
-
|
|
46565
|
-
|
|
46584
|
+
if (Reflect.has(n, "text-field")) {
|
|
46585
|
+
const r = o.labelStyle = {};
|
|
46586
|
+
r.text = n["text-field"];
|
|
46587
|
+
const { horizontalOrigin: a, verticalOrigin: l } = $0(n["text-anchor"] ?? "center");
|
|
46588
|
+
if (r.horizontalOrigin = a, r.verticalOrigin = l, Reflect.has(s, "paint")) {
|
|
46589
|
+
const c = s.paint;
|
|
46590
|
+
r.fillColor = h.Color.fromCssColorString(c["text-color"] ?? "#FFFFFF").withAlpha(c["text-opacity"] ?? 1);
|
|
46591
|
+
}
|
|
46592
|
+
r.font = `${n["text-size"] ?? 16}px ${n["text-font"] ?? "sans-serif"}`, r.show = (n.visibility ?? "visible") === "visible";
|
|
46566
46593
|
}
|
|
46567
|
-
s.font = `${e["text-size"] ?? 16}px ${e["text-font"] ?? "sans-serif"}`, s.show = (e.visibility ?? "visible") === "visible";
|
|
46568
46594
|
}
|
|
46595
|
+
return o;
|
|
46569
46596
|
}
|
|
46570
|
-
return i;
|
|
46571
46597
|
}
|
|
46572
46598
|
function $0(t) {
|
|
46573
46599
|
let i = h.HorizontalOrigin.CENTER, e = h.VerticalOrigin.CENTER;
|
|
@@ -46601,7 +46627,7 @@ function $0(t) {
|
|
|
46601
46627
|
}
|
|
46602
46628
|
return { horizontalOrigin: i, verticalOrigin: e };
|
|
46603
46629
|
}
|
|
46604
|
-
class
|
|
46630
|
+
class I5 extends k {
|
|
46605
46631
|
constructor() {
|
|
46606
46632
|
super();
|
|
46607
46633
|
g(this, "callbacks", /* @__PURE__ */ new Map());
|
|
@@ -46609,7 +46635,7 @@ class R5 extends k {
|
|
|
46609
46635
|
registerEvent(e, s, o) {
|
|
46610
46636
|
var r;
|
|
46611
46637
|
const n = `${e}-${s}`;
|
|
46612
|
-
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);
|
|
46613
46639
|
}
|
|
46614
46640
|
dispatchEvent(e) {
|
|
46615
46641
|
var o;
|
|
@@ -46617,7 +46643,7 @@ class R5 extends k {
|
|
|
46617
46643
|
(o = this.callbacks.get(s)) == null || o.forEach((n) => n(e.data));
|
|
46618
46644
|
}
|
|
46619
46645
|
}
|
|
46620
|
-
class
|
|
46646
|
+
class R5 extends k {
|
|
46621
46647
|
constructor(e) {
|
|
46622
46648
|
super();
|
|
46623
46649
|
g(this, "czmESMVTLayers", /* @__PURE__ */ new Map());
|
|
@@ -46625,7 +46651,7 @@ class D5 extends k {
|
|
|
46625
46651
|
g(this, "tileLoader", new E5());
|
|
46626
46652
|
g(this, "tileRenderer");
|
|
46627
46653
|
g(this, "styleManager", new M5());
|
|
46628
|
-
g(this, "eventManager", new
|
|
46654
|
+
g(this, "eventManager", new I5());
|
|
46629
46655
|
g(this, "lastImageryTileMap", /* @__PURE__ */ new Map());
|
|
46630
46656
|
this.viewer = e;
|
|
46631
46657
|
const s = Ct(e);
|
|
@@ -46660,8 +46686,8 @@ class D5 extends k {
|
|
|
46660
46686
|
tileWidth: n.sceneObject.tileSize,
|
|
46661
46687
|
maximumLevel: n.sceneObject.maximumLevel,
|
|
46662
46688
|
minimumLevel: n.sceneObject.minimumLevel
|
|
46663
|
-
};
|
|
46664
|
-
|
|
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);
|
|
46665
46691
|
}
|
|
46666
46692
|
this.updateTiles(s);
|
|
46667
46693
|
}
|
|
@@ -46669,13 +46695,13 @@ class D5 extends k {
|
|
|
46669
46695
|
var s, o;
|
|
46670
46696
|
for (const n of this.czmESMVTLayers.keys()) {
|
|
46671
46697
|
const r = e.get(n) ?? /* @__PURE__ */ new Set(), a = this.lastImageryTileMap.get(n);
|
|
46672
|
-
if (a &&
|
|
46698
|
+
if (a && D5(r, a))
|
|
46673
46699
|
continue;
|
|
46674
46700
|
this.lastImageryTileMap.set(n, r);
|
|
46675
46701
|
const l = new Set(((s = this.tilesCache.get(n)) == null ? void 0 : s.keys()) ?? []), c = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set();
|
|
46676
46702
|
for (const u of l) {
|
|
46677
46703
|
const p = (o = this.tileRenderer.renderedTiles.get(n)) == null ? void 0 : o.get(u);
|
|
46678
|
-
if (p)
|
|
46704
|
+
if (!(!p || p.size == 0))
|
|
46679
46705
|
if (r.has(u))
|
|
46680
46706
|
for (const f of p) c.add(f);
|
|
46681
46707
|
else
|
|
@@ -46683,7 +46709,7 @@ class D5 extends k {
|
|
|
46683
46709
|
}
|
|
46684
46710
|
for (const u of c)
|
|
46685
46711
|
d.delete(u);
|
|
46686
|
-
this.tileRenderer.update(n,
|
|
46712
|
+
this.tileRenderer.update(n, d, !1), this.tileRenderer.update(n, c, !0);
|
|
46687
46713
|
for (const u of r)
|
|
46688
46714
|
l.has(u) || (this.tilesCache.set(n, u, void 0), this.tileLoader.fetchTile(n, u).then((p) => {
|
|
46689
46715
|
p && (this.tilesCache.set(n, u, p), this.tileRenderer.renderTile(n, p));
|
|
@@ -46700,14 +46726,14 @@ class D5 extends k {
|
|
|
46700
46726
|
// }
|
|
46701
46727
|
// }
|
|
46702
46728
|
}
|
|
46703
|
-
function
|
|
46729
|
+
function D5(t, i) {
|
|
46704
46730
|
if (t.size !== i.size) return !1;
|
|
46705
46731
|
for (const e of t)
|
|
46706
46732
|
if (!i.has(e)) return !1;
|
|
46707
46733
|
return !0;
|
|
46708
46734
|
}
|
|
46709
46735
|
const D1 = ["label", "billboard", "rectangle"];
|
|
46710
|
-
class
|
|
46736
|
+
class k5 extends k {
|
|
46711
46737
|
constructor(e, s) {
|
|
46712
46738
|
super();
|
|
46713
46739
|
g(this, "id", Ne());
|
|
@@ -46734,7 +46760,7 @@ class F5 extends k {
|
|
|
46734
46760
|
this.label && (this.label.show = e), this.billboard && (this.billboard.show = e);
|
|
46735
46761
|
}
|
|
46736
46762
|
}
|
|
46737
|
-
class
|
|
46763
|
+
class F5 extends k {
|
|
46738
46764
|
constructor(e) {
|
|
46739
46765
|
super();
|
|
46740
46766
|
g(this, "objects", /* @__PURE__ */ new Map());
|
|
@@ -46767,7 +46793,7 @@ class z5 extends k {
|
|
|
46767
46793
|
addLabel(e, s, o) {
|
|
46768
46794
|
const n = this.makeScreenObjectId(e, o.index ?? Ne()), r = Ve(o.position), a = this.getOrCreateObject(n, r);
|
|
46769
46795
|
if (a.label)
|
|
46770
|
-
return a.labelRefCount++,
|
|
46796
|
+
return a.labelRefCount++, a.label.show = s.show ?? !0, n;
|
|
46771
46797
|
const l = this.screenManager.labelCollection.add({
|
|
46772
46798
|
...s,
|
|
46773
46799
|
position: r,
|
|
@@ -46791,7 +46817,7 @@ class z5 extends k {
|
|
|
46791
46817
|
addImage(e, s, o) {
|
|
46792
46818
|
const n = this.makeScreenObjectId(e, o.index ?? Ne()), r = Ve(o.position), a = this.getOrCreateObject(n, r);
|
|
46793
46819
|
if (a.billboard)
|
|
46794
|
-
return a.billboardRefCount++,
|
|
46820
|
+
return a.billboardRefCount++, a.billboard.show = s.show ?? !0, n;
|
|
46795
46821
|
const l = this.screenManager.billboardCollection.add({
|
|
46796
46822
|
...s,
|
|
46797
46823
|
position: r,
|
|
@@ -46815,7 +46841,7 @@ class z5 extends k {
|
|
|
46815
46841
|
addRectangle(e, s, o, n) {
|
|
46816
46842
|
const r = this.makeScreenObjectId(e, o.index ?? Ne()), a = Ve(o.position), l = this.getOrCreateObject(r, a);
|
|
46817
46843
|
if (l.rectangle)
|
|
46818
|
-
return l.rectangleRefCount++,
|
|
46844
|
+
return l.rectangleRefCount++, r;
|
|
46819
46845
|
const c = this.screenManager.rectangleCollection.add({
|
|
46820
46846
|
...hx(s.element),
|
|
46821
46847
|
...s,
|
|
@@ -46835,7 +46861,7 @@ class z5 extends k {
|
|
|
46835
46861
|
* 2. 遍历类型ID集合,更新对应对象的样式属性
|
|
46836
46862
|
*/
|
|
46837
46863
|
update(e, s) {
|
|
46838
|
-
const o =
|
|
46864
|
+
const o = e instanceof Set ? e : /* @__PURE__ */ new Set([e]);
|
|
46839
46865
|
for (const n of o) {
|
|
46840
46866
|
const r = this.objects.get(n);
|
|
46841
46867
|
if (r)
|
|
@@ -46855,28 +46881,28 @@ class z5 extends k {
|
|
|
46855
46881
|
* @param removeInfo - 对象的类型ID集合(用于精确移除)
|
|
46856
46882
|
* @returns 如果移除成功返回 true,否则返回 false
|
|
46857
46883
|
*/
|
|
46858
|
-
remove(e) {
|
|
46859
|
-
const
|
|
46860
|
-
if (
|
|
46861
|
-
for (const
|
|
46862
|
-
const
|
|
46863
|
-
|
|
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));
|
|
46864
46890
|
}
|
|
46865
46891
|
return !0;
|
|
46866
46892
|
} else {
|
|
46867
|
-
for (const
|
|
46868
|
-
const
|
|
46869
|
-
for (const
|
|
46870
|
-
if (!
|
|
46871
|
-
const
|
|
46872
|
-
if (
|
|
46873
|
-
if (
|
|
46874
|
-
|
|
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`]--;
|
|
46875
46901
|
else {
|
|
46876
|
-
const
|
|
46877
|
-
|
|
46902
|
+
const c = l[n];
|
|
46903
|
+
c && (this.screenManager.collectionMap[n].remove(c), l[n] = void 0);
|
|
46878
46904
|
}
|
|
46879
|
-
this.tryDeleteEmpty(
|
|
46905
|
+
this.tryDeleteEmpty(a);
|
|
46880
46906
|
}
|
|
46881
46907
|
}
|
|
46882
46908
|
}
|
|
@@ -46890,7 +46916,7 @@ class z5 extends k {
|
|
|
46890
46916
|
/** 获取或创建 ScreenObject */
|
|
46891
46917
|
getOrCreateObject(e, s) {
|
|
46892
46918
|
let o = this.objects.get(e);
|
|
46893
|
-
return o || (o = new
|
|
46919
|
+
return o || (o = new k5(e, s), this.objects.set(e, o)), o;
|
|
46894
46920
|
}
|
|
46895
46921
|
/** 如果对象三种类型都没有了,则删除该 screenObject */
|
|
46896
46922
|
tryDeleteEmpty(e) {
|
|
@@ -46898,7 +46924,7 @@ class z5 extends k {
|
|
|
46898
46924
|
s && !s.label && !s.billboard && !s.rectangle && this.objects.delete(e);
|
|
46899
46925
|
}
|
|
46900
46926
|
}
|
|
46901
|
-
function
|
|
46927
|
+
function z5(t, i) {
|
|
46902
46928
|
const e = [Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER, Number.MIN_SAFE_INTEGER, Number.MIN_SAFE_INTEGER];
|
|
46903
46929
|
for (const s in i)
|
|
46904
46930
|
if (Object.prototype.hasOwnProperty.call(i, s) && D1.includes(s)) {
|
|
@@ -46915,7 +46941,7 @@ function L5(t, i) {
|
|
|
46915
46941
|
}
|
|
46916
46942
|
return new h.Rectangle(...e);
|
|
46917
46943
|
}
|
|
46918
|
-
class
|
|
46944
|
+
class L5 extends k {
|
|
46919
46945
|
// 阈值(可按需调整)
|
|
46920
46946
|
constructor(e) {
|
|
46921
46947
|
super();
|
|
@@ -47003,7 +47029,7 @@ class O5 extends k {
|
|
|
47003
47029
|
if (o && h.Cartesian3.equalsEpsilon(o.worldPos, n, 1e-6))
|
|
47004
47030
|
r = o.rect, this.rectangleCollisionCheck.remove(s, r);
|
|
47005
47031
|
else {
|
|
47006
|
-
if (r =
|
|
47032
|
+
if (r = z5(this.screenManager.viewer, e), isNaN(r.width) || isNaN(r.height)) {
|
|
47007
47033
|
e.show(!1), this._cache.has(e.id.toString()) && this._cache.delete(e.id.toString());
|
|
47008
47034
|
return;
|
|
47009
47035
|
}
|
|
@@ -47031,7 +47057,7 @@ class q0 extends k {
|
|
|
47031
47057
|
this._collection[e._index] = void 0;
|
|
47032
47058
|
}
|
|
47033
47059
|
}
|
|
47034
|
-
class
|
|
47060
|
+
class O5 extends k {
|
|
47035
47061
|
constructor(e) {
|
|
47036
47062
|
super();
|
|
47037
47063
|
g(this, "layers", /* @__PURE__ */ new Map());
|
|
@@ -47045,7 +47071,7 @@ class B5 extends k {
|
|
|
47045
47071
|
/** 集合映射,方便统一处理 */
|
|
47046
47072
|
g(this, "collectionMap");
|
|
47047
47073
|
g(this, "_refreshEvent", this.ad(new q()));
|
|
47048
|
-
this.czmViewer = e, this.viewer = e.viewer, this.avoidanceManager = this.ad(new
|
|
47074
|
+
this.czmViewer = e, this.viewer = e.viewer, this.avoidanceManager = this.ad(new L5(this)), this.labelCollection = new h.LabelCollection({ scene: this.viewer.scene }), this.billboardCollection = new h.BillboardCollection({ scene: this.viewer.scene }), this.viewer.scene.primitives.add(this.labelCollection), this.viewer.scene.primitives.add(this.billboardCollection), this.collectionMap = {
|
|
47049
47075
|
label: this.labelCollection,
|
|
47050
47076
|
billboard: this.billboardCollection,
|
|
47051
47077
|
rectangle: this.rectangleCollection
|
|
@@ -47067,7 +47093,7 @@ class B5 extends k {
|
|
|
47067
47093
|
}
|
|
47068
47094
|
getLayer(e) {
|
|
47069
47095
|
let s = this.layers.get(e);
|
|
47070
|
-
return s || (s = new
|
|
47096
|
+
return s || (s = new F5(this), this.layers.set(e, s), this.avoidanceManager.enable && this.avoidanceManager.updateAvoidanceLayer({ enabled: !0 })), s;
|
|
47071
47097
|
}
|
|
47072
47098
|
addLabel(e, s, o, n) {
|
|
47073
47099
|
const a = this.getLayer(s).addLabel(e, o, n);
|
|
@@ -47083,15 +47109,15 @@ class B5 extends k {
|
|
|
47083
47109
|
}
|
|
47084
47110
|
update(e, s, o, n) {
|
|
47085
47111
|
const r = this.getLayer(e);
|
|
47086
|
-
return
|
|
47112
|
+
return o instanceof Set && o.size === 0 ? !1 : (r.update(o, n), this.refresh(), !0);
|
|
47087
47113
|
}
|
|
47088
|
-
remove(e, s, o) {
|
|
47089
|
-
const
|
|
47090
|
-
if (!
|
|
47114
|
+
remove(e, s, o, n = !1) {
|
|
47115
|
+
const r = this.getLayer(e);
|
|
47116
|
+
if (!r.remove(o, n)) {
|
|
47091
47117
|
console.warn(`屏幕管理器,删除${s}下的内容失败!`);
|
|
47092
47118
|
return;
|
|
47093
47119
|
}
|
|
47094
|
-
!
|
|
47120
|
+
!r.layerIsEffective() && !r.isDestroyed() && (r.destroy(), this.layers.delete(e)), this.refresh();
|
|
47095
47121
|
}
|
|
47096
47122
|
setRules(e, s) {
|
|
47097
47123
|
Reflect.has(e, "avoidance") && this.avoidanceManager.updateAvoidanceLayer(e.avoidance, s), this.refresh();
|
|
@@ -47103,7 +47129,7 @@ function Ct(t) {
|
|
|
47103
47129
|
function X0(t, i) {
|
|
47104
47130
|
td(t, "_viewerExtensions", i);
|
|
47105
47131
|
}
|
|
47106
|
-
class
|
|
47132
|
+
class B5 extends k {
|
|
47107
47133
|
constructor(e, s) {
|
|
47108
47134
|
super();
|
|
47109
47135
|
g(this, "_imageriesManager");
|
|
@@ -47115,7 +47141,7 @@ class V5 extends k {
|
|
|
47115
47141
|
g(this, "_screenManager");
|
|
47116
47142
|
g(this, "_vectorTIlesManager");
|
|
47117
47143
|
this._viewer = e, this._czmViewer = s, this._imageriesManager = this.dv(new P5(this.viewer)), this._terrainManager = this.dv(new m5(this.viewer)), this._labelManager = this.dv(new v5(this.viewer)), this._poiContext = this.disposeVar(new WS(this._viewer)), this._cursorPositionInfo = this.disposeVar(new S5(this._viewer)), this.ad(s.viewerChanged.don(() => {
|
|
47118
|
-
this._pickingManager = this.dv(new x5(s)), this._screenManager = this.ad(new
|
|
47144
|
+
this._pickingManager = this.dv(new x5(s)), this._screenManager = this.ad(new O5(s)), this._vectorTIlesManager = this.ad(new R5(s.viewer)), this.ad(Ko(this.czmViewer.textAvoidanceChanged, () => {
|
|
47119
47145
|
this.screenManager.setRules({
|
|
47120
47146
|
avoidance: {
|
|
47121
47147
|
enabled: this.czmViewer.textAvoidance
|
|
@@ -47182,7 +47208,7 @@ function Q0(t, i) {
|
|
|
47182
47208
|
function K0(t, i) {
|
|
47183
47209
|
k1(t, -i, !0);
|
|
47184
47210
|
}
|
|
47185
|
-
class
|
|
47211
|
+
class V5 extends k {
|
|
47186
47212
|
constructor(e) {
|
|
47187
47213
|
super();
|
|
47188
47214
|
// static keyStatusMap: { [k: string]: CameraActionType; } = {
|
|
@@ -47313,12 +47339,12 @@ class Rd extends k {
|
|
|
47313
47339
|
return this._debug.changed;
|
|
47314
47340
|
}
|
|
47315
47341
|
}
|
|
47316
|
-
class
|
|
47342
|
+
class N5 extends k {
|
|
47317
47343
|
constructor(e) {
|
|
47318
47344
|
super();
|
|
47319
47345
|
g(this, "_keyStatus");
|
|
47320
47346
|
g(this, "_cameraOp");
|
|
47321
|
-
this._keyboardCameraController = e, this._keyStatus = this.dv(new Rd(this)), this._cameraOp = this.dv(new
|
|
47347
|
+
this._keyboardCameraController = e, this._keyStatus = this.dv(new Rd(this)), this._cameraOp = this.dv(new V5(this));
|
|
47322
47348
|
}
|
|
47323
47349
|
get keyboardCameraController() {
|
|
47324
47350
|
return this._keyboardCameraController;
|
|
@@ -47349,7 +47375,7 @@ const Ld = class Ld extends k {
|
|
|
47349
47375
|
g(this, "_abortEvent", this.dv(new q()));
|
|
47350
47376
|
this._firstPersonController = e, this.dv(new he(this.enabledChanged, () => {
|
|
47351
47377
|
if (this.enabled)
|
|
47352
|
-
return new
|
|
47378
|
+
return new N5(this);
|
|
47353
47379
|
}));
|
|
47354
47380
|
}
|
|
47355
47381
|
get firstPersonController() {
|
|
@@ -47435,7 +47461,7 @@ g(Ld, "defaultKeyStatusMap", {
|
|
|
47435
47461
|
KeyQ: "SwitchAlwaysWithCamera"
|
|
47436
47462
|
});
|
|
47437
47463
|
let Dd = Ld;
|
|
47438
|
-
function
|
|
47464
|
+
function U5(t, i) {
|
|
47439
47465
|
t.lookRight(h.Math.toRadians(i.movementX) * 0.1), t.lookDown(h.Math.toRadians(i.movementY) * 0.1);
|
|
47440
47466
|
const e = t.pitch, s = h.Math.clamp(e, -h.Math.PI_OVER_TWO, h.Math.PI_OVER_TWO);
|
|
47441
47467
|
s !== e && t.setView({
|
|
@@ -47447,14 +47473,14 @@ function G5(t, i) {
|
|
|
47447
47473
|
}
|
|
47448
47474
|
});
|
|
47449
47475
|
}
|
|
47450
|
-
class
|
|
47476
|
+
class G5 extends k {
|
|
47451
47477
|
constructor(i, e) {
|
|
47452
47478
|
super(), this._firstPersonController = i, this._mouseCameraController = e;
|
|
47453
47479
|
const { canvas: s } = this._firstPersonController.viewer;
|
|
47454
47480
|
{
|
|
47455
47481
|
const o = (n) => {
|
|
47456
47482
|
const { camera: r } = this._firstPersonController.viewer.scene;
|
|
47457
|
-
|
|
47483
|
+
U5(r, n);
|
|
47458
47484
|
};
|
|
47459
47485
|
s.addEventListener("pointermove", o), this.dispose(() => s.removeEventListener("pointermove", o));
|
|
47460
47486
|
}
|
|
@@ -47463,7 +47489,7 @@ class W5 extends k {
|
|
|
47463
47489
|
const Od = class Od extends k {
|
|
47464
47490
|
constructor(e) {
|
|
47465
47491
|
super();
|
|
47466
|
-
g(this, "_mouseMoving", this.dv(new
|
|
47492
|
+
g(this, "_mouseMoving", this.dv(new G5(this.firstPersonController, this.mouseCameraController)));
|
|
47467
47493
|
this._mouseCameraController = e;
|
|
47468
47494
|
const { viewer: s } = this.firstPersonController;
|
|
47469
47495
|
this.mouseCameraController.enableViewerOriginInputs(!1), this.dispose(() => this.mouseCameraController.enableViewerOriginInputs(!0)), Element.prototype.setPointerCapture = () => {
|
|
@@ -47495,7 +47521,7 @@ const Od = class Od extends k {
|
|
|
47495
47521
|
};
|
|
47496
47522
|
g(Od, "origin_setPointerCapture", Element.prototype.setPointerCapture);
|
|
47497
47523
|
let hf = Od;
|
|
47498
|
-
class
|
|
47524
|
+
class W5 extends k {
|
|
47499
47525
|
constructor(e) {
|
|
47500
47526
|
super();
|
|
47501
47527
|
g(this, "_enabled", this.dv(U(!1)));
|
|
@@ -47524,11 +47550,11 @@ class H5 extends k {
|
|
|
47524
47550
|
return this._mouseResetting;
|
|
47525
47551
|
}
|
|
47526
47552
|
}
|
|
47527
|
-
class
|
|
47553
|
+
class H5 extends k {
|
|
47528
47554
|
constructor(e) {
|
|
47529
47555
|
super();
|
|
47530
47556
|
g(this, "viewer");
|
|
47531
|
-
g(this, "_mouseCameraController", this.dv(new
|
|
47557
|
+
g(this, "_mouseCameraController", this.dv(new W5(this)));
|
|
47532
47558
|
g(this, "_keyboardCameraController", this.dv(new Dd(this)));
|
|
47533
47559
|
if (this._viewer = e, !this._viewer.viewer) throw new Error("Cesium.Viewer不存在!");
|
|
47534
47560
|
this.viewer = this._viewer.viewer;
|
|
@@ -47599,7 +47625,7 @@ function op(t, i, e, s = void 0) {
|
|
|
47599
47625
|
} else
|
|
47600
47626
|
n.lookUp(d);
|
|
47601
47627
|
}
|
|
47602
|
-
class
|
|
47628
|
+
class $5 extends k {
|
|
47603
47629
|
constructor(i, e) {
|
|
47604
47630
|
super();
|
|
47605
47631
|
const s = e.viewer;
|
|
@@ -47658,7 +47684,7 @@ class us extends k {
|
|
|
47658
47684
|
};
|
|
47659
47685
|
this.d(r);
|
|
47660
47686
|
const a = () => {
|
|
47661
|
-
r(), o.enabled && (n = new
|
|
47687
|
+
r(), o.enabled && (n = new $5(o, e));
|
|
47662
47688
|
};
|
|
47663
47689
|
a(), this.d(o.enabledChanged.don(a)), this.d(o.resetWithCameraEvent.don((l) => {
|
|
47664
47690
|
if (!e.actived) return;
|
|
@@ -47713,9 +47739,9 @@ class ic extends k {
|
|
|
47713
47739
|
s(), this.d(this._geoPolylinePath.currentPositionChanged.don(s)), this.d(this._geoPolylinePath.currentRotationChanged.don(s)), this.dispose(M([this._geoCameraController, "enabled"], [this, "enabled"])), this.dispose(M([this._geoCameraController, "viewDistance"], [this, "viewDistance"])), this.dispose(M([this._geoCameraController, "offsetHeight"], [this, "offsetHeight"])), this.dispose(M([this._geoCameraController, "offsetRotation"], [this, "offsetRotation"])), this.dispose(P([this._geoCameraController, "enabledRotationInput"], [this, "enabledRotationInput"])), this.dispose(P([this._geoCameraController, "enabledScaleInput"], [this, "enabledScaleInput"])), this.dv(new he(this.lineModeChanged, () => {
|
|
47714
47740
|
if (this.lineMode !== void 0) {
|
|
47715
47741
|
if (this.lineMode === "auto")
|
|
47716
|
-
return new
|
|
47742
|
+
return new q5(this, e);
|
|
47717
47743
|
if (this.lineMode === "manual")
|
|
47718
|
-
return new
|
|
47744
|
+
return new X5(this, e);
|
|
47719
47745
|
}
|
|
47720
47746
|
}));
|
|
47721
47747
|
}
|
|
@@ -47752,13 +47778,13 @@ class ic extends k {
|
|
|
47752
47778
|
});
|
|
47753
47779
|
})(ic || (ic = {}));
|
|
47754
47780
|
ae(ic.prototype, ic.createDefaultProps);
|
|
47755
|
-
class
|
|
47781
|
+
class q5 extends k {
|
|
47756
47782
|
constructor(i, e) {
|
|
47757
47783
|
if (super(), !e.viewer) throw new Error("viewer is undefined");
|
|
47758
47784
|
i.offsetRotation = [-90, 0, 0];
|
|
47759
47785
|
}
|
|
47760
47786
|
}
|
|
47761
|
-
class
|
|
47787
|
+
class X5 extends k {
|
|
47762
47788
|
constructor(i, e) {
|
|
47763
47789
|
if (super(), !e.viewer) throw new Error("viewer is undefined");
|
|
47764
47790
|
const o = (n) => {
|
|
@@ -47767,7 +47793,7 @@ class Y5 extends k {
|
|
|
47767
47793
|
this.dispose(e.keyDownEvent.don(o)), this.dispose(e.keyUpEvent.don(o));
|
|
47768
47794
|
}
|
|
47769
47795
|
}
|
|
47770
|
-
class
|
|
47796
|
+
class Y5 extends k {
|
|
47771
47797
|
constructor(i, e) {
|
|
47772
47798
|
super();
|
|
47773
47799
|
const s = e.positionPropertyName ?? "position", o = e.positionChangedPropertyName ?? s + "Changed", n = e.rotationPropertyName ?? "rotation", r = e.rotationChangedPropertyName ?? n + "Changed", a = (e.positionTracking ?? !0) && Reflect.has(i, s) && Reflect.has(i, o), l = (e.rotationTracking ?? !0) && Reflect.has(i, n) && Reflect.has(i, r);
|
|
@@ -47791,7 +47817,7 @@ class Z5 extends k {
|
|
|
47791
47817
|
}
|
|
47792
47818
|
}
|
|
47793
47819
|
}
|
|
47794
|
-
class
|
|
47820
|
+
class Z5 extends k {
|
|
47795
47821
|
constructor(i, e) {
|
|
47796
47822
|
super();
|
|
47797
47823
|
const s = this.dv(new Li());
|
|
@@ -47809,7 +47835,7 @@ class Q5 extends k {
|
|
|
47809
47835
|
this.disposeVar(new he(o, () => {
|
|
47810
47836
|
const { sceneObject: n } = s;
|
|
47811
47837
|
if (!(!e.enabled || !n))
|
|
47812
|
-
return new
|
|
47838
|
+
return new Y5(n, e);
|
|
47813
47839
|
}));
|
|
47814
47840
|
}
|
|
47815
47841
|
}
|
|
@@ -47819,7 +47845,7 @@ class sc extends k {
|
|
|
47819
47845
|
g(this, "_geoCameraController");
|
|
47820
47846
|
this._geoCameraController = this.dv(new us(e)), this.d(M([this._geoCameraController, "enabled"], [this, "enabled"])), this.dv(new he(this.sceneObjectIdChanged, () => {
|
|
47821
47847
|
if (this.sceneObjectId)
|
|
47822
|
-
return new
|
|
47848
|
+
return new Z5(this.sceneObjectId, this);
|
|
47823
47849
|
}));
|
|
47824
47850
|
}
|
|
47825
47851
|
get geoCameraController() {
|
|
@@ -47839,7 +47865,7 @@ class sc extends k {
|
|
|
47839
47865
|
});
|
|
47840
47866
|
})(sc || (sc = {}));
|
|
47841
47867
|
ae(sc.prototype, sc.createDefaultProps);
|
|
47842
|
-
class
|
|
47868
|
+
class Q5 extends k {
|
|
47843
47869
|
constructor(e) {
|
|
47844
47870
|
super();
|
|
47845
47871
|
/**
|
|
@@ -47925,7 +47951,7 @@ class K5 extends k {
|
|
|
47925
47951
|
this._running && (this._eventDisposer && (this._eventDisposer(), this._eventDisposer = void 0), this._running = !1);
|
|
47926
47952
|
}
|
|
47927
47953
|
}
|
|
47928
|
-
class
|
|
47954
|
+
class K5 extends k {
|
|
47929
47955
|
constructor(e) {
|
|
47930
47956
|
super();
|
|
47931
47957
|
g(this, "_height", this.dv(U(1e7)));
|
|
@@ -47935,7 +47961,7 @@ class J5 extends k {
|
|
|
47935
47961
|
this._czmViewer = e;
|
|
47936
47962
|
const s = this._czmViewer.viewer;
|
|
47937
47963
|
if (!s) throw new Error("未初始化viewer");
|
|
47938
|
-
this._inner = this.dv(new
|
|
47964
|
+
this._inner = this.dv(new Q5(s)), this._inner.leftDownCancel = !1;
|
|
47939
47965
|
{
|
|
47940
47966
|
const o = () => {
|
|
47941
47967
|
this._inner.height = this.height, this._inner.cycle = this.cycle, this._inner.latitude = this.latitude * Math.PI / 180;
|
|
@@ -48001,7 +48027,7 @@ class J5 extends k {
|
|
|
48001
48027
|
return this._inner.cancel();
|
|
48002
48028
|
}
|
|
48003
48029
|
}
|
|
48004
|
-
class
|
|
48030
|
+
class J5 extends k {
|
|
48005
48031
|
constructor(e) {
|
|
48006
48032
|
super();
|
|
48007
48033
|
/**
|
|
@@ -48176,7 +48202,7 @@ class j5 extends k {
|
|
|
48176
48202
|
this.viewer.camera.lookAtTransform(h.Matrix4.IDENTITY), this._eventDisposer && (this._eventDisposer(), this._eventDisposer = void 0), this._running = !1;
|
|
48177
48203
|
}
|
|
48178
48204
|
}
|
|
48179
|
-
class
|
|
48205
|
+
class j5 extends k {
|
|
48180
48206
|
constructor(e) {
|
|
48181
48207
|
super();
|
|
48182
48208
|
/**
|
|
@@ -48223,7 +48249,7 @@ class eO extends k {
|
|
|
48223
48249
|
this._czmViewer = e;
|
|
48224
48250
|
const s = this._czmViewer.viewer;
|
|
48225
48251
|
if (!s) throw new Error("viewer is undefined");
|
|
48226
|
-
this._inner = this.dv(new
|
|
48252
|
+
this._inner = this.dv(new J5(s));
|
|
48227
48253
|
{
|
|
48228
48254
|
const o = () => {
|
|
48229
48255
|
this.inner.distance = this.distance, this.inner.cycle = this.cycle, this.inner.position = this.position, this.inner.heading = this.heading, this.inner.pitch = this.pitch;
|
|
@@ -48286,7 +48312,7 @@ class eO extends k {
|
|
|
48286
48312
|
return this._inner.cancel();
|
|
48287
48313
|
}
|
|
48288
48314
|
}
|
|
48289
|
-
class
|
|
48315
|
+
class eO extends k {
|
|
48290
48316
|
constructor(e) {
|
|
48291
48317
|
super();
|
|
48292
48318
|
g(this, "_firstPersonController");
|
|
@@ -48297,7 +48323,7 @@ class tO extends k {
|
|
|
48297
48323
|
g(this, "_handler");
|
|
48298
48324
|
this._viewer = e;
|
|
48299
48325
|
{
|
|
48300
|
-
this._firstPersonController = this.dv(new
|
|
48326
|
+
this._firstPersonController = this.dv(new H5(e)), this.d(this._viewer.keyDownEvent.don((s) => this._firstPersonController.keyboardCameraController.keyDown(s))), this.d(this._viewer.keyUpEvent.don((s) => this._firstPersonController.keyboardCameraController.keyUp(s)));
|
|
48301
48327
|
{
|
|
48302
48328
|
const { subContainer: s } = this._viewer;
|
|
48303
48329
|
if (!s) throw new Error("_firstPersonControllerInit error!");
|
|
@@ -48309,7 +48335,7 @@ class tO extends k {
|
|
|
48309
48335
|
(s = this._viewer.subContainer) == null || s.focus();
|
|
48310
48336
|
}));
|
|
48311
48337
|
}
|
|
48312
|
-
this._rotateGlobe = this.dv(new
|
|
48338
|
+
this._rotateGlobe = this.dv(new K5(e)), this._rotatePoint = this.dv(new j5(e)), this._followController = this.dv(new sc(e)), this._pathCameraController = this.dv(new ic(e));
|
|
48313
48339
|
}
|
|
48314
48340
|
get firstPersonController() {
|
|
48315
48341
|
return this._firstPersonController;
|
|
@@ -48413,7 +48439,7 @@ class tO extends k {
|
|
|
48413
48439
|
]);
|
|
48414
48440
|
}
|
|
48415
48441
|
}
|
|
48416
|
-
const
|
|
48442
|
+
const tO = [
|
|
48417
48443
|
{
|
|
48418
48444
|
slice: -1,
|
|
48419
48445
|
brightness: 1,
|
|
@@ -49087,7 +49113,7 @@ const iO = [
|
|
|
49087
49113
|
]
|
|
49088
49114
|
}
|
|
49089
49115
|
];
|
|
49090
|
-
class
|
|
49116
|
+
class iO extends k {
|
|
49091
49117
|
constructor(e) {
|
|
49092
49118
|
super();
|
|
49093
49119
|
g(this, "_show", this.dv(U(!1)));
|
|
@@ -49113,7 +49139,7 @@ class sO extends k {
|
|
|
49113
49139
|
});
|
|
49114
49140
|
(() => {
|
|
49115
49141
|
o.removeAll();
|
|
49116
|
-
for (let a of
|
|
49142
|
+
for (let a of tO)
|
|
49117
49143
|
o.add(n(a));
|
|
49118
49144
|
})();
|
|
49119
49145
|
}
|
|
@@ -49180,7 +49206,7 @@ class oc extends k {
|
|
|
49180
49206
|
});
|
|
49181
49207
|
})(oc || (oc = {}));
|
|
49182
49208
|
ae(oc.prototype, oc.createDefaultProps);
|
|
49183
|
-
const
|
|
49209
|
+
const sO = `
|
|
49184
49210
|
float getDistance(sampler2D depthTexture, vec2 texCoords)
|
|
49185
49211
|
{
|
|
49186
49212
|
float depth = czm_unpackDepth(texture(depthTexture, texCoords));
|
|
@@ -49217,7 +49243,7 @@ const oO = `
|
|
|
49217
49243
|
out_FragColor = alphaBlend(finalFogColor, sceneColor);
|
|
49218
49244
|
}
|
|
49219
49245
|
`;
|
|
49220
|
-
class
|
|
49246
|
+
class oO extends k {
|
|
49221
49247
|
constructor(e) {
|
|
49222
49248
|
super();
|
|
49223
49249
|
g(this, "_show", this.dv(U(!1)));
|
|
@@ -49234,7 +49260,7 @@ class nO extends k {
|
|
|
49234
49260
|
const n = () => {
|
|
49235
49261
|
o(), (this.show ?? !0) && (this.postProcess || (this.postProcess = new h.PostProcessStage({
|
|
49236
49262
|
name: "earthsdk3_fog",
|
|
49237
|
-
fragmentShader:
|
|
49263
|
+
fragmentShader: sO,
|
|
49238
49264
|
uniforms: {
|
|
49239
49265
|
fogByDistance: new h.Cartesian4(10, 0, 1e3, 0.9),
|
|
49240
49266
|
//TODO:后续通过这里设置雾0~1的参数;
|
|
@@ -49254,7 +49280,7 @@ class nO extends k {
|
|
|
49254
49280
|
return this._show.changed;
|
|
49255
49281
|
}
|
|
49256
49282
|
}
|
|
49257
|
-
const
|
|
49283
|
+
const nO = `
|
|
49258
49284
|
uniform sampler2D colorTexture;
|
|
49259
49285
|
in vec2 v_textureCoordinates;
|
|
49260
49286
|
|
|
@@ -49282,7 +49308,7 @@ void main(void){
|
|
|
49282
49308
|
out_FragColor = mix(texture(colorTexture, v_textureCoordinates), vec4(c,1), 0.5);
|
|
49283
49309
|
}
|
|
49284
49310
|
`;
|
|
49285
|
-
class
|
|
49311
|
+
class rO extends k {
|
|
49286
49312
|
constructor(e) {
|
|
49287
49313
|
super();
|
|
49288
49314
|
g(this, "_show", this.dv(U(!1)));
|
|
@@ -49299,7 +49325,7 @@ class aO extends k {
|
|
|
49299
49325
|
const n = () => {
|
|
49300
49326
|
o(), (this.show ?? !0) && (this.rainPostProcess || (this.rainPostProcess = new h.PostProcessStage({
|
|
49301
49327
|
name: "earthsdk3_rain",
|
|
49302
|
-
fragmentShader:
|
|
49328
|
+
fragmentShader: nO
|
|
49303
49329
|
//TODO:后续需要0~1控制
|
|
49304
49330
|
}), s.scene.postProcessStages.add(this.rainPostProcess)));
|
|
49305
49331
|
};
|
|
@@ -49315,7 +49341,7 @@ class aO extends k {
|
|
|
49315
49341
|
return this._show.changed;
|
|
49316
49342
|
}
|
|
49317
49343
|
}
|
|
49318
|
-
const
|
|
49344
|
+
const aO = `
|
|
49319
49345
|
uniform sampler2D colorTexture; //输入的场景渲染照片
|
|
49320
49346
|
in vec2 v_textureCoordinates;
|
|
49321
49347
|
|
|
@@ -49346,7 +49372,7 @@ void main(void){
|
|
|
49346
49372
|
finalColor=(vec3(c)); //屏幕上雪的颜色
|
|
49347
49373
|
out_FragColor = mix(texture(colorTexture, v_textureCoordinates), vec4(finalColor,1), 0.5); //将雪和三维场景融合
|
|
49348
49374
|
}
|
|
49349
|
-
`,
|
|
49375
|
+
`, lO = `
|
|
49350
49376
|
#extension GL_OES_standard_derivatives : enable
|
|
49351
49377
|
uniform sampler2D colorTexture;
|
|
49352
49378
|
uniform sampler2D depthTexture;
|
|
@@ -49387,7 +49413,7 @@ void main() {
|
|
|
49387
49413
|
out_FragColor = mix(color, vec4(1.0), dotNumWC*alpha);
|
|
49388
49414
|
}
|
|
49389
49415
|
`;
|
|
49390
|
-
class
|
|
49416
|
+
class hO extends k {
|
|
49391
49417
|
constructor(e) {
|
|
49392
49418
|
super();
|
|
49393
49419
|
g(this, "_show", this.dv(U(!1)));
|
|
@@ -49417,10 +49443,10 @@ class cO extends k {
|
|
|
49417
49443
|
const c = () => {
|
|
49418
49444
|
r(), a(), (this.show ?? !0) && (o = new h.PostProcessStage({
|
|
49419
49445
|
name: "earthsdk3_snow",
|
|
49420
|
-
fragmentShader:
|
|
49446
|
+
fragmentShader: aO
|
|
49421
49447
|
}), s.scene.postProcessStages.add(o), n = new h.PostProcessStage({
|
|
49422
49448
|
name: "earthsdk3_snowCover",
|
|
49423
|
-
fragmentShader:
|
|
49449
|
+
fragmentShader: lO,
|
|
49424
49450
|
uniforms: {
|
|
49425
49451
|
alpha: this.alpha
|
|
49426
49452
|
}
|
|
@@ -49447,7 +49473,7 @@ class cO extends k {
|
|
|
49447
49473
|
return this._alpha.changed;
|
|
49448
49474
|
}
|
|
49449
49475
|
}
|
|
49450
|
-
class
|
|
49476
|
+
class cO extends k {
|
|
49451
49477
|
constructor(e) {
|
|
49452
49478
|
super();
|
|
49453
49479
|
g(this, "rain");
|
|
@@ -49457,7 +49483,7 @@ class dO extends k {
|
|
|
49457
49483
|
g(this, "depthOfField");
|
|
49458
49484
|
const s = e.viewer;
|
|
49459
49485
|
if (!s) throw new Error("Cesium.Viewer不存在!");
|
|
49460
|
-
const o = this.dv(new
|
|
49486
|
+
const o = this.dv(new rO(e)), n = this.dv(new iO(e)), r = this.dv(new hO(e)), a = this.dv(new oO(e)), l = this.dv(new oc(e));
|
|
49461
49487
|
this.rain = o, this.cloud = n, this.snow = r, this.fog = a, this.depthOfField = l;
|
|
49462
49488
|
{
|
|
49463
49489
|
const { scene: c } = s, d = () => {
|
|
@@ -49477,12 +49503,12 @@ class dO extends k {
|
|
|
49477
49503
|
}
|
|
49478
49504
|
}
|
|
49479
49505
|
}
|
|
49480
|
-
const cf = h.BoundingRectangle,
|
|
49506
|
+
const cf = h.BoundingRectangle, dO = h.Color, ho = h.defined, uO = h.destroyObject, j0 = h.DeveloperError, pO = h.RenderState, fO = h.ShaderSource, gO = h._shadersViewportQuadFS, mO = h.BlendingState, ew = h.Material;
|
|
49481
49507
|
function su(t) {
|
|
49482
49508
|
this.show = !0;
|
|
49483
49509
|
let i;
|
|
49484
49510
|
ho(i) || (i = new cf()), this.rectangle = cf.clone(i), ho(t) || (t = ew.fromType(ew.ColorType, {
|
|
49485
|
-
color: new
|
|
49511
|
+
color: new dO(1, 1, 1, 1)
|
|
49486
49512
|
})), this.material = t, this._material = void 0, this._overlayCommand = void 0, this._rs = void 0;
|
|
49487
49513
|
}
|
|
49488
49514
|
su.prototype.update = function(t) {
|
|
@@ -49493,8 +49519,8 @@ su.prototype.update = function(t) {
|
|
|
49493
49519
|
throw new j0("this.rectangle must be defined.");
|
|
49494
49520
|
this.rectangle.width = t.context.drawingBufferWidth, this.rectangle.height = t.context.drawingBufferHeight;
|
|
49495
49521
|
var i = this._rs;
|
|
49496
|
-
(!ho(i) || !cf.equals(i.viewport, this.rectangle)) && (this._rs =
|
|
49497
|
-
blending:
|
|
49522
|
+
(!ho(i) || !cf.equals(i.viewport, this.rectangle)) && (this._rs = pO.fromCache({
|
|
49523
|
+
blending: mO.ALPHA_BLEND,
|
|
49498
49524
|
viewport: this.rectangle
|
|
49499
49525
|
}), this._overlayCommand && (this._overlayCommand.renderState = this._rs));
|
|
49500
49526
|
var e = t.passes;
|
|
@@ -49502,8 +49528,8 @@ su.prototype.update = function(t) {
|
|
|
49502
49528
|
var s = t.context;
|
|
49503
49529
|
if (this._material !== this.material || !ho(this._overlayCommand)) {
|
|
49504
49530
|
this._material = this.material, ho(this._overlayCommand) && this._overlayCommand.shaderProgram.destroy();
|
|
49505
|
-
var o = new
|
|
49506
|
-
sources: [this._material.shaderSource,
|
|
49531
|
+
var o = new fO({
|
|
49532
|
+
sources: [this._material.shaderSource, gO]
|
|
49507
49533
|
});
|
|
49508
49534
|
this._overlayCommand = s.createViewportQuadCommand(o, {
|
|
49509
49535
|
renderState: this._rs,
|
|
@@ -49520,7 +49546,7 @@ su.prototype.isDestroyed = function() {
|
|
|
49520
49546
|
return !1;
|
|
49521
49547
|
};
|
|
49522
49548
|
su.prototype.destroy = function() {
|
|
49523
|
-
return ho(this._overlayCommand) && (this._overlayCommand.shaderProgram = this._overlayCommand.shaderProgram && this._overlayCommand.shaderProgram.destroy()),
|
|
49549
|
+
return ho(this._overlayCommand) && (this._overlayCommand.shaderProgram = this._overlayCommand.shaderProgram && this._overlayCommand.shaderProgram.destroy()), uO(this);
|
|
49524
49550
|
};
|
|
49525
49551
|
function tw(t) {
|
|
49526
49552
|
const { positiveX: i, negativeX: e, positiveY: s, negativeY: o, positiveZ: n, negativeZ: r } = t;
|
|
@@ -49537,7 +49563,7 @@ function tw(t) {
|
|
|
49537
49563
|
negativeZ: oe.context.getStrFromEnv(r)
|
|
49538
49564
|
};
|
|
49539
49565
|
}
|
|
49540
|
-
const
|
|
49566
|
+
const vO = `in vec3 v_outerPositionWC;
|
|
49541
49567
|
|
|
49542
49568
|
uniform vec3 u_hsbShift;
|
|
49543
49569
|
|
|
@@ -49616,15 +49642,15 @@ void main (void)
|
|
|
49616
49642
|
out_FragColor = color;
|
|
49617
49643
|
// ------------------ skybox vtxf end -------------------
|
|
49618
49644
|
}
|
|
49619
|
-
`, eo = h.Cartesian3, Ps = h.defined,
|
|
49645
|
+
`, eo = h.Cartesian3, Ps = h.defined, yO = h.destroyObject, wO = h.Ellipsoid, iw = h.EllipsoidGeometry, CO = h.GeometryPipeline, Zn = h.Math, As = h.Matrix4, _O = h.VertexFormat, PO = h.BufferUsage, xO = h.DrawCommand, bO = h.RenderState, SO = h.ShaderProgram, sw = h.ShaderSource, TO = h.VertexArray, ow = h._shadersAtmosphereCommon, nw = h._shadersSkyAtmosphereCommon, EO = h._shadersSkyAtmosphereVS, AO = h.Axis, MO = h.BlendingState, IO = h.CullFace, rw = h.SceneMode, Xc = h.Transforms, RO = h.Matrix3, aw = h.DeveloperError, DO = h.loadCubeMap, kO = h.CubeMap;
|
|
49620
49646
|
function oa(t, i) {
|
|
49621
|
-
t = t ??
|
|
49647
|
+
t = t ?? wO.WGS84, this.show = !0, this.sources = i, this.perFragmentAtmosphere = !1, this._ellipsoid = t;
|
|
49622
49648
|
const e = 1.025, s = eo.multiplyByScalar(
|
|
49623
49649
|
t.radii,
|
|
49624
49650
|
e,
|
|
49625
49651
|
new eo()
|
|
49626
49652
|
);
|
|
49627
|
-
this._scaleMatrix = As.fromScale(s), this._modelMatrix = new As(), this._command = new
|
|
49653
|
+
this._scaleMatrix = As.fromScale(s), this._modelMatrix = new As(), this._command = new xO({
|
|
49628
49654
|
owner: this,
|
|
49629
49655
|
modelMatrix: this._modelMatrix
|
|
49630
49656
|
}), this._spSkyFromSpace = void 0, this._spSkyFromAtmosphere = void 0, this._flags = void 0, this.atmosphereLightIntensity = 50, this.atmosphereRayleighCoefficient = new eo(55e-7, 13e-6, 284e-7), this.atmosphereMieCoefficient = new eo(21e-6, 21e-6, 21e-6), this.atmosphereRayleighScaleHeight = 1e4, this.atmosphereMieScaleHeight = 3200, this.atmosphereMieAnisotropy = 0.9, this.hueShift = 0, this.saturationShift = 0, this.brightnessShift = 0, this._hueSaturationBrightness = new eo();
|
|
@@ -49657,7 +49683,7 @@ function oa(t, i) {
|
|
|
49657
49683
|
return n.atmosphereMieAnisotropy;
|
|
49658
49684
|
},
|
|
49659
49685
|
u_rotateMatrix: function() {
|
|
49660
|
-
return n._scratchRoateMatrix = n._scratchRoateMatrix || new
|
|
49686
|
+
return n._scratchRoateMatrix = n._scratchRoateMatrix || new RO(), As.getMatrix3(n._eunMatrix || As.IDENTITY, n._scratchRoateMatrix);
|
|
49661
49687
|
},
|
|
49662
49688
|
u_cubeMap: function() {
|
|
49663
49689
|
return n._cubeMap;
|
|
@@ -49701,9 +49727,9 @@ oa.prototype.update = function(t, i) {
|
|
|
49701
49727
|
throw new aw(
|
|
49702
49728
|
"this.sources properties must all be the same type."
|
|
49703
49729
|
);
|
|
49704
|
-
typeof o.positiveX == "string" ?
|
|
49730
|
+
typeof o.positiveX == "string" ? DO(m, this._sources).then(function(v) {
|
|
49705
49731
|
s._cubeMap = s._cubeMap && s._cubeMap.destroy(), s._cubeMap = v;
|
|
49706
|
-
}) : (this._cubeMap = this._cubeMap && this._cubeMap.destroy(), this._cubeMap = new
|
|
49732
|
+
}) : (this._cubeMap = this._cubeMap && this._cubeMap.destroy(), this._cubeMap = new kO({
|
|
49707
49733
|
context: m,
|
|
49708
49734
|
source: o
|
|
49709
49735
|
}));
|
|
@@ -49714,7 +49740,7 @@ oa.prototype.update = function(t, i) {
|
|
|
49714
49740
|
np
|
|
49715
49741
|
), r = As.multiplyTransformation(
|
|
49716
49742
|
n,
|
|
49717
|
-
|
|
49743
|
+
AO.Y_UP_TO_Z_UP,
|
|
49718
49744
|
np
|
|
49719
49745
|
), a = As.multiply(
|
|
49720
49746
|
this._scaleMatrix,
|
|
@@ -49722,27 +49748,27 @@ oa.prototype.update = function(t, i) {
|
|
|
49722
49748
|
np
|
|
49723
49749
|
);
|
|
49724
49750
|
As.clone(a, this._modelMatrix);
|
|
49725
|
-
const l = t.context, c =
|
|
49751
|
+
const l = t.context, c = FO(this), d = t.globeTranslucencyState.translucent, u = this.perFragmentAtmosphere || d || !Ps(i) || !i.show, p = this._command;
|
|
49726
49752
|
if (Xc.eastUpNorthToFixedFrame = Xc.eastUpNorthToFixedFrame || Xc.localFrameToFixedFrameGenerator("east", "up"), this._eunMatrix = Xc.eastUpNorthToFixedFrame(t.camera._positionWC, void 0, this._eunMatrix), !Ps(p.vertexArray)) {
|
|
49727
49753
|
const m = iw.createGeometry(
|
|
49728
49754
|
new iw({
|
|
49729
49755
|
radii: new eo(1, 1, 1),
|
|
49730
49756
|
slicePartitions: 256,
|
|
49731
49757
|
stackPartitions: 256,
|
|
49732
|
-
vertexFormat:
|
|
49758
|
+
vertexFormat: _O.POSITION_ONLY
|
|
49733
49759
|
})
|
|
49734
49760
|
);
|
|
49735
|
-
p.vertexArray =
|
|
49761
|
+
p.vertexArray = TO.fromGeometry({
|
|
49736
49762
|
context: l,
|
|
49737
49763
|
geometry: m,
|
|
49738
|
-
attributeLocations:
|
|
49739
|
-
bufferUsage:
|
|
49740
|
-
}), p.renderState =
|
|
49764
|
+
attributeLocations: CO.createAttributeLocations(m),
|
|
49765
|
+
bufferUsage: PO.STATIC_DRAW
|
|
49766
|
+
}), p.renderState = bO.fromCache({
|
|
49741
49767
|
cull: {
|
|
49742
49768
|
enabled: !0,
|
|
49743
|
-
face:
|
|
49769
|
+
face: IO.FRONT
|
|
49744
49770
|
},
|
|
49745
|
-
blending:
|
|
49771
|
+
blending: MO.ALPHA_BLEND,
|
|
49746
49772
|
depthMask: !1
|
|
49747
49773
|
});
|
|
49748
49774
|
}
|
|
@@ -49753,12 +49779,12 @@ oa.prototype.update = function(t, i) {
|
|
|
49753
49779
|
c && m.push("COLOR_CORRECT"), u && m.push("PER_FRAGMENT_ATMOSPHERE"), d && m.push("GLOBE_TRANSLUCENT");
|
|
49754
49780
|
const v = new sw({
|
|
49755
49781
|
defines: m,
|
|
49756
|
-
sources: [ow, nw,
|
|
49782
|
+
sources: [ow, nw, EO]
|
|
49757
49783
|
}), y = new sw({
|
|
49758
49784
|
defines: m,
|
|
49759
|
-
sources: [ow, nw,
|
|
49785
|
+
sources: [ow, nw, vO]
|
|
49760
49786
|
});
|
|
49761
|
-
this._spSkyAtmosphere =
|
|
49787
|
+
this._spSkyAtmosphere = SO.fromCache({
|
|
49762
49788
|
context: l,
|
|
49763
49789
|
vertexShaderSource: v,
|
|
49764
49790
|
fragmentShaderSource: y
|
|
@@ -49767,7 +49793,7 @@ oa.prototype.update = function(t, i) {
|
|
|
49767
49793
|
if (Ps(this._cubeMap))
|
|
49768
49794
|
return p;
|
|
49769
49795
|
};
|
|
49770
|
-
function
|
|
49796
|
+
function FO(t) {
|
|
49771
49797
|
return !(Zn.equalsEpsilon(
|
|
49772
49798
|
t.hueShift,
|
|
49773
49799
|
0,
|
|
@@ -49787,7 +49813,7 @@ oa.prototype.isDestroyed = function() {
|
|
|
49787
49813
|
};
|
|
49788
49814
|
oa.prototype.destroy = function() {
|
|
49789
49815
|
const t = this._command;
|
|
49790
|
-
return t.vertexArray = t.vertexArray && t.vertexArray.destroy(), this._spSkyAtmosphere = this._spSkyAtmosphere && this._spSkyAtmosphere.destroy(), this._cubeMap = this._cubeMap && this._cubeMap.destroy(),
|
|
49816
|
+
return t.vertexArray = t.vertexArray && t.vertexArray.destroy(), this._spSkyAtmosphere = this._spSkyAtmosphere && this._spSkyAtmosphere.destroy(), this._cubeMap = this._cubeMap && this._cubeMap.destroy(), yO(this);
|
|
49791
49817
|
};
|
|
49792
49818
|
const ur = class ur extends k {
|
|
49793
49819
|
constructor(e, s) {
|
|
@@ -49799,7 +49825,7 @@ const ur = class ur extends k {
|
|
|
49799
49825
|
g(this, "_reu", (e, s) => Hi(this, e, s));
|
|
49800
49826
|
this._czmViewer = e, this._viewer = s;
|
|
49801
49827
|
const o = this.viewer, n = this.czmViewer, r = o.scene.screenSpaceCameraController;
|
|
49802
|
-
this._navigationManager = this.dv(new
|
|
49828
|
+
this._navigationManager = this.dv(new eO(n)), this._envManager = this.dv(new cO(n)), this.disposeVar(new he(this._czmViewer.xbsjUseBackgroundChanged, () => {
|
|
49803
49829
|
if (this._czmViewer.xbsjUseBackground)
|
|
49804
49830
|
return new ur.BackGroundResetting(this._czmViewer, this._viewer);
|
|
49805
49831
|
})), this.disposeVar(new he(this._czmViewer.xbsjLocalBoxSourcesChanged, () => {
|
|
@@ -49991,12 +50017,12 @@ g(ur, "LocalSkyBoxResetting", class extends k {
|
|
|
49991
50017
|
}
|
|
49992
50018
|
});
|
|
49993
50019
|
let df = ur;
|
|
49994
|
-
function
|
|
50020
|
+
function zO(t, i, e, s, o) {
|
|
49995
50021
|
var n = h.Cartesian3.subtract(t, e, new h.Cartesian3()), r = h.Cartesian3.dot(n, i);
|
|
49996
50022
|
if (!(r <= 0))
|
|
49997
50023
|
return r * Math.tan(s * 0.5) * 2 / o;
|
|
49998
50024
|
}
|
|
49999
|
-
async function
|
|
50025
|
+
async function LO(t) {
|
|
50000
50026
|
const { viewer: i } = t;
|
|
50001
50027
|
if (!i) return;
|
|
50002
50028
|
const { width: e, height: s } = i.canvas, o = t.quickPickPosition([e * 0.5, s * 0.5]);
|
|
@@ -50008,14 +50034,14 @@ async function OO(t) {
|
|
|
50008
50034
|
const a = i.camera.positionWC, l = i.camera.directionWC, c = i.camera.frustum.fovy;
|
|
50009
50035
|
if (c === void 0) return;
|
|
50010
50036
|
const d = i.canvas.height;
|
|
50011
|
-
return [
|
|
50037
|
+
return [zO(r, l, a, c, d), n];
|
|
50012
50038
|
}
|
|
50013
|
-
const
|
|
50014
|
-
function
|
|
50015
|
-
return -Math.log2(t /
|
|
50039
|
+
const OO = h.Ellipsoid.WGS84.maximumRadius * 2 * Math.PI / 512;
|
|
50040
|
+
function BO(t) {
|
|
50041
|
+
return -Math.log2(t / OO);
|
|
50016
50042
|
}
|
|
50017
50043
|
var rp = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8];
|
|
50018
|
-
function
|
|
50044
|
+
function VO(t) {
|
|
50019
50045
|
const i = t | 0;
|
|
50020
50046
|
if (i < 1 || i > 1e8) return;
|
|
50021
50047
|
let e = -1;
|
|
@@ -50024,7 +50050,7 @@ function NO(t) {
|
|
|
50024
50050
|
const s = i / rp[e - 1] | 0;
|
|
50025
50051
|
return [s * rp[e - 1], s, e];
|
|
50026
50052
|
}
|
|
50027
|
-
class
|
|
50053
|
+
class NO extends k {
|
|
50028
50054
|
constructor() {
|
|
50029
50055
|
super();
|
|
50030
50056
|
// 比例尺的长度,单位是 像素
|
|
@@ -50042,7 +50068,7 @@ class UO extends k {
|
|
|
50042
50068
|
let s, o;
|
|
50043
50069
|
const { lengthInPixels: n, resolution: r } = this;
|
|
50044
50070
|
if (n && r) {
|
|
50045
|
-
const a =
|
|
50071
|
+
const a = VO(n * r);
|
|
50046
50072
|
if (a) {
|
|
50047
50073
|
const [l, c, d] = a;
|
|
50048
50074
|
o = l, s = l / r;
|
|
@@ -50101,23 +50127,23 @@ class UO extends k {
|
|
|
50101
50127
|
return this._computedLengthInStr.changed;
|
|
50102
50128
|
}
|
|
50103
50129
|
}
|
|
50104
|
-
class
|
|
50130
|
+
class UO extends k {
|
|
50105
50131
|
constructor(e) {
|
|
50106
50132
|
super();
|
|
50107
50133
|
g(this, "_enabled", this.dv(U(!0)));
|
|
50108
50134
|
g(this, "_resolution", this.dv(U(void 0)));
|
|
50109
50135
|
g(this, "_center", this.dv(U(void 0)));
|
|
50110
50136
|
g(this, "_zoom", this.dv(U(void 0)));
|
|
50111
|
-
g(this, "_legend", this.dv(new
|
|
50137
|
+
g(this, "_legend", this.dv(new NO()));
|
|
50112
50138
|
this._czmViewer = e;
|
|
50113
50139
|
{
|
|
50114
50140
|
const s = this.dv(ze(async (o) => {
|
|
50115
50141
|
let n, r, a;
|
|
50116
50142
|
await o.promise(yw(1e3));
|
|
50117
|
-
const l = await o.promise(
|
|
50143
|
+
const l = await o.promise(LO(this._czmViewer));
|
|
50118
50144
|
if (l) {
|
|
50119
50145
|
const [c, d] = l;
|
|
50120
|
-
n = c, r =
|
|
50146
|
+
n = c, r = BO(c), a = d;
|
|
50121
50147
|
}
|
|
50122
50148
|
this._resolution.value = n, this._zoom.value = r, this._center.value = a;
|
|
50123
50149
|
}));
|
|
@@ -50175,7 +50201,7 @@ class GO extends k {
|
|
|
50175
50201
|
return (this.legend.computedLengthInMeters ?? -1) / (this.legend.computedLengthInPixels ?? 1);
|
|
50176
50202
|
}
|
|
50177
50203
|
}
|
|
50178
|
-
function
|
|
50204
|
+
function XB(t, i) {
|
|
50179
50205
|
try {
|
|
50180
50206
|
const e = h.Ellipsoid.WGS84, s = e.scaleToGeodeticSurface(t);
|
|
50181
50207
|
return i = h.Transforms.eastNorthUpToFixedFrame(s, e, i), i;
|
|
@@ -50183,7 +50209,7 @@ function YB(t, i) {
|
|
|
50183
50209
|
return h.Matrix4.clone(h.Matrix4.IDENTITY, i);
|
|
50184
50210
|
}
|
|
50185
50211
|
}
|
|
50186
|
-
const { combine:
|
|
50212
|
+
const { combine: GO } = h, { ShaderDestination: zo } = h, F1 = {
|
|
50187
50213
|
name: "FlattenedPipelineStage"
|
|
50188
50214
|
// Helps with debugging
|
|
50189
50215
|
};
|
|
@@ -50261,13 +50287,13 @@ F1.process = function(t, i, e) {
|
|
|
50261
50287
|
// }
|
|
50262
50288
|
// },
|
|
50263
50289
|
};
|
|
50264
|
-
t.uniformMap =
|
|
50290
|
+
t.uniformMap = GO(
|
|
50265
50291
|
o,
|
|
50266
50292
|
t.uniformMap
|
|
50267
50293
|
);
|
|
50268
50294
|
}
|
|
50269
50295
|
};
|
|
50270
|
-
function
|
|
50296
|
+
function WO() {
|
|
50271
50297
|
Object.defineProperties(h.Model.prototype, {
|
|
50272
50298
|
xbsjFlattened: {
|
|
50273
50299
|
get: function() {
|
|
@@ -50308,7 +50334,7 @@ function HO() {
|
|
|
50308
50334
|
}
|
|
50309
50335
|
});
|
|
50310
50336
|
}
|
|
50311
|
-
function
|
|
50337
|
+
function HO() {
|
|
50312
50338
|
Object.defineProperties(h.Cesium3DTileset.prototype, {
|
|
50313
50339
|
xbsjFlattened: {
|
|
50314
50340
|
get: function() {
|
|
@@ -50344,25 +50370,25 @@ function $O() {
|
|
|
50344
50370
|
}
|
|
50345
50371
|
});
|
|
50346
50372
|
}
|
|
50347
|
-
function
|
|
50373
|
+
function $O() {
|
|
50348
50374
|
const t = h.Model3DTileContent.prototype.update;
|
|
50349
50375
|
h.Model3DTileContent.prototype.update = function(i, e, ...s) {
|
|
50350
50376
|
const o = this._model;
|
|
50351
50377
|
return o.xbsjFlattened = i.xbsjFlattened, o.xbsjElevationMatrix = i.xbsjElevationMatrix, o.xbsjFlattenedBound = i.xbsjFlattenedBound, o.xbsjGetFlattenedTextureFunc = i.xbsjGetFlattenedTextureFunc, t.call(this, i, e, ...s);
|
|
50352
50378
|
};
|
|
50353
50379
|
}
|
|
50354
|
-
function
|
|
50380
|
+
function qO() {
|
|
50355
50381
|
const t = h.ModelSceneGraph.prototype.configurePipeline;
|
|
50356
50382
|
h.ModelSceneGraph.prototype.configurePipeline = function(i, ...e) {
|
|
50357
50383
|
const s = t.call(this, i, ...e), o = this._model, n = this.modelPipelineStages;
|
|
50358
50384
|
return o.xbsjFlattened && n.push(F1), s;
|
|
50359
50385
|
};
|
|
50360
50386
|
}
|
|
50387
|
+
WO();
|
|
50361
50388
|
HO();
|
|
50362
50389
|
$O();
|
|
50363
50390
|
qO();
|
|
50364
|
-
XO()
|
|
50365
|
-
const YO = () => ({
|
|
50391
|
+
const XO = () => ({
|
|
50366
50392
|
// 通用
|
|
50367
50393
|
createCesiumViewerFuncStr: void 0,
|
|
50368
50394
|
flashLighting: void 0,
|
|
@@ -50466,7 +50492,7 @@ const YO = () => ({
|
|
|
50466
50492
|
// firstPersonRotatingSpeed: 0.01,
|
|
50467
50493
|
// firstPersonAlwaysWithCamera: false,
|
|
50468
50494
|
// firstPersonKeyStatusMap: reactJson<{ [k: string]: CzmCameraActionType }>(KeyboardCameraController.defaultKeyStatusMap),
|
|
50469
|
-
}),
|
|
50495
|
+
}), YO = `
|
|
50470
50496
|
#### 示例代码1
|
|
50471
50497
|
\`\`\`
|
|
50472
50498
|
async function initCesiumViewer(container, czmViewer) {
|
|
@@ -50541,7 +50567,7 @@ async function initCesiumViewer(container, czmViewer) {
|
|
|
50541
50567
|
return viewer;
|
|
50542
50568
|
}
|
|
50543
50569
|
\`\`\`
|
|
50544
|
-
`,
|
|
50570
|
+
`, ZO = `async function initCesiumViewer(container, czmViewer) {
|
|
50545
50571
|
const viewer = await XE2.g.defaultCreateCesiumViewerFunc(container, czmViewer);
|
|
50546
50572
|
|
|
50547
50573
|
// 若原Czm版权信息展示位置遮挡重要信息,可将以下语句解注释,在别的位置展示
|
|
@@ -50550,7 +50576,7 @@ async function initCesiumViewer(container, czmViewer) {
|
|
|
50550
50576
|
return viewer;
|
|
50551
50577
|
}
|
|
50552
50578
|
`;
|
|
50553
|
-
function
|
|
50579
|
+
function QO() {
|
|
50554
50580
|
const t = "https://gitee.com/mirrors/CesiumJS/blob/main/packages/engine/Source/Core/Ion.js#L7", e = ` 因浏览器同源策略限制,需要用户自行打开网址获取最新的token,点击确定自动打开网址,请不要拦截!
|
|
50555
50581
|
github地址:https://github.com/CesiumGS/cesium/blob/main/packages/engine/Source/Core/Ion.js#L7
|
|
50556
50582
|
gitee地址:${t}
|
|
@@ -50578,7 +50604,7 @@ const Pt = class Pt extends up {
|
|
|
50578
50604
|
this.ad(new cL(this)), this.ad(new dL(this)), this.dv(new he(this.viewerChanged, () => {
|
|
50579
50605
|
if (this.viewer)
|
|
50580
50606
|
return new gL(this);
|
|
50581
|
-
})), this._viewerLegend = this.dv(new
|
|
50607
|
+
})), this._viewerLegend = this.dv(new UO(this)), this._viewerInstance = this.dv(new he(this.viewerChanged, () => {
|
|
50582
50608
|
if (this.viewer)
|
|
50583
50609
|
return new df(this, this.viewer);
|
|
50584
50610
|
})), this.d(this.viewerChanged.don((o) => {
|
|
@@ -50878,7 +50904,7 @@ const Pt = class Pt extends up {
|
|
|
50878
50904
|
more: [
|
|
50879
50905
|
...e.more,
|
|
50880
50906
|
new _e([], "通用", "通用"),
|
|
50881
|
-
new sd([this, "createCesiumViewerFuncStr"], "CesiumViewer创建函数",
|
|
50907
|
+
new sd([this, "createCesiumViewerFuncStr"], "CesiumViewer创建函数", ZO, YO, !0),
|
|
50882
50908
|
new mr([], () => Pt.getCesiumIonToken(), [], "获取官方token"),
|
|
50883
50909
|
new mr([], () => this.setCurrentDefaultAccessToken(), [], "重置为当前使用的Cesium版本的token"),
|
|
50884
50910
|
new mr([], () => this.setLatestDefaultAccessToken(), [], "最新token", "重置为当前Cesium官方的最新token"),
|
|
@@ -50982,7 +51008,7 @@ const Pt = class Pt extends up {
|
|
|
50982
51008
|
};
|
|
50983
51009
|
}
|
|
50984
51010
|
};
|
|
50985
|
-
g(Pt, "type", Pt.register("ESCesiumViewer", Pt)), g(Pt, "getCesiumIonToken",
|
|
51011
|
+
g(Pt, "type", Pt.register("ESCesiumViewer", Pt)), g(Pt, "getCesiumIonToken", QO), g(Pt, "currentDefaultAccessToken", h.Ion.defaultAccessToken), g(Pt, "latestDefaultAccessToken"), g(Pt, "ObjectsToExcludeWrapper", fL), g(Pt, "defaults", {
|
|
50986
51012
|
...up.defaults,
|
|
50987
51013
|
flashLighting: !1,
|
|
50988
51014
|
resolutionScale: 1,
|
|
@@ -51041,13 +51067,13 @@ let qe = Pt;
|
|
|
51041
51067
|
((t) => {
|
|
51042
51068
|
t.createDefaultProps = () => ({
|
|
51043
51069
|
...up.createDefaultProps(),
|
|
51044
|
-
...
|
|
51070
|
+
...XO()
|
|
51045
51071
|
});
|
|
51046
51072
|
})(qe || (qe = {}));
|
|
51047
51073
|
ae(qe.prototype, qe.createDefaultProps);
|
|
51048
51074
|
let ap;
|
|
51049
51075
|
try {
|
|
51050
|
-
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}个小时)
|
|
51051
51077
|
%c${o ? o + `
|
|
51052
51078
|
` : ""}当前网站正在使用${t},此软件版权归${s}所有
|
|
51053
51079
|
`;
|
|
@@ -51061,7 +51087,7 @@ try {
|
|
|
51061
51087
|
},
|
|
51062
51088
|
// @ts-ignore
|
|
51063
51089
|
get gituri() {
|
|
51064
|
-
return GITURI_ && GITURI_.replace("${commitId}", "
|
|
51090
|
+
return GITURI_ && GITURI_.replace("${commitId}", "0e3ca8b8366860dc0f51a8bc93f13eb5150cd663");
|
|
51065
51091
|
},
|
|
51066
51092
|
// @ts-ignore
|
|
51067
51093
|
get info() {
|
|
@@ -51069,7 +51095,7 @@ try {
|
|
|
51069
51095
|
},
|
|
51070
51096
|
// @ts-ignore
|
|
51071
51097
|
get date() {
|
|
51072
|
-
return "2025-11-
|
|
51098
|
+
return "2025-11-21T08:49:25.000Z";
|
|
51073
51099
|
},
|
|
51074
51100
|
// @ts-ignore
|
|
51075
51101
|
get author() {
|
|
@@ -51077,7 +51103,7 @@ try {
|
|
|
51077
51103
|
},
|
|
51078
51104
|
// @ts-ignore
|
|
51079
51105
|
get version() {
|
|
51080
|
-
return "3.6.0-beta.
|
|
51106
|
+
return "3.6.0-beta.7";
|
|
51081
51107
|
},
|
|
51082
51108
|
// @ts-ignore
|
|
51083
51109
|
get name() {
|
|
@@ -51085,7 +51111,7 @@ try {
|
|
|
51085
51111
|
},
|
|
51086
51112
|
// @ts-ignore
|
|
51087
51113
|
get commitId() {
|
|
51088
|
-
return "
|
|
51114
|
+
return "0e3ca8b8366860dc0f51a8bc93f13eb5150cd663";
|
|
51089
51115
|
},
|
|
51090
51116
|
print() {
|
|
51091
51117
|
console.info(
|
|
@@ -51125,11 +51151,11 @@ export {
|
|
|
51125
51151
|
Uw as CurrentPositionsCenter,
|
|
51126
51152
|
Nw as CurrentScale,
|
|
51127
51153
|
Ob as CurrentSceneScalePoi,
|
|
51128
|
-
|
|
51129
|
-
|
|
51154
|
+
TB as CursorFloatDiv,
|
|
51155
|
+
EB as CursorInfo,
|
|
51130
51156
|
Fe as Czm3DTiles,
|
|
51131
51157
|
fp as CzmCameraChanged,
|
|
51132
|
-
|
|
51158
|
+
AB as CzmCanvasAndDivSwitchPoi,
|
|
51133
51159
|
Qw as CzmCanvasPoi,
|
|
51134
51160
|
Mr as CzmCircle,
|
|
51135
51161
|
dn as CzmCircleGroundPrimitive,
|
|
@@ -51306,7 +51332,7 @@ export {
|
|
|
51306
51332
|
V0 as ScatterAppendEditingWrapper,
|
|
51307
51333
|
rL as ScatterModifyEditing,
|
|
51308
51334
|
N0 as ScatterModifyEditingWrapper,
|
|
51309
|
-
|
|
51335
|
+
O5 as ScreenManager,
|
|
51310
51336
|
gS as SharedTexturePool,
|
|
51311
51337
|
Lb as SmoothMoving,
|
|
51312
51338
|
m5 as TerrainManager,
|
|
@@ -51316,7 +51342,7 @@ export {
|
|
|
51316
51342
|
rM as ToWGS84WebMercatorTilingScheme,
|
|
51317
51343
|
_o as TranslationEditing,
|
|
51318
51344
|
rf as TranslationEditingWrapper,
|
|
51319
|
-
|
|
51345
|
+
B5 as ViewerExtensions,
|
|
51320
51346
|
ec as VisibilityAppendEditing,
|
|
51321
51347
|
U0 as VisibilityAppendEditingWrapper,
|
|
51322
51348
|
tc as VisibilityModifyEditing,
|
|
@@ -51327,11 +51353,11 @@ export {
|
|
|
51327
51353
|
Bs as XbsjGroundPolylinePrimitive,
|
|
51328
51354
|
af as _ESEditModeInstance,
|
|
51329
51355
|
ad as angleToHumanStr,
|
|
51330
|
-
|
|
51356
|
+
PB as areaToHumanStr,
|
|
51331
51357
|
Mt as bindNorthRotation,
|
|
51332
51358
|
Fb as calculateImageTiles,
|
|
51333
51359
|
Qb as capture,
|
|
51334
|
-
|
|
51360
|
+
_B as checkAndConvertImage,
|
|
51335
51361
|
Dz as computeCutPoint,
|
|
51336
51362
|
Ze as computeCzmModelMatrix,
|
|
51337
51363
|
Mw as computePickingInfoWithCoordinates,
|
|
@@ -51339,7 +51365,7 @@ export {
|
|
|
51339
51365
|
$d as createClippingPlaneCollection,
|
|
51340
51366
|
wf as createClippingPolygonCollection,
|
|
51341
51367
|
Nb as createGeoBoudingSphereReactFromPositions,
|
|
51342
|
-
|
|
51368
|
+
mB as createHelperLine,
|
|
51343
51369
|
qg as createInfoPoi,
|
|
51344
51370
|
$w as createInnerClassFromJson,
|
|
51345
51371
|
Qr as createInnerHtmlWithWhiteTextBlackBackground,
|
|
@@ -51357,38 +51383,38 @@ export {
|
|
|
51357
51383
|
xs as czmSubscribeAndEvaluate,
|
|
51358
51384
|
Qi as defaultFlyToRotation,
|
|
51359
51385
|
Tf as distanceToHumanStr,
|
|
51360
|
-
|
|
51386
|
+
xB as extendComponentProps,
|
|
51361
51387
|
fe as flyTo,
|
|
51362
51388
|
zi as flyWithPosition,
|
|
51363
51389
|
ge as flyWithPositions,
|
|
51364
51390
|
xi as flyWithPrimitive,
|
|
51365
|
-
|
|
51391
|
+
nB as fromCartesian,
|
|
51366
51392
|
yx as fromCartesian2,
|
|
51367
51393
|
od as fromCartesian3,
|
|
51368
51394
|
wx as fromCartesian4,
|
|
51369
51395
|
Sr as fromCartographic,
|
|
51370
|
-
|
|
51371
|
-
|
|
51372
|
-
|
|
51373
|
-
|
|
51374
|
-
|
|
51375
|
-
|
|
51376
|
-
|
|
51396
|
+
aB as fromColor,
|
|
51397
|
+
cB as fromDistanceDisplayCondition,
|
|
51398
|
+
gB as fromEllipsoid,
|
|
51399
|
+
hB as fromHeadingPitchRoll,
|
|
51400
|
+
lB as fromNearFarScalar,
|
|
51401
|
+
uB as fromQuaternion,
|
|
51402
|
+
fB as fromRectangle,
|
|
51377
51403
|
db as generateCartesianArc,
|
|
51378
51404
|
Tr as geoNeareastPointOnRhumbLine,
|
|
51379
|
-
|
|
51405
|
+
vB as geoNeareastPointOnRhumbLine2,
|
|
51380
51406
|
Xw as geoPolylineToBezierSpline,
|
|
51381
51407
|
Oi as getCameraPosition,
|
|
51382
51408
|
Sa as getCameraRotation,
|
|
51383
51409
|
Ix as getCameraTargetPos,
|
|
51384
51410
|
Xg as getCenterAndViewDistance,
|
|
51385
|
-
|
|
51386
|
-
|
|
51387
|
-
|
|
51411
|
+
CB as getCzmCode,
|
|
51412
|
+
bB as getDefaultComponentProps,
|
|
51413
|
+
yB as getDefaultWinPosAndDepth,
|
|
51388
51414
|
jb as getDetailedTerrainDistance,
|
|
51389
51415
|
qx as getDirectionVectorFromRotation,
|
|
51390
51416
|
Lw as getDistancesAndTimePosRotsFromPositions,
|
|
51391
|
-
|
|
51417
|
+
XB as getElevationMatrix,
|
|
51392
51418
|
Rw as getEllipsoidGeodesicCenter,
|
|
51393
51419
|
Af as getFlyToCenterAndRotation,
|
|
51394
51420
|
iI as getFoveatedInterpolationCallback,
|
|
@@ -51408,23 +51434,23 @@ export {
|
|
|
51408
51434
|
Ai as getResource,
|
|
51409
51435
|
xo as getSceneScaleForScreenPixelSize,
|
|
51410
51436
|
mS as getSharedTexturePool,
|
|
51411
|
-
|
|
51437
|
+
IB as getTilingSchemeStr,
|
|
51412
51438
|
Ct as getViewerExtensions,
|
|
51413
51439
|
$x as getWinPos,
|
|
51414
51440
|
Pb as getXbsjWaterMaterial,
|
|
51415
|
-
|
|
51416
|
-
|
|
51417
|
-
|
|
51418
|
-
|
|
51441
|
+
HO as hackCesium3DTileset,
|
|
51442
|
+
$O as hackCzmModel3DTileContent,
|
|
51443
|
+
WO as hackModel,
|
|
51444
|
+
qO as hackModelSceneGraph,
|
|
51419
51445
|
er as imgUrlToBase64,
|
|
51420
51446
|
Lo as localPositionToPosition,
|
|
51421
51447
|
en as localPositionsToPositions,
|
|
51422
|
-
|
|
51448
|
+
wB as merge3dTilesServer,
|
|
51423
51449
|
Cf as pickHeightPosition,
|
|
51424
51450
|
Vx as pickPosition,
|
|
51425
51451
|
Sh as pickVirtualEarth,
|
|
51426
51452
|
Nx as pickVirtualPlane,
|
|
51427
|
-
|
|
51453
|
+
pB as positionAndRotationToQuaternion,
|
|
51428
51454
|
me as positionFromCartesian,
|
|
51429
51455
|
Ve as positionToCartesian,
|
|
51430
51456
|
Hg as positionToHumanStr,
|
|
@@ -51442,14 +51468,14 @@ export {
|
|
|
51442
51468
|
ke as toCartesian2,
|
|
51443
51469
|
ps as toCartesian3,
|
|
51444
51470
|
Ew as toCartesian4,
|
|
51445
|
-
|
|
51471
|
+
rB as toCartographic,
|
|
51446
51472
|
Ww as toCoefficients,
|
|
51447
51473
|
de as toColor,
|
|
51448
51474
|
Hd as toDistanceDisplayCondition,
|
|
51449
51475
|
De as toEllipsoid,
|
|
51450
51476
|
Cx as toHeadingPitchRoll,
|
|
51451
51477
|
Jo as toNearFarScalar,
|
|
51452
|
-
|
|
51478
|
+
dB as toQuaternion,
|
|
51453
51479
|
ht as toRectangle,
|
|
51454
51480
|
ko as toRgbaString,
|
|
51455
51481
|
Gw as updateEnvironmentMapManager,
|