earthsdk3-cesium 3.6.0-beta.5 → 3.6.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -134,7 +134,7 @@ function as(t, i) {
134
134
  return ke(t, i);
135
135
  throw new Error("toCartesian error: should not be here!");
136
136
  }
137
- function rB(t, i) {
137
+ function nB(t, i) {
138
138
  if (t instanceof h.Cartesian2)
139
139
  return yx(t, i);
140
140
  if (t instanceof h.Cartesian3)
@@ -143,7 +143,7 @@ function rB(t, i) {
143
143
  return wx(t, i);
144
144
  throw new Error("fromCartesian error: should not be here!");
145
145
  }
146
- function aB(t, i) {
146
+ function rB(t, i) {
147
147
  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
148
  }
149
149
  function Sr(t, i) {
@@ -152,49 +152,49 @@ function Sr(t, i) {
152
152
  function de(t, i) {
153
153
  return i = i || new h.Color(), i.red = t[0], i.green = t[1], i.blue = t[2], i.alpha = t[3], i;
154
154
  }
155
- function lB(t, i) {
155
+ function aB(t, i) {
156
156
  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
157
  }
158
158
  function Jo(t, i) {
159
159
  return i = i || new h.NearFarScalar(), i.near = t[0], i.nearValue = t[1], i.far = t[2], i.farValue = t[3], i;
160
160
  }
161
- function hB(t, i) {
161
+ function lB(t, i) {
162
162
  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
163
  }
164
164
  function Cx(t, i) {
165
165
  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
166
  }
167
- function cB(t, i) {
167
+ function hB(t, i) {
168
168
  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
169
  }
170
170
  function Hd(t, i) {
171
171
  return i = i || new h.DistanceDisplayCondition(), i.near = t[0], i.far = t[1], i;
172
172
  }
173
- function dB(t, i) {
173
+ function cB(t, i) {
174
174
  return i = i || [0, 0], i[0] = t.near, i[1] = t.far, i;
175
175
  }
176
- function uB(t, i) {
176
+ function dB(t, i) {
177
177
  return i = i || new h.Quaternion(), i.x = t[0], i.y = t[1], i.z = t[2], i.w = t[3], i;
178
178
  }
179
- function pB(t, i) {
179
+ function uB(t, i) {
180
180
  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
181
  }
182
182
  const _x = new h.HeadingPitchRoll(), Px = new h.Cartesian3();
183
- function fB(t, i, e) {
183
+ function pB(t, i, e) {
184
184
  const s = Cx(i, _x), o = Ve(t, Px);
185
185
  return h.Transforms.headingPitchRollQuaternion(o, s, void 0, void 0, e);
186
186
  }
187
187
  function ht(t, i) {
188
188
  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
189
  }
190
- function gB(t, i) {
190
+ function fB(t, i) {
191
191
  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
192
  }
193
193
  const xx = new h.Cartesian3();
194
194
  function De(t, i) {
195
195
  return i = i || new h.Ellipsoid(), h.Ellipsoid.fromCartesian3(h.Cartesian3.fromArray(t, void 0, xx), i);
196
196
  }
197
- function mB(t, i) {
197
+ function gB(t, i) {
198
198
  return i = i || [0, 0, 0], i[0] = t.radii.x, i[1] = t.radii.y, i[2] = t.radii.z, i;
199
199
  }
200
200
  function ns(t) {
@@ -496,7 +496,7 @@ function Tr(t, i, e, s) {
496
496
  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
497
  return r > 0 ? Ot(t, o, i, s) : Ot(t, o, i + 180, s), [r > 0 ? o : -o, s];
498
498
  }
499
- function vB(t, i, e) {
499
+ function mB(t, i, e) {
500
500
  const s = e * 0.1, o = [];
501
501
  for (let n = -9; n < 10; ++n) {
502
502
  const r = Ot(t, s * n, i);
@@ -504,7 +504,7 @@ function vB(t, i, e) {
504
504
  }
505
505
  return o;
506
506
  }
507
- function yB(t, i) {
507
+ function vB(t, i) {
508
508
  return q1(t, i).geometry.coordinates;
509
509
  }
510
510
  const Dg = new h.Cartesian3(), Fx = new h.Ray(), zx = new h.Plane(h.Cartesian3.UNIT_X, 0);
@@ -632,7 +632,7 @@ function Rw(t, i) {
632
632
  return r.height = (o.height + n.height) * 0.5, [r.longitude * s, r.latitude * s, r.height];
633
633
  }
634
634
  const Lg = new h.Cartesian4(), Wx = new h.Matrix4();
635
- function wB() {
635
+ function yB() {
636
636
  return { left: 0, top: 0, right: 0, bottom: 0, depth: 0 };
637
637
  }
638
638
  function Hx(t, i) {
@@ -1229,7 +1229,7 @@ const Ug = ze(async (t, i) => {
1229
1229
  Math.max(...n.map((l) => l[5]))
1230
1230
  ], e.tilesUrl.root.children = a), e;
1231
1231
  });
1232
- function CB(t) {
1232
+ function wB(t) {
1233
1233
  return new Promise((i, e) => {
1234
1234
  Ug.restart(void 0, t), Ug.completeEvent.don((s) => {
1235
1235
  i(s);
@@ -1413,19 +1413,20 @@ async function vr(t, i, e) {
1413
1413
  });
1414
1414
  }
1415
1415
  function bb(t) {
1416
- if (t.url)
1417
- return (
1418
- /*js*/
1419
- `(async ()=>{
1416
+ if (!t.url) return;
1417
+ const [i, e, s, o] = t.rectangle;
1418
+ return (
1419
+ /*js*/
1420
+ `(async ()=>{
1420
1421
  var terrainProvider = await Cesium.CesiumTerrainProvider.fromUrl(
1421
1422
  ${Sb(typeof t.url == "object" ? t.url.url : t.url)}
1422
1423
  );
1423
1424
  viewer.terrainProvider = terrainProvider;
1424
1425
  viewer.camera.flyTo({
1425
- destination: Cesium.Rectangle.fromDegrees(west, south, east, north)
1426
+ destination: Cesium.Rectangle.fromDegrees(${i}, ${e}, ${s}, ${o})
1426
1427
  });
1427
1428
  })()`
1428
- );
1429
+ );
1429
1430
  }
1430
1431
  function Sb(t) {
1431
1432
  let i;
@@ -1433,22 +1434,26 @@ function Sb(t) {
1433
1434
  const s = +t.substring(6);
1434
1435
  Number.isFinite(s) && (i = `Cesium.IonResource.fromAssetId(${s})`);
1435
1436
  } else
1436
- i = `'${oe.context.getStrFromEnv(t)}'`;
1437
+ i = `'${oe.context.getStrFromEnv(t).replace("/layer.json", "")}'`;
1437
1438
  return i;
1438
1439
  }
1439
1440
  function Tb(t) {
1440
1441
  if (!t.url) return;
1441
1442
  const i = oe.context.getStrFromEnv(typeof t.url == "string" ? t.url : t.url.url), e = [];
1442
- return e.push(`url: '${i}'`), /*js*/
1443
- `
1444
- var imageryProvider = new Cesium.${i.endsWith(".xml") ? "TileMapServiceImageryProvider" : "UrlTemplateImageryProvider"}({
1445
- ${e.map((n) => `${n}`).join(`,
1443
+ e.push(`url: '${i}'`);
1444
+ const s = i.endsWith(".xml") ? "TileMapServiceImageryProvider" : "UrlTemplateImageryProvider", [o, n, r, a] = t.rectangle ?? [-180, -90, 180, 90];
1445
+ return (
1446
+ /*js*/
1447
+ `
1448
+ var imageryProvider = new Cesium.${s}({
1449
+ ${e.map((c) => `${c}`).join(`,
1446
1450
  `)}
1447
1451
  });
1448
1452
  viewer.imageryLayers.addImageryProvider(imageryProvider);
1449
1453
  viewer.camera.flyTo({
1450
- destination: Cesium.Rectangle.fromDegrees(west, south, east, north)
1451
- });`;
1454
+ destination: Cesium.Rectangle.fromDegrees(${o}, ${n}, ${r}, ${a})
1455
+ });`
1456
+ );
1452
1457
  }
1453
1458
  function Eb(t) {
1454
1459
  var n, r;
@@ -1480,7 +1485,7 @@ function Ab(t) {
1480
1485
  }
1481
1486
  return i = i || `"${oe.context.getStrFromEnv(e)}"`, i;
1482
1487
  }
1483
- function _B(t) {
1488
+ function CB(t) {
1484
1489
  return t instanceof bh ? Tb(t) : t instanceof wa ? bb(t) : t instanceof _i ? Eb(t) : "getCzmCode目前只支持影像地形或瓦片";
1485
1490
  }
1486
1491
  function Gw(t, i) {
@@ -1829,7 +1834,7 @@ class Ob extends k {
1829
1834
  const [n, r, a] = ki(e), [l, c, d] = ki(s), [u, p, f] = ki(o);
1830
1835
  }
1831
1836
  }
1832
- function PB(t, i) {
1837
+ function _B(t, i) {
1833
1838
  const e = document.createElement("a");
1834
1839
  e.href = t;
1835
1840
  const s = e.href, o = new Image();
@@ -1860,7 +1865,7 @@ function Hg(t, i = !1) {
1860
1865
  const e = ad(t[0], i), s = ad(t[1], i), o = Tf(t[2]);
1861
1866
  return [e, s, o];
1862
1867
  }
1863
- function xB(t) {
1868
+ function PB(t) {
1864
1869
  return Math.abs(t) < 1e6 ? `${t.toFixed(2)} m²` : `${(t / 1e6).toFixed(2)} km²`;
1865
1870
  }
1866
1871
  function Qr(t, i = 48) {
@@ -2004,7 +2009,7 @@ function $g(t, i) {
2004
2009
  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
2010
  t.indexTypedArray = new Uint16Array(T);
2006
2011
  }
2007
- function bB(t, i) {
2012
+ function xB(t, i) {
2008
2013
  for (let [e, { defaultValue: s, componentName: o, originPropName: n = e }] of Object.entries(i))
2009
2014
  Reflect.has(t, e) ? console.error(`Prop(${e}) conflicts!`) : Object.defineProperties(t, {
2010
2015
  [e]: {
@@ -2022,7 +2027,7 @@ function bB(t, i) {
2022
2027
  }
2023
2028
  });
2024
2029
  }
2025
- function SB(t) {
2030
+ function bB(t) {
2026
2031
  const i = {};
2027
2032
  for (let [e, { defaultValue: s }] of Object.entries(t))
2028
2033
  i[e] = s;
@@ -5209,12 +5214,12 @@ let Qe = it;
5209
5214
  });
5210
5215
  })(Qe || (Qe = {}));
5211
5216
  ae(Qe.prototype, Qe.createDefaultProps);
5212
- class EB extends dw {
5217
+ class TB extends dw {
5213
5218
  constructor() {
5214
5219
  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
5220
  }
5216
5221
  }
5217
- class AB extends k {
5222
+ class EB extends k {
5218
5223
  constructor(e, s) {
5219
5224
  super();
5220
5225
  g(this, "_cursorDiv");
@@ -5403,7 +5408,7 @@ class Kw extends k {
5403
5408
  return this._zOrderChanged || (this._zOrderChanged = new q()), this._zOrderChanged;
5404
5409
  }
5405
5410
  }
5406
- class MB extends k {
5411
+ class AB extends k {
5407
5412
  // status: CzmCanvasAndDivSwitchPoiStatus
5408
5413
  constructor(e, s, o, n) {
5409
5414
  super();
@@ -19231,7 +19236,7 @@ class rM extends h.WebMercatorTilingScheme {
19231
19236
  };
19232
19237
  }
19233
19238
  }
19234
- function RB(t) {
19239
+ function IB(t) {
19235
19240
  if (t.type === "GeographicTilingScheme")
19236
19241
  return "new Cesium.GeographicTilingScheme()";
19237
19242
  if (t.type === "WebMercatorTilingScheme")
@@ -22217,7 +22222,6 @@ const ui = class ui extends k {
22217
22222
  get idChanged() {
22218
22223
  return this._id.changed;
22219
22224
  }
22220
- // getCzmCode() { return getCzmCodeFromCzm3DTiles(this); }
22221
22225
  get czmViewer() {
22222
22226
  return this._czmViewer;
22223
22227
  }
@@ -29821,7 +29825,7 @@ const ml = class ml extends Zi {
29821
29825
  requestVertexNormals: !0
29822
29826
  };
29823
29827
  } else
29824
- m.includes("/layer.json") && (typeof f == "string" ? f = m.split("/layer.json").join("") : f.url = m.split("/layer.json").join("")), this._czmProvider.value = {
29828
+ m.includes("/layer.json") && (typeof f == "string" ? f = m.replace("/layer.json", "") : f.url = m.replace("/layer.json", "")), this._czmProvider.value = {
29825
29829
  type: "CesiumTerrainProvider",
29826
29830
  url: f,
29827
29831
  requestMetadata: !0,
@@ -45889,7 +45893,7 @@ class f5 extends k {
45889
45893
  p !== e.currentTime && (e.currentTime = p);
45890
45894
  }));
45891
45895
  {
45892
- const u = new V5(d, e);
45896
+ const u = new B5(d, e);
45893
45897
  X0(d, u);
45894
45898
  }
45895
45899
  e.setStatus("Created"), e.setStatusLog("成功创建Cesium视口!"), s(d);
@@ -46516,11 +46520,17 @@ class M5 extends k {
46516
46520
  constructor() {
46517
46521
  super();
46518
46522
  g(this, "defaultStyle", /* @__PURE__ */ new Map());
46523
+ g(this, "defaultSprite", /* @__PURE__ */ new Map());
46519
46524
  }
46520
- add(e) {
46525
+ async add(e) {
46526
+ var o;
46527
+ if (typeof e.mvtLayerJson.mainJson != "string" && ((o = e.mvtLayerJson.mainJson) != null && o.sprite)) {
46528
+ const n = e.mvtLayerJson.mainJson.sprite, r = await h.Resource.fetchJson({ url: n + ".json" });
46529
+ r && this.defaultSprite.set(e.sceneObject.id, [n + ".png", r]);
46530
+ }
46521
46531
  const s = e.mvtLayerJson.pointJson;
46522
- for (const o of s)
46523
- this.setDefaultStyle(e.sceneObject.id, I5(o));
46532
+ for (const n of s)
46533
+ this.setDefaultStyle(e.sceneObject.id, this.getStyleFromMVTLayers(e.sceneObject.id, n));
46524
46534
  }
46525
46535
  remove(e) {
46526
46536
  this.defaultStyle.delete(e.sceneObject.id);
@@ -46532,42 +46542,47 @@ class M5 extends k {
46532
46542
  getStyle(e) {
46533
46543
  return this.defaultStyle.get(e) ?? /* @__PURE__ */ new Set();
46534
46544
  }
46535
- }
46536
- function I5(t) {
46537
- const i = {
46538
- id: t.id,
46539
- type: t.type,
46540
- source: t.source,
46541
- "source-layer": t["source-layer"],
46542
- labelStyle: void 0,
46543
- billboardStyle: void 0,
46544
- polygonStyle: void 0,
46545
- polylineStyle: void 0
46546
- };
46547
- if (Reflect.has(t, "minzoom") && (i.minzoom = t.minzoom), Reflect.has(t, "maxzoom") && (i.maxzoom = t.maxzoom), Reflect.has(t, "type") && t.type === "symbol" && Reflect.has(t, "layout")) {
46548
- const e = t.layout;
46549
- if (Reflect.has(e, "icon-image")) {
46550
- const s = i.billboardStyle = {};
46551
- s.image = e["icon-image"];
46552
- const { horizontalOrigin: o, verticalOrigin: n } = $0(e["icon-anchor"] ?? "center");
46553
- if (s.horizontalOrigin = o, s.verticalOrigin = n, Reflect.has(t, "paint")) {
46554
- const r = t.paint;
46555
- s.color = h.Color.fromCssColorString(r["icon-color"] ?? "#FF0000").withAlpha(r["icon-opacity"] ?? 1);
46545
+ /**
46546
+ * 从MVTLayers的样式中获取Cesium的Label或Billboard样式
46547
+ * @param layerStyle MVTLayers的样式
46548
+ * @returns 样式
46549
+ */
46550
+ getStyleFromMVTLayers(e, s) {
46551
+ const o = {
46552
+ id: s.id,
46553
+ type: s.type,
46554
+ source: s.source,
46555
+ "source-layer": s["source-layer"],
46556
+ labelStyle: void 0,
46557
+ billboardStyle: void 0,
46558
+ polygonStyle: void 0,
46559
+ polylineStyle: void 0
46560
+ };
46561
+ 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")) {
46562
+ const n = s.layout;
46563
+ if (Reflect.has(n, "icon-image")) {
46564
+ const r = o.billboardStyle = {}, a = this.defaultSprite.get(e);
46565
+ 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"];
46566
+ const { horizontalOrigin: l, verticalOrigin: c } = $0(n["icon-anchor"] ?? "center");
46567
+ if (r.horizontalOrigin = l, r.verticalOrigin = c, Reflect.has(s, "paint")) {
46568
+ const d = s.paint;
46569
+ r.color = h.Color.fromCssColorString(d["icon-color"] ?? "#FFFFFF").withAlpha(d["icon-opacity"] ?? 1);
46570
+ }
46571
+ r.rotation = h.Math.toRadians(n["icon-rotate"] ?? 0), r.scale = n["icon-size"] ?? 1, r.show = (n.visibility ?? "visible") === "visible";
46556
46572
  }
46557
- s.rotation = h.Math.toRadians(e["icon-rotate"] ?? 0), s.scale = e["icon-size"] ?? 1, s.show = (e.visibility ?? "visible") === "visible";
46558
- }
46559
- if (Reflect.has(e, "text-field")) {
46560
- const s = i.labelStyle = {};
46561
- s.text = e["text-field"];
46562
- const { horizontalOrigin: o, verticalOrigin: n } = $0(e["text-anchor"] ?? "center");
46563
- if (s.horizontalOrigin = o, s.verticalOrigin = n, Reflect.has(t, "paint")) {
46564
- const r = t.paint;
46565
- s.fillColor = h.Color.fromCssColorString(r["text-color"] ?? "#FFFFFF").withAlpha(r["text-opacity"] ?? 1);
46573
+ if (Reflect.has(n, "text-field")) {
46574
+ const r = o.labelStyle = {};
46575
+ r.text = n["text-field"];
46576
+ const { horizontalOrigin: a, verticalOrigin: l } = $0(n["text-anchor"] ?? "center");
46577
+ if (r.horizontalOrigin = a, r.verticalOrigin = l, Reflect.has(s, "paint")) {
46578
+ const c = s.paint;
46579
+ r.fillColor = h.Color.fromCssColorString(c["text-color"] ?? "#FFFFFF").withAlpha(c["text-opacity"] ?? 1);
46580
+ }
46581
+ r.font = `${n["text-size"] ?? 16}px ${n["text-font"] ?? "sans-serif"}`, r.show = (n.visibility ?? "visible") === "visible";
46566
46582
  }
46567
- s.font = `${e["text-size"] ?? 16}px ${e["text-font"] ?? "sans-serif"}`, s.show = (e.visibility ?? "visible") === "visible";
46568
46583
  }
46584
+ return o;
46569
46585
  }
46570
- return i;
46571
46586
  }
46572
46587
  function $0(t) {
46573
46588
  let i = h.HorizontalOrigin.CENTER, e = h.VerticalOrigin.CENTER;
@@ -46601,7 +46616,7 @@ function $0(t) {
46601
46616
  }
46602
46617
  return { horizontalOrigin: i, verticalOrigin: e };
46603
46618
  }
46604
- class R5 extends k {
46619
+ class I5 extends k {
46605
46620
  constructor() {
46606
46621
  super();
46607
46622
  g(this, "callbacks", /* @__PURE__ */ new Map());
@@ -46617,7 +46632,7 @@ class R5 extends k {
46617
46632
  (o = this.callbacks.get(s)) == null || o.forEach((n) => n(e.data));
46618
46633
  }
46619
46634
  }
46620
- class D5 extends k {
46635
+ class R5 extends k {
46621
46636
  constructor(e) {
46622
46637
  super();
46623
46638
  g(this, "czmESMVTLayers", /* @__PURE__ */ new Map());
@@ -46625,7 +46640,7 @@ class D5 extends k {
46625
46640
  g(this, "tileLoader", new E5());
46626
46641
  g(this, "tileRenderer");
46627
46642
  g(this, "styleManager", new M5());
46628
- g(this, "eventManager", new R5());
46643
+ g(this, "eventManager", new I5());
46629
46644
  g(this, "lastImageryTileMap", /* @__PURE__ */ new Map());
46630
46645
  this.viewer = e;
46631
46646
  const s = Ct(e);
@@ -46669,7 +46684,7 @@ class D5 extends k {
46669
46684
  var s, o;
46670
46685
  for (const n of this.czmESMVTLayers.keys()) {
46671
46686
  const r = e.get(n) ?? /* @__PURE__ */ new Set(), a = this.lastImageryTileMap.get(n);
46672
- if (a && k5(r, a))
46687
+ if (a && D5(r, a))
46673
46688
  continue;
46674
46689
  this.lastImageryTileMap.set(n, r);
46675
46690
  const l = new Set(((s = this.tilesCache.get(n)) == null ? void 0 : s.keys()) ?? []), c = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set();
@@ -46700,14 +46715,14 @@ class D5 extends k {
46700
46715
  // }
46701
46716
  // }
46702
46717
  }
46703
- function k5(t, i) {
46718
+ function D5(t, i) {
46704
46719
  if (t.size !== i.size) return !1;
46705
46720
  for (const e of t)
46706
46721
  if (!i.has(e)) return !1;
46707
46722
  return !0;
46708
46723
  }
46709
46724
  const D1 = ["label", "billboard", "rectangle"];
46710
- class F5 extends k {
46725
+ class k5 extends k {
46711
46726
  constructor(e, s) {
46712
46727
  super();
46713
46728
  g(this, "id", Ne());
@@ -46734,7 +46749,7 @@ class F5 extends k {
46734
46749
  this.label && (this.label.show = e), this.billboard && (this.billboard.show = e);
46735
46750
  }
46736
46751
  }
46737
- class z5 extends k {
46752
+ class F5 extends k {
46738
46753
  constructor(e) {
46739
46754
  super();
46740
46755
  g(this, "objects", /* @__PURE__ */ new Map());
@@ -46890,7 +46905,7 @@ class z5 extends k {
46890
46905
  /** 获取或创建 ScreenObject */
46891
46906
  getOrCreateObject(e, s) {
46892
46907
  let o = this.objects.get(e);
46893
- return o || (o = new F5(e, s), this.objects.set(e, o)), o;
46908
+ return o || (o = new k5(e, s), this.objects.set(e, o)), o;
46894
46909
  }
46895
46910
  /** 如果对象三种类型都没有了,则删除该 screenObject */
46896
46911
  tryDeleteEmpty(e) {
@@ -46898,7 +46913,7 @@ class z5 extends k {
46898
46913
  s && !s.label && !s.billboard && !s.rectangle && this.objects.delete(e);
46899
46914
  }
46900
46915
  }
46901
- function L5(t, i) {
46916
+ function z5(t, i) {
46902
46917
  const e = [Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER, Number.MIN_SAFE_INTEGER, Number.MIN_SAFE_INTEGER];
46903
46918
  for (const s in i)
46904
46919
  if (Object.prototype.hasOwnProperty.call(i, s) && D1.includes(s)) {
@@ -46915,7 +46930,7 @@ function L5(t, i) {
46915
46930
  }
46916
46931
  return new h.Rectangle(...e);
46917
46932
  }
46918
- class O5 extends k {
46933
+ class L5 extends k {
46919
46934
  // 阈值(可按需调整)
46920
46935
  constructor(e) {
46921
46936
  super();
@@ -47003,7 +47018,7 @@ class O5 extends k {
47003
47018
  if (o && h.Cartesian3.equalsEpsilon(o.worldPos, n, 1e-6))
47004
47019
  r = o.rect, this.rectangleCollisionCheck.remove(s, r);
47005
47020
  else {
47006
- if (r = L5(this.screenManager.viewer, e), isNaN(r.width) || isNaN(r.height)) {
47021
+ if (r = z5(this.screenManager.viewer, e), isNaN(r.width) || isNaN(r.height)) {
47007
47022
  e.show(!1), this._cache.has(e.id.toString()) && this._cache.delete(e.id.toString());
47008
47023
  return;
47009
47024
  }
@@ -47031,7 +47046,7 @@ class q0 extends k {
47031
47046
  this._collection[e._index] = void 0;
47032
47047
  }
47033
47048
  }
47034
- class B5 extends k {
47049
+ class O5 extends k {
47035
47050
  constructor(e) {
47036
47051
  super();
47037
47052
  g(this, "layers", /* @__PURE__ */ new Map());
@@ -47045,7 +47060,7 @@ class B5 extends k {
47045
47060
  /** 集合映射,方便统一处理 */
47046
47061
  g(this, "collectionMap");
47047
47062
  g(this, "_refreshEvent", this.ad(new q()));
47048
- this.czmViewer = e, this.viewer = e.viewer, this.avoidanceManager = this.ad(new O5(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 = {
47063
+ 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
47064
  label: this.labelCollection,
47050
47065
  billboard: this.billboardCollection,
47051
47066
  rectangle: this.rectangleCollection
@@ -47067,7 +47082,7 @@ class B5 extends k {
47067
47082
  }
47068
47083
  getLayer(e) {
47069
47084
  let s = this.layers.get(e);
47070
- return s || (s = new z5(this), this.layers.set(e, s), this.avoidanceManager.enable && this.avoidanceManager.updateAvoidanceLayer({ enabled: !0 })), s;
47085
+ return s || (s = new F5(this), this.layers.set(e, s), this.avoidanceManager.enable && this.avoidanceManager.updateAvoidanceLayer({ enabled: !0 })), s;
47071
47086
  }
47072
47087
  addLabel(e, s, o, n) {
47073
47088
  const a = this.getLayer(s).addLabel(e, o, n);
@@ -47103,7 +47118,7 @@ function Ct(t) {
47103
47118
  function X0(t, i) {
47104
47119
  td(t, "_viewerExtensions", i);
47105
47120
  }
47106
- class V5 extends k {
47121
+ class B5 extends k {
47107
47122
  constructor(e, s) {
47108
47123
  super();
47109
47124
  g(this, "_imageriesManager");
@@ -47115,7 +47130,7 @@ class V5 extends k {
47115
47130
  g(this, "_screenManager");
47116
47131
  g(this, "_vectorTIlesManager");
47117
47132
  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 B5(s)), this._vectorTIlesManager = this.ad(new D5(s.viewer)), this.ad(Ko(this.czmViewer.textAvoidanceChanged, () => {
47133
+ 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
47134
  this.screenManager.setRules({
47120
47135
  avoidance: {
47121
47136
  enabled: this.czmViewer.textAvoidance
@@ -47182,7 +47197,7 @@ function Q0(t, i) {
47182
47197
  function K0(t, i) {
47183
47198
  k1(t, -i, !0);
47184
47199
  }
47185
- class N5 extends k {
47200
+ class V5 extends k {
47186
47201
  constructor(e) {
47187
47202
  super();
47188
47203
  // static keyStatusMap: { [k: string]: CameraActionType; } = {
@@ -47313,12 +47328,12 @@ class Rd extends k {
47313
47328
  return this._debug.changed;
47314
47329
  }
47315
47330
  }
47316
- class U5 extends k {
47331
+ class N5 extends k {
47317
47332
  constructor(e) {
47318
47333
  super();
47319
47334
  g(this, "_keyStatus");
47320
47335
  g(this, "_cameraOp");
47321
- this._keyboardCameraController = e, this._keyStatus = this.dv(new Rd(this)), this._cameraOp = this.dv(new N5(this));
47336
+ this._keyboardCameraController = e, this._keyStatus = this.dv(new Rd(this)), this._cameraOp = this.dv(new V5(this));
47322
47337
  }
47323
47338
  get keyboardCameraController() {
47324
47339
  return this._keyboardCameraController;
@@ -47349,7 +47364,7 @@ const Ld = class Ld extends k {
47349
47364
  g(this, "_abortEvent", this.dv(new q()));
47350
47365
  this._firstPersonController = e, this.dv(new he(this.enabledChanged, () => {
47351
47366
  if (this.enabled)
47352
- return new U5(this);
47367
+ return new N5(this);
47353
47368
  }));
47354
47369
  }
47355
47370
  get firstPersonController() {
@@ -47435,7 +47450,7 @@ g(Ld, "defaultKeyStatusMap", {
47435
47450
  KeyQ: "SwitchAlwaysWithCamera"
47436
47451
  });
47437
47452
  let Dd = Ld;
47438
- function G5(t, i) {
47453
+ function U5(t, i) {
47439
47454
  t.lookRight(h.Math.toRadians(i.movementX) * 0.1), t.lookDown(h.Math.toRadians(i.movementY) * 0.1);
47440
47455
  const e = t.pitch, s = h.Math.clamp(e, -h.Math.PI_OVER_TWO, h.Math.PI_OVER_TWO);
47441
47456
  s !== e && t.setView({
@@ -47447,14 +47462,14 @@ function G5(t, i) {
47447
47462
  }
47448
47463
  });
47449
47464
  }
47450
- class W5 extends k {
47465
+ class G5 extends k {
47451
47466
  constructor(i, e) {
47452
47467
  super(), this._firstPersonController = i, this._mouseCameraController = e;
47453
47468
  const { canvas: s } = this._firstPersonController.viewer;
47454
47469
  {
47455
47470
  const o = (n) => {
47456
47471
  const { camera: r } = this._firstPersonController.viewer.scene;
47457
- G5(r, n);
47472
+ U5(r, n);
47458
47473
  };
47459
47474
  s.addEventListener("pointermove", o), this.dispose(() => s.removeEventListener("pointermove", o));
47460
47475
  }
@@ -47463,7 +47478,7 @@ class W5 extends k {
47463
47478
  const Od = class Od extends k {
47464
47479
  constructor(e) {
47465
47480
  super();
47466
- g(this, "_mouseMoving", this.dv(new W5(this.firstPersonController, this.mouseCameraController)));
47481
+ g(this, "_mouseMoving", this.dv(new G5(this.firstPersonController, this.mouseCameraController)));
47467
47482
  this._mouseCameraController = e;
47468
47483
  const { viewer: s } = this.firstPersonController;
47469
47484
  this.mouseCameraController.enableViewerOriginInputs(!1), this.dispose(() => this.mouseCameraController.enableViewerOriginInputs(!0)), Element.prototype.setPointerCapture = () => {
@@ -47495,7 +47510,7 @@ const Od = class Od extends k {
47495
47510
  };
47496
47511
  g(Od, "origin_setPointerCapture", Element.prototype.setPointerCapture);
47497
47512
  let hf = Od;
47498
- class H5 extends k {
47513
+ class W5 extends k {
47499
47514
  constructor(e) {
47500
47515
  super();
47501
47516
  g(this, "_enabled", this.dv(U(!1)));
@@ -47524,11 +47539,11 @@ class H5 extends k {
47524
47539
  return this._mouseResetting;
47525
47540
  }
47526
47541
  }
47527
- class $5 extends k {
47542
+ class H5 extends k {
47528
47543
  constructor(e) {
47529
47544
  super();
47530
47545
  g(this, "viewer");
47531
- g(this, "_mouseCameraController", this.dv(new H5(this)));
47546
+ g(this, "_mouseCameraController", this.dv(new W5(this)));
47532
47547
  g(this, "_keyboardCameraController", this.dv(new Dd(this)));
47533
47548
  if (this._viewer = e, !this._viewer.viewer) throw new Error("Cesium.Viewer不存在!");
47534
47549
  this.viewer = this._viewer.viewer;
@@ -47599,7 +47614,7 @@ function op(t, i, e, s = void 0) {
47599
47614
  } else
47600
47615
  n.lookUp(d);
47601
47616
  }
47602
- class q5 extends k {
47617
+ class $5 extends k {
47603
47618
  constructor(i, e) {
47604
47619
  super();
47605
47620
  const s = e.viewer;
@@ -47658,7 +47673,7 @@ class us extends k {
47658
47673
  };
47659
47674
  this.d(r);
47660
47675
  const a = () => {
47661
- r(), o.enabled && (n = new q5(o, e));
47676
+ r(), o.enabled && (n = new $5(o, e));
47662
47677
  };
47663
47678
  a(), this.d(o.enabledChanged.don(a)), this.d(o.resetWithCameraEvent.don((l) => {
47664
47679
  if (!e.actived) return;
@@ -47713,9 +47728,9 @@ class ic extends k {
47713
47728
  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
47729
  if (this.lineMode !== void 0) {
47715
47730
  if (this.lineMode === "auto")
47716
- return new X5(this, e);
47731
+ return new q5(this, e);
47717
47732
  if (this.lineMode === "manual")
47718
- return new Y5(this, e);
47733
+ return new X5(this, e);
47719
47734
  }
47720
47735
  }));
47721
47736
  }
@@ -47752,13 +47767,13 @@ class ic extends k {
47752
47767
  });
47753
47768
  })(ic || (ic = {}));
47754
47769
  ae(ic.prototype, ic.createDefaultProps);
47755
- class X5 extends k {
47770
+ class q5 extends k {
47756
47771
  constructor(i, e) {
47757
47772
  if (super(), !e.viewer) throw new Error("viewer is undefined");
47758
47773
  i.offsetRotation = [-90, 0, 0];
47759
47774
  }
47760
47775
  }
47761
- class Y5 extends k {
47776
+ class X5 extends k {
47762
47777
  constructor(i, e) {
47763
47778
  if (super(), !e.viewer) throw new Error("viewer is undefined");
47764
47779
  const o = (n) => {
@@ -47767,7 +47782,7 @@ class Y5 extends k {
47767
47782
  this.dispose(e.keyDownEvent.don(o)), this.dispose(e.keyUpEvent.don(o));
47768
47783
  }
47769
47784
  }
47770
- class Z5 extends k {
47785
+ class Y5 extends k {
47771
47786
  constructor(i, e) {
47772
47787
  super();
47773
47788
  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 +47806,7 @@ class Z5 extends k {
47791
47806
  }
47792
47807
  }
47793
47808
  }
47794
- class Q5 extends k {
47809
+ class Z5 extends k {
47795
47810
  constructor(i, e) {
47796
47811
  super();
47797
47812
  const s = this.dv(new Li());
@@ -47809,7 +47824,7 @@ class Q5 extends k {
47809
47824
  this.disposeVar(new he(o, () => {
47810
47825
  const { sceneObject: n } = s;
47811
47826
  if (!(!e.enabled || !n))
47812
- return new Z5(n, e);
47827
+ return new Y5(n, e);
47813
47828
  }));
47814
47829
  }
47815
47830
  }
@@ -47819,7 +47834,7 @@ class sc extends k {
47819
47834
  g(this, "_geoCameraController");
47820
47835
  this._geoCameraController = this.dv(new us(e)), this.d(M([this._geoCameraController, "enabled"], [this, "enabled"])), this.dv(new he(this.sceneObjectIdChanged, () => {
47821
47836
  if (this.sceneObjectId)
47822
- return new Q5(this.sceneObjectId, this);
47837
+ return new Z5(this.sceneObjectId, this);
47823
47838
  }));
47824
47839
  }
47825
47840
  get geoCameraController() {
@@ -47839,7 +47854,7 @@ class sc extends k {
47839
47854
  });
47840
47855
  })(sc || (sc = {}));
47841
47856
  ae(sc.prototype, sc.createDefaultProps);
47842
- class K5 extends k {
47857
+ class Q5 extends k {
47843
47858
  constructor(e) {
47844
47859
  super();
47845
47860
  /**
@@ -47925,7 +47940,7 @@ class K5 extends k {
47925
47940
  this._running && (this._eventDisposer && (this._eventDisposer(), this._eventDisposer = void 0), this._running = !1);
47926
47941
  }
47927
47942
  }
47928
- class J5 extends k {
47943
+ class K5 extends k {
47929
47944
  constructor(e) {
47930
47945
  super();
47931
47946
  g(this, "_height", this.dv(U(1e7)));
@@ -47935,7 +47950,7 @@ class J5 extends k {
47935
47950
  this._czmViewer = e;
47936
47951
  const s = this._czmViewer.viewer;
47937
47952
  if (!s) throw new Error("未初始化viewer");
47938
- this._inner = this.dv(new K5(s)), this._inner.leftDownCancel = !1;
47953
+ this._inner = this.dv(new Q5(s)), this._inner.leftDownCancel = !1;
47939
47954
  {
47940
47955
  const o = () => {
47941
47956
  this._inner.height = this.height, this._inner.cycle = this.cycle, this._inner.latitude = this.latitude * Math.PI / 180;
@@ -48001,7 +48016,7 @@ class J5 extends k {
48001
48016
  return this._inner.cancel();
48002
48017
  }
48003
48018
  }
48004
- class j5 extends k {
48019
+ class J5 extends k {
48005
48020
  constructor(e) {
48006
48021
  super();
48007
48022
  /**
@@ -48176,7 +48191,7 @@ class j5 extends k {
48176
48191
  this.viewer.camera.lookAtTransform(h.Matrix4.IDENTITY), this._eventDisposer && (this._eventDisposer(), this._eventDisposer = void 0), this._running = !1;
48177
48192
  }
48178
48193
  }
48179
- class eO extends k {
48194
+ class j5 extends k {
48180
48195
  constructor(e) {
48181
48196
  super();
48182
48197
  /**
@@ -48223,7 +48238,7 @@ class eO extends k {
48223
48238
  this._czmViewer = e;
48224
48239
  const s = this._czmViewer.viewer;
48225
48240
  if (!s) throw new Error("viewer is undefined");
48226
- this._inner = this.dv(new j5(s));
48241
+ this._inner = this.dv(new J5(s));
48227
48242
  {
48228
48243
  const o = () => {
48229
48244
  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 +48301,7 @@ class eO extends k {
48286
48301
  return this._inner.cancel();
48287
48302
  }
48288
48303
  }
48289
- class tO extends k {
48304
+ class eO extends k {
48290
48305
  constructor(e) {
48291
48306
  super();
48292
48307
  g(this, "_firstPersonController");
@@ -48297,7 +48312,7 @@ class tO extends k {
48297
48312
  g(this, "_handler");
48298
48313
  this._viewer = e;
48299
48314
  {
48300
- this._firstPersonController = this.dv(new $5(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)));
48315
+ 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
48316
  {
48302
48317
  const { subContainer: s } = this._viewer;
48303
48318
  if (!s) throw new Error("_firstPersonControllerInit error!");
@@ -48309,7 +48324,7 @@ class tO extends k {
48309
48324
  (s = this._viewer.subContainer) == null || s.focus();
48310
48325
  }));
48311
48326
  }
48312
- this._rotateGlobe = this.dv(new J5(e)), this._rotatePoint = this.dv(new eO(e)), this._followController = this.dv(new sc(e)), this._pathCameraController = this.dv(new ic(e));
48327
+ 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
48328
  }
48314
48329
  get firstPersonController() {
48315
48330
  return this._firstPersonController;
@@ -48413,7 +48428,7 @@ class tO extends k {
48413
48428
  ]);
48414
48429
  }
48415
48430
  }
48416
- const iO = [
48431
+ const tO = [
48417
48432
  {
48418
48433
  slice: -1,
48419
48434
  brightness: 1,
@@ -49087,7 +49102,7 @@ const iO = [
49087
49102
  ]
49088
49103
  }
49089
49104
  ];
49090
- class sO extends k {
49105
+ class iO extends k {
49091
49106
  constructor(e) {
49092
49107
  super();
49093
49108
  g(this, "_show", this.dv(U(!1)));
@@ -49113,7 +49128,7 @@ class sO extends k {
49113
49128
  });
49114
49129
  (() => {
49115
49130
  o.removeAll();
49116
- for (let a of iO)
49131
+ for (let a of tO)
49117
49132
  o.add(n(a));
49118
49133
  })();
49119
49134
  }
@@ -49180,7 +49195,7 @@ class oc extends k {
49180
49195
  });
49181
49196
  })(oc || (oc = {}));
49182
49197
  ae(oc.prototype, oc.createDefaultProps);
49183
- const oO = `
49198
+ const sO = `
49184
49199
  float getDistance(sampler2D depthTexture, vec2 texCoords)
49185
49200
  {
49186
49201
  float depth = czm_unpackDepth(texture(depthTexture, texCoords));
@@ -49217,7 +49232,7 @@ const oO = `
49217
49232
  out_FragColor = alphaBlend(finalFogColor, sceneColor);
49218
49233
  }
49219
49234
  `;
49220
- class nO extends k {
49235
+ class oO extends k {
49221
49236
  constructor(e) {
49222
49237
  super();
49223
49238
  g(this, "_show", this.dv(U(!1)));
@@ -49234,7 +49249,7 @@ class nO extends k {
49234
49249
  const n = () => {
49235
49250
  o(), (this.show ?? !0) && (this.postProcess || (this.postProcess = new h.PostProcessStage({
49236
49251
  name: "earthsdk3_fog",
49237
- fragmentShader: oO,
49252
+ fragmentShader: sO,
49238
49253
  uniforms: {
49239
49254
  fogByDistance: new h.Cartesian4(10, 0, 1e3, 0.9),
49240
49255
  //TODO:后续通过这里设置雾0~1的参数;
@@ -49254,7 +49269,7 @@ class nO extends k {
49254
49269
  return this._show.changed;
49255
49270
  }
49256
49271
  }
49257
- const rO = `
49272
+ const nO = `
49258
49273
  uniform sampler2D colorTexture;
49259
49274
  in vec2 v_textureCoordinates;
49260
49275
 
@@ -49282,7 +49297,7 @@ void main(void){
49282
49297
  out_FragColor = mix(texture(colorTexture, v_textureCoordinates), vec4(c,1), 0.5);
49283
49298
  }
49284
49299
  `;
49285
- class aO extends k {
49300
+ class rO extends k {
49286
49301
  constructor(e) {
49287
49302
  super();
49288
49303
  g(this, "_show", this.dv(U(!1)));
@@ -49299,7 +49314,7 @@ class aO extends k {
49299
49314
  const n = () => {
49300
49315
  o(), (this.show ?? !0) && (this.rainPostProcess || (this.rainPostProcess = new h.PostProcessStage({
49301
49316
  name: "earthsdk3_rain",
49302
- fragmentShader: rO
49317
+ fragmentShader: nO
49303
49318
  //TODO:后续需要0~1控制
49304
49319
  }), s.scene.postProcessStages.add(this.rainPostProcess)));
49305
49320
  };
@@ -49315,7 +49330,7 @@ class aO extends k {
49315
49330
  return this._show.changed;
49316
49331
  }
49317
49332
  }
49318
- const lO = `
49333
+ const aO = `
49319
49334
  uniform sampler2D colorTexture; //输入的场景渲染照片
49320
49335
  in vec2 v_textureCoordinates;
49321
49336
 
@@ -49346,7 +49361,7 @@ void main(void){
49346
49361
  finalColor=(vec3(c)); //屏幕上雪的颜色
49347
49362
  out_FragColor = mix(texture(colorTexture, v_textureCoordinates), vec4(finalColor,1), 0.5); //将雪和三维场景融合
49348
49363
  }
49349
- `, hO = `
49364
+ `, lO = `
49350
49365
  #extension GL_OES_standard_derivatives : enable
49351
49366
  uniform sampler2D colorTexture;
49352
49367
  uniform sampler2D depthTexture;
@@ -49387,7 +49402,7 @@ void main() {
49387
49402
  out_FragColor = mix(color, vec4(1.0), dotNumWC*alpha);
49388
49403
  }
49389
49404
  `;
49390
- class cO extends k {
49405
+ class hO extends k {
49391
49406
  constructor(e) {
49392
49407
  super();
49393
49408
  g(this, "_show", this.dv(U(!1)));
@@ -49417,10 +49432,10 @@ class cO extends k {
49417
49432
  const c = () => {
49418
49433
  r(), a(), (this.show ?? !0) && (o = new h.PostProcessStage({
49419
49434
  name: "earthsdk3_snow",
49420
- fragmentShader: lO
49435
+ fragmentShader: aO
49421
49436
  }), s.scene.postProcessStages.add(o), n = new h.PostProcessStage({
49422
49437
  name: "earthsdk3_snowCover",
49423
- fragmentShader: hO,
49438
+ fragmentShader: lO,
49424
49439
  uniforms: {
49425
49440
  alpha: this.alpha
49426
49441
  }
@@ -49447,7 +49462,7 @@ class cO extends k {
49447
49462
  return this._alpha.changed;
49448
49463
  }
49449
49464
  }
49450
- class dO extends k {
49465
+ class cO extends k {
49451
49466
  constructor(e) {
49452
49467
  super();
49453
49468
  g(this, "rain");
@@ -49457,7 +49472,7 @@ class dO extends k {
49457
49472
  g(this, "depthOfField");
49458
49473
  const s = e.viewer;
49459
49474
  if (!s) throw new Error("Cesium.Viewer不存在!");
49460
- const o = this.dv(new aO(e)), n = this.dv(new sO(e)), r = this.dv(new cO(e)), a = this.dv(new nO(e)), l = this.dv(new oc(e));
49475
+ 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
49476
  this.rain = o, this.cloud = n, this.snow = r, this.fog = a, this.depthOfField = l;
49462
49477
  {
49463
49478
  const { scene: c } = s, d = () => {
@@ -49477,12 +49492,12 @@ class dO extends k {
49477
49492
  }
49478
49493
  }
49479
49494
  }
49480
- const cf = h.BoundingRectangle, uO = h.Color, ho = h.defined, pO = h.destroyObject, j0 = h.DeveloperError, fO = h.RenderState, gO = h.ShaderSource, mO = h._shadersViewportQuadFS, vO = h.BlendingState, ew = h.Material;
49495
+ 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
49496
  function su(t) {
49482
49497
  this.show = !0;
49483
49498
  let i;
49484
49499
  ho(i) || (i = new cf()), this.rectangle = cf.clone(i), ho(t) || (t = ew.fromType(ew.ColorType, {
49485
- color: new uO(1, 1, 1, 1)
49500
+ color: new dO(1, 1, 1, 1)
49486
49501
  })), this.material = t, this._material = void 0, this._overlayCommand = void 0, this._rs = void 0;
49487
49502
  }
49488
49503
  su.prototype.update = function(t) {
@@ -49493,8 +49508,8 @@ su.prototype.update = function(t) {
49493
49508
  throw new j0("this.rectangle must be defined.");
49494
49509
  this.rectangle.width = t.context.drawingBufferWidth, this.rectangle.height = t.context.drawingBufferHeight;
49495
49510
  var i = this._rs;
49496
- (!ho(i) || !cf.equals(i.viewport, this.rectangle)) && (this._rs = fO.fromCache({
49497
- blending: vO.ALPHA_BLEND,
49511
+ (!ho(i) || !cf.equals(i.viewport, this.rectangle)) && (this._rs = pO.fromCache({
49512
+ blending: mO.ALPHA_BLEND,
49498
49513
  viewport: this.rectangle
49499
49514
  }), this._overlayCommand && (this._overlayCommand.renderState = this._rs));
49500
49515
  var e = t.passes;
@@ -49502,8 +49517,8 @@ su.prototype.update = function(t) {
49502
49517
  var s = t.context;
49503
49518
  if (this._material !== this.material || !ho(this._overlayCommand)) {
49504
49519
  this._material = this.material, ho(this._overlayCommand) && this._overlayCommand.shaderProgram.destroy();
49505
- var o = new gO({
49506
- sources: [this._material.shaderSource, mO]
49520
+ var o = new fO({
49521
+ sources: [this._material.shaderSource, gO]
49507
49522
  });
49508
49523
  this._overlayCommand = s.createViewportQuadCommand(o, {
49509
49524
  renderState: this._rs,
@@ -49520,7 +49535,7 @@ su.prototype.isDestroyed = function() {
49520
49535
  return !1;
49521
49536
  };
49522
49537
  su.prototype.destroy = function() {
49523
- return ho(this._overlayCommand) && (this._overlayCommand.shaderProgram = this._overlayCommand.shaderProgram && this._overlayCommand.shaderProgram.destroy()), pO(this);
49538
+ return ho(this._overlayCommand) && (this._overlayCommand.shaderProgram = this._overlayCommand.shaderProgram && this._overlayCommand.shaderProgram.destroy()), uO(this);
49524
49539
  };
49525
49540
  function tw(t) {
49526
49541
  const { positiveX: i, negativeX: e, positiveY: s, negativeY: o, positiveZ: n, negativeZ: r } = t;
@@ -49537,7 +49552,7 @@ function tw(t) {
49537
49552
  negativeZ: oe.context.getStrFromEnv(r)
49538
49553
  };
49539
49554
  }
49540
- const yO = `in vec3 v_outerPositionWC;
49555
+ const vO = `in vec3 v_outerPositionWC;
49541
49556
 
49542
49557
  uniform vec3 u_hsbShift;
49543
49558
 
@@ -49616,15 +49631,15 @@ void main (void)
49616
49631
  out_FragColor = color;
49617
49632
  // ------------------ skybox vtxf end -------------------
49618
49633
  }
49619
- `, eo = h.Cartesian3, Ps = h.defined, wO = h.destroyObject, CO = h.Ellipsoid, iw = h.EllipsoidGeometry, _O = h.GeometryPipeline, Zn = h.Math, As = h.Matrix4, PO = h.VertexFormat, xO = h.BufferUsage, bO = h.DrawCommand, SO = h.RenderState, TO = h.ShaderProgram, sw = h.ShaderSource, EO = h.VertexArray, ow = h._shadersAtmosphereCommon, nw = h._shadersSkyAtmosphereCommon, AO = h._shadersSkyAtmosphereVS, MO = h.Axis, IO = h.BlendingState, RO = h.CullFace, rw = h.SceneMode, Xc = h.Transforms, DO = h.Matrix3, aw = h.DeveloperError, kO = h.loadCubeMap, FO = h.CubeMap;
49634
+ `, 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
49635
  function oa(t, i) {
49621
- t = t ?? CO.WGS84, this.show = !0, this.sources = i, this.perFragmentAtmosphere = !1, this._ellipsoid = t;
49636
+ t = t ?? wO.WGS84, this.show = !0, this.sources = i, this.perFragmentAtmosphere = !1, this._ellipsoid = t;
49622
49637
  const e = 1.025, s = eo.multiplyByScalar(
49623
49638
  t.radii,
49624
49639
  e,
49625
49640
  new eo()
49626
49641
  );
49627
- this._scaleMatrix = As.fromScale(s), this._modelMatrix = new As(), this._command = new bO({
49642
+ this._scaleMatrix = As.fromScale(s), this._modelMatrix = new As(), this._command = new xO({
49628
49643
  owner: this,
49629
49644
  modelMatrix: this._modelMatrix
49630
49645
  }), 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 +49672,7 @@ function oa(t, i) {
49657
49672
  return n.atmosphereMieAnisotropy;
49658
49673
  },
49659
49674
  u_rotateMatrix: function() {
49660
- return n._scratchRoateMatrix = n._scratchRoateMatrix || new DO(), As.getMatrix3(n._eunMatrix || As.IDENTITY, n._scratchRoateMatrix);
49675
+ return n._scratchRoateMatrix = n._scratchRoateMatrix || new RO(), As.getMatrix3(n._eunMatrix || As.IDENTITY, n._scratchRoateMatrix);
49661
49676
  },
49662
49677
  u_cubeMap: function() {
49663
49678
  return n._cubeMap;
@@ -49701,9 +49716,9 @@ oa.prototype.update = function(t, i) {
49701
49716
  throw new aw(
49702
49717
  "this.sources properties must all be the same type."
49703
49718
  );
49704
- typeof o.positiveX == "string" ? kO(m, this._sources).then(function(v) {
49719
+ typeof o.positiveX == "string" ? DO(m, this._sources).then(function(v) {
49705
49720
  s._cubeMap = s._cubeMap && s._cubeMap.destroy(), s._cubeMap = v;
49706
- }) : (this._cubeMap = this._cubeMap && this._cubeMap.destroy(), this._cubeMap = new FO({
49721
+ }) : (this._cubeMap = this._cubeMap && this._cubeMap.destroy(), this._cubeMap = new kO({
49707
49722
  context: m,
49708
49723
  source: o
49709
49724
  }));
@@ -49714,7 +49729,7 @@ oa.prototype.update = function(t, i) {
49714
49729
  np
49715
49730
  ), r = As.multiplyTransformation(
49716
49731
  n,
49717
- MO.Y_UP_TO_Z_UP,
49732
+ AO.Y_UP_TO_Z_UP,
49718
49733
  np
49719
49734
  ), a = As.multiply(
49720
49735
  this._scaleMatrix,
@@ -49722,27 +49737,27 @@ oa.prototype.update = function(t, i) {
49722
49737
  np
49723
49738
  );
49724
49739
  As.clone(a, this._modelMatrix);
49725
- const l = t.context, c = zO(this), d = t.globeTranslucencyState.translucent, u = this.perFragmentAtmosphere || d || !Ps(i) || !i.show, p = this._command;
49740
+ const l = t.context, c = FO(this), d = t.globeTranslucencyState.translucent, u = this.perFragmentAtmosphere || d || !Ps(i) || !i.show, p = this._command;
49726
49741
  if (Xc.eastUpNorthToFixedFrame = Xc.eastUpNorthToFixedFrame || Xc.localFrameToFixedFrameGenerator("east", "up"), this._eunMatrix = Xc.eastUpNorthToFixedFrame(t.camera._positionWC, void 0, this._eunMatrix), !Ps(p.vertexArray)) {
49727
49742
  const m = iw.createGeometry(
49728
49743
  new iw({
49729
49744
  radii: new eo(1, 1, 1),
49730
49745
  slicePartitions: 256,
49731
49746
  stackPartitions: 256,
49732
- vertexFormat: PO.POSITION_ONLY
49747
+ vertexFormat: _O.POSITION_ONLY
49733
49748
  })
49734
49749
  );
49735
- p.vertexArray = EO.fromGeometry({
49750
+ p.vertexArray = TO.fromGeometry({
49736
49751
  context: l,
49737
49752
  geometry: m,
49738
- attributeLocations: _O.createAttributeLocations(m),
49739
- bufferUsage: xO.STATIC_DRAW
49740
- }), p.renderState = SO.fromCache({
49753
+ attributeLocations: CO.createAttributeLocations(m),
49754
+ bufferUsage: PO.STATIC_DRAW
49755
+ }), p.renderState = bO.fromCache({
49741
49756
  cull: {
49742
49757
  enabled: !0,
49743
- face: RO.FRONT
49758
+ face: IO.FRONT
49744
49759
  },
49745
- blending: IO.ALPHA_BLEND,
49760
+ blending: MO.ALPHA_BLEND,
49746
49761
  depthMask: !1
49747
49762
  });
49748
49763
  }
@@ -49753,12 +49768,12 @@ oa.prototype.update = function(t, i) {
49753
49768
  c && m.push("COLOR_CORRECT"), u && m.push("PER_FRAGMENT_ATMOSPHERE"), d && m.push("GLOBE_TRANSLUCENT");
49754
49769
  const v = new sw({
49755
49770
  defines: m,
49756
- sources: [ow, nw, AO]
49771
+ sources: [ow, nw, EO]
49757
49772
  }), y = new sw({
49758
49773
  defines: m,
49759
- sources: [ow, nw, yO]
49774
+ sources: [ow, nw, vO]
49760
49775
  });
49761
- this._spSkyAtmosphere = TO.fromCache({
49776
+ this._spSkyAtmosphere = SO.fromCache({
49762
49777
  context: l,
49763
49778
  vertexShaderSource: v,
49764
49779
  fragmentShaderSource: y
@@ -49767,7 +49782,7 @@ oa.prototype.update = function(t, i) {
49767
49782
  if (Ps(this._cubeMap))
49768
49783
  return p;
49769
49784
  };
49770
- function zO(t) {
49785
+ function FO(t) {
49771
49786
  return !(Zn.equalsEpsilon(
49772
49787
  t.hueShift,
49773
49788
  0,
@@ -49787,7 +49802,7 @@ oa.prototype.isDestroyed = function() {
49787
49802
  };
49788
49803
  oa.prototype.destroy = function() {
49789
49804
  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(), wO(this);
49805
+ 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
49806
  };
49792
49807
  const ur = class ur extends k {
49793
49808
  constructor(e, s) {
@@ -49799,7 +49814,7 @@ const ur = class ur extends k {
49799
49814
  g(this, "_reu", (e, s) => Hi(this, e, s));
49800
49815
  this._czmViewer = e, this._viewer = s;
49801
49816
  const o = this.viewer, n = this.czmViewer, r = o.scene.screenSpaceCameraController;
49802
- this._navigationManager = this.dv(new tO(n)), this._envManager = this.dv(new dO(n)), this.disposeVar(new he(this._czmViewer.xbsjUseBackgroundChanged, () => {
49817
+ this._navigationManager = this.dv(new eO(n)), this._envManager = this.dv(new cO(n)), this.disposeVar(new he(this._czmViewer.xbsjUseBackgroundChanged, () => {
49803
49818
  if (this._czmViewer.xbsjUseBackground)
49804
49819
  return new ur.BackGroundResetting(this._czmViewer, this._viewer);
49805
49820
  })), this.disposeVar(new he(this._czmViewer.xbsjLocalBoxSourcesChanged, () => {
@@ -49991,12 +50006,12 @@ g(ur, "LocalSkyBoxResetting", class extends k {
49991
50006
  }
49992
50007
  });
49993
50008
  let df = ur;
49994
- function LO(t, i, e, s, o) {
50009
+ function zO(t, i, e, s, o) {
49995
50010
  var n = h.Cartesian3.subtract(t, e, new h.Cartesian3()), r = h.Cartesian3.dot(n, i);
49996
50011
  if (!(r <= 0))
49997
50012
  return r * Math.tan(s * 0.5) * 2 / o;
49998
50013
  }
49999
- async function OO(t) {
50014
+ async function LO(t) {
50000
50015
  const { viewer: i } = t;
50001
50016
  if (!i) return;
50002
50017
  const { width: e, height: s } = i.canvas, o = t.quickPickPosition([e * 0.5, s * 0.5]);
@@ -50008,14 +50023,14 @@ async function OO(t) {
50008
50023
  const a = i.camera.positionWC, l = i.camera.directionWC, c = i.camera.frustum.fovy;
50009
50024
  if (c === void 0) return;
50010
50025
  const d = i.canvas.height;
50011
- return [LO(r, l, a, c, d), n];
50026
+ return [zO(r, l, a, c, d), n];
50012
50027
  }
50013
- const BO = h.Ellipsoid.WGS84.maximumRadius * 2 * Math.PI / 512;
50014
- function VO(t) {
50015
- return -Math.log2(t / BO);
50028
+ const OO = h.Ellipsoid.WGS84.maximumRadius * 2 * Math.PI / 512;
50029
+ function BO(t) {
50030
+ return -Math.log2(t / OO);
50016
50031
  }
50017
50032
  var rp = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8];
50018
- function NO(t) {
50033
+ function VO(t) {
50019
50034
  const i = t | 0;
50020
50035
  if (i < 1 || i > 1e8) return;
50021
50036
  let e = -1;
@@ -50024,7 +50039,7 @@ function NO(t) {
50024
50039
  const s = i / rp[e - 1] | 0;
50025
50040
  return [s * rp[e - 1], s, e];
50026
50041
  }
50027
- class UO extends k {
50042
+ class NO extends k {
50028
50043
  constructor() {
50029
50044
  super();
50030
50045
  // 比例尺的长度,单位是 像素
@@ -50042,7 +50057,7 @@ class UO extends k {
50042
50057
  let s, o;
50043
50058
  const { lengthInPixels: n, resolution: r } = this;
50044
50059
  if (n && r) {
50045
- const a = NO(n * r);
50060
+ const a = VO(n * r);
50046
50061
  if (a) {
50047
50062
  const [l, c, d] = a;
50048
50063
  o = l, s = l / r;
@@ -50101,23 +50116,23 @@ class UO extends k {
50101
50116
  return this._computedLengthInStr.changed;
50102
50117
  }
50103
50118
  }
50104
- class GO extends k {
50119
+ class UO extends k {
50105
50120
  constructor(e) {
50106
50121
  super();
50107
50122
  g(this, "_enabled", this.dv(U(!0)));
50108
50123
  g(this, "_resolution", this.dv(U(void 0)));
50109
50124
  g(this, "_center", this.dv(U(void 0)));
50110
50125
  g(this, "_zoom", this.dv(U(void 0)));
50111
- g(this, "_legend", this.dv(new UO()));
50126
+ g(this, "_legend", this.dv(new NO()));
50112
50127
  this._czmViewer = e;
50113
50128
  {
50114
50129
  const s = this.dv(ze(async (o) => {
50115
50130
  let n, r, a;
50116
50131
  await o.promise(yw(1e3));
50117
- const l = await o.promise(OO(this._czmViewer));
50132
+ const l = await o.promise(LO(this._czmViewer));
50118
50133
  if (l) {
50119
50134
  const [c, d] = l;
50120
- n = c, r = VO(c), a = d;
50135
+ n = c, r = BO(c), a = d;
50121
50136
  }
50122
50137
  this._resolution.value = n, this._zoom.value = r, this._center.value = a;
50123
50138
  }));
@@ -50175,7 +50190,7 @@ class GO extends k {
50175
50190
  return (this.legend.computedLengthInMeters ?? -1) / (this.legend.computedLengthInPixels ?? 1);
50176
50191
  }
50177
50192
  }
50178
- function YB(t, i) {
50193
+ function XB(t, i) {
50179
50194
  try {
50180
50195
  const e = h.Ellipsoid.WGS84, s = e.scaleToGeodeticSurface(t);
50181
50196
  return i = h.Transforms.eastNorthUpToFixedFrame(s, e, i), i;
@@ -50183,7 +50198,7 @@ function YB(t, i) {
50183
50198
  return h.Matrix4.clone(h.Matrix4.IDENTITY, i);
50184
50199
  }
50185
50200
  }
50186
- const { combine: WO } = h, { ShaderDestination: zo } = h, F1 = {
50201
+ const { combine: GO } = h, { ShaderDestination: zo } = h, F1 = {
50187
50202
  name: "FlattenedPipelineStage"
50188
50203
  // Helps with debugging
50189
50204
  };
@@ -50261,13 +50276,13 @@ F1.process = function(t, i, e) {
50261
50276
  // }
50262
50277
  // },
50263
50278
  };
50264
- t.uniformMap = WO(
50279
+ t.uniformMap = GO(
50265
50280
  o,
50266
50281
  t.uniformMap
50267
50282
  );
50268
50283
  }
50269
50284
  };
50270
- function HO() {
50285
+ function WO() {
50271
50286
  Object.defineProperties(h.Model.prototype, {
50272
50287
  xbsjFlattened: {
50273
50288
  get: function() {
@@ -50308,7 +50323,7 @@ function HO() {
50308
50323
  }
50309
50324
  });
50310
50325
  }
50311
- function $O() {
50326
+ function HO() {
50312
50327
  Object.defineProperties(h.Cesium3DTileset.prototype, {
50313
50328
  xbsjFlattened: {
50314
50329
  get: function() {
@@ -50344,25 +50359,25 @@ function $O() {
50344
50359
  }
50345
50360
  });
50346
50361
  }
50347
- function qO() {
50362
+ function $O() {
50348
50363
  const t = h.Model3DTileContent.prototype.update;
50349
50364
  h.Model3DTileContent.prototype.update = function(i, e, ...s) {
50350
50365
  const o = this._model;
50351
50366
  return o.xbsjFlattened = i.xbsjFlattened, o.xbsjElevationMatrix = i.xbsjElevationMatrix, o.xbsjFlattenedBound = i.xbsjFlattenedBound, o.xbsjGetFlattenedTextureFunc = i.xbsjGetFlattenedTextureFunc, t.call(this, i, e, ...s);
50352
50367
  };
50353
50368
  }
50354
- function XO() {
50369
+ function qO() {
50355
50370
  const t = h.ModelSceneGraph.prototype.configurePipeline;
50356
50371
  h.ModelSceneGraph.prototype.configurePipeline = function(i, ...e) {
50357
50372
  const s = t.call(this, i, ...e), o = this._model, n = this.modelPipelineStages;
50358
50373
  return o.xbsjFlattened && n.push(F1), s;
50359
50374
  };
50360
50375
  }
50376
+ WO();
50361
50377
  HO();
50362
50378
  $O();
50363
50379
  qO();
50364
- XO();
50365
- const YO = () => ({
50380
+ const XO = () => ({
50366
50381
  // 通用
50367
50382
  createCesiumViewerFuncStr: void 0,
50368
50383
  flashLighting: void 0,
@@ -50466,7 +50481,7 @@ const YO = () => ({
50466
50481
  // firstPersonRotatingSpeed: 0.01,
50467
50482
  // firstPersonAlwaysWithCamera: false,
50468
50483
  // firstPersonKeyStatusMap: reactJson<{ [k: string]: CzmCameraActionType }>(KeyboardCameraController.defaultKeyStatusMap),
50469
- }), ZO = `
50484
+ }), YO = `
50470
50485
  #### 示例代码1
50471
50486
  \`\`\`
50472
50487
  async function initCesiumViewer(container, czmViewer) {
@@ -50541,7 +50556,7 @@ async function initCesiumViewer(container, czmViewer) {
50541
50556
  return viewer;
50542
50557
  }
50543
50558
  \`\`\`
50544
- `, QO = `async function initCesiumViewer(container, czmViewer) {
50559
+ `, ZO = `async function initCesiumViewer(container, czmViewer) {
50545
50560
  const viewer = await XE2.g.defaultCreateCesiumViewerFunc(container, czmViewer);
50546
50561
 
50547
50562
  // 若原Czm版权信息展示位置遮挡重要信息,可将以下语句解注释,在别的位置展示
@@ -50550,7 +50565,7 @@ async function initCesiumViewer(container, czmViewer) {
50550
50565
  return viewer;
50551
50566
  }
50552
50567
  `;
50553
- function KO() {
50568
+ function QO() {
50554
50569
  const t = "https://gitee.com/mirrors/CesiumJS/blob/main/packages/engine/Source/Core/Ion.js#L7", e = ` 因浏览器同源策略限制,需要用户自行打开网址获取最新的token,点击确定自动打开网址,请不要拦截!
50555
50570
  github地址:https://github.com/CesiumGS/cesium/blob/main/packages/engine/Source/Core/Ion.js#L7
50556
50571
  gitee地址:${t}
@@ -50578,7 +50593,7 @@ const Pt = class Pt extends up {
50578
50593
  this.ad(new cL(this)), this.ad(new dL(this)), this.dv(new he(this.viewerChanged, () => {
50579
50594
  if (this.viewer)
50580
50595
  return new gL(this);
50581
- })), this._viewerLegend = this.dv(new GO(this)), this._viewerInstance = this.dv(new he(this.viewerChanged, () => {
50596
+ })), this._viewerLegend = this.dv(new UO(this)), this._viewerInstance = this.dv(new he(this.viewerChanged, () => {
50582
50597
  if (this.viewer)
50583
50598
  return new df(this, this.viewer);
50584
50599
  })), this.d(this.viewerChanged.don((o) => {
@@ -50878,7 +50893,7 @@ const Pt = class Pt extends up {
50878
50893
  more: [
50879
50894
  ...e.more,
50880
50895
  new _e([], "通用", "通用"),
50881
- new sd([this, "createCesiumViewerFuncStr"], "CesiumViewer创建函数", QO, ZO, !0),
50896
+ new sd([this, "createCesiumViewerFuncStr"], "CesiumViewer创建函数", ZO, YO, !0),
50882
50897
  new mr([], () => Pt.getCesiumIonToken(), [], "获取官方token"),
50883
50898
  new mr([], () => this.setCurrentDefaultAccessToken(), [], "重置为当前使用的Cesium版本的token"),
50884
50899
  new mr([], () => this.setLatestDefaultAccessToken(), [], "最新token", "重置为当前Cesium官方的最新token"),
@@ -50982,7 +50997,7 @@ const Pt = class Pt extends up {
50982
50997
  };
50983
50998
  }
50984
50999
  };
50985
- g(Pt, "type", Pt.register("ESCesiumViewer", Pt)), g(Pt, "getCesiumIonToken", KO), g(Pt, "currentDefaultAccessToken", h.Ion.defaultAccessToken), g(Pt, "latestDefaultAccessToken"), g(Pt, "ObjectsToExcludeWrapper", fL), g(Pt, "defaults", {
51000
+ 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
51001
  ...up.defaults,
50987
51002
  flashLighting: !1,
50988
51003
  resolutionScale: 1,
@@ -51041,13 +51056,13 @@ let qe = Pt;
51041
51056
  ((t) => {
51042
51057
  t.createDefaultProps = () => ({
51043
51058
  ...up.createDefaultProps(),
51044
- ...YO()
51059
+ ...XO()
51045
51060
  });
51046
51061
  })(qe || (qe = {}));
51047
51062
  ae(qe.prototype, qe.createDefaultProps);
51048
51063
  let ap;
51049
51064
  try {
51050
- const t = "earthsdk3-cesium", i = "3.6.0-beta.5", e = "2025-11-20T06:27:34.000Z", s = "北京西部世界科技有限公司", o = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", n = "00281e4709820d0afa9e74bfc1a9ec2635763d41", a = ((Date.now() - 1763620054e3) / 36e5).toFixed(1), l = `%c🌏 ${t}%c ${i}.${n.slice(0, 8)}.${e} (距今${a}个小时)
51065
+ const t = "earthsdk3-cesium", i = "3.6.0-beta.6", e = "2025-11-20T08:56:17.000Z", s = "北京西部世界科技有限公司", o = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", n = "6c9e1359553c51eb55de57f108e863f1e889cc10", a = ((Date.now() - 1763628977e3) / 36e5).toFixed(1), l = `%c🌏 ${t}%c ${i}.${n.slice(0, 8)}.${e} (距今${a}个小时)
51051
51066
  %c${o ? o + `
51052
51067
  ` : ""}当前网站正在使用${t},此软件版权归${s}所有
51053
51068
  `;
@@ -51061,7 +51076,7 @@ try {
51061
51076
  },
51062
51077
  // @ts-ignore
51063
51078
  get gituri() {
51064
- return GITURI_ && GITURI_.replace("${commitId}", "00281e4709820d0afa9e74bfc1a9ec2635763d41");
51079
+ return GITURI_ && GITURI_.replace("${commitId}", "6c9e1359553c51eb55de57f108e863f1e889cc10");
51065
51080
  },
51066
51081
  // @ts-ignore
51067
51082
  get info() {
@@ -51069,7 +51084,7 @@ try {
51069
51084
  },
51070
51085
  // @ts-ignore
51071
51086
  get date() {
51072
- return "2025-11-20T06:27:34.000Z";
51087
+ return "2025-11-20T08:56:17.000Z";
51073
51088
  },
51074
51089
  // @ts-ignore
51075
51090
  get author() {
@@ -51077,7 +51092,7 @@ try {
51077
51092
  },
51078
51093
  // @ts-ignore
51079
51094
  get version() {
51080
- return "3.6.0-beta.5";
51095
+ return "3.6.0-beta.6";
51081
51096
  },
51082
51097
  // @ts-ignore
51083
51098
  get name() {
@@ -51085,7 +51100,7 @@ try {
51085
51100
  },
51086
51101
  // @ts-ignore
51087
51102
  get commitId() {
51088
- return "00281e4709820d0afa9e74bfc1a9ec2635763d41";
51103
+ return "6c9e1359553c51eb55de57f108e863f1e889cc10";
51089
51104
  },
51090
51105
  print() {
51091
51106
  console.info(
@@ -51125,11 +51140,11 @@ export {
51125
51140
  Uw as CurrentPositionsCenter,
51126
51141
  Nw as CurrentScale,
51127
51142
  Ob as CurrentSceneScalePoi,
51128
- EB as CursorFloatDiv,
51129
- AB as CursorInfo,
51143
+ TB as CursorFloatDiv,
51144
+ EB as CursorInfo,
51130
51145
  Fe as Czm3DTiles,
51131
51146
  fp as CzmCameraChanged,
51132
- MB as CzmCanvasAndDivSwitchPoi,
51147
+ AB as CzmCanvasAndDivSwitchPoi,
51133
51148
  Qw as CzmCanvasPoi,
51134
51149
  Mr as CzmCircle,
51135
51150
  dn as CzmCircleGroundPrimitive,
@@ -51306,7 +51321,7 @@ export {
51306
51321
  V0 as ScatterAppendEditingWrapper,
51307
51322
  rL as ScatterModifyEditing,
51308
51323
  N0 as ScatterModifyEditingWrapper,
51309
- B5 as ScreenManager,
51324
+ O5 as ScreenManager,
51310
51325
  gS as SharedTexturePool,
51311
51326
  Lb as SmoothMoving,
51312
51327
  m5 as TerrainManager,
@@ -51316,7 +51331,7 @@ export {
51316
51331
  rM as ToWGS84WebMercatorTilingScheme,
51317
51332
  _o as TranslationEditing,
51318
51333
  rf as TranslationEditingWrapper,
51319
- V5 as ViewerExtensions,
51334
+ B5 as ViewerExtensions,
51320
51335
  ec as VisibilityAppendEditing,
51321
51336
  U0 as VisibilityAppendEditingWrapper,
51322
51337
  tc as VisibilityModifyEditing,
@@ -51327,11 +51342,11 @@ export {
51327
51342
  Bs as XbsjGroundPolylinePrimitive,
51328
51343
  af as _ESEditModeInstance,
51329
51344
  ad as angleToHumanStr,
51330
- xB as areaToHumanStr,
51345
+ PB as areaToHumanStr,
51331
51346
  Mt as bindNorthRotation,
51332
51347
  Fb as calculateImageTiles,
51333
51348
  Qb as capture,
51334
- PB as checkAndConvertImage,
51349
+ _B as checkAndConvertImage,
51335
51350
  Dz as computeCutPoint,
51336
51351
  Ze as computeCzmModelMatrix,
51337
51352
  Mw as computePickingInfoWithCoordinates,
@@ -51339,7 +51354,7 @@ export {
51339
51354
  $d as createClippingPlaneCollection,
51340
51355
  wf as createClippingPolygonCollection,
51341
51356
  Nb as createGeoBoudingSphereReactFromPositions,
51342
- vB as createHelperLine,
51357
+ mB as createHelperLine,
51343
51358
  qg as createInfoPoi,
51344
51359
  $w as createInnerClassFromJson,
51345
51360
  Qr as createInnerHtmlWithWhiteTextBlackBackground,
@@ -51357,38 +51372,38 @@ export {
51357
51372
  xs as czmSubscribeAndEvaluate,
51358
51373
  Qi as defaultFlyToRotation,
51359
51374
  Tf as distanceToHumanStr,
51360
- bB as extendComponentProps,
51375
+ xB as extendComponentProps,
51361
51376
  fe as flyTo,
51362
51377
  zi as flyWithPosition,
51363
51378
  ge as flyWithPositions,
51364
51379
  xi as flyWithPrimitive,
51365
- rB as fromCartesian,
51380
+ nB as fromCartesian,
51366
51381
  yx as fromCartesian2,
51367
51382
  od as fromCartesian3,
51368
51383
  wx as fromCartesian4,
51369
51384
  Sr as fromCartographic,
51370
- lB as fromColor,
51371
- dB as fromDistanceDisplayCondition,
51372
- mB as fromEllipsoid,
51373
- cB as fromHeadingPitchRoll,
51374
- hB as fromNearFarScalar,
51375
- pB as fromQuaternion,
51376
- gB as fromRectangle,
51385
+ aB as fromColor,
51386
+ cB as fromDistanceDisplayCondition,
51387
+ gB as fromEllipsoid,
51388
+ hB as fromHeadingPitchRoll,
51389
+ lB as fromNearFarScalar,
51390
+ uB as fromQuaternion,
51391
+ fB as fromRectangle,
51377
51392
  db as generateCartesianArc,
51378
51393
  Tr as geoNeareastPointOnRhumbLine,
51379
- yB as geoNeareastPointOnRhumbLine2,
51394
+ vB as geoNeareastPointOnRhumbLine2,
51380
51395
  Xw as geoPolylineToBezierSpline,
51381
51396
  Oi as getCameraPosition,
51382
51397
  Sa as getCameraRotation,
51383
51398
  Ix as getCameraTargetPos,
51384
51399
  Xg as getCenterAndViewDistance,
51385
- _B as getCzmCode,
51386
- SB as getDefaultComponentProps,
51387
- wB as getDefaultWinPosAndDepth,
51400
+ CB as getCzmCode,
51401
+ bB as getDefaultComponentProps,
51402
+ yB as getDefaultWinPosAndDepth,
51388
51403
  jb as getDetailedTerrainDistance,
51389
51404
  qx as getDirectionVectorFromRotation,
51390
51405
  Lw as getDistancesAndTimePosRotsFromPositions,
51391
- YB as getElevationMatrix,
51406
+ XB as getElevationMatrix,
51392
51407
  Rw as getEllipsoidGeodesicCenter,
51393
51408
  Af as getFlyToCenterAndRotation,
51394
51409
  iI as getFoveatedInterpolationCallback,
@@ -51408,23 +51423,23 @@ export {
51408
51423
  Ai as getResource,
51409
51424
  xo as getSceneScaleForScreenPixelSize,
51410
51425
  mS as getSharedTexturePool,
51411
- RB as getTilingSchemeStr,
51426
+ IB as getTilingSchemeStr,
51412
51427
  Ct as getViewerExtensions,
51413
51428
  $x as getWinPos,
51414
51429
  Pb as getXbsjWaterMaterial,
51415
- $O as hackCesium3DTileset,
51416
- qO as hackCzmModel3DTileContent,
51417
- HO as hackModel,
51418
- XO as hackModelSceneGraph,
51430
+ HO as hackCesium3DTileset,
51431
+ $O as hackCzmModel3DTileContent,
51432
+ WO as hackModel,
51433
+ qO as hackModelSceneGraph,
51419
51434
  er as imgUrlToBase64,
51420
51435
  Lo as localPositionToPosition,
51421
51436
  en as localPositionsToPositions,
51422
- CB as merge3dTilesServer,
51437
+ wB as merge3dTilesServer,
51423
51438
  Cf as pickHeightPosition,
51424
51439
  Vx as pickPosition,
51425
51440
  Sh as pickVirtualEarth,
51426
51441
  Nx as pickVirtualPlane,
51427
- fB as positionAndRotationToQuaternion,
51442
+ pB as positionAndRotationToQuaternion,
51428
51443
  me as positionFromCartesian,
51429
51444
  Ve as positionToCartesian,
51430
51445
  Hg as positionToHumanStr,
@@ -51442,14 +51457,14 @@ export {
51442
51457
  ke as toCartesian2,
51443
51458
  ps as toCartesian3,
51444
51459
  Ew as toCartesian4,
51445
- aB as toCartographic,
51460
+ rB as toCartographic,
51446
51461
  Ww as toCoefficients,
51447
51462
  de as toColor,
51448
51463
  Hd as toDistanceDisplayCondition,
51449
51464
  De as toEllipsoid,
51450
51465
  Cx as toHeadingPitchRoll,
51451
51466
  Jo as toNearFarScalar,
51452
- uB as toQuaternion,
51467
+ dB as toQuaternion,
51453
51468
  ht as toRectangle,
51454
51469
  ko as toRgbaString,
51455
51470
  Gw as updateEnvironmentMapManager,