earthsdk3-ue 3.2.0-beta.4 → 3.2.0-beta.5

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.
@@ -1,7 +1,7 @@
1
1
  var Pr = Object.defineProperty;
2
- var Lr = (l, e, t) => e in l ? Pr(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t;
3
- var p = (l, e, t) => Lr(l, typeof e != "symbol" ? e + "" : e, t);
4
- import { ESViewer as Se, ESSceneObject as k, ESJPickedResult as We, ViewerCustomInteraction as lr, getGeoBoundingSphereFromPositions as kr, EngineObject as G, ES3DTileset as cr, ESVisualObject as rt, ESImageryLayer as b, ESTerrainLayer as Dr, ESAlarm as Br, ESApertureEffect as _r, ESGeoPolygon as Mr, ESAreaMeasurement as O, ESBlastParticleSystem as $r, ESBoxClipping as Wr, ESCameraView as Ar, ESCameraVisibleRange as Ur, ESCar as Nr, ESClassification as ot, ESClippingPlane as zr, ESDataMesh as z, ESDatasmithRuntimeModel as Hr, ESDirectionMeasurement as Jr, ESDistanceMeasurement as Me, ESLocalPolygon as Gr, ESDynamicWater as br, ESEntityCluster as Kr, ESExcavate as Xr, ESFireParticleSystem as Yr, ESForestTileset as U, ESGeoDiv as Fe, ESTextLabel as ur, ESCustomDiv as ze, ESImageLabel as hr, ESGeoJson as Zr, ESGeoLineString as Qr, ESGeoRectangle as qr, ESGeoWater as Vr, rpToap as Ie, ESGltfModel as Or, ESHeightMeasurement as jr, ESHuman as tn, ESLevelRuntimeModel as en, ESLocalCircle as rn, ESLocalPolygonZ as nn, ESLocalRectangle as sn, ESLocalSkyBox as on, ESLocationMeasurement as an, ESPipeFence as dn, ESPipeline as ln, ESPipeserTileset as cn, ESPit as un, ESPoi2D as hn, ESPoi3D as pn, ESPoiTileset as vn, ESPolygonFence as fn, ESPolygonFlattenedPlane as gn, ESPolygonWithHole as wn, ESRtsTileset as yn, ESSeparateFoliage as mn, addTreesCallFunc as Cn, removeAllTreesCallFunc as Fn, updateTreeParamsCallFunc as In, cutDownTreesCallFunc as En, growthSimulationCallFunc as Sn, ESSubmergingAnalysis as Tn, ESSunshineAnalysis as xn, ESSurfaceAreaMeasurement as Rn, ESUEWidget as Pn, ESUnrealActor as Ln, ESVideoFusion as kn, ESViewShed as Dn, ESVisibilityAnalysis as Bn, ESVolumeMeasurement as _n, ESWidget as Mn, ESHumanPoi as $n, ESNavigator as j, ESPath as Wn, ESViewerStatusBar as W, ESGaussianSplatting as An, ESRtsFeatureEditing as Un, ESMsTileset as Nn, ESGeoExtrudedPolygon as Ce, ESStaticMesh as zn, ESSkylineAnalysis as Hn } from "earthsdk3";
2
+ var Lr = (c, e, t) => e in c ? Pr(c, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[e] = t;
3
+ var p = (c, e, t) => Lr(c, typeof e != "symbol" ? e + "" : e, t);
4
+ import { ESViewer as Se, ESSceneObject as L, ESJPickedResult as We, ViewerCustomInteraction as lr, getGeoBoundingSphereFromPositions as kr, EngineObject as G, ES3DTileset as cr, ESVisualObject as rt, ESImageryLayer as b, ESTerrainLayer as Dr, ESAlarm as Br, ESApertureEffect as _r, ESGeoPolygon as Mr, ESAreaMeasurement as O, ESBlastParticleSystem as $r, ESBoxClipping as Wr, ESCameraView as Ar, ESCameraVisibleRange as Ur, ESCar as Nr, ESClassification as ot, ESClippingPlane as zr, ESDataMesh as z, ESDatasmithRuntimeModel as Hr, ESDirectionMeasurement as Jr, ESDistanceMeasurement as Me, ESLocalPolygon as Gr, ESDynamicWater as br, ESEntityCluster as Kr, ESExcavate as Xr, ESFireParticleSystem as Yr, ESForestTileset as U, ESGeoDiv as Fe, ESTextLabel as ur, ESCustomDiv as ze, ESImageLabel as hr, ESGeoJson as Zr, ESGeoLineString as qr, ESGeoRectangle as Qr, ESGeoWater as Vr, rpToap as Ie, ESGltfModel as Or, ESHeightMeasurement as jr, ESHuman as tn, ESLevelRuntimeModel as en, ESLocalCircle as rn, ESLocalPolygonZ as nn, ESLocalRectangle as sn, ESLocalSkyBox as on, ESLocationMeasurement as an, ESPipeFence as dn, ESPipeline as ln, ESPipeserTileset as cn, ESPit as un, ESPoi2D as hn, ESPoi3D as pn, ESPoiTileset as vn, ESPolygonFence as fn, ESPolygonFlattenedPlane as gn, ESPolygonWithHole as wn, ESRtsTileset as yn, ESSeparateFoliage as mn, addTreesCallFunc as Cn, removeAllTreesCallFunc as Fn, updateTreeParamsCallFunc as In, cutDownTreesCallFunc as En, growthSimulationCallFunc as Sn, ESSubmergingAnalysis as Tn, ESSunshineAnalysis as xn, ESSurfaceAreaMeasurement as Rn, ESUEWidget as Pn, ESUnrealActor as Ln, ESVideoFusion as kn, ESViewShed as Dn, ESVisibilityAnalysis as Bn, ESVolumeMeasurement as _n, ESWidget as Mn, ESHumanPoi as $n, ESNavigator as j, ESPath as Wn, ESViewerStatusBar as W, ESGaussianSplatting as An, ESRtsFeatureEditing as Un, ESMsTileset as Nn, ESGeoExtrudedPolygon as Ce, ESStaticMesh as zn, ESSkylineAnalysis as Hn } from "earthsdk3";
5
5
  import { reactArrayWithUndefined as pr, Destroyable as m, HasOwner as Jn, createGuid as B, Event as S, createAnimateFrame as He, createInterval as Te, react as M, createNextAnimateFrameEvent as x, ObjResettingWithEvent as T, createProcessingFromAsyncFunc as xe, sleep as Gn, extendClassProps as bn, reactJson as Je, bind as R, track as F, PosFloatDiv as Kn } from "xbsj-base";
6
6
  import { Logger as vr, Config as fr, TextParameters as Xn, Flags as it, NumericParameters as gr, PixelStreaming as wr } from "@epicgames-ps/lib-pixelstreamingfrontend-ue5.2";
7
7
  import Yn from "html2canvas";
@@ -45,19 +45,19 @@ const Zn = {
45
45
  //基础路径
46
46
  });
47
47
  function Re() {
48
- const l = yr(), e = [];
49
- return Object.keys(l).forEach((t) => {
48
+ const c = yr(), e = [];
49
+ return Object.keys(c).forEach((t) => {
50
50
  e.push(t);
51
51
  }), e;
52
52
  }
53
- function Ge(l) {
53
+ function Ge(c) {
54
54
  const { defaults: e } = J, t = Re(), i = {};
55
55
  return t.forEach((r) => {
56
- i[r] = l[r] ?? e[r];
56
+ i[r] = c[r] ?? e[r];
57
57
  }), i;
58
58
  }
59
- const ye = async (l, e, t, i, r, n = "default") => {
60
- const s = await l.callUeFunc({
59
+ const ye = async (c, e, t, i, r, n = "default") => {
60
+ const s = await c.callUeFunc({
61
61
  f: "flyTo",
62
62
  p: { id: e, duration: t, flyToParam: i, position: r, flyMode: n }
63
63
  });
@@ -66,11 +66,11 @@ const ye = async (l, e, t, i, r, n = "default") => {
66
66
  return;
67
67
  }
68
68
  return s.re;
69
- }, mr = async (l, e) => {
70
- const t = await l.callUeFunc({ f: "destroy", p: { id: e } });
69
+ }, mr = async (c, e) => {
70
+ const t = await c.callUeFunc({ f: "destroy", p: { id: e } });
71
71
  return t.error && console.error(t.error), t;
72
- }, st = (l, e) => {
73
- l.callUeFunc({
72
+ }, st = (c, e) => {
73
+ c.callUeFunc({
74
74
  f: "calcFlyToParam",
75
75
  p: { id: e }
76
76
  }).then((t) => {
@@ -78,8 +78,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
78
78
  }).catch((t) => {
79
79
  console.error("calcFlyToParam:", t);
80
80
  });
81
- }, Qn = (l, e) => {
82
- l.callUeFunc({
81
+ }, qn = (c, e) => {
82
+ c.callUeFunc({
83
83
  f: "refreshTileset",
84
84
  p: { id: e }
85
85
  }).then((t) => {
@@ -87,8 +87,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
87
87
  }).catch((t) => {
88
88
  console.error("refreshTileset:", t);
89
89
  });
90
- }, Pe = async (l, e, t, i, r, n = "default") => {
91
- const s = await l.callUeFunc({
90
+ }, Pe = async (c, e, t, i, r, n = "default") => {
91
+ const s = await c.callUeFunc({
92
92
  f: "flyIn",
93
93
  p: { id: e, position: t, rotation: i, duration: r, flyMode: n }
94
94
  });
@@ -97,12 +97,12 @@ const ye = async (l, e, t, i, r, n = "default") => {
97
97
  return;
98
98
  }
99
99
  return s.re;
100
- }, qn = async (l, e) => {
101
- if (!l) {
100
+ }, Qn = async (c, e) => {
101
+ if (!c) {
102
102
  console.warn("DefaultCameraFlyIn: viewer is undefined");
103
103
  return;
104
104
  }
105
- const t = await l.callUeFunc({
105
+ const t = await c.callUeFunc({
106
106
  f: "DefaultCameraFlyIn",
107
107
  p: { Duration: e ?? 1 }
108
108
  });
@@ -111,12 +111,12 @@ const ye = async (l, e, t, i, r, n = "default") => {
111
111
  return;
112
112
  }
113
113
  return t;
114
- }, Vn = async (l) => {
115
- if (!l) {
114
+ }, Vn = async (c) => {
115
+ if (!c) {
116
116
  console.warn("StartVoice:viewer is undefined");
117
117
  return;
118
118
  }
119
- const e = await l.callUeFunc({
119
+ const e = await c.callUeFunc({
120
120
  f: "StartVoice",
121
121
  p: {}
122
122
  });
@@ -125,12 +125,12 @@ const ye = async (l, e, t, i, r, n = "default") => {
125
125
  return;
126
126
  }
127
127
  return e;
128
- }, On = async (l) => {
129
- if (!l) {
128
+ }, On = async (c) => {
129
+ if (!c) {
130
130
  console.warn("StopVoice:viewer is undefined");
131
131
  return;
132
132
  }
133
- const e = await l.callUeFunc({
133
+ const e = await c.callUeFunc({
134
134
  f: "StopVoice",
135
135
  p: {}
136
136
  });
@@ -139,12 +139,12 @@ const ye = async (l, e, t, i, r, n = "default") => {
139
139
  return;
140
140
  }
141
141
  return e;
142
- }, jn = async (l, e) => {
143
- if (!l) {
142
+ }, jn = async (c, e) => {
143
+ if (!c) {
144
144
  console.warn("mountPakFiles:viewer is undefined");
145
145
  return;
146
146
  }
147
- const t = await l.callUeFunc({
147
+ const t = await c.callUeFunc({
148
148
  f: "MountPakFiles",
149
149
  p: { json: e }
150
150
  });
@@ -153,12 +153,12 @@ const ye = async (l, e, t, i, r, n = "default") => {
153
153
  return;
154
154
  }
155
155
  return t;
156
- }, ts = async (l) => {
157
- if (!l) {
156
+ }, ts = async (c) => {
157
+ if (!c) {
158
158
  console.warn("generateMemReport:viewer is undefined");
159
159
  return;
160
160
  }
161
- const e = await l.callUeFunc({
161
+ const e = await c.callUeFunc({
162
162
  f: "GenerateMemReport",
163
163
  p: {}
164
164
  });
@@ -167,14 +167,14 @@ const ye = async (l, e, t, i, r, n = "default") => {
167
167
  return;
168
168
  }
169
169
  return e;
170
- }, Cr = async (l, e) => {
171
- const t = await l.callUeFunc({
170
+ }, Cr = async (c, e) => {
171
+ const t = await c.callUeFunc({
172
172
  f: "resetWithCurrentCamera",
173
173
  p: { id: e }
174
174
  });
175
175
  return t.error && console.error("resetWithCurrentCamera:", t.error), t;
176
- }, Le = (l, e, t, i, r) => {
177
- l.callUeFunc({
176
+ }, Le = (c, e, t, i, r) => {
177
+ c.callUeFunc({
178
178
  f: "smoothMoveWithRotation",
179
179
  p: {
180
180
  id: e,
@@ -187,8 +187,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
187
187
  }).catch((n) => {
188
188
  console.error("smoothMoveWithRotation:", n);
189
189
  });
190
- }, ke = (l, e, t, i, r, n) => {
191
- l.callUeFunc({
190
+ }, ke = (c, e, t, i, r, n) => {
191
+ c.callUeFunc({
192
192
  f: "smoothMoveOnGround",
193
193
  p: { id: e, Lon: t, Lat: i, Ground: r, Time: n }
194
194
  }).then((s) => {
@@ -196,8 +196,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
196
196
  }).catch((s) => {
197
197
  console.error("smoothMoveOnGround:", s);
198
198
  });
199
- }, De = (l, e, t, i, r, n, s) => {
200
- l.callUeFunc({
199
+ }, De = (c, e, t, i, r, n, s) => {
200
+ c.callUeFunc({
201
201
  f: "smoothMoveWithRotationOnGround",
202
202
  p: {
203
203
  id: e,
@@ -212,8 +212,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
212
212
  }).catch((o) => {
213
213
  console.error("smoothMoveWithRotationOnGround:", o);
214
214
  });
215
- }, es = (l, e, t) => {
216
- l.callUeFunc({
215
+ }, es = (c, e, t) => {
216
+ c.callUeFunc({
217
217
  f: "HighlightFeature",
218
218
  p: { id: e, HlId: t }
219
219
  }).then((i) => {
@@ -221,8 +221,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
221
221
  }).catch((i) => {
222
222
  console.error("HighlightFeature:", i);
223
223
  });
224
- }, is = (l, e, t, i) => {
225
- l.callUeFunc({
224
+ }, is = (c, e, t, i) => {
225
+ c.callUeFunc({
226
226
  f: "HighlightFeatureAndFlyTo",
227
227
  p: { id: e, HlId: t, Duration: i }
228
228
  }).then((r) => {
@@ -230,8 +230,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
230
230
  }).catch((r) => {
231
231
  console.error("HighlightFeatureAndFlyTo:", r);
232
232
  });
233
- }, rs = (l, e, t) => {
234
- l.callUeFunc({
233
+ }, rs = (c, e, t) => {
234
+ c.callUeFunc({
235
235
  f: "SetLayerVisible",
236
236
  p: { id: e, LayerJson: t }
237
237
  }).then((i) => {
@@ -239,8 +239,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
239
239
  }).catch((i) => {
240
240
  console.error("SetLayerVisible:", i);
241
241
  });
242
- }, ns = (l, e, t) => {
243
- l.callUeFunc({
242
+ }, ns = (c, e, t) => {
243
+ c.callUeFunc({
244
244
  f: "SetLayerColor",
245
245
  p: { id: e, LayerJson: t }
246
246
  }).then((i) => {
@@ -248,8 +248,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
248
248
  }).catch((i) => {
249
249
  console.error("SetLayerColor:", i);
250
250
  });
251
- }, Be = (l, e, t, i) => {
252
- l.callUeFunc({
251
+ }, Be = (c, e, t, i) => {
252
+ c.callUeFunc({
253
253
  f: "smoothMove",
254
254
  p: {
255
255
  id: e,
@@ -261,14 +261,14 @@ const ye = async (l, e, t, i, r, n = "default") => {
261
261
  }).catch((r) => {
262
262
  console.error("smoothMove:", r);
263
263
  });
264
- }, Fr = async (l, e, t, i) => {
265
- const r = await l.callUeFunc({
264
+ }, Fr = async (c, e, t, i) => {
265
+ const r = await c.callUeFunc({
266
266
  f: "callFunction",
267
267
  p: { id: e, fn: t, p: i }
268
268
  });
269
269
  return r.error && (console.error("callFunction:", r.error), console.error(`id: ${e} fn: ${t} param: ${i}`)), r.re ?? void 0;
270
- }, ss = (l, e, t, i) => {
271
- l.callUeFunc({
270
+ }, ss = (c, e, t, i) => {
271
+ c.callUeFunc({
272
272
  f: "SetNodePosition",
273
273
  p: {
274
274
  id: e,
@@ -280,8 +280,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
280
280
  }).catch((r) => {
281
281
  console.error("SetNodePosition:", r);
282
282
  });
283
- }, os = (l, e, t, i) => {
284
- l.callUeFunc({
283
+ }, os = (c, e, t, i) => {
284
+ c.callUeFunc({
285
285
  f: "SetNodeRotation",
286
286
  p: {
287
287
  id: e,
@@ -293,8 +293,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
293
293
  }).catch((r) => {
294
294
  console.error("SetNodeRotation:", r);
295
295
  });
296
- }, as = (l, e, t, i) => {
297
- l.callUeFunc({
296
+ }, as = (c, e, t, i) => {
297
+ c.callUeFunc({
298
298
  f: "SetNodeScale",
299
299
  p: {
300
300
  id: e,
@@ -306,8 +306,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
306
306
  }).catch((r) => {
307
307
  console.error("SetNodeScale:", r);
308
308
  });
309
- }, H = async (l, e) => {
310
- const t = await l.callUeFunc({
309
+ }, H = async (c, e) => {
310
+ const t = await c.callUeFunc({
311
311
  f: "ChangeNavigationMode",
312
312
  p: e
313
313
  });
@@ -316,8 +316,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
316
316
  return;
317
317
  }
318
318
  return t;
319
- }, ds = async (l, e) => {
320
- const t = await l.callUeFunc({
319
+ }, ds = async (c, e) => {
320
+ const t = await c.callUeFunc({
321
321
  f: "setGlobalProperty",
322
322
  p: e
323
323
  });
@@ -326,8 +326,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
326
326
  return;
327
327
  }
328
328
  return t;
329
- }, ls = async (l) => {
330
- const e = await l.callUeFunc({
329
+ }, ls = async (c) => {
330
+ const e = await c.callUeFunc({
331
331
  f: "Quit",
332
332
  p: void 0
333
333
  });
@@ -336,9 +336,9 @@ const ye = async (l, e, t, i, r, n = "default") => {
336
336
  return;
337
337
  }
338
338
  return e;
339
- }, cs = async (l, e, t, i) => {
339
+ }, cs = async (c, e, t, i) => {
340
340
  console.log("pickCallFunc", e, t, i);
341
- const r = await l.callUeFunc({
341
+ const r = await c.callUeFunc({
342
342
  f: "pick",
343
343
  p: { screenPosition: e, parentInfo: i }
344
344
  });
@@ -346,11 +346,10 @@ const ye = async (l, e, t, i, r, n = "default") => {
346
346
  console.error("pick:", r.error == "" ? "未获取到结果" : r.error);
347
347
  return;
348
348
  }
349
- let n = r.re.id, s;
350
- const o = n ? k.getSceneObject(n) : void 0;
351
- return s = new We(r.re, o, r.re.features, r.re.add, t, e), o && Reflect.has(o, "allowPicking") && Reflect.has(o, "pickedEvent") && (o.allowPicking ?? !1) && o.pickedEvent.emit(s), o && Reflect.has(o, "allowPicking") && !o.allowPicking ? new We() : s;
352
- }, us = async (l, e) => {
353
- const t = await l.callUeFunc({
349
+ let n = r.re.id, s, o = n ? L.getSceneObject(n) : void 0;
350
+ return o && o.parentID && (o = L.getSceneObject(o.parentID)), s = new We(r.re, o, r.re.features, r.re.add, t, e), o && Reflect.has(o, "allowPicking") && Reflect.has(o, "pickedEvent") && (o.allowPicking ?? !1) && o.pickedEvent.emit(s), o && Reflect.has(o, "allowPicking") && !o.allowPicking ? new We() : s;
351
+ }, us = async (c, e) => {
352
+ const t = await c.callUeFunc({
354
353
  f: "pickPosition",
355
354
  p: { screenPosition: e }
356
355
  });
@@ -360,8 +359,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
360
359
  }
361
360
  const { position: i } = t.re;
362
361
  return i;
363
- }, hs = async (l, e, t, i = "ECC_Visibility") => {
364
- const r = await l.callUeFunc({
362
+ }, hs = async (c, e, t, i = "ECC_Visibility") => {
363
+ const r = await c.callUeFunc({
365
364
  f: "GetHeightByLonLat",
366
365
  p: { Lon: e, Lat: t, Channel: i }
367
366
  });
@@ -370,8 +369,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
370
369
  return;
371
370
  }
372
371
  return r.re;
373
- }, ps = async (l, e, t = "ECC_Visibility") => {
374
- const i = await l.callUeFunc({
372
+ }, ps = async (c, e, t = "ECC_Visibility") => {
373
+ const i = await c.callUeFunc({
375
374
  f: "GetHeightsByLonLats",
376
375
  p: { LonLats: e, Channel: t }
377
376
  });
@@ -385,8 +384,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
385
384
  } catch {
386
385
  return;
387
386
  }
388
- }, vs = async (l, e = 64, t = 64) => {
389
- const i = await l.callUeFunc({
387
+ }, vs = async (c, e = 64, t = 64) => {
388
+ const i = await c.callUeFunc({
390
389
  f: "capture",
391
390
  p: { resx: e, resy: t }
392
391
  });
@@ -395,8 +394,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
395
394
  return;
396
395
  }
397
396
  return i.re.image;
398
- }, fs = async (l, e, t = [64, 64]) => {
399
- const i = await l.callUeFunc({
397
+ }, fs = async (c, e, t = [64, 64]) => {
398
+ const i = await c.callUeFunc({
400
399
  f: "partialCapture",
401
400
  p: {
402
401
  startPos: e,
@@ -408,14 +407,14 @@ const ye = async (l, e, t, i, r, n = "default") => {
408
407
  return;
409
408
  }
410
409
  return i.re.image;
411
- }, gs = async (l, e) => {
412
- const t = await l.callUeFunc({
410
+ }, gs = async (c, e) => {
411
+ const t = await c.callUeFunc({
413
412
  f: "LonLatAltToScreenPosition",
414
413
  p: { LonLatAlt: e }
415
414
  });
416
415
  return t.error && console.warn(t.error), t.re;
417
- }, ws = async (l, e) => {
418
- const t = await l.callUeFunc({
416
+ }, ws = async (c, e) => {
417
+ const t = await c.callUeFunc({
419
418
  f: "UEPositionToLonLatAlt",
420
419
  p: { UEPosition: e }
421
420
  });
@@ -424,8 +423,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
424
423
  return;
425
424
  }
426
425
  return [...t.re.LonLatAlt];
427
- }, ys = async (l, e) => {
428
- const t = await l.callUeFunc({
426
+ }, ys = async (c, e) => {
427
+ const t = await c.callUeFunc({
429
428
  f: "GetAllSocketNamesByActorTag",
430
429
  p: { ActorTag: e }
431
430
  });
@@ -434,8 +433,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
434
433
  return;
435
434
  }
436
435
  return [...t.re.socketNames];
437
- }, ms = async (l) => {
438
- const e = await l.callUeFunc({
436
+ }, ms = async (c) => {
437
+ const e = await c.callUeFunc({
439
438
  f: "GetVersion",
440
439
  p: void 0
441
440
  });
@@ -444,8 +443,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
444
443
  return;
445
444
  }
446
445
  return e.re.version;
447
- }, Cs = async (l, e) => {
448
- const t = await l.callUeFunc({
446
+ }, Cs = async (c, e) => {
447
+ const t = await c.callUeFunc({
449
448
  f: "GetBoundSphere",
450
449
  p: { id: e }
451
450
  });
@@ -454,8 +453,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
454
453
  return;
455
454
  }
456
455
  return t.re;
457
- }, Fs = async (l, e) => {
458
- const t = await l.callUeFunc({
456
+ }, Fs = async (c, e) => {
457
+ const t = await c.callUeFunc({
459
458
  f: "GetBoundSphereWithChildren",
460
459
  p: { id: e }
461
460
  });
@@ -464,8 +463,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
464
463
  return;
465
464
  }
466
465
  return t.re;
467
- }, Is = async (l, e) => {
468
- const t = await l.callUeFunc({
466
+ }, Is = async (c, e) => {
467
+ const t = await c.callUeFunc({
469
468
  f: "GetStrokeMaterialParamInfo",
470
469
  p: { id: e }
471
470
  });
@@ -474,8 +473,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
474
473
  return;
475
474
  }
476
475
  return t.re;
477
- }, Es = async (l, e) => {
478
- const t = await l.callUeFunc({
476
+ }, Es = async (c, e) => {
477
+ const t = await c.callUeFunc({
479
478
  f: "GetFillMaterialParamInfo",
480
479
  p: { id: e }
481
480
  });
@@ -484,8 +483,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
484
483
  return;
485
484
  }
486
485
  return t.re;
487
- }, Ss = async (l, e) => {
488
- const t = await l.callUeFunc({
486
+ }, Ss = async (c, e) => {
487
+ const t = await c.callUeFunc({
489
488
  f: "getGlobalProperty",
490
489
  p: { props: e }
491
490
  });
@@ -494,8 +493,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
494
493
  return;
495
494
  }
496
495
  return t.re;
497
- }, Ts = async (l, e) => {
498
- const t = await l.callUeFunc({
496
+ }, Ts = async (c, e) => {
497
+ const t = await c.callUeFunc({
499
498
  f: "GetObjectByInfo",
500
499
  p: { info: e }
501
500
  });
@@ -504,63 +503,63 @@ const ye = async (l, e, t, i, r, n = "default") => {
504
503
  return;
505
504
  }
506
505
  return t.re;
507
- }, xs = async (l, e, t) => await l.callUeFunc({
506
+ }, xs = async (c, e, t) => await c.callUeFunc({
508
507
  f: "BindActorByTag",
509
508
  p: { ID: e, ActorTag: t }
510
- }), Rs = async (l) => await l.callUeFunc({
509
+ }), Rs = async (c) => await c.callUeFunc({
511
510
  f: "RestoreOriginalScene",
512
511
  p: void 0
513
- }), Ps = async (l, e) => await l.callUeFunc({
512
+ }), Ps = async (c, e) => await c.callUeFunc({
514
513
  f: "UnBindActorByID",
515
514
  p: { ID: e }
516
- }), Ls = async (l, e) => await l.callUeFunc({
515
+ }), Ls = async (c, e) => await c.callUeFunc({
517
516
  f: "UnBindActorByTag",
518
517
  p: { ActorTag: e }
519
- }), ks = async (l, e, t) => await l.callUeFunc({
518
+ }), ks = async (c, e, t) => await c.callUeFunc({
520
519
  f: "CreateActorByClass",
521
520
  p: { ID: e, ActorClass: t }
522
- }), Ds = async function(l, e, t) {
523
- return await l.callUeFunc({
521
+ }), Ds = async function(c, e, t) {
522
+ return await c.callUeFunc({
524
523
  f: "Bind3DTilesetByTag",
525
524
  p: { ID: e, ActorTag: t }
526
525
  });
527
- }, Bs = async function(l, e) {
528
- return await l.callUeFunc({
526
+ }, Bs = async function(c, e) {
527
+ return await c.callUeFunc({
529
528
  f: "UnBind3DTilesetByTag",
530
529
  p: { ActorTag: e }
531
530
  });
532
- }, _s = async function(l, e) {
533
- return await l.callUeFunc({
531
+ }, _s = async function(c, e) {
532
+ return await c.callUeFunc({
534
533
  f: "UnBind3DTilesetById",
535
534
  p: { ID: e }
536
535
  });
537
- }, Ms = async function(l, e, t, i) {
538
- return await l.callUeFunc({
536
+ }, Ms = async function(c, e, t, i) {
537
+ return await c.callUeFunc({
539
538
  f: "BindImageryByTag",
540
539
  p: { ID: e, ActorTag: t, ComponentTag: i }
541
540
  });
542
- }, $s = async function(l, e, t) {
543
- return await l.callUeFunc({
541
+ }, $s = async function(c, e, t) {
542
+ return await c.callUeFunc({
544
543
  f: "UnBindImageryByTag",
545
544
  p: { ActorTag: e, ComponentTag: t }
546
545
  });
547
- }, Ws = async function(l, e) {
548
- return await l.callUeFunc({
546
+ }, Ws = async function(c, e) {
547
+ return await c.callUeFunc({
549
548
  f: "UnBindImageryById",
550
549
  p: { ID: e }
551
550
  });
552
- }, As = async function(l, e, t, i) {
553
- return await l.callUeFunc({
551
+ }, As = async function(c, e, t, i) {
552
+ return await c.callUeFunc({
554
553
  f: "GetIdByComponentNameAndHitItem",
555
554
  p: { id: e, ComponentName: t, HitItem: i }
556
555
  });
557
- }, Us = async function(l, e = "ECC_Visibility") {
558
- return await l.callUeFunc({
556
+ }, Us = async function(c, e = "ECC_Visibility") {
557
+ return await c.callUeFunc({
559
558
  f: "GetCameraRelativeHeight",
560
559
  p: { Channel: e }
561
560
  });
562
- }, Ns = async function(l, e, t, i) {
563
- const r = await l.callUeFunc({
561
+ }, Ns = async function(c, e, t, i) {
562
+ const r = await c.callUeFunc({
564
563
  f: "SaveStringToFile",
565
564
  p: {
566
565
  String: e,
@@ -569,8 +568,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
569
568
  }
570
569
  });
571
570
  return r.error !== "" && console.warn("SaveStringToFile: ", r.error), r;
572
- }, zs = async function(l, e, t = !0) {
573
- const i = await l.callUeFunc({
571
+ }, zs = async function(c, e, t = !0) {
572
+ const i = await c.callUeFunc({
574
573
  f: "HighlightActorByTag",
575
574
  p: {
576
575
  ActorTag: e,
@@ -578,14 +577,14 @@ const ye = async (l, e, t, i, r, n = "default") => {
578
577
  }
579
578
  });
580
579
  return i.error !== "" && console.warn("HighlightActorByTag: ", i.error), i;
581
- }, Hs = async function(l, e) {
582
- const t = await l.callUeFunc({
580
+ }, Hs = async function(c, e) {
581
+ const t = await c.callUeFunc({
583
582
  f: "SendCustomMessage",
584
583
  p: { Message: e }
585
584
  });
586
585
  return t.error !== "" && console.warn("SendCustomMessage: ", t.error), t;
587
- }, Js = async function(l) {
588
- const e = await l.callUeFunc({
586
+ }, Js = async function(c) {
587
+ const e = await c.callUeFunc({
589
588
  f: "GetStatus",
590
589
  p: void 0
591
590
  });
@@ -594,8 +593,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
594
593
  return;
595
594
  }
596
595
  return e.re;
597
- }, Gs = async (l, e, t, i, r = !0) => {
598
- const n = await l.callUeFunc({
596
+ }, Gs = async (c, e, t, i, r = !0) => {
597
+ const n = await c.callUeFunc({
599
598
  f: "startEditing",
600
599
  p: {
601
600
  sceneObjectID: e,
@@ -609,8 +608,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
609
608
  return;
610
609
  }
611
610
  return n;
612
- }, bs = async (l) => {
613
- const e = await l.callUeFunc({
611
+ }, bs = async (c) => {
612
+ const e = await c.callUeFunc({
614
613
  f: "stopEditing",
615
614
  p: void 0
616
615
  });
@@ -619,8 +618,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
619
618
  return;
620
619
  }
621
620
  return e;
622
- }, Ks = async (l, e, t) => {
623
- const i = await l.callUeFunc({
621
+ }, Ks = async (c, e, t) => {
622
+ const i = await c.callUeFunc({
624
623
  f: "moveObjects",
625
624
  p: {
626
625
  sceneObjectIDs: e,
@@ -632,8 +631,8 @@ const ye = async (l, e, t, i, r, n = "default") => {
632
631
  return;
633
632
  }
634
633
  return i;
635
- }, Xs = async (l) => {
636
- const e = await l.callUeFunc({
634
+ }, Xs = async (c) => {
635
+ const e = await c.callUeFunc({
637
636
  f: "GetTilesetMaterialIDList",
638
637
  p: void 0
639
638
  });
@@ -684,9 +683,9 @@ class Zs extends Jn {
684
683
  let n = r.target.result, s = new Uint32Array(n), o = 0;
685
684
  if (s[0] === Ys.Response) {
686
685
  o += 4;
687
- let c = s[o / 4];
686
+ let l = s[o / 4];
688
687
  o += 4;
689
- for (let a = 0; a < c; a++) {
688
+ for (let a = 0; a < l; a++) {
690
689
  let v = s[o / 4];
691
690
  o += 4;
692
691
  let f = new TextDecoder("utf-8").decode(n.slice(o, o + v));
@@ -729,9 +728,9 @@ class Zs extends Jn {
729
728
  }
730
729
  }
731
730
  window.g_emitDescriptor_maxBytes = 3e4;
732
- let Qs = -1;
731
+ let qs = -1;
733
732
  vr.SetLoggerVerbosity(1);
734
- class qs extends m {
733
+ class Qs extends m {
735
734
  constructor(t, i) {
736
735
  super();
737
736
  p(this, "_eventTarget", new EventTarget());
@@ -749,9 +748,9 @@ class qs extends m {
749
748
  }), this._handerPixelStreamEvent(), this._esMsgWsWrapper = this._initEsMsgWsWrapper(s);
750
749
  const o = this;
751
750
  if (o.esMsgWsWrapper) {
752
- const c = o.webRtcController.sendMessageController.dataChannelSender.sendData;
751
+ const l = o.webRtcController.sendMessageController.dataChannelSender.sendData;
753
752
  o.webRtcController.sendMessageController.dataChannelSender.constructor.prototype.sendData = function(a) {
754
- o.esMsgWsWrapper ? o.esMsgWsWrapper.sendInputData(a) : c.call(this, a);
753
+ o.esMsgWsWrapper ? o.esMsgWsWrapper.sendInputData(a) : l.call(this, a);
755
754
  };
756
755
  }
757
756
  }
@@ -772,7 +771,8 @@ class qs extends m {
772
771
  initialSettings: {
773
772
  AutoPlayVideo: !0,
774
773
  AutoConnect: !0,
775
- StartVideoMuted: !0,
774
+ // StartVideoMuted: true,
775
+ StartVideoMuted: !1,
776
776
  // WaitForStreamer: true,
777
777
  SuppressBrowserKeys: !1,
778
778
  [Xn.SignallingServerUrl]: i
@@ -847,15 +847,15 @@ class qs extends m {
847
847
  // 发送UI interface
848
848
  emitUIInteractionForBigData(t, i) {
849
849
  typeof i == "function" && (t.callid = B(), this.uiInteractionCallbacks.set(t.callid, i));
850
- const r = JSON.stringify(t), n = window.g_emitDescriptor_maxBytes, s = r.length, o = ++Qs;
850
+ const r = JSON.stringify(t), n = window.g_emitDescriptor_maxBytes, s = r.length, o = ++qs;
851
851
  if (this.esMsgWsWrapper) {
852
852
  if (s < n) {
853
853
  this.esMsgWsWrapper.emitDescriptorWithString(Ee.UIInteraction, `${o}-0/1-` + r);
854
854
  return;
855
855
  }
856
- const c = Math.ceil(s / n) | 0;
857
- [...new Array(c).keys()].map((v) => r.slice(v * n, (v + 1) * n)).forEach((v, f) => {
858
- this.esMsgWsWrapper && this.esMsgWsWrapper.emitDescriptorWithString(Ee.UIInteraction, `${o}-${f}/${c}-` + v);
856
+ const l = Math.ceil(s / n) | 0;
857
+ [...new Array(l).keys()].map((v) => r.slice(v * n, (v + 1) * n)).forEach((v, f) => {
858
+ this.esMsgWsWrapper && this.esMsgWsWrapper.emitDescriptorWithString(Ee.UIInteraction, `${o}-${f}/${l}-` + v);
859
859
  });
860
860
  }
861
861
  }
@@ -888,7 +888,7 @@ class Vs extends m {
888
888
  super();
889
889
  p(this, "_instance");
890
890
  p(this, "_event", this.dv(new S()));
891
- this._container = t, this._wsuri = i, this._esmsgWsUri = r, this._instance = this.dv(new qs(this._container, { url: this._wsuri, esmsgWsUri: this._esmsgWsUri })), this.instanceInit();
891
+ this._container = t, this._wsuri = i, this._esmsgWsUri = r, this._instance = this.dv(new Qs(this._container, { url: this._wsuri, esmsgWsUri: this._esmsgWsUri })), this.instanceInit();
892
892
  }
893
893
  get webSocketReady() {
894
894
  return this._instance.esWebSocketReady;
@@ -971,15 +971,15 @@ class Os extends _e {
971
971
  const h = () => o.debug = s.debug ?? !1;
972
972
  h(), this.d(s.debugChanged.don(h));
973
973
  }
974
- let c = !1;
974
+ let l = !1;
975
975
  {
976
976
  const h = () => {
977
- if (c) return;
977
+ if (l) return;
978
978
  const u = o.webSocketReady;
979
979
  if (this.videoinited && this.webRtcConnected && u) {
980
980
  console.log("%c[EarthSDK: esmsgWebSocket && videoinited && webRtcConnected]", "background: #a6ec99; color: black");
981
981
  const g = { eventType: "init", params: {} };
982
- o.emitUIInteractionForBigData(g), this._readyEvent.emit(), c = !0;
982
+ o.emitUIInteractionForBigData(g), this._readyEvent.emit(), l = !0;
983
983
  }
984
984
  };
985
985
  this.d(this.videoinitedChanged.don(() => {
@@ -1040,18 +1040,18 @@ class Os extends _e {
1040
1040
  this._waitingUeCalls.delete(u);
1041
1041
  });
1042
1042
  }, f = () => {
1043
- if (!c || this._ueFuncWithIdAndResultCallbacks.length === 0) return;
1043
+ if (!l || this._ueFuncWithIdAndResultCallbacks.length === 0) return;
1044
1044
  const h = this._ueFuncWithIdAndResultCallbacks.map(([u]) => u);
1045
1045
  for (const [u, g] of this._ueFuncWithIdAndResultCallbacks)
1046
1046
  this._waitingUeFuncIdAndResultCallbacks.set(u.fid, g);
1047
1047
  this._ueFuncWithIdAndResultCallbacks.length = 0;
1048
1048
  {
1049
- const u = window.g_emitDescriptor_maxBytes, g = h.map((L) => ({ f: L, s: JSON.stringify(L).length }));
1049
+ const u = window.g_emitDescriptor_maxBytes, g = h.map((k) => ({ f: k, s: JSON.stringify(k).length }));
1050
1050
  let w = g.length, y = 0, I = 0, C = [];
1051
1051
  do {
1052
1052
  do {
1053
- const { f: L, s: P } = g[y];
1054
- if (C.push(L), ++y, I + P > u || C.length >= 20)
1053
+ const { f: k, s: P } = g[y];
1054
+ if (C.push(k), ++y, I + P > u || C.length >= 20)
1055
1055
  break;
1056
1056
  } while (y < w);
1057
1057
  C.length > 0 && (s.debug && console.log(`传送${C.length}条消息...`), v([...C]), C.length = 0, I = 0);
@@ -1130,22 +1130,22 @@ class Os extends _e {
1130
1130
  };
1131
1131
  }
1132
1132
  }
1133
- function js(l) {
1133
+ function js(c) {
1134
1134
  let e = "";
1135
- const t = new Uint8Array(l), i = t.length;
1135
+ const t = new Uint8Array(c), i = t.length;
1136
1136
  for (let r = 0; r < i; r++)
1137
1137
  e += String.fromCharCode(t[r]);
1138
1138
  return btoa(e);
1139
1139
  }
1140
- const to = (l) => {
1140
+ const to = (c) => {
1141
1141
  const e = {
1142
1142
  type: "input",
1143
- inputdata: js(l)
1143
+ inputdata: js(c)
1144
1144
  };
1145
1145
  return JSON.stringify(e);
1146
1146
  };
1147
- function eo(l) {
1148
- return typeof l == "string" ? document.getElementById(l) : l;
1147
+ function eo(c) {
1148
+ return typeof c == "string" ? document.getElementById(c) : c;
1149
1149
  }
1150
1150
  window.g_emitDescriptor_maxBytes = 3e4;
1151
1151
  console.log("全局可设置消息体最大字节, window.g_emitDescriptor_maxBytes 默认 30000 。");
@@ -1187,8 +1187,8 @@ class ro extends m {
1187
1187
  const n = (s) => {
1188
1188
  const o = this._pixelStream._webRtcController.mouseController;
1189
1189
  setTimeout(() => {
1190
- const c = o.coordinateConverter.normalizeAndQuantizeUnsigned(s.offsetX, s.offsetY), v = o.toStreamerMessagesProvider.toStreamerHandlers.get("MouseUp");
1191
- v && v([s.button, c.x, c.y]), s.preventDefault();
1190
+ const l = o.coordinateConverter.normalizeAndQuantizeUnsigned(s.offsetX, s.offsetY), v = o.toStreamerMessagesProvider.toStreamerHandlers.get("MouseUp");
1191
+ v && v([s.button, l.x, l.y]), s.preventDefault();
1192
1192
  });
1193
1193
  };
1194
1194
  this.container.addEventListener("dblclick", n), this.d(() => {
@@ -1263,9 +1263,9 @@ class ro extends m {
1263
1263
  this.sendData(JSON.stringify(v));
1264
1264
  return;
1265
1265
  }
1266
- const c = Math.ceil(s / n) | 0;
1267
- [...new Array(c).keys()].map((v) => r.slice(v * n, (v + 1) * n)).forEach((v, f) => {
1268
- const d = { type: "earthsdk", time: (/* @__PURE__ */ new Date()).getTime(), params: `${o}-${f}/${c}-` + v };
1266
+ const l = Math.ceil(s / n) | 0;
1267
+ [...new Array(l).keys()].map((v) => r.slice(v * n, (v + 1) * n)).forEach((v, f) => {
1268
+ const d = { type: "earthsdk", time: (/* @__PURE__ */ new Date()).getTime(), params: `${o}-${f}/${l}-` + v };
1269
1269
  this.sendData(JSON.stringify(d));
1270
1270
  });
1271
1271
  }
@@ -1427,10 +1427,10 @@ class so extends _e {
1427
1427
  u && (this._waitingUeFuncIdAndResultCallbacks.delete(h.fid), u.resultCallback(h.r));
1428
1428
  }
1429
1429
  }));
1430
- let c = 0;
1430
+ let l = 0;
1431
1431
  const a = (d) => {
1432
1432
  const h = {
1433
- n: c++,
1433
+ n: l++,
1434
1434
  tt: Date.now(),
1435
1435
  t: "c",
1436
1436
  fs: d
@@ -1451,12 +1451,12 @@ class so extends _e {
1451
1451
  this._waitingUeFuncIdAndResultCallbacks.set(u.fid, g);
1452
1452
  this._ueFuncWithIdAndResultCallbacks.length = 0;
1453
1453
  {
1454
- const u = window.g_emitDescriptor_maxBytes, g = h.map((L) => ({ f: L, s: JSON.stringify(L).length }));
1454
+ const u = window.g_emitDescriptor_maxBytes, g = h.map((k) => ({ f: k, s: JSON.stringify(k).length }));
1455
1455
  let w = g.length, y = 0, I = 0, C = [];
1456
1456
  do {
1457
1457
  do {
1458
- const { f: L, s: P } = g[y];
1459
- if (C.push(L), ++y, I + P > u || C.length >= 20)
1458
+ const { f: k, s: P } = g[y];
1459
+ if (C.push(k), ++y, I + P > u || C.length >= 20)
1460
1460
  break;
1461
1461
  } while (y < w);
1462
1462
  C.length > 0 && (s.debug && console.log(`传送${C.length}条消息...`), a([...C]), C.length = 0, I = 0);
@@ -1536,8 +1536,8 @@ class oo extends m {
1536
1536
  this._vIframe = o, o.style.cssText = "width: 100%; height: 100%; margin: 0; padding: 0; border: none; outline: none;", t.appendChild(o), this.d(() => {
1537
1537
  o && t.removeChild(o);
1538
1538
  });
1539
- const c = k.getStrFromEnv(r + `/web/${i}.html`);
1540
- o.src = c, o.onload = () => {
1539
+ const l = L.getStrFromEnv(r + `/web/${i}.html`);
1540
+ o.src = l, o.onload = () => {
1541
1541
  const a = o.contentWindow;
1542
1542
  if (!a) {
1543
1543
  console.error("iframeWindow is null");
@@ -1556,26 +1556,26 @@ class oo extends m {
1556
1556
  return this._vIframe;
1557
1557
  }
1558
1558
  }
1559
- const Ke = typeof TextDecoder < "u" ? new TextDecoder() : void 0, ao = (l, e = 0, t = NaN) => {
1559
+ const Ke = typeof TextDecoder < "u" ? new TextDecoder() : void 0, ao = (c, e = 0, t = NaN) => {
1560
1560
  const i = e + t;
1561
1561
  let r = e;
1562
- for (; l[r] && !(r >= i); ) ++r;
1563
- if (r - e > 16 && l.buffer && Ke)
1564
- return Ke.decode(l.subarray(e, r));
1562
+ for (; c[r] && !(r >= i); ) ++r;
1563
+ if (r - e > 16 && c.buffer && Ke)
1564
+ return Ke.decode(c.subarray(e, r));
1565
1565
  let n = "";
1566
1566
  for (; e < r; ) {
1567
- var s = l[e++];
1567
+ var s = c[e++];
1568
1568
  if (!(s & 128)) {
1569
1569
  n += String.fromCharCode(s);
1570
1570
  continue;
1571
1571
  }
1572
- var o = l[e++] & 63;
1572
+ var o = c[e++] & 63;
1573
1573
  if ((s & 224) == 192) {
1574
1574
  n += String.fromCharCode((s & 31) << 6 | o);
1575
1575
  continue;
1576
1576
  }
1577
- var c = l[e++] & 63;
1578
- if ((s & 240) == 224 ? s = (s & 15) << 12 | o << 6 | c : ((s & 248) != 240 && console.warn("Invalid UTF-8 leading byte encountered when deserializing a UTF-8 string in wasm memory to a JS string!"), s = (s & 7) << 18 | o << 12 | c << 6 | l[e++] & 63), s < 65536)
1577
+ var l = c[e++] & 63;
1578
+ if ((s & 240) == 224 ? s = (s & 15) << 12 | o << 6 | l : ((s & 248) != 240 && console.warn("Invalid UTF-8 leading byte encountered when deserializing a UTF-8 string in wasm memory to a JS string!"), s = (s & 7) << 18 | o << 12 | l << 6 | c[e++] & 63), s < 65536)
1579
1579
  n += String.fromCharCode(s);
1580
1580
  else {
1581
1581
  var a = s - 65536;
@@ -1589,13 +1589,13 @@ class lo extends m {
1589
1589
  super();
1590
1590
  {
1591
1591
  const r = () => {
1592
- const c = Ge(t);
1593
- t.setGlobalProperty(c);
1592
+ const l = Ge(t);
1593
+ t.setGlobalProperty(l);
1594
1594
  };
1595
1595
  r();
1596
1596
  const n = Re(), s = [];
1597
- n.forEach((c) => {
1598
- const a = t[c + "Changed"];
1597
+ n.forEach((l) => {
1598
+ const a = t[l + "Changed"];
1599
1599
  s.push(a);
1600
1600
  });
1601
1601
  const o = this.dv(x(...s));
@@ -1651,7 +1651,10 @@ class lo extends m {
1651
1651
  if (!(t.editingEventListening ?? !0)) return;
1652
1652
  const n = new m();
1653
1653
  return n.d(i.disposableOnUeEvent("editingEvent", (s) => {
1654
- s.objectIDs = s.objectIDs.map((o) => o.split("_")[0]), t.editingEvent.emit(s);
1654
+ s.objectIDs = s.objectIDs.map((o) => {
1655
+ var l;
1656
+ return ((l = L.getSceneObjById(o)) == null ? void 0 : l.parentID) ?? o;
1657
+ }), t.editingEvent.emit(s);
1655
1658
  })), n;
1656
1659
  }));
1657
1660
  }
@@ -1676,10 +1679,10 @@ class uo extends _e {
1676
1679
  p(this, "_ueEvent", this.dv(new S()));
1677
1680
  this._ueViewer = n;
1678
1681
  const s = this._ueViewer, o = this.dv(new oo(t, i, r, s));
1679
- let c = !1, a = null;
1682
+ let l = !1, a = null;
1680
1683
  this.d(o.onRuntimeInitialized.don(() => {
1681
1684
  var h;
1682
- if (c = !0, (h = o == null ? void 0 : o.vIframe) != null && h.contentWindow) {
1685
+ if (l = !0, (h = o == null ? void 0 : o.vIframe) != null && h.contentWindow) {
1683
1686
  a = o.vIframe.contentWindow;
1684
1687
  const u = o.vIframe.contentWindow.document.getElementById("mainarea");
1685
1688
  u ? this.dv(new lo(u, s, this)) : console.error("h5Container is null");
@@ -1715,7 +1718,7 @@ class uo extends _e {
1715
1718
  }));
1716
1719
  let v = 0;
1717
1720
  const f = () => {
1718
- if (!c || !a || !a.UE_JSHTML5Communication || !a.UE_JSHTML5Communication.JSSendMessageToUE || this._ueFuncWithIdAndResultCallbacks.length === 0) return;
1721
+ if (!l || !a || !a.UE_JSHTML5Communication || !a.UE_JSHTML5Communication.JSSendMessageToUE || this._ueFuncWithIdAndResultCallbacks.length === 0) return;
1719
1722
  const h = this._ueFuncWithIdAndResultCallbacks.map(([P]) => P), u = { n: v++, tt: Date.now(), t: "c", fs: h, callid: B() };
1720
1723
  for (const [P, A] of this._ueFuncWithIdAndResultCallbacks)
1721
1724
  this._waitingUeFuncIdAndResultCallbacks.set(P.fid, A);
@@ -1821,7 +1824,7 @@ class po extends _e {
1821
1824
  }
1822
1825
  }));
1823
1826
  let o = 0;
1824
- const c = () => {
1827
+ const l = () => {
1825
1828
  if (!n || this._ueFuncWithIdAndResultCallbacks.length === 0) return;
1826
1829
  const v = this._ueFuncWithIdAndResultCallbacks.map(([h]) => h), f = {
1827
1830
  n: o++,
@@ -1843,7 +1846,7 @@ class po extends _e {
1843
1846
  this._waitingUeCalls.delete(f);
1844
1847
  });
1845
1848
  };
1846
- this.dv(Te()).start(c, 50);
1849
+ this.dv(Te()).start(l, 50);
1847
1850
  }
1848
1851
  callUeFunc(t) {
1849
1852
  return new Promise((i) => {
@@ -1886,8 +1889,8 @@ class vo extends m {
1886
1889
  i();
1887
1890
  const r = Re(), n = [];
1888
1891
  r.forEach((o) => {
1889
- const c = e[o + "Changed"];
1890
- n.push(c);
1892
+ const l = e[o + "Changed"];
1893
+ n.push(l);
1891
1894
  });
1892
1895
  const s = this.dv(x(...n));
1893
1896
  this.d(s.don(i));
@@ -1942,7 +1945,10 @@ class vo extends m {
1942
1945
  if (!(e.editingEventListening ?? !0)) return;
1943
1946
  const r = new m();
1944
1947
  return r.d(t.disposableOnUeEvent("editingEvent", (n) => {
1945
- n.objectIDs = n.objectIDs.map((s) => s.split("_")[0]), e.editingEvent.emit(n);
1948
+ n.objectIDs = n.objectIDs.map((s) => {
1949
+ var o;
1950
+ return ((o = L.getSceneObjById(s)) == null ? void 0 : o.parentID) ?? s;
1951
+ }), e.editingEvent.emit(n);
1946
1952
  })), r;
1947
1953
  }));
1948
1954
  }
@@ -1961,8 +1967,8 @@ class fo extends m {
1961
1967
  const v = t[a + "Changed"];
1962
1968
  o.push(v);
1963
1969
  });
1964
- const c = this.dv(x(...o));
1965
- this.d(c.don(n));
1970
+ const l = this.dv(x(...o));
1971
+ this.d(l.don(n));
1966
1972
  }
1967
1973
  this.d(t.propChanged.don((n) => {
1968
1974
  if (n.objId === "")
@@ -1986,18 +1992,18 @@ class fo extends m {
1986
1992
  n(a, !1);
1987
1993
  }, o = (a) => {
1988
1994
  n(a, !0);
1989
- }, c = (a) => {
1995
+ }, l = (a) => {
1990
1996
  n(a, !1);
1991
1997
  };
1992
- r.addEventListener("mouseenter", s), r.addEventListener("mouseleave", o), r.addEventListener("mousemove", c), this.d(() => {
1993
- r.removeEventListener("mouseenter", s), r.removeEventListener("mouseleave", o), r.removeEventListener("mousemove", c);
1998
+ r.addEventListener("mouseenter", s), r.addEventListener("mouseleave", o), r.addEventListener("mousemove", l), this.d(() => {
1999
+ r.removeEventListener("mouseenter", s), r.removeEventListener("mouseleave", o), r.removeEventListener("mousemove", l);
1994
2000
  });
1995
2001
  }
1996
2002
  t.useCustomInteraction = !1, this.dv(new lr(t, r)), this.dv(new T(t.statusUpdateIntervalChanged, (n) => {
1997
2003
  if ((t.statusUpdateInterval ?? 0.5) === 0) return;
1998
2004
  const o = new m();
1999
- return o.d(i.disposableOnUeEvent("statusUpdate", (c) => {
2000
- t.statusUpdateEvent.emit(c);
2005
+ return o.d(i.disposableOnUeEvent("statusUpdate", (l) => {
2006
+ t.statusUpdateEvent.emit(l);
2001
2007
  })), o;
2002
2008
  })), this.dv(new T(t.propChangedListeningChanged, () => {
2003
2009
  if (!(t.propChangedListening ?? !0)) return;
@@ -2033,7 +2039,10 @@ class fo extends m {
2033
2039
  if (!(t.editingEventListening ?? !0)) return;
2034
2040
  const s = new m();
2035
2041
  return s.d(i.disposableOnUeEvent("editingEvent", (o) => {
2036
- o.objectIDs = o.objectIDs.map((c) => c.split("_")[0]), t.editingEvent.emit(o);
2042
+ o.objectIDs = o.objectIDs.map((l) => {
2043
+ var a;
2044
+ return ((a = L.getSceneObjById(l)) == null ? void 0 : a.parentID) ?? l;
2045
+ }), t.editingEvent.emit(o);
2037
2046
  })), s;
2038
2047
  }));
2039
2048
  }
@@ -2042,35 +2051,35 @@ class go extends m {
2042
2051
  constructor(t, i, r) {
2043
2052
  super();
2044
2053
  p(this, "_reconnectEvent", this.dv(new S()));
2045
- const n = (c, a) => c.hasOwnProperty(a);
2054
+ const n = (l, a) => l.hasOwnProperty(a);
2046
2055
  let s = 0, o;
2047
2056
  if (this.d(() => {
2048
2057
  o && clearTimeout(o);
2049
2058
  }), window.ue && window.ue.es)
2050
2059
  if (window.ue.esinput) {
2051
2060
  r.setStatus("Creating"), console.log("存在(window.ue && window.ue.es && window.ue.esinput 需要适配新版ESWebView 鼠标穿透), 开始创建UeFalseCloudViewer..."), r.setStatusLog("开始创建本地视口...");
2052
- const c = this.dv(new po(t, r));
2053
- this.d(() => r.viewer = void 0), r.viewer = c, r.setStatus("Created"), r.setStatusLog("本地视口创建成功!"), this.dv(new fo(t, r, c));
2061
+ const l = this.dv(new po(t, r));
2062
+ this.d(() => r.viewer = void 0), r.viewer = l, r.setStatus("Created"), r.setStatusLog("本地视口创建成功!"), this.dv(new fo(t, r, l));
2054
2063
  } else
2055
2064
  r.setStatus("Error"), r.setStatusLog("请升级 ESWebView !");
2056
2065
  else if (n(i.options, "ws") || n(i.options, "uri") && n(i.options, "app")) {
2057
2066
  r.setStatus("Creating"), r.setStatusLog("开始创建云渲染视口...");
2058
- let c;
2067
+ let l;
2059
2068
  this.d(() => {
2060
- r.setStatus("Raw"), r.setStatusLog(""), t && c && t.removeChild(c) && (c = void 0);
2069
+ r.setStatus("Raw"), r.setStatusLog(""), t && l && t.removeChild(l) && (l = void 0);
2061
2070
  });
2062
2071
  const a = this.dv(xe(async (v) => {
2063
- r.viewer && !r.viewer.isDestroyed() && r.viewer.destroy(), r.viewer = void 0, c && t.removeChild(c) && (c = void 0), c = document.createElement("div"), c.setAttribute("earthsdk3-ue", "earthsdk3-ue-videoContainer"), c.style.cssText = "position:relative; height: 100%;width:100%;", t.appendChild(c);
2072
+ r.viewer && !r.viewer.isDestroyed() && r.viewer.destroy(), r.viewer = void 0, l && t.removeChild(l) && (l = void 0), l = document.createElement("div"), l.setAttribute("earthsdk3-ue", "earthsdk3-ue-videoContainer"), l.style.cssText = "position:relative; height: 100%;width:100%;", t.appendChild(l);
2064
2073
  let f, d, h;
2065
2074
  if (n(i.options, "ws")) {
2066
2075
  const { ws: y, esmsg: I, uselnternalSignallingServer: C } = i.options;
2067
2076
  f = y, d = I, h = C ?? !1;
2068
2077
  }
2069
2078
  if (n(i.options, "uri") && n(i.options, "app")) {
2070
- const { offsetWidth: y, offsetHeight: I } = c;
2071
- let { uri: C, app: L, token: P } = i.options;
2079
+ const { offsetWidth: y, offsetHeight: I } = l;
2080
+ let { uri: C, app: k, token: P } = i.options;
2072
2081
  C.endsWith("/") || (C += "/");
2073
- const A = P ? `?essstoken=${P}` : "", me = `/${L}/${y ?? 1920}/${I ?? 1080}` + A;
2082
+ const A = P ? `?essstoken=${P}` : "", me = `/${k}/${y ?? 1920}/${I ?? 1080}` + A;
2074
2083
  console.log(`请求信令服务器: ${C}instance${me}`);
2075
2084
  const Er = await v.promise(fetch(`${C}instance${me}`, { method: "GET" })), V = await v.promise(Er.json());
2076
2085
  if (V && V.status !== "ok") {
@@ -2086,12 +2095,12 @@ class go extends m {
2086
2095
  f = Sr, d = Tr, h = Rr ?? !1, r.esssResponse = V;
2087
2096
  }
2088
2097
  }
2089
- const u = this.dv(h ? new so(c, f, d, r) : new Os(c, f, d, r));
2098
+ const u = this.dv(h ? new so(l, f, d, r) : new Os(l, f, d, r));
2090
2099
  this.d(() => r.viewer = void 0), this.d(u.errorEvent.don((y) => {
2091
2100
  const I = `[${y}]:像素流连接错误!`;
2092
2101
  r.setStatus("Error"), r.setStatusLog(I), this._reconnectEvent.emit(u);
2093
2102
  })), await v.promise(new Promise((y) => this.d(u.readyEvent.donce(y)))), r.setStatus("Created"), r.setStatusLog("云渲染视口创建成功!"), s = 0, o && clearTimeout(o), o = void 0;
2094
- const { offsetWidth: g, offsetHeight: w } = c;
2103
+ const { offsetWidth: g, offsetHeight: w } = l;
2095
2104
  u.resize(g * window.devicePixelRatio, w * window.devicePixelRatio), r.viewer = u, this.d(() => r.viewer = void 0), this.dv(new vo(r, u));
2096
2105
  }));
2097
2106
  a.start(), this.d(this._reconnectEvent.don((v) => {
@@ -2102,7 +2111,7 @@ class go extends m {
2102
2111
  r.setStatus("Error"), r.setStatusLog("云渲染视口创建失败!"), console.warn("云渲染视口创建失败!", v), this._reconnectEvent.emit(void 0);
2103
2112
  }));
2104
2113
  } else if (n(i.options, "project")) {
2105
- const c = i, a = c.options.project, v = c.options.baseUrl;
2114
+ const l = i, a = l.options.project, v = l.options.baseUrl;
2106
2115
  r.setStatus("Creating"), r.setStatusLog("下载编译中...");
2107
2116
  const f = this.dv(new uo(t, a, v, r));
2108
2117
  r.viewer = f, this.d(() => r.viewer = void 0);
@@ -2246,7 +2255,7 @@ const K = class K extends Se {
2246
2255
  console.warn("DefaultCameraFlyIn: viewer is undefined");
2247
2256
  return;
2248
2257
  }
2249
- return await qn(this.viewer, t);
2258
+ return await Qn(this.viewer, t);
2250
2259
  }
2251
2260
  async startVoice() {
2252
2261
  if (!this.viewer) {
@@ -2428,8 +2437,8 @@ const K = class K extends Se {
2428
2437
  if (!this.viewer) return;
2429
2438
  let n = t;
2430
2439
  if (t && window.ue && this.container) {
2431
- const [s, o] = t, { x: c, y: a } = this.container.getBoundingClientRect();
2432
- n = [c + s, a + o];
2440
+ const [s, o] = t, { x: l, y: a } = this.container.getBoundingClientRect();
2441
+ n = [l + s, a + o];
2433
2442
  }
2434
2443
  return await cs(this.viewer, n, i, r);
2435
2444
  }
@@ -2442,6 +2451,9 @@ const K = class K extends Se {
2442
2451
  }
2443
2452
  return await us(this.viewer, i);
2444
2453
  }
2454
+ async quickPickPosition(t) {
2455
+ return await this.pickPosition(t);
2456
+ }
2445
2457
  async flyIn(t, i = [0, 0, 0], r = 1, n = "default") {
2446
2458
  if (!this.viewer) return;
2447
2459
  const s = await Pe(this.viewer, void 0, t, i, r, n);
@@ -2462,8 +2474,8 @@ const K = class K extends Se {
2462
2474
  [t[2], t[1], 0]
2463
2475
  ], s = kr(n);
2464
2476
  if (!s) return;
2465
- const { center: o, radius: c } = s, a = {
2466
- distance: i ?? c,
2477
+ const { center: o, radius: l } = s, a = {
2478
+ distance: i ?? l,
2467
2479
  heading: 0,
2468
2480
  pitch: -90,
2469
2481
  flyDuration: r,
@@ -2530,8 +2542,8 @@ const K = class K extends Se {
2530
2542
  */
2531
2543
  async changeToLine(t, i = 10, r = 10, n = !0, s = 10, o = "auto") {
2532
2544
  if (!this.viewer) return;
2533
- const c = { mode: "Line", geoLineStringId: t, speed: i, heightOffset: r, loop: n, turnRateDPS: s, lineMode: o }, a = await H(this.viewer, c);
2534
- return a && !a.error && (this._navigationMode.value = c.mode), a;
2545
+ const l = { mode: "Line", geoLineStringId: t, speed: i, heightOffset: r, loop: n, turnRateDPS: s, lineMode: o }, a = await H(this.viewer, l);
2546
+ return a && !a.error && (this._navigationMode.value = l.mode), a;
2535
2547
  }
2536
2548
  /**
2537
2549
  * 切换导航模式为“UserDefined” 仅UE支持。
@@ -2560,8 +2572,8 @@ const K = class K extends Se {
2560
2572
  orbitPeriod: r,
2561
2573
  heading: n,
2562
2574
  pitch: s
2563
- }, c = await H(this.viewer, o);
2564
- return c && !c.error && (this._navigationMode.value = o.mode), c;
2575
+ }, l = await H(this.viewer, o);
2576
+ return l && !l.error && (this._navigationMode.value = o.mode), l;
2565
2577
  }
2566
2578
  /**
2567
2579
  * 切换导航模式为“Follow”(跟随)跟随模式。 此模式允许视角跟随ES对象。
@@ -2572,8 +2584,8 @@ const K = class K extends Se {
2572
2584
  */
2573
2585
  async changeToFollow(t, i = 0, r = 0, n = -30, s = !0) {
2574
2586
  if (!this.viewer) return;
2575
- const o = { mode: "Follow", objectId: t, distance: i, heading: r, pitch: n, relativeRotation: s }, c = await H(this.viewer, o);
2576
- return c && !c.error && (this._navigationMode.value = o.mode), c;
2587
+ const o = { mode: "Follow", objectId: t, distance: i, heading: r, pitch: n, relativeRotation: s }, l = await H(this.viewer, o);
2588
+ return l && !l.error && (this._navigationMode.value = o.mode), l;
2577
2589
  }
2578
2590
  getFPS() {
2579
2591
  return this._statusInfo.fps;
@@ -2641,8 +2653,8 @@ const K = class K extends Se {
2641
2653
  };
2642
2654
  p(K, "type", K.register("ESUeViewer", K)), p(K, "defaults", { ...Zn });
2643
2655
  let J = K;
2644
- ((l) => {
2645
- l.createDefaultProps = () => ({
2656
+ ((c) => {
2657
+ c.createDefaultProps = () => ({
2646
2658
  ...Se.createDefaultProps(),
2647
2659
  /**
2648
2660
  * 新增UE属性步骤!!
@@ -2668,7 +2680,7 @@ class nt extends G {
2668
2680
  if (i && (e.combinationClass || this.d(this.createdEvent.don(() => {
2669
2681
  const r = this.constructor.propValFuncs, n = e.defaultProps, s = Object.keys(n).filter((d) => r[d] !== null);
2670
2682
  s.push(...this.constructor.forceUeUpdateProps);
2671
- const o = e.constructor.defaults, c = { val: {} }, a = [];
2683
+ const o = e.constructor.defaults, l = { val: {} }, a = [];
2672
2684
  for (let d of s) {
2673
2685
  const h = d + "Changed", u = e[h];
2674
2686
  a.push(u);
@@ -2682,7 +2694,7 @@ class nt extends G {
2682
2694
  console.warn(`UE自动更新的属性,不应该为undefined! 属性名:${d} 对象名:${e.name} 对象id: ${e.id}`);
2683
2695
  return;
2684
2696
  }
2685
- c.val[d] = I;
2697
+ l.val[d] = I;
2686
2698
  };
2687
2699
  w(), this.d(u.don(w));
2688
2700
  }
@@ -2691,9 +2703,9 @@ class nt extends G {
2691
2703
  f: "update",
2692
2704
  p: {
2693
2705
  id: e.id,
2694
- ...c.val
2706
+ ...l.val
2695
2707
  }
2696
- }), c.val = {};
2708
+ }), l.val = {};
2697
2709
  }, f = this.dv(x(...a));
2698
2710
  this.d(f.don(v)), this.d(e.createdEvent.don(v)), this.d(e.flushEvent.don(() => f.flush()));
2699
2711
  })), !e.combinationClass)) {
@@ -2766,32 +2778,32 @@ class E extends _ {
2766
2778
  ));
2767
2779
  this.d(n.don(() => {
2768
2780
  setTimeout(r, 0);
2769
- })), this.d(e.smoothMoveEvent.don((c, a) => {
2770
- Be(i, e.id, c, a);
2771
- })), this.d(e.smoothMoveWithRotationEvent.don((c, a, v) => {
2772
- Le(i, e.id, c, a, v);
2773
- })), this.d(e.smoothMoveOnGroundEvent.don((c, a, v, f) => {
2774
- ke(i, e.id, c, a, f, v);
2775
- })), this.d(e.smoothMoveWithRotationOnGroundEvent.don((c, a, v, f, d) => {
2776
- De(i, e.id, c, a, v, f, d);
2777
- })), this.d(e.smoothMoveKeepPitchEvent.don(async (c, a) => {
2781
+ })), this.d(e.smoothMoveEvent.don((l, a) => {
2782
+ Be(i, e.id, l, a);
2783
+ })), this.d(e.smoothMoveWithRotationEvent.don((l, a, v) => {
2784
+ Le(i, e.id, l, a, v);
2785
+ })), this.d(e.smoothMoveOnGroundEvent.don((l, a, v, f) => {
2786
+ ke(i, e.id, l, a, f, v);
2787
+ })), this.d(e.smoothMoveWithRotationOnGroundEvent.don((l, a, v, f, d) => {
2788
+ De(i, e.id, l, a, v, f, d);
2789
+ })), this.d(e.smoothMoveKeepPitchEvent.don(async (l, a) => {
2778
2790
  const v = await i.callUeFunc({
2779
2791
  f: "SmoothMoveKeepPitch",
2780
2792
  p: {
2781
2793
  id: e.id,
2782
- Destination: c,
2794
+ Destination: l,
2783
2795
  Time: a
2784
2796
  }
2785
2797
  });
2786
2798
  v.error && console.error("SmoothMoveKeepPitch:", v.error);
2787
- })), this.d(e.automaticLandingEvent.don((c) => {
2799
+ })), this.d(e.automaticLandingEvent.don((l) => {
2788
2800
  const a = [e.position[0], e.position[1]];
2789
2801
  t.getHeightByLonLat(e.position[0], e.position[1], "Visibility").then((v) => {
2790
- v !== null && (e.position = [...a, v], e.collision = c);
2802
+ v !== null && (e.position = [...a, v], e.collision = l);
2791
2803
  });
2792
2804
  }));
2793
- const s = async (c, a, v, f) => {
2794
- const { viewer: d } = c;
2805
+ const s = async (l, a, v, f) => {
2806
+ const { viewer: d } = l;
2795
2807
  if (!d) {
2796
2808
  console.error("SmoothMoveRelatively: ueViewer.viewer is undefined");
2797
2809
  return;
@@ -2802,11 +2814,11 @@ class E extends _ {
2802
2814
  });
2803
2815
  return h.error && console.error("SmoothMoveRelatively:", h.error), h;
2804
2816
  };
2805
- this.d(e.smoothMoveRelativelyEvent.don((c, a) => {
2806
- s(t, e.id, c, a);
2817
+ this.d(e.smoothMoveRelativelyEvent.don((l, a) => {
2818
+ s(t, e.id, l, a);
2807
2819
  }));
2808
- const o = async (c, a, v, f, d) => {
2809
- const { viewer: h } = c;
2820
+ const o = async (l, a, v, f, d) => {
2821
+ const { viewer: h } = l;
2810
2822
  if (!h) {
2811
2823
  console.error("SmoothMoveRelativelyWithRotation: ueViewer.viewer is undefined");
2812
2824
  return;
@@ -2817,8 +2829,8 @@ class E extends _ {
2817
2829
  });
2818
2830
  return u.error && console.error("SmoothMoveRelativelyWithRotation:", u.error), u;
2819
2831
  };
2820
- this.d(e.smoothMoveRelativelyWithRotationEvent.don((c, a, v) => {
2821
- o(t, e.id, c, a, v);
2832
+ this.d(e.smoothMoveRelativelyWithRotationEvent.don((l, a, v) => {
2833
+ o(t, e.id, l, a, v);
2822
2834
  }));
2823
2835
  }
2824
2836
  }
@@ -2893,8 +2905,8 @@ class be extends Ir {
2893
2905
  super(e, t), t.viewer;
2894
2906
  }
2895
2907
  }
2896
- const Xe = (l) => {
2897
- switch (l) {
2908
+ const Xe = (c) => {
2909
+ switch (c) {
2898
2910
  case 0:
2899
2911
  return "成功绑定";
2900
2912
  case 1:
@@ -2943,7 +2955,7 @@ const Xe = (l) => {
2943
2955
  materialOverrideMap: t.materialOverrideMap
2944
2956
  }
2945
2957
  });
2946
- }, c = this.dv(x(
2958
+ }, l = this.dv(x(
2947
2959
  t.urlChanged,
2948
2960
  t.showChanged,
2949
2961
  t.flyToParamChanged,
@@ -2961,7 +2973,7 @@ const Xe = (l) => {
2961
2973
  t.colorBlendModeChanged,
2962
2974
  t.materialOverrideMapChanged
2963
2975
  ));
2964
- o(), this.d(c.don(o)), Reflect.has(t, "colorMode") && this.d(t.colorModeChanged.don(() => o()));
2976
+ o(), this.d(l.don(o)), Reflect.has(t, "colorMode") && this.d(t.colorModeChanged.don(() => o()));
2965
2977
  const a = this.dv(M(void 0));
2966
2978
  {
2967
2979
  const f = this.dv(x(
@@ -3069,7 +3081,7 @@ const Xe = (l) => {
3069
3081
  d(), this.d(a.changed.don(d));
3070
3082
  }
3071
3083
  this.d(t.refreshTilesetEvent.don(() => {
3072
- Qn(r, t.id);
3084
+ qn(r, t.id);
3073
3085
  })), this.d(t.flyToEvent.don(async (f, d) => {
3074
3086
  if (!n && !s) return;
3075
3087
  const h = await ye(r, t.id, f);
@@ -3201,8 +3213,8 @@ const Xe = (l) => {
3201
3213
  };
3202
3214
  p(at, "type", at.register("ESUeViewer", cr.type, at));
3203
3215
  let Ae = at;
3204
- const Ye = (l) => {
3205
- switch (l) {
3216
+ const Ye = (c) => {
3217
+ switch (c) {
3206
3218
  case 0:
3207
3219
  return "成功绑定";
3208
3220
  case 1:
@@ -3229,15 +3241,15 @@ const Ye = (l) => {
3229
3241
  {
3230
3242
  const f = () => {
3231
3243
  if (typeof e.url == "string")
3232
- o.value = k.context.getStrFromEnv(e.url);
3244
+ o.value = L.context.getStrFromEnv(e.url);
3233
3245
  else {
3234
3246
  const d = e.url;
3235
- d.url = k.context.getStrFromEnv(d.url), o.value = d;
3247
+ d.url = L.context.getStrFromEnv(d.url), o.value = d;
3236
3248
  }
3237
3249
  };
3238
3250
  f(), this.ad(e.urlChanged.don(f));
3239
3251
  }
3240
- const c = async () => {
3252
+ const l = async () => {
3241
3253
  !r && !n || await i.callUeFunc({
3242
3254
  f: "update",
3243
3255
  p: {
@@ -3274,7 +3286,7 @@ const Ye = (l) => {
3274
3286
  e.opacityChanged,
3275
3287
  e.splitDirectionChanged
3276
3288
  ));
3277
- this.d(a.don(c));
3289
+ this.d(a.don(l));
3278
3290
  const v = async () => {
3279
3291
  const { id: f } = e;
3280
3292
  if (r !== void 0) {
@@ -3359,7 +3371,7 @@ const Ye = (l) => {
3359
3371
  return;
3360
3372
  }
3361
3373
  }
3362
- await h.promise(c());
3374
+ await h.promise(l());
3363
3375
  })), d = async () => {
3364
3376
  f.restart();
3365
3377
  };
@@ -3424,11 +3436,11 @@ p(X, "type", X.register("ESUeViewer", Dr.type, X)), p(X, "forceUeUpdateProps", [
3424
3436
  "url"
3425
3437
  ]), p(X, "propValFuncs", {
3426
3438
  ..._.propValFuncs,
3427
- url: (e) => typeof e == "string" ? k.context.getStrFromEnv(e) : (e.url = k.context.getStrFromEnv(e.url), e),
3439
+ url: (e) => typeof e == "string" ? L.context.getStrFromEnv(e) : (e.url = L.context.getStrFromEnv(e.url), e),
3428
3440
  czmMaxzoom: null,
3429
3441
  czmMinzoom: null
3430
3442
  });
3431
- let Qe = X;
3443
+ let qe = X;
3432
3444
  const lt = class lt extends E {
3433
3445
  constructor(e, t) {
3434
3446
  if (super(e, t), !t.viewer) {
@@ -3438,7 +3450,7 @@ const lt = class lt extends E {
3438
3450
  }
3439
3451
  };
3440
3452
  p(lt, "type", lt.register("ESUeViewer", Br.type, lt));
3441
- let qe = lt;
3453
+ let Qe = lt;
3442
3454
  const ct = class ct extends E {
3443
3455
  constructor(e, t) {
3444
3456
  if (super(e, t), !t.viewer) {
@@ -3522,8 +3534,8 @@ const ft = class ft extends E {
3522
3534
  return;
3523
3535
  }
3524
3536
  this.dispose(e.flyInEvent.don((r, n, s = "default") => {
3525
- const { id: o, duration: c, position: a, rotation: v } = e;
3526
- Pe(i, o, a, v, c ?? r, s);
3537
+ const { id: o, duration: l, position: a, rotation: v } = e;
3538
+ Pe(i, o, a, v, l ?? r, s);
3527
3539
  })), this.dispose(e.resetWithCurrentCameraEvent.don(() => {
3528
3540
  Cr(i, e.id);
3529
3541
  })), this.dispose(e.captureEvent.don((r, n) => {
@@ -3609,10 +3621,10 @@ const Ct = class Ct extends E {
3609
3621
  {
3610
3622
  const o = () => {
3611
3623
  if (typeof e.url == "string")
3612
- r.value = k.context.getStrFromEnv(e.url ?? z.defaults.url);
3624
+ r.value = L.context.getStrFromEnv(e.url ?? z.defaults.url);
3613
3625
  else {
3614
- const c = e.url;
3615
- c.url = k.context.getStrFromEnv(c.url ?? z.defaults.url), r.value = c;
3626
+ const l = e.url;
3627
+ l.url = L.context.getStrFromEnv(l.url ?? z.defaults.url), r.value = l;
3616
3628
  }
3617
3629
  };
3618
3630
  o(), this.ad(e.urlChanged.don(o));
@@ -3759,10 +3771,10 @@ const Lt = class Lt extends _ {
3759
3771
  {
3760
3772
  const o = () => {
3761
3773
  if (typeof e.url == "string")
3762
- r.value = k.context.getStrFromEnv(e.url);
3774
+ r.value = L.context.getStrFromEnv(e.url);
3763
3775
  else {
3764
- const c = e.url;
3765
- c.url = k.context.getStrFromEnv(c.url), r.value = c;
3776
+ const l = e.url;
3777
+ l.url = L.context.getStrFromEnv(l.url), r.value = l;
3766
3778
  }
3767
3779
  };
3768
3780
  o(), this.ad(e.urlChanged.don(o));
@@ -3813,33 +3825,33 @@ class wo extends m {
3813
3825
  console.warn("viewer is undefined!");
3814
3826
  return;
3815
3827
  }
3816
- const n = this.disposeVar(new ur(`${t.id}_ESTextLabel`));
3817
- t.mainClass = n, i.add(n), this.dispose(() => i.delete(n)), n.show = !1, this.dispose(R([n, "position"], [t, "position"])), this.dispose(R([n, "rotation"], [t, "rotation"])), this.dispose(R([n, "flyToParam"], [t, "flyToParam"])), this.dispose(R([n, "flyInParam"], [t, "flyInParam"])), this.dispose(t.calcFlyToParamEvent.disposableOn(() => {
3828
+ const n = this.disposeVar(new ur());
3829
+ n.parentID = t.id, t.mainClass = n, i.add(n), this.dispose(() => i.delete(n)), n.show = !1, this.dispose(R([n, "position"], [t, "position"])), this.dispose(R([n, "rotation"], [t, "rotation"])), this.dispose(R([n, "flyToParam"], [t, "flyToParam"])), this.dispose(R([n, "flyInParam"], [t, "flyInParam"])), this.dispose(t.calcFlyToParamEvent.disposableOn(() => {
3818
3830
  st(r, n.id);
3819
3831
  })), this.dispose(t.calcFlyInParamEvent.disposableOn(async () => {
3820
3832
  if (!i.actived) return;
3821
- const c = await i.getCurrentCameraInfo();
3822
- if (!c) return;
3823
- const { position: a, rotation: v } = c;
3833
+ const l = await i.getCurrentCameraInfo();
3834
+ if (!l) return;
3835
+ const { position: a, rotation: v } = l;
3824
3836
  t.flyInParam = { position: a, rotation: v, flyDuration: 1 };
3825
- })), this.dispose(t.smoothMoveEvent.disposableOn((c, a) => {
3826
- Be(r, n.id, c, a);
3827
- })), this.dispose(t.smoothMoveWithRotationEvent.disposableOn((c, a, v) => {
3828
- Le(r, n.id, c, a, v);
3829
- })), this.dispose(t.smoothMoveOnGroundEvent.disposableOn((c, a, v, f) => {
3830
- ke(r, n.id, c, a, f, v);
3831
- })), this.dispose(t.smoothMoveWithRotationOnGroundEvent.disposableOn((c, a, v, f, d) => {
3832
- De(r, n.id, c, a, v, f, d);
3833
- })), this.dispose(t.flyToEvent.disposableOn((c, a) => {
3834
- n.flyTo(c);
3835
- })), this.dispose(t.flyInEvent.don((c) => {
3836
- n.flyIn(c);
3837
+ })), this.dispose(t.smoothMoveEvent.disposableOn((l, a) => {
3838
+ Be(r, n.id, l, a);
3839
+ })), this.dispose(t.smoothMoveWithRotationEvent.disposableOn((l, a, v) => {
3840
+ Le(r, n.id, l, a, v);
3841
+ })), this.dispose(t.smoothMoveOnGroundEvent.disposableOn((l, a, v, f) => {
3842
+ ke(r, n.id, l, a, f, v);
3843
+ })), this.dispose(t.smoothMoveWithRotationOnGroundEvent.disposableOn((l, a, v, f, d) => {
3844
+ De(r, n.id, l, a, v, f, d);
3845
+ })), this.dispose(t.flyToEvent.disposableOn((l, a) => {
3846
+ n.flyTo(l);
3847
+ })), this.dispose(t.flyInEvent.don((l) => {
3848
+ n.flyIn(l);
3837
3849
  }));
3838
- const s = this._screenPosition, o = this.disposeVar(new ze(`${t.id}_ESCustomDiv`));
3839
- i.add(o), this.dispose(() => i.delete(o)), this.dispose(R([o, "allowPicking"], [t, "allowPicking"]));
3850
+ const s = this._screenPosition, o = this.disposeVar(new ze());
3851
+ o.parentID = t.id, i.add(o), this.dispose(() => i.delete(o)), this.dispose(R([o, "allowPicking"], [t, "allowPicking"]));
3840
3852
  {
3841
- const c = this.disposeVar(He()), a = () => {
3842
- t.show ? c.restart(void 0, async () => {
3853
+ const l = this.disposeVar(He()), a = () => {
3854
+ t.show ? l.restart(void 0, async () => {
3843
3855
  if (!t.position) return;
3844
3856
  const v = await i.lonLatAltToScreenPosition(t.position);
3845
3857
  if (!v)
@@ -3848,12 +3860,12 @@ class wo extends m {
3848
3860
  const [f, d] = v;
3849
3861
  f === -1 && d === -1 ? this._screenPosition.value = void 0 : this._screenPosition.value = [f, d];
3850
3862
  }
3851
- }) : c.cancel();
3863
+ }) : l.cancel();
3852
3864
  };
3853
3865
  a(), this.dispose(t.showChanged.disposableOn(a));
3854
3866
  }
3855
3867
  {
3856
- const c = () => class extends m {
3868
+ const l = () => class extends m {
3857
3869
  constructor(d, h, u) {
3858
3870
  if (super(), this._subContainer = d, !u) return;
3859
3871
  if (!t.instanceClass)
@@ -3904,7 +3916,7 @@ class wo extends m {
3904
3916
  }
3905
3917
  }, a = () => {
3906
3918
  try {
3907
- t.instanceClass ? o.instanceClass = c() : o.instanceClass = void 0;
3919
+ t.instanceClass ? o.instanceClass = l() : o.instanceClass = void 0;
3908
3920
  } catch (f) {
3909
3921
  console.error(f);
3910
3922
  }
@@ -3936,7 +3948,7 @@ class yo extends m {
3936
3948
  super();
3937
3949
  p(this, "_imageLabel");
3938
3950
  p(this, "_hasClassDivAndPos", {});
3939
- this._imageLabel = this.dv(new hr(`${t.id}_ESImageLabel`));
3951
+ this._imageLabel = this.dv(new hr()), this._imageLabel.isHoverZoom = !1, this._imageLabel.parentID = t.id;
3940
3952
  const r = i.viewer;
3941
3953
  if (!r) {
3942
3954
  console.warn("viewer is undefined!");
@@ -3985,11 +3997,11 @@ class yo extends m {
3985
3997
  }
3986
3998
  };
3987
3999
  o();
3988
- const c = this.dv(x(
4000
+ const l = this.dv(x(
3989
4001
  t.instanceClassChanged,
3990
4002
  t.opacityChanged
3991
4003
  ));
3992
- this.d(c.don(o));
4004
+ this.d(l.don(o));
3993
4005
  }
3994
4006
  {
3995
4007
  const s = () => {
@@ -4001,32 +4013,32 @@ class yo extends m {
4001
4013
  n.automaticLanding();
4002
4014
  })), this.d(i.widgetEvent.don((s) => {
4003
4015
  if (s.objId !== this._imageLabel.id) return;
4004
- const { type: o, add: c } = s;
4005
- if (o === "leftClick" && c) {
4006
- const a = (c == null ? void 0 : c.classNames) ?? [], v = Object.keys(this._hasClassDivAndPos);
4016
+ const { type: o, add: l } = s;
4017
+ if (o === "leftClick" && l) {
4018
+ const a = (l == null ? void 0 : l.classNames) ?? [], v = Object.keys(this._hasClassDivAndPos);
4007
4019
  for (let f = 0; f < v.length; f++) {
4008
4020
  const d = v[f];
4009
4021
  let h = this._hasClassDivAndPos[d];
4010
- c && c.mouseRelativePos && c.mouseRelativePos[0] >= h[0] && c.mouseRelativePos[0] <= h[2] && c.mouseRelativePos[1] >= h[1] && c.mouseRelativePos[1] <= h[3] && a.push(d);
4022
+ l && l.mouseRelativePos && l.mouseRelativePos[0] >= h[0] && l.mouseRelativePos[0] <= h[2] && l.mouseRelativePos[1] >= h[1] && l.mouseRelativePos[1] <= h[3] && a.push(d);
4011
4023
  }
4012
- c.classNames = a;
4024
+ l.classNames = a;
4013
4025
  }
4014
- t.widgetEvent.emit({ type: o, add: c });
4026
+ t.widgetEvent.emit({ type: o, add: l });
4015
4027
  })), this.d(t.calcFlyToParamEvent.don(() => {
4016
4028
  st(r, n.id);
4017
4029
  })), this.d(t.calcFlyInParamEvent.don(() => {
4018
4030
  const s = i.getCurrentCameraInfo();
4019
4031
  if (!s) return;
4020
- const { position: o, rotation: c } = s;
4021
- t.flyInParam = { position: o, rotation: c, flyDuration: 1 };
4032
+ const { position: o, rotation: l } = s;
4033
+ t.flyInParam = { position: o, rotation: l, flyDuration: 1 };
4022
4034
  })), this.d(t.smoothMoveEvent.don((s, o) => {
4023
4035
  Be(r, n.id, s, o);
4024
- })), this.d(t.smoothMoveWithRotationEvent.don((s, o, c) => {
4025
- Le(r, n.id, s, o, c);
4026
- })), this.d(t.smoothMoveOnGroundEvent.don((s, o, c, a) => {
4027
- ke(r, n.id, s, o, a, c);
4028
- })), this.d(t.smoothMoveWithRotationOnGroundEvent.don((s, o, c, a, v) => {
4029
- De(r, n.id, s, o, c, a, v);
4036
+ })), this.d(t.smoothMoveWithRotationEvent.don((s, o, l) => {
4037
+ Le(r, n.id, s, o, l);
4038
+ })), this.d(t.smoothMoveOnGroundEvent.don((s, o, l, a) => {
4039
+ ke(r, n.id, s, o, a, l);
4040
+ })), this.d(t.smoothMoveWithRotationOnGroundEvent.don((s, o, l, a, v) => {
4041
+ De(r, n.id, s, o, l, a, v);
4030
4042
  })), this.d(t.flyToEvent.don((s, o) => {
4031
4043
  n.flyTo(s);
4032
4044
  })), this.d(t.flyInEvent.don((s) => {
@@ -4074,7 +4086,7 @@ const Bt = class Bt extends D {
4074
4086
  }
4075
4087
  }
4076
4088
  };
4077
- p(Bt, "type", Bt.register("ESUeViewer", Qr.type, Bt));
4089
+ p(Bt, "type", Bt.register("ESUeViewer", qr.type, Bt));
4078
4090
  let Ne = Bt;
4079
4091
  const _t = class _t extends D {
4080
4092
  constructor(e, t) {
@@ -4084,7 +4096,7 @@ const _t = class _t extends D {
4084
4096
  }
4085
4097
  }
4086
4098
  };
4087
- p(_t, "type", _t.register("ESUeViewer", qr.type, _t));
4099
+ p(_t, "type", _t.register("ESUeViewer", Qr.type, _t));
4088
4100
  let wi = _t;
4089
4101
  const Mt = class Mt extends $ {
4090
4102
  constructor(e, t) {
@@ -4118,7 +4130,7 @@ p(Y, "forceUeUpdateProps", [
4118
4130
  "url"
4119
4131
  ]), p(Y, "propValFuncs", {
4120
4132
  ...E.propValFuncs,
4121
- url: (e) => typeof e == "string" ? k.context.getStrFromEnv(Ie(e)) : (e.url = k.context.getStrFromEnv(Ie(e.url)), e),
4133
+ url: (e) => typeof e == "string" ? L.context.getStrFromEnv(Ie(e)) : (e.url = L.context.getStrFromEnv(Ie(e.url)), e),
4122
4134
  czmMaximumScale: null,
4123
4135
  czmMinimumPixelSize: null,
4124
4136
  czmNativeScale: null,
@@ -4141,7 +4153,7 @@ const Wt = class Wt extends E {
4141
4153
  console.warn("viewer is undefined!");
4142
4154
  return;
4143
4155
  }
4144
- const r = async (s, o, c, a) => {
4156
+ const r = async (s, o, l, a) => {
4145
4157
  const { viewer: v } = s;
4146
4158
  if (!v) {
4147
4159
  console.error("AIMoveTo: ueViewer.viewer is undefined");
@@ -4149,7 +4161,7 @@ const Wt = class Wt extends E {
4149
4161
  }
4150
4162
  const f = await v.callUeFunc({
4151
4163
  f: "AIMoveTo",
4152
- p: { id: o, Destination: c, Time: a }
4164
+ p: { id: o, Destination: l, Time: a }
4153
4165
  });
4154
4166
  return f.error && console.error("AIMoveTo:", f.error), f;
4155
4167
  };
@@ -4157,12 +4169,12 @@ const Wt = class Wt extends E {
4157
4169
  r(t, e.id, s, o);
4158
4170
  }));
4159
4171
  const n = async (s, o) => {
4160
- const { viewer: c } = s;
4161
- if (!c) {
4172
+ const { viewer: l } = s;
4173
+ if (!l) {
4162
4174
  console.error("StopAIMove: ueViewer.viewer is undefined");
4163
4175
  return;
4164
4176
  }
4165
- const a = await c.callUeFunc({
4177
+ const a = await l.callUeFunc({
4166
4178
  f: "StopAIMove",
4167
4179
  p: { id: o }
4168
4180
  });
@@ -4189,7 +4201,7 @@ p(Z, "type", Z.register("ESUeViewer", hr.type, Z)), p(Z, "forceUeUpdateProps", [
4189
4201
  "url"
4190
4202
  ]), p(Z, "propValFuncs", {
4191
4203
  ...N.propValFuncs,
4192
- url: (e) => typeof e == "string" ? k.context.getStrFromEnv(Ie(e)) : (e.url = k.context.getStrFromEnv(Ie(e.url)), e)
4204
+ url: (e) => typeof e == "string" ? L.context.getStrFromEnv(Ie(e)) : (e.url = L.context.getStrFromEnv(Ie(e.url)), e)
4193
4205
  });
4194
4206
  let Ii = Z;
4195
4207
  const At = class At extends E {
@@ -4284,8 +4296,8 @@ const Kt = class Kt extends Ae {
4284
4296
  const n = typeof r == "number" ? r.toString() : r;
4285
4297
  es(i, e.id, n);
4286
4298
  })), this.d(e.highlightFeatureAndFlyToEvent.don((r, n, s, o) => {
4287
- const c = typeof r == "number" ? r.toString() : r;
4288
- is(i, e.id, c, o ?? 1);
4299
+ const l = typeof r == "number" ? r.toString() : r;
4300
+ is(i, e.id, l, o ?? 1);
4289
4301
  })), this.d(e.setLayerVisibleEvent.don((r, n) => {
4290
4302
  let s = "";
4291
4303
  typeof n != "string" ? s = JSON.stringify(n) : s = n, rs(i, e.id, s);
@@ -4340,7 +4352,7 @@ const Zt = class Zt extends E {
4340
4352
  };
4341
4353
  p(Zt, "type", Zt.register("ESUeViewer", pn.type, Zt));
4342
4354
  let Mi = Zt;
4343
- const Q = class Q extends _ {
4355
+ const q = class q extends _ {
4344
4356
  constructor(e, t) {
4345
4357
  if (super(e, t), !t.viewer) {
4346
4358
  console.warn("viewer is undefined!");
@@ -4348,15 +4360,15 @@ const Q = class Q extends _ {
4348
4360
  }
4349
4361
  }
4350
4362
  };
4351
- p(Q, "type", Q.register("ESUeViewer", vn.type, Q)), p(Q, "forceUeUpdateProps", [
4363
+ p(q, "type", q.register("ESUeViewer", vn.type, q)), p(q, "forceUeUpdateProps", [
4352
4364
  ..._.forceUeUpdateProps,
4353
4365
  "url"
4354
- ]), p(Q, "propValFuncs", {
4366
+ ]), p(q, "propValFuncs", {
4355
4367
  ..._.propValFuncs,
4356
- url: (e) => typeof e == "string" ? k.context.getStrFromEnv(e) : (e.url = k.context.getStrFromEnv(e.url), e)
4368
+ url: (e) => typeof e == "string" ? L.context.getStrFromEnv(e) : (e.url = L.context.getStrFromEnv(e.url), e)
4357
4369
  });
4358
- let $i = Q;
4359
- const Qt = class Qt extends D {
4370
+ let $i = q;
4371
+ const qt = class qt extends D {
4360
4372
  constructor(e, t) {
4361
4373
  if (super(e, t), !t.viewer) {
4362
4374
  console.warn("viewer is undefined!");
@@ -4364,9 +4376,9 @@ const Qt = class Qt extends D {
4364
4376
  }
4365
4377
  }
4366
4378
  };
4367
- p(Qt, "type", Qt.register("ESUeViewer", fn.type, Qt));
4368
- let Wi = Qt;
4369
- const qt = class qt extends $ {
4379
+ p(qt, "type", qt.register("ESUeViewer", fn.type, qt));
4380
+ let Wi = qt;
4381
+ const Qt = class Qt extends $ {
4370
4382
  constructor(e, t) {
4371
4383
  if (super(e, t), !t.viewer) {
4372
4384
  console.warn("viewer is undefined!");
@@ -4374,8 +4386,8 @@ const qt = class qt extends $ {
4374
4386
  }
4375
4387
  }
4376
4388
  };
4377
- p(qt, "type", qt.register("ESUeViewer", gn.type, qt));
4378
- let Ai = qt;
4389
+ p(Qt, "type", Qt.register("ESUeViewer", gn.type, Qt));
4390
+ let Ai = Qt;
4379
4391
  const Vt = class Vt extends $ {
4380
4392
  constructor(e, t) {
4381
4393
  if (super(e, t), !t.viewer) {
@@ -4402,36 +4414,36 @@ const Ot = class Ot extends nt {
4402
4414
  {
4403
4415
  const r = (o) => {
4404
4416
  o = o.toLocaleLowerCase();
4405
- let c = [255, 255, 255, 1];
4417
+ let l = [255, 255, 255, 1];
4406
4418
  if (o.startsWith("#")) {
4407
4419
  if (o.length === 4) {
4408
4420
  let a = parseInt(o[1] + o[1], 16), v = parseInt(o[2] + o[2], 16), f = parseInt(o[3] + o[3], 16);
4409
- c = [a, v, f, 1];
4421
+ l = [a, v, f, 1];
4410
4422
  } else if (o.length === 7) {
4411
4423
  let a = parseInt(o.substring(1, 3), 16), v = parseInt(o.substring(3, 5), 16), f = parseInt(o.substring(5, 7), 16);
4412
- c = [a, v, f, 1];
4424
+ l = [a, v, f, 1];
4413
4425
  }
4414
4426
  } else if (o.startsWith("rgba")) {
4415
4427
  let a = o.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)$/);
4416
4428
  if (a) {
4417
4429
  let v = parseInt(a[1]), f = parseInt(a[2]), d = parseInt(a[3]), h = parseFloat(a[4]);
4418
- c = [v, f, d, h];
4430
+ l = [v, f, d, h];
4419
4431
  }
4420
4432
  } else if (o.startsWith("rgb")) {
4421
4433
  let a = o.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/);
4422
4434
  if (a) {
4423
4435
  let v = parseInt(a[1]), f = parseInt(a[2]), d = parseInt(a[3]);
4424
- c = [v, f, d, 1];
4436
+ l = [v, f, d, 1];
4425
4437
  }
4426
4438
  } else
4427
4439
  console.error("color类型只能为#rrggbb、#rgb、rgba(r,g,b,a)、rgb(r,g,b)");
4428
- return [c[0] / 255, c[1] / 255, c[2] / 255, c[3]];
4440
+ return [l[0] / 255, l[1] / 255, l[2] / 255, l[3]];
4429
4441
  }, n = () => {
4430
4442
  const o = e.layerConfig;
4431
4443
  if (!o) return;
4432
- const c = [];
4444
+ const l = [];
4433
4445
  o.forEach((a) => {
4434
- o.filter((f) => f.dataset == a.dataset).length == 1 ? c.push({
4446
+ o.filter((f) => f.dataset == a.dataset).length == 1 ? l.push({
4435
4447
  condition: [{
4436
4448
  field: "dataset",
4437
4449
  op: "==",
@@ -4439,7 +4451,7 @@ const Ot = class Ot extends nt {
4439
4451
  }],
4440
4452
  color: r(a.value.color ?? "rgb(255,255,255)"),
4441
4453
  show: a.value.visible
4442
- }) : c.push({
4454
+ }) : l.push({
4443
4455
  condition: [{
4444
4456
  field: "layer",
4445
4457
  op: "==",
@@ -4452,7 +4464,7 @@ const Ot = class Ot extends nt {
4452
4464
  color: r(a.value.color ?? "rgb(255,255,255)"),
4453
4465
  show: a.value.visible
4454
4466
  });
4455
- }), e.setFeatureStyle(c);
4467
+ }), e.setFeatureStyle(l);
4456
4468
  };
4457
4469
  n();
4458
4470
  const s = this.dv(x(
@@ -4574,8 +4586,8 @@ p(tt, "type", tt.register("ESUeViewer", Pn.type, tt)), p(tt, "propValFuncs", {
4574
4586
  info: (e) => JSON.stringify(e ?? {})
4575
4587
  });
4576
4588
  let Ki = tt;
4577
- const Xi = (l) => {
4578
- switch (l) {
4589
+ const Xi = (c) => {
4590
+ switch (c) {
4579
4591
  case 0:
4580
4592
  return "成功绑定";
4581
4593
  case 1:
@@ -4589,8 +4601,8 @@ const Xi = (l) => {
4589
4601
  default:
4590
4602
  return "未知错误";
4591
4603
  }
4592
- }, mo = (l) => {
4593
- switch (l) {
4604
+ }, mo = (c) => {
4605
+ switch (c) {
4594
4606
  case 0:
4595
4607
  return "创建成功";
4596
4608
  case 1:
@@ -4643,7 +4655,7 @@ const Xi = (l) => {
4643
4655
  ));
4644
4656
  this.d(n.don(r)), this.d(e.flushEvent.don(() => n.flush()));
4645
4657
  let s, o;
4646
- const c = async () => {
4658
+ const l = async () => {
4647
4659
  a() || (await i.callUeFunc({
4648
4660
  f: "update",
4649
4661
  p: {
@@ -4727,13 +4739,13 @@ const Xi = (l) => {
4727
4739
  return;
4728
4740
  }
4729
4741
  }
4730
- await u.promise(r()), await u.promise(c());
4742
+ await u.promise(r()), await u.promise(l());
4731
4743
  })), h = async () => {
4732
4744
  d.restart();
4733
4745
  };
4734
4746
  h(), this.d(f.changed.don(h));
4735
4747
  }
4736
- this.d(e.positionChanged.don(c)), this.d(e.callFunctionEvent.don(async (d, h) => {
4748
+ this.d(e.positionChanged.don(l)), this.d(e.callFunctionEvent.don(async (d, h) => {
4737
4749
  if (a()) {
4738
4750
  e.__callFunctionResultEvent.emit(void 0);
4739
4751
  return;
@@ -4796,7 +4808,7 @@ const oe = class oe extends E {
4796
4808
  }
4797
4809
  };
4798
4810
  p(oe, "type", oe.register("ESUeViewer", Dn.type, oe));
4799
- let Qi = oe;
4811
+ let qi = oe;
4800
4812
  const ae = class ae extends D {
4801
4813
  constructor(e, t) {
4802
4814
  if (super(e, t), !t.viewer) {
@@ -4806,7 +4818,7 @@ const ae = class ae extends D {
4806
4818
  }
4807
4819
  };
4808
4820
  p(ae, "type", ae.register("ESUeViewer", Bn.type, ae));
4809
- let qi = ae;
4821
+ let Qi = ae;
4810
4822
  const de = class de extends $ {
4811
4823
  constructor(e, t) {
4812
4824
  super(e, t);
@@ -4862,7 +4874,7 @@ const le = class le extends G {
4862
4874
  };
4863
4875
  p(le, "type", le.register("ESUeViewer", $n.type, le));
4864
4876
  let ji = le;
4865
- k.context.getStrFromEnv(j.defaults.imgUrl);
4877
+ L.context.getStrFromEnv(j.defaults.imgUrl);
4866
4878
  const ce = class ce extends G {
4867
4879
  constructor(e, t) {
4868
4880
  if (super(e, t), !t.viewer) {
@@ -4874,7 +4886,7 @@ const ce = class ce extends G {
4874
4886
  // subContainer是外部视口的div容器,可以在这里创建自己需要的DOM元素
4875
4887
  // customDiv指向当前的CustomDiv场景对象
4876
4888
  // viewer指定当前的视口
4877
- constructor(s, o, c) {
4889
+ constructor(s, o, l) {
4878
4890
  super(), this._subContainer = s;
4879
4891
  const a = document.createElement("div");
4880
4892
  this._subContainer.appendChild(a), this.dispose(() => this._subContainer.removeChild(a));
@@ -4927,7 +4939,7 @@ const ce = class ce extends G {
4927
4939
  };
4928
4940
  p(ce, "type", ce.register("ESUeViewer", j.type, ce));
4929
4941
  let tr = ce;
4930
- const q = class q extends D {
4942
+ const Q = class Q extends D {
4931
4943
  constructor(e, t) {
4932
4944
  super(e, t);
4933
4945
  const i = t.viewer;
@@ -4950,15 +4962,15 @@ const q = class q extends D {
4950
4962
  }
4951
4963
  }
4952
4964
  };
4953
- p(q, "type", q.register("ESUeViewer", Wn.type, q)), p(q, "forceUeUpdateProps", [
4965
+ p(Q, "type", Q.register("ESUeViewer", Wn.type, Q)), p(Q, "forceUeUpdateProps", [
4954
4966
  ...D.forceUeUpdateProps
4955
- ]), p(q, "propValFuncs", {
4967
+ ]), p(Q, "propValFuncs", {
4956
4968
  ...D.propValFuncs,
4957
4969
  materialMode: null
4958
4970
  });
4959
- let er = q;
4960
- async function Co(l) {
4961
- navigator.clipboard.writeText(l).then(function() {
4971
+ let er = Q;
4972
+ async function Co(c) {
4973
+ navigator.clipboard.writeText(c).then(function() {
4962
4974
  console.log("复制成功");
4963
4975
  }, function(e) {
4964
4976
  console.log("复制失败");
@@ -4972,8 +4984,8 @@ const ue = class ue extends G {
4972
4984
  }
4973
4985
  const r = this.disposeVar(new ze());
4974
4986
  t.add(r), this.dispose(() => t.delete(r)), r.instanceClass = class extends m {
4975
- constructor(s, o, c) {
4976
- if (super(), this._subContainer = s, !c || !(c instanceof J)) return;
4987
+ constructor(s, o, l) {
4988
+ if (super(), this._subContainer = s, !l || !(l instanceof J)) return;
4977
4989
  const a = document.createElement("div");
4978
4990
  this._subContainer.appendChild(a), this.dispose(() => this._subContainer.removeChild(a)), a.style.width = "100%", a.style.position = "absolute", a.style.height = `${W.defaults.height}px`, a.style.left = "0", a.style.bottom = "0", a.style.color = "#fff", a.style.padding = "0 20px 0 0", a.style.boxSizing = "border-box", a.style.lineHeight = `${W.defaults.height}px`, a.style.zIndex = "100", a.style.alignContent = "center", a.style.justifyContent = "space-between";
4979
4991
  const v = document.createElement("span");
@@ -5005,7 +5017,7 @@ const ue = class ue extends G {
5005
5017
  };
5006
5018
  this.dispose(e.bgColorChanged.disposableOn(u)), u();
5007
5019
  }
5008
- c.getVersion().then((u) => {
5020
+ l.getVersion().then((u) => {
5009
5021
  u && (h.innerText = `Ue 版本 : ${u[0]} `);
5010
5022
  }).catch((u) => {
5011
5023
  console.log(u);
@@ -5013,11 +5025,11 @@ const ue = class ue extends G {
5013
5025
  {
5014
5026
  const u = () => {
5015
5027
  let y = "", I = "";
5016
- y += `帧率:${c.getFPS().toFixed(0)}FPS`, f.innerText = y;
5028
+ y += `帧率:${l.getFPS().toFixed(0)}FPS`, f.innerText = y;
5017
5029
  const C = t.getCurrentCameraInfo();
5018
- y += ` 经度: ${C.position[0].toFixed(5)}° 纬度: ${C.position[1].toFixed(5)}° 高度: ${C.position[2].toFixed(2)}米 偏航角: ${C.rotation[0].toFixed(2)}° 俯仰角: ${C.rotation[1].toFixed(2)}° 翻滚角:${C.rotation[2].toFixed(2)}° `, f.innerText = y, t.pick().then((L) => {
5019
- if (L) {
5020
- const { pickResult: P } = L;
5030
+ y += ` 经度: ${C.position[0].toFixed(5)}° 纬度: ${C.position[1].toFixed(5)}° 高度: ${C.position[2].toFixed(2)}米 偏航角: ${C.rotation[0].toFixed(2)}° 俯仰角: ${C.rotation[1].toFixed(2)}° 翻滚角:${C.rotation[2].toFixed(2)}° `, f.innerText = y, t.pick().then((k) => {
5031
+ if (k) {
5032
+ const { pickResult: P } = k;
5021
5033
  if (P && P.position) {
5022
5034
  const { position: A } = P;
5023
5035
  I += `鼠标位置:${A[0].toFixed(5)}° ${A[1].toFixed(5)}° ${A[2].toFixed(2)}m`;
@@ -5025,8 +5037,8 @@ const ue = class ue extends G {
5025
5037
  I += "暂时无法获取鼠标位置...";
5026
5038
  d.innerText = I;
5027
5039
  }
5028
- }).catch((L) => {
5029
- console.log(L);
5040
+ }).catch((k) => {
5041
+ console.log(k);
5030
5042
  });
5031
5043
  };
5032
5044
  let g;
@@ -5056,12 +5068,12 @@ let rr = he;
5056
5068
  const pe = class pe extends nt {
5057
5069
  constructor(t, i) {
5058
5070
  super(t, i);
5059
- p(this, "_es3DTileset", this.dv(new cr(`${this.sceneObject.id}_ES3DTileset`)));
5071
+ p(this, "_es3DTileset", this.dv(new cr()));
5060
5072
  if (!i.viewer) {
5061
5073
  console.warn("viewer is undefined!");
5062
5074
  return;
5063
5075
  }
5064
- t.mainClass = this._es3DTileset;
5076
+ this.es3DTileset.parentID = t.id, t.mainClass = this._es3DTileset;
5065
5077
  {
5066
5078
  const n = this._es3DTileset;
5067
5079
  i.add(n), this.dispose(() => i.delete(n)), this.d(F([n, "allowPicking"], [t, "allowPicking"])), this.d(F([n, "collision"], [t, "collision"])), this.d(R([n, "flyToParam"], [t, "flyToParam"])), this.d(R([n, "flyToParam"], [t, "flyToParam"])), this.d(F([n, "url"], [t, "url"])), this.d(F([n, "actorTag"], [t, "actorTag"])), this.d(F([n, "materialMode"], [t, "materialMode"])), this.d(F([n, "highlight"], [t, "highlight"])), this.d(F([n, "maximumScreenSpaceError"], [t, "maximumScreenSpaceError"])), this.d(F([n, "highlightID"], [t, "highlightID"])), this.d(F([n, "highlightColor"], [t, "highlightColor"])), this.d(R([n, "offset"], [t, "offset"])), this.d(R([n, "rotation"], [t, "rotation"])), this.d(F([n, "czmImageBasedLightingFactor"], [t, "czmImageBasedLightingFactor"])), this.d(F([n, "czmLuminanceAtZenith"], [t, "czmLuminanceAtZenith"])), this.d(F([n, "czmMaximumMemoryUsage"], [t, "czmMaximumMemoryUsage"])), this.d(F([n, "czmClassificationType"], [t, "czmClassificationType"])), this.d(F([n, "czmStyleJson"], [t, "czmStyleJson"])), this.d(F([n, "czmBackFaceCulling"], [t, "czmBackFaceCulling"])), this.d(F([n, "czmDebugShowBoundingVolume"], [t, "czmDebugShowBoundingVolume"])), this.d(F([n, "czmDebugShowContentBoundingVolume"], [t, "czmDebugShowContentBoundingVolume"])), this.d(F([n, "colorBlendMode"], [t, "colorBlendMode"])), this.d(F([n, "cacheBytes"], [t, "cacheBytes"])), this.d(F([n, "clippingPlaneEnabled"], [t, "clippingPlaneEnabled"])), this.d(F([n, "unionClippingRegions"], [t, "unionClippingRegions"])), this.d(F([n, "clippingPlaneEdgeColor"], [t, "clippingPlaneEdgeColor"])), this.d(F([n, "clippingPlaneEdgeWidth"], [t, "clippingPlaneEdgeWidth"])), this.d(F([n, "materialParams"], [t, "materialParams"])), this.d(R([n, "supportEdit"], [t, "supportEdit"])), this.d(R([n, "clippingPlanesId"], [t, "clippingPlanesId"])), this.d(R([n, "clippingPlaneIds"], [t, "clippingPlaneIds"])), this.d(R([n, "flattenedPlaneId"], [t, "flattenedPlaneId"])), this.d(R([n, "flattenedPlaneEnabled"], [t, "flattenedPlaneEnabled"])), this.d(R([n, "clippingPlaneId"], [t, "clippingPlaneId"])), this.d(R([n, "excavateId"], [t, "excavateId"]));
@@ -5189,9 +5201,9 @@ const we = class we extends D {
5189
5201
  p(we, "type", we.register("ESUeViewer", Hn.type, we));
5190
5202
  let dr = we, $e;
5191
5203
  try {
5192
- const l = "earthsdk3-ue", e = "3.2.0-beta.4", t = "2025-06-24T06:51:18.000Z", i = "北京西部世界科技有限公司", r = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", n = "563238264a71e3654ec8b00283ca47be03efd7fc", o = ((Date.now() - 1750747878e3) / 36e5).toFixed(1), c = `%c🌏 ${l}%c ${e}.${n.slice(0, 8)}.${t} (距今${o}个小时)
5204
+ const c = "earthsdk3-ue", e = "3.2.0-beta.5", t = "2025-07-04T10:20:51.000Z", i = "北京西部世界科技有限公司", r = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", n = "a72307dee56578eb83034b271b346e609f39af59", o = ((Date.now() - 1751624451e3) / 36e5).toFixed(1), l = `%c🌏 ${c}%c ${e}.${n.slice(0, 8)}.${t} (距今${o}个小时)
5193
5205
  %c${r ? r + `
5194
- ` : ""}当前网站正在使用${l},此软件版权归${i}所有
5206
+ ` : ""}当前网站正在使用${c},此软件版权归${i}所有
5195
5207
  `;
5196
5208
  $e = Object.freeze({
5197
5209
  // @ts-ignore
@@ -5203,15 +5215,15 @@ try {
5203
5215
  },
5204
5216
  // @ts-ignore
5205
5217
  get gituri() {
5206
- return GITURI_ && GITURI_.replace("${commitId}", "563238264a71e3654ec8b00283ca47be03efd7fc");
5218
+ return GITURI_ && GITURI_.replace("${commitId}", "a72307dee56578eb83034b271b346e609f39af59");
5207
5219
  },
5208
5220
  // @ts-ignore
5209
5221
  get info() {
5210
- return c;
5222
+ return l;
5211
5223
  },
5212
5224
  // @ts-ignore
5213
5225
  get date() {
5214
- return "2025-06-24T06:51:18.000Z";
5226
+ return "2025-07-04T10:20:51.000Z";
5215
5227
  },
5216
5228
  // @ts-ignore
5217
5229
  get author() {
@@ -5219,7 +5231,7 @@ try {
5219
5231
  },
5220
5232
  // @ts-ignore
5221
5233
  get version() {
5222
- return "3.2.0-beta.4";
5234
+ return "3.2.0-beta.5";
5223
5235
  },
5224
5236
  // @ts-ignore
5225
5237
  get name() {
@@ -5227,7 +5239,7 @@ try {
5227
5239
  },
5228
5240
  // @ts-ignore
5229
5241
  get commitId() {
5230
- return "563238264a71e3654ec8b00283ca47be03efd7fc";
5242
+ return "a72307dee56578eb83034b271b346e609f39af59";
5231
5243
  },
5232
5244
  print(a = !1) {
5233
5245
  !a && window._xe2_no_copy_print || console.info(
@@ -5254,7 +5266,7 @@ try {
5254
5266
  `
5255
5267
  );
5256
5268
  }
5257
- }), window.g_XE3CopyRights = window.g_XE3CopyRights || {}, window.g_XE3CopyRights[l] = $e, window.g_earthsdk_copyright_print = window.g_earthsdk_copyright_print ?? !0, window.g_earthsdk_copyright_print && $e.print();
5269
+ }), window.g_XE3CopyRights = window.g_XE3CopyRights || {}, window.g_XE3CopyRights[c] = $e, window.g_earthsdk_copyright_print = window.g_earthsdk_copyright_print ?? !0, window.g_earthsdk_copyright_print && $e.print();
5258
5270
  } catch {
5259
5271
  }
5260
5272
  export {
@@ -5267,7 +5279,7 @@ export {
5267
5279
  rs as SetLayerVisibleCallFunc,
5268
5280
  _e as UeCloudViewerBase,
5269
5281
  Ae as UeES3DTileset,
5270
- qe as UeESAlarm,
5282
+ Qe as UeESAlarm,
5271
5283
  Ve as UeESApertureEffect,
5272
5284
  Oe as UeESAreaMeasurement,
5273
5285
  je as UeESBlastParticleSystem,
@@ -5334,14 +5346,14 @@ export {
5334
5346
  Hi as UeESSubmergingAnalysis,
5335
5347
  Ji as UeESSunshineAnalysis,
5336
5348
  Gi as UeESSurfaceAreaMeasurement,
5337
- Qe as UeESTerrainLayer,
5349
+ qe as UeESTerrainLayer,
5338
5350
  bi as UeESTextLabel,
5339
5351
  Ki as UeESUEWidget,
5340
5352
  Yi as UeESUnrealActor,
5341
5353
  Zi as UeESVideoFusion,
5342
- Qi as UeESViewShed,
5354
+ qi as UeESViewShed,
5343
5355
  ir as UeESViewerStatusBar,
5344
- qi as UeESVisibilityAnalysis,
5356
+ Qi as UeESVisibilityAnalysis,
5345
5357
  _ as UeESVisualObject,
5346
5358
  Vi as UeESVolumeMeasurement,
5347
5359
  Oi as UeESWidget,
@@ -5356,7 +5368,7 @@ export {
5356
5368
  ks as createActorByClassCallFunc,
5357
5369
  mr as destroyCallFunc,
5358
5370
  Pe as flyInCallFunc,
5359
- qn as flyInDefaultCameraCallFunc,
5371
+ Qn as flyInDefaultCameraCallFunc,
5360
5372
  ye as flyToCallFunc,
5361
5373
  ts as generateMemReportCallFunc,
5362
5374
  ys as getAllSocketNamesByActorTagCallFunc,
@@ -5381,7 +5393,7 @@ export {
5381
5393
  cs as pickCallFunc,
5382
5394
  us as pickPositionCallFunc,
5383
5395
  ls as quitCallFunc,
5384
- Qn as refreshTilesetCallFunc,
5396
+ qn as refreshTilesetCallFunc,
5385
5397
  Cr as resetWithCurrentCameraCallFunc,
5386
5398
  Rs as restoreOriginalSceneCallFunc,
5387
5399
  Ns as saveStringToFileCallFunc,