earthsdk3-ue 3.4.0-beta.7 → 3.4.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/earthsdk3-ue.iife.js +13 -13
- package/dist/earthsdk3-ue.js +432 -419
- package/dist/earthsdk3-ue.umd.cjs +3 -3
- package/dist/types/UeObjects/base/UeESSceneObject/index.d.ts.map +1 -1
- package/dist/types/UeObjects/general/UeES3DTileset/index.d.ts.map +1 -1
- package/dist/types/UeObjects/general/UeESImageryLayer/index.d.ts.map +1 -1
- package/dist/types/UeObjects/general/UeESUnrealActor/index.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/earthsdk3-ue.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var Dr = Object.defineProperty;
|
|
2
2
|
var Br = (l, e, t) => e in l ? Dr(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t;
|
|
3
3
|
var v = (l, e, t) => Br(l, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { ESViewer as
|
|
5
|
-
import { reactArrayWithUndefined as
|
|
6
|
-
import { Logger as
|
|
7
|
-
import
|
|
8
|
-
const
|
|
9
|
-
...
|
|
4
|
+
import { ESViewer as Ee, ESSceneObject as E, ESJPickedResult as Ae, ViewerCustomInteraction as hr, getGeoBoundingSphereFromPositions as _r, EngineObject as G, ES3DTileset as me, ESImageryLayer as U, ESTerrainLayer as Mr, ESAlarm as $r, ESApertureEffect as Wr, ESGeoPolygon as Ar, ESAreaMeasurement as O, ESBlastParticleSystem as Ur, ESBoxClipping as Nr, ESCameraView as zr, ESCameraVisibleRange as Hr, ESCar as Jr, ESClassification as lt, ESClippingPlane as br, ESDataMesh as H, ESDatasmithRuntimeModel as Gr, ESDirectionMeasurement as Kr, ESDistanceMeasurement as Me, ESLocalPolygon as Xr, ESDynamicWater as Yr, ESEntityCluster as Zr, ESExcavate as qr, ESFireParticleSystem as Qr, ESForestTileset as N, ESGeoDiv as Ce, ESTextLabel as pr, ESCustomDiv as He, ESImageLabel as vr, ESGeoJson as Vr, ESGeoLineString as Or, ESGeoRectangle as jr, ESGeoWater as tn, rpToap as Fe, ESGltfModel as en, ESHeightMeasurement as rn, ESHuman as nn, ESLevelRuntimeModel as sn, ESLocalCircle as on, ESLocalPolygonZ as an, ESLocalRectangle as dn, ESLocalSkyBox as ln, ESLocationMeasurement as cn, ESPipeFence as un, ESPipeline as hn, ESPipeserTileset as pn, ESPit as vn, ESPoi2D as fn, ESPoi3D as gn, ESPoiTileset as wn, ESPolygonFence as yn, ESPolygonFlattenedPlane as mn, ESPolygonWithHole as Cn, ESRtsTileset as Fn, ESSeparateFoliage as In, addTreesCallFunc as En, removeAllTreesCallFunc as Sn, updateTreeParamsCallFunc as Tn, cutDownTreesCallFunc as xn, growthSimulationCallFunc as Rn, ESSubmergingAnalysis as Ln, ESSunshineAnalysis as Pn, ESSurfaceAreaMeasurement as kn, ESUEWidget as Dn, ESUnrealActor as $e, ESVideoFusion as Bn, ESViewShed as _n, ESVisibilityAnalysis as Mn, ESVolumeMeasurement as $n, ESWidget as Wn, ESHumanPoi as An, ESNavigator as j, ESPath as Un, ESViewerStatusBar as A, ESGaussianSplatting as Nn, ESRtsFeatureEditing as zn, ESMsTileset as Hn, ESGeoExtrudedPolygon as ye, ESStaticMesh as Jn, ESSkylineAnalysis as bn } from "earthsdk3";
|
|
5
|
+
import { reactArrayWithUndefined as fr, Destroyable as m, HasOwner as Gn, createGuid as _, Event as S, createAnimateFrame as Je, createInterval as Se, react as W, createNextAnimateFrameEvent as P, ObjResettingWithEvent as L, createProcessingFromAsyncFunc as Te, sleep as Kn, extendClassProps as Xn, reactJson as be, bind as k, track as F, PosFloatDiv as Yn } from "xbsj-base";
|
|
6
|
+
import { Logger as gr, Config as wr, TextParameters as Zn, Flags as ot, NumericParameters as yr, PixelStreaming as mr } from "@epicgames-ps/lib-pixelstreamingfrontend-ue5.2";
|
|
7
|
+
import qn from "html2canvas";
|
|
8
|
+
const Qn = {
|
|
9
|
+
...Ee.defaults,
|
|
10
10
|
geoReferenceOrigin: void 0,
|
|
11
11
|
keepWorldOriginNearCamera: !1,
|
|
12
12
|
useCache: !0,
|
|
@@ -19,14 +19,14 @@ const Vn = {
|
|
|
19
19
|
baseUrl: window.location.href ?? "",
|
|
20
20
|
screenPercentage: -1,
|
|
21
21
|
antiAliasingMethod: "default"
|
|
22
|
-
},
|
|
23
|
-
...
|
|
22
|
+
}, Cr = () => ({
|
|
23
|
+
...Ee.createCommonProps(),
|
|
24
24
|
//语音模式
|
|
25
25
|
apiKey: "",
|
|
26
26
|
apiUrl: "",
|
|
27
27
|
secretKey: "",
|
|
28
28
|
speechVoiceMode: "",
|
|
29
|
-
geoReferenceOrigin:
|
|
29
|
+
geoReferenceOrigin: fr(void 0),
|
|
30
30
|
//地理参考原点
|
|
31
31
|
keepWorldOriginNearCamera: void 0,
|
|
32
32
|
//地理参考的保持世界原点开关
|
|
@@ -50,14 +50,14 @@ const Vn = {
|
|
|
50
50
|
antiAliasingMethod: void 0
|
|
51
51
|
//抗锯齿方法
|
|
52
52
|
});
|
|
53
|
-
function
|
|
54
|
-
const l =
|
|
53
|
+
function xe() {
|
|
54
|
+
const l = Cr(), e = [];
|
|
55
55
|
return Object.keys(l).forEach((t) => {
|
|
56
56
|
e.push(t);
|
|
57
57
|
}), e;
|
|
58
58
|
}
|
|
59
59
|
function Ge(l) {
|
|
60
|
-
const { defaults: e } = b, t =
|
|
60
|
+
const { defaults: e } = b, t = xe(), i = {};
|
|
61
61
|
return t.forEach((r) => {
|
|
62
62
|
i[r] = l[r] ?? e[r];
|
|
63
63
|
}), i;
|
|
@@ -72,7 +72,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
72
72
|
return;
|
|
73
73
|
}
|
|
74
74
|
return s.re;
|
|
75
|
-
},
|
|
75
|
+
}, Fr = async (l, e) => {
|
|
76
76
|
const t = await l.callUeFunc({ f: "destroy", p: { id: e } });
|
|
77
77
|
return t.error && console.error(t.error), t;
|
|
78
78
|
}, dt = (l, e) => {
|
|
@@ -84,7 +84,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
84
84
|
}).catch((t) => {
|
|
85
85
|
console.error("calcFlyToParam:", t);
|
|
86
86
|
});
|
|
87
|
-
},
|
|
87
|
+
}, Vn = (l, e) => {
|
|
88
88
|
l.callUeFunc({
|
|
89
89
|
f: "refreshTileset",
|
|
90
90
|
p: { id: e }
|
|
@@ -93,7 +93,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
93
93
|
}).catch((t) => {
|
|
94
94
|
console.error("refreshTileset:", t);
|
|
95
95
|
});
|
|
96
|
-
},
|
|
96
|
+
}, Re = async (l, e, t, i, r, n = "default") => {
|
|
97
97
|
const s = await l.callUeFunc({
|
|
98
98
|
f: "flyIn",
|
|
99
99
|
p: { id: e, position: t, rotation: i, duration: r, flyMode: n }
|
|
@@ -103,7 +103,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
103
103
|
return;
|
|
104
104
|
}
|
|
105
105
|
return s.re;
|
|
106
|
-
},
|
|
106
|
+
}, On = async (l, e) => {
|
|
107
107
|
if (!l) {
|
|
108
108
|
console.warn("DefaultCameraFlyIn: viewer is undefined");
|
|
109
109
|
return;
|
|
@@ -117,7 +117,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
119
119
|
return t;
|
|
120
|
-
},
|
|
120
|
+
}, jn = async (l) => {
|
|
121
121
|
if (!l) {
|
|
122
122
|
console.warn("StartVoice:viewer is undefined");
|
|
123
123
|
return;
|
|
@@ -131,7 +131,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
131
131
|
return;
|
|
132
132
|
}
|
|
133
133
|
return e;
|
|
134
|
-
},
|
|
134
|
+
}, ts = async (l) => {
|
|
135
135
|
if (!l) {
|
|
136
136
|
console.warn("StopVoice:viewer is undefined");
|
|
137
137
|
return;
|
|
@@ -145,7 +145,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
145
145
|
return;
|
|
146
146
|
}
|
|
147
147
|
return e;
|
|
148
|
-
},
|
|
148
|
+
}, es = async (l, e) => {
|
|
149
149
|
if (!l) {
|
|
150
150
|
console.warn("mountPakFiles:viewer is undefined");
|
|
151
151
|
return;
|
|
@@ -159,7 +159,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
159
159
|
return;
|
|
160
160
|
}
|
|
161
161
|
return t;
|
|
162
|
-
},
|
|
162
|
+
}, is = async (l) => {
|
|
163
163
|
if (!l) {
|
|
164
164
|
console.warn("generateMemReport:viewer is undefined");
|
|
165
165
|
return;
|
|
@@ -179,7 +179,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
179
179
|
p: { id: e }
|
|
180
180
|
});
|
|
181
181
|
return t.error && console.error("resetWithCurrentCamera:", t.error), t;
|
|
182
|
-
},
|
|
182
|
+
}, Le = (l, e, t, i, r) => {
|
|
183
183
|
l.callUeFunc({
|
|
184
184
|
f: "smoothMoveWithRotation",
|
|
185
185
|
p: {
|
|
@@ -193,7 +193,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
193
193
|
}).catch((n) => {
|
|
194
194
|
console.error("smoothMoveWithRotation:", n);
|
|
195
195
|
});
|
|
196
|
-
},
|
|
196
|
+
}, Pe = (l, e, t, i, r, n) => {
|
|
197
197
|
l.callUeFunc({
|
|
198
198
|
f: "smoothMoveOnGround",
|
|
199
199
|
p: { id: e, Lon: t, Lat: i, Ground: r, Time: n }
|
|
@@ -202,7 +202,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
202
202
|
}).catch((s) => {
|
|
203
203
|
console.error("smoothMoveOnGround:", s);
|
|
204
204
|
});
|
|
205
|
-
},
|
|
205
|
+
}, ke = (l, e, t, i, r, n, s) => {
|
|
206
206
|
l.callUeFunc({
|
|
207
207
|
f: "smoothMoveWithRotationOnGround",
|
|
208
208
|
p: {
|
|
@@ -218,7 +218,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
218
218
|
}).catch((o) => {
|
|
219
219
|
console.error("smoothMoveWithRotationOnGround:", o);
|
|
220
220
|
});
|
|
221
|
-
},
|
|
221
|
+
}, rs = (l, e, t) => {
|
|
222
222
|
l.callUeFunc({
|
|
223
223
|
f: "HighlightFeature",
|
|
224
224
|
p: { id: e, HlId: t }
|
|
@@ -227,7 +227,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
227
227
|
}).catch((i) => {
|
|
228
228
|
console.error("HighlightFeature:", i);
|
|
229
229
|
});
|
|
230
|
-
},
|
|
230
|
+
}, ns = (l, e, t, i) => {
|
|
231
231
|
l.callUeFunc({
|
|
232
232
|
f: "HighlightFeatureAndFlyTo",
|
|
233
233
|
p: { id: e, HlId: t, Duration: i }
|
|
@@ -236,7 +236,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
236
236
|
}).catch((r) => {
|
|
237
237
|
console.error("HighlightFeatureAndFlyTo:", r);
|
|
238
238
|
});
|
|
239
|
-
},
|
|
239
|
+
}, ss = (l, e, t) => {
|
|
240
240
|
l.callUeFunc({
|
|
241
241
|
f: "SetLayerVisible",
|
|
242
242
|
p: { id: e, LayerJson: t }
|
|
@@ -245,7 +245,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
245
245
|
}).catch((i) => {
|
|
246
246
|
console.error("SetLayerVisible:", i);
|
|
247
247
|
});
|
|
248
|
-
},
|
|
248
|
+
}, os = (l, e, t) => {
|
|
249
249
|
l.callUeFunc({
|
|
250
250
|
f: "SetLayerColor",
|
|
251
251
|
p: { id: e, LayerJson: t }
|
|
@@ -254,7 +254,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
254
254
|
}).catch((i) => {
|
|
255
255
|
console.error("SetLayerColor:", i);
|
|
256
256
|
});
|
|
257
|
-
},
|
|
257
|
+
}, De = (l, e, t, i) => {
|
|
258
258
|
l.callUeFunc({
|
|
259
259
|
f: "smoothMove",
|
|
260
260
|
p: {
|
|
@@ -273,7 +273,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
273
273
|
p: { id: e, fn: t, p: i }
|
|
274
274
|
});
|
|
275
275
|
return r.error && (console.error("callFunction:", r.error), console.error(`id: ${e} fn: ${t} param: ${i}`)), r.re ?? void 0;
|
|
276
|
-
},
|
|
276
|
+
}, as = (l, e, t, i) => {
|
|
277
277
|
l.callUeFunc({
|
|
278
278
|
f: "SetNodePosition",
|
|
279
279
|
p: {
|
|
@@ -286,7 +286,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
286
286
|
}).catch((r) => {
|
|
287
287
|
console.error("SetNodePosition:", r);
|
|
288
288
|
});
|
|
289
|
-
},
|
|
289
|
+
}, ds = (l, e, t, i) => {
|
|
290
290
|
l.callUeFunc({
|
|
291
291
|
f: "SetNodeRotation",
|
|
292
292
|
p: {
|
|
@@ -299,7 +299,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
299
299
|
}).catch((r) => {
|
|
300
300
|
console.error("SetNodeRotation:", r);
|
|
301
301
|
});
|
|
302
|
-
},
|
|
302
|
+
}, ls = (l, e, t, i) => {
|
|
303
303
|
l.callUeFunc({
|
|
304
304
|
f: "SetNodeScale",
|
|
305
305
|
p: {
|
|
@@ -312,7 +312,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
312
312
|
}).catch((r) => {
|
|
313
313
|
console.error("SetNodeScale:", r);
|
|
314
314
|
});
|
|
315
|
-
},
|
|
315
|
+
}, J = async (l, e) => {
|
|
316
316
|
if (e.mode == "Follow") {
|
|
317
317
|
const i = E.getSceneObject(e.objectId);
|
|
318
318
|
e.objectId = i ? (i.components.main ?? i).id : e.objectId;
|
|
@@ -329,7 +329,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
329
329
|
return;
|
|
330
330
|
}
|
|
331
331
|
return t;
|
|
332
|
-
},
|
|
332
|
+
}, cs = async (l, e) => {
|
|
333
333
|
const t = await l.callUeFunc({
|
|
334
334
|
f: "setGlobalProperty",
|
|
335
335
|
p: e
|
|
@@ -339,7 +339,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
339
339
|
return;
|
|
340
340
|
}
|
|
341
341
|
return t;
|
|
342
|
-
},
|
|
342
|
+
}, us = async (l) => {
|
|
343
343
|
const e = await l.callUeFunc({
|
|
344
344
|
f: "Quit",
|
|
345
345
|
p: void 0
|
|
@@ -349,7 +349,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
349
349
|
return;
|
|
350
350
|
}
|
|
351
351
|
return e;
|
|
352
|
-
},
|
|
352
|
+
}, hs = async (l, e, t, i) => {
|
|
353
353
|
console.log("pickCallFunc", e, t, i);
|
|
354
354
|
const r = await l.callUeFunc({
|
|
355
355
|
f: "pick",
|
|
@@ -360,8 +360,8 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
360
360
|
return;
|
|
361
361
|
}
|
|
362
362
|
let n = r.re.id, s, o = n ? E.getSceneObject(n) : void 0;
|
|
363
|
-
return o && o.parentID && (o = E.getSceneObject(o.parentID)), s = new
|
|
364
|
-
},
|
|
363
|
+
return o && o.parentID && (o = E.getSceneObject(o.parentID)), s = new Ae(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 Ae() : s;
|
|
364
|
+
}, ps = async (l, e) => {
|
|
365
365
|
const t = await l.callUeFunc({
|
|
366
366
|
f: "pickPosition",
|
|
367
367
|
p: { screenPosition: e }
|
|
@@ -372,7 +372,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
372
372
|
}
|
|
373
373
|
const { position: i } = t.re;
|
|
374
374
|
return i;
|
|
375
|
-
},
|
|
375
|
+
}, vs = async (l, e, t, i = "ECC_Visibility") => {
|
|
376
376
|
const r = await l.callUeFunc({
|
|
377
377
|
f: "GetHeightByLonLat",
|
|
378
378
|
p: { Lon: e, Lat: t, Channel: i }
|
|
@@ -382,7 +382,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
382
382
|
return;
|
|
383
383
|
}
|
|
384
384
|
return r.re;
|
|
385
|
-
},
|
|
385
|
+
}, fs = async (l, e, t = "ECC_Visibility") => {
|
|
386
386
|
const i = await l.callUeFunc({
|
|
387
387
|
f: "GetHeightsByLonLats",
|
|
388
388
|
p: { LonLats: e, Channel: t }
|
|
@@ -397,7 +397,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
397
397
|
} catch {
|
|
398
398
|
return;
|
|
399
399
|
}
|
|
400
|
-
},
|
|
400
|
+
}, gs = async (l, e = 64, t = 64) => {
|
|
401
401
|
const i = await l.callUeFunc({
|
|
402
402
|
f: "capture",
|
|
403
403
|
p: { resx: e, resy: t }
|
|
@@ -407,7 +407,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
407
407
|
return;
|
|
408
408
|
}
|
|
409
409
|
return i.re.image;
|
|
410
|
-
},
|
|
410
|
+
}, ws = async (l, e, t = [64, 64]) => {
|
|
411
411
|
const i = await l.callUeFunc({
|
|
412
412
|
f: "partialCapture",
|
|
413
413
|
p: {
|
|
@@ -420,13 +420,13 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
420
420
|
return;
|
|
421
421
|
}
|
|
422
422
|
return i.re.image;
|
|
423
|
-
},
|
|
423
|
+
}, ys = async (l, e) => {
|
|
424
424
|
const t = await l.callUeFunc({
|
|
425
425
|
f: "LonLatAltToScreenPosition",
|
|
426
426
|
p: { LonLatAlt: e }
|
|
427
427
|
});
|
|
428
428
|
return t.error && console.warn(t.error), t.re;
|
|
429
|
-
},
|
|
429
|
+
}, ms = async (l, e) => {
|
|
430
430
|
const t = await l.callUeFunc({
|
|
431
431
|
f: "UEPositionToLonLatAlt",
|
|
432
432
|
p: { UEPosition: e }
|
|
@@ -436,7 +436,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
436
436
|
return;
|
|
437
437
|
}
|
|
438
438
|
return [...t.re.LonLatAlt];
|
|
439
|
-
},
|
|
439
|
+
}, Cs = async (l, e) => {
|
|
440
440
|
const t = await l.callUeFunc({
|
|
441
441
|
f: "GetAllSocketNamesByActorTag",
|
|
442
442
|
p: { ActorTag: e }
|
|
@@ -446,7 +446,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
446
446
|
return;
|
|
447
447
|
}
|
|
448
448
|
return [...t.re.socketNames];
|
|
449
|
-
},
|
|
449
|
+
}, Fs = async (l) => {
|
|
450
450
|
const e = await l.callUeFunc({
|
|
451
451
|
f: "GetVersion",
|
|
452
452
|
p: void 0
|
|
@@ -456,7 +456,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
456
456
|
return;
|
|
457
457
|
}
|
|
458
458
|
return e.re.version;
|
|
459
|
-
},
|
|
459
|
+
}, Is = async (l, e) => {
|
|
460
460
|
const t = await l.callUeFunc({
|
|
461
461
|
f: "GetBoundSphere",
|
|
462
462
|
p: { id: e }
|
|
@@ -466,7 +466,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
466
466
|
return;
|
|
467
467
|
}
|
|
468
468
|
return t.re;
|
|
469
|
-
},
|
|
469
|
+
}, Es = async (l, e) => {
|
|
470
470
|
const t = await l.callUeFunc({
|
|
471
471
|
f: "GetBoundSphereWithChildren",
|
|
472
472
|
p: { id: e }
|
|
@@ -476,7 +476,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
476
476
|
return;
|
|
477
477
|
}
|
|
478
478
|
return t.re;
|
|
479
|
-
},
|
|
479
|
+
}, Ss = async (l, e) => {
|
|
480
480
|
const t = await l.callUeFunc({
|
|
481
481
|
f: "GetStrokeMaterialParamInfo",
|
|
482
482
|
p: { id: e }
|
|
@@ -486,7 +486,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
486
486
|
return;
|
|
487
487
|
}
|
|
488
488
|
return t.re;
|
|
489
|
-
},
|
|
489
|
+
}, Ts = async (l, e) => {
|
|
490
490
|
const t = await l.callUeFunc({
|
|
491
491
|
f: "GetFillMaterialParamInfo",
|
|
492
492
|
p: { id: e }
|
|
@@ -496,7 +496,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
496
496
|
return;
|
|
497
497
|
}
|
|
498
498
|
return t.re;
|
|
499
|
-
},
|
|
499
|
+
}, xs = async (l, e) => {
|
|
500
500
|
const t = await l.callUeFunc({
|
|
501
501
|
f: "getGlobalProperty",
|
|
502
502
|
p: { props: e }
|
|
@@ -506,7 +506,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
506
506
|
return;
|
|
507
507
|
}
|
|
508
508
|
return t.re;
|
|
509
|
-
},
|
|
509
|
+
}, Rs = async (l, e) => {
|
|
510
510
|
const t = await l.callUeFunc({
|
|
511
511
|
f: "GetObjectByInfo",
|
|
512
512
|
p: { info: e }
|
|
@@ -516,62 +516,62 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
516
516
|
return;
|
|
517
517
|
}
|
|
518
518
|
return t.re;
|
|
519
|
-
},
|
|
519
|
+
}, Ls = async (l, e, t) => await l.callUeFunc({
|
|
520
520
|
f: "BindActorByTag",
|
|
521
521
|
p: { ID: e, ActorTag: t }
|
|
522
|
-
}),
|
|
522
|
+
}), Ps = async (l) => await l.callUeFunc({
|
|
523
523
|
f: "RestoreOriginalScene",
|
|
524
524
|
p: void 0
|
|
525
|
-
}),
|
|
525
|
+
}), ks = async (l, e) => await l.callUeFunc({
|
|
526
526
|
f: "UnBindActorByID",
|
|
527
527
|
p: { ID: e }
|
|
528
|
-
}),
|
|
528
|
+
}), Ds = async (l, e) => await l.callUeFunc({
|
|
529
529
|
f: "UnBindActorByTag",
|
|
530
530
|
p: { ActorTag: e }
|
|
531
|
-
}),
|
|
531
|
+
}), Bs = async (l, e, t) => await l.callUeFunc({
|
|
532
532
|
f: "CreateActorByClass",
|
|
533
533
|
p: { ID: e, ActorClass: t }
|
|
534
|
-
}),
|
|
534
|
+
}), _s = async function(l, e, t) {
|
|
535
535
|
return await l.callUeFunc({
|
|
536
536
|
f: "Bind3DTilesetByTag",
|
|
537
537
|
p: { ID: e, ActorTag: t }
|
|
538
538
|
});
|
|
539
|
-
},
|
|
539
|
+
}, Ms = async function(l, e) {
|
|
540
540
|
return await l.callUeFunc({
|
|
541
541
|
f: "UnBind3DTilesetByTag",
|
|
542
542
|
p: { ActorTag: e }
|
|
543
543
|
});
|
|
544
|
-
},
|
|
544
|
+
}, $s = async function(l, e) {
|
|
545
545
|
return await l.callUeFunc({
|
|
546
546
|
f: "UnBind3DTilesetById",
|
|
547
547
|
p: { ID: e }
|
|
548
548
|
});
|
|
549
|
-
},
|
|
549
|
+
}, Ws = async function(l, e, t, i) {
|
|
550
550
|
return await l.callUeFunc({
|
|
551
551
|
f: "BindImageryByTag",
|
|
552
552
|
p: { ID: e, ActorTag: t, ComponentTag: i }
|
|
553
553
|
});
|
|
554
|
-
},
|
|
554
|
+
}, As = async function(l, e, t) {
|
|
555
555
|
return await l.callUeFunc({
|
|
556
556
|
f: "UnBindImageryByTag",
|
|
557
557
|
p: { ActorTag: e, ComponentTag: t }
|
|
558
558
|
});
|
|
559
|
-
},
|
|
559
|
+
}, Us = async function(l, e) {
|
|
560
560
|
return await l.callUeFunc({
|
|
561
561
|
f: "UnBindImageryById",
|
|
562
562
|
p: { ID: e }
|
|
563
563
|
});
|
|
564
|
-
},
|
|
564
|
+
}, Ns = async function(l, e, t, i) {
|
|
565
565
|
return await l.callUeFunc({
|
|
566
566
|
f: "GetIdByComponentNameAndHitItem",
|
|
567
567
|
p: { id: e, ComponentName: t, HitItem: i }
|
|
568
568
|
});
|
|
569
|
-
},
|
|
569
|
+
}, zs = async function(l, e = "ECC_Visibility") {
|
|
570
570
|
return await l.callUeFunc({
|
|
571
571
|
f: "GetCameraRelativeHeight",
|
|
572
572
|
p: { Channel: e }
|
|
573
573
|
});
|
|
574
|
-
},
|
|
574
|
+
}, Hs = async function(l, e, t, i) {
|
|
575
575
|
const r = await l.callUeFunc({
|
|
576
576
|
f: "SaveStringToFile",
|
|
577
577
|
p: {
|
|
@@ -581,7 +581,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
581
581
|
}
|
|
582
582
|
});
|
|
583
583
|
return r.error !== "" && console.warn("SaveStringToFile: ", r.error), r;
|
|
584
|
-
},
|
|
584
|
+
}, Js = async function(l, e, t = !0) {
|
|
585
585
|
const i = await l.callUeFunc({
|
|
586
586
|
f: "HighlightActorByTag",
|
|
587
587
|
p: {
|
|
@@ -590,13 +590,13 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
590
590
|
}
|
|
591
591
|
});
|
|
592
592
|
return i.error !== "" && console.warn("HighlightActorByTag: ", i.error), i;
|
|
593
|
-
},
|
|
593
|
+
}, bs = async function(l, e) {
|
|
594
594
|
const t = await l.callUeFunc({
|
|
595
595
|
f: "SendCustomMessage",
|
|
596
596
|
p: { Message: e }
|
|
597
597
|
});
|
|
598
598
|
return t.error !== "" && console.warn("SendCustomMessage: ", t.error), t;
|
|
599
|
-
},
|
|
599
|
+
}, Gs = async function(l) {
|
|
600
600
|
const e = await l.callUeFunc({
|
|
601
601
|
f: "GetStatus",
|
|
602
602
|
p: void 0
|
|
@@ -606,7 +606,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
606
606
|
return;
|
|
607
607
|
}
|
|
608
608
|
return e.re;
|
|
609
|
-
},
|
|
609
|
+
}, Ks = async (l, e, t, i, r = !0) => {
|
|
610
610
|
const n = await l.callUeFunc({
|
|
611
611
|
f: "startEditing",
|
|
612
612
|
p: {
|
|
@@ -621,7 +621,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
621
621
|
return;
|
|
622
622
|
}
|
|
623
623
|
return n;
|
|
624
|
-
},
|
|
624
|
+
}, Xs = async (l) => {
|
|
625
625
|
const e = await l.callUeFunc({
|
|
626
626
|
f: "stopEditing",
|
|
627
627
|
p: void 0
|
|
@@ -631,7 +631,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
631
631
|
return;
|
|
632
632
|
}
|
|
633
633
|
return e;
|
|
634
|
-
},
|
|
634
|
+
}, Ys = async (l, e, t) => {
|
|
635
635
|
const i = await l.callUeFunc({
|
|
636
636
|
f: "moveObjects",
|
|
637
637
|
p: {
|
|
@@ -644,7 +644,7 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
644
644
|
return;
|
|
645
645
|
}
|
|
646
646
|
return i;
|
|
647
|
-
},
|
|
647
|
+
}, Zs = async (l) => {
|
|
648
648
|
const e = await l.callUeFunc({
|
|
649
649
|
f: "GetTilesetMaterialIDList",
|
|
650
650
|
p: void 0
|
|
@@ -655,11 +655,11 @@ const we = async (l, e, t, i, r, n = "default") => {
|
|
|
655
655
|
}
|
|
656
656
|
return e.re.materialIDList;
|
|
657
657
|
};
|
|
658
|
-
class
|
|
658
|
+
class Be extends m {
|
|
659
659
|
}
|
|
660
|
-
const
|
|
660
|
+
const qs = {
|
|
661
661
|
Response: 1
|
|
662
|
-
},
|
|
662
|
+
}, Ie = {
|
|
663
663
|
/*
|
|
664
664
|
* Input Messages. Range = 50..89.
|
|
665
665
|
*/
|
|
@@ -667,7 +667,7 @@ const Vs = {
|
|
|
667
667
|
UIInteraction: 50,
|
|
668
668
|
MouseWheel: 75
|
|
669
669
|
};
|
|
670
|
-
class
|
|
670
|
+
class Qs extends Gn {
|
|
671
671
|
constructor(t, i) {
|
|
672
672
|
super(t);
|
|
673
673
|
v(this, "_processResponseFn", (t) => this.esUeViewer.processResponse(t));
|
|
@@ -694,7 +694,7 @@ class Os extends Kn {
|
|
|
694
694
|
if (this.isDestroyed())
|
|
695
695
|
return;
|
|
696
696
|
let n = r.target.result, s = new Uint32Array(n), o = 0;
|
|
697
|
-
if (s[0] ===
|
|
697
|
+
if (s[0] === qs.Response) {
|
|
698
698
|
o += 4;
|
|
699
699
|
let u = s[o / 4];
|
|
700
700
|
o += 4;
|
|
@@ -718,7 +718,7 @@ class Os extends Kn {
|
|
|
718
718
|
const i = this.inner;
|
|
719
719
|
if (i.readyState !== WebSocket.OPEN) return;
|
|
720
720
|
const n = new Uint8Array(t)[0];
|
|
721
|
-
if (n >=
|
|
721
|
+
if (n >= Ie.UIInteraction && n <= Ie.MouseWheel) {
|
|
722
722
|
const s = new ArrayBuffer(t.byteLength + 4);
|
|
723
723
|
return new DataView(s).setUint32(0, t.byteLength, !0), new Uint8Array(s, 4).set(new Uint8Array(t)), i.send(new DataView(s)), !0;
|
|
724
724
|
} else
|
|
@@ -741,9 +741,9 @@ class Os extends Kn {
|
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
743
|
window.g_emitDescriptor_maxBytes = 3e4;
|
|
744
|
-
let
|
|
745
|
-
|
|
746
|
-
class
|
|
744
|
+
let Vs = -1;
|
|
745
|
+
gr.SetLoggerVerbosity(1);
|
|
746
|
+
class Os extends m {
|
|
747
747
|
constructor(t, i) {
|
|
748
748
|
super();
|
|
749
749
|
v(this, "_eventTarget", new EventTarget());
|
|
@@ -780,7 +780,7 @@ class to extends m {
|
|
|
780
780
|
return this.eventTarget.dispatchEvent(t);
|
|
781
781
|
}
|
|
782
782
|
_initPixelStream(t, i) {
|
|
783
|
-
const r = new
|
|
783
|
+
const r = new wr({
|
|
784
784
|
initialSettings: {
|
|
785
785
|
AutoPlayVideo: !0,
|
|
786
786
|
AutoConnect: !0,
|
|
@@ -788,16 +788,16 @@ class to extends m {
|
|
|
788
788
|
StartVideoMuted: !1,
|
|
789
789
|
// WaitForStreamer: true,
|
|
790
790
|
SuppressBrowserKeys: !1,
|
|
791
|
-
[
|
|
791
|
+
[Zn.SignallingServerUrl]: i
|
|
792
792
|
}
|
|
793
793
|
});
|
|
794
|
-
return r.setFlagEnabled(ot.BrowserSendOffer, !1), r.setFlagEnabled(ot.HoveringMouseMode, !0), r.setFlagEnabled(ot.MatchViewportResolution, !0), r.setNumericSetting(
|
|
794
|
+
return r.setFlagEnabled(ot.BrowserSendOffer, !1), r.setFlagEnabled(ot.HoveringMouseMode, !0), r.setFlagEnabled(ot.MatchViewportResolution, !0), r.setNumericSetting(yr.MaxReconnectAttempts, 0), new mr(r, { videoElementParent: t });
|
|
795
795
|
}
|
|
796
796
|
get pixelStream() {
|
|
797
797
|
return this._pixelStream;
|
|
798
798
|
}
|
|
799
799
|
_initEsMsgWsWrapper(t) {
|
|
800
|
-
return t ? this.dv(new
|
|
800
|
+
return t ? this.dv(new Qs(this, t)) : void 0;
|
|
801
801
|
}
|
|
802
802
|
get esMsgWsWrapper() {
|
|
803
803
|
return this._esMsgWsWrapper;
|
|
@@ -860,15 +860,15 @@ class to extends m {
|
|
|
860
860
|
// 发送UI interface
|
|
861
861
|
emitUIInteractionForBigData(t, i) {
|
|
862
862
|
typeof i == "function" && (t.callid = _(), this.uiInteractionCallbacks.set(t.callid, i));
|
|
863
|
-
const r = JSON.stringify(t), n = window.g_emitDescriptor_maxBytes, s = r.length, o = ++
|
|
863
|
+
const r = JSON.stringify(t), n = window.g_emitDescriptor_maxBytes, s = r.length, o = ++Vs;
|
|
864
864
|
if (this.esMsgWsWrapper) {
|
|
865
865
|
if (s < n) {
|
|
866
|
-
this.esMsgWsWrapper.emitDescriptorWithString(
|
|
866
|
+
this.esMsgWsWrapper.emitDescriptorWithString(Ie.UIInteraction, `${o}-0/1-` + r);
|
|
867
867
|
return;
|
|
868
868
|
}
|
|
869
869
|
const u = Math.ceil(s / n) | 0;
|
|
870
870
|
[...new Array(u).keys()].map((g) => r.slice(g * n, (g + 1) * n)).forEach((g, p) => {
|
|
871
|
-
this.esMsgWsWrapper && this.esMsgWsWrapper.emitDescriptorWithString(
|
|
871
|
+
this.esMsgWsWrapper && this.esMsgWsWrapper.emitDescriptorWithString(Ie.UIInteraction, `${o}-${p}/${u}-` + g);
|
|
872
872
|
});
|
|
873
873
|
}
|
|
874
874
|
}
|
|
@@ -896,12 +896,12 @@ class to extends m {
|
|
|
896
896
|
console.log(`resizeUEVideo emitCommand ${t} ${i} begin`), this.emitCommand(r);
|
|
897
897
|
}
|
|
898
898
|
}
|
|
899
|
-
class
|
|
899
|
+
class js extends m {
|
|
900
900
|
constructor(t, i, r) {
|
|
901
901
|
super();
|
|
902
902
|
v(this, "_instance");
|
|
903
903
|
v(this, "_event", this.dv(new S()));
|
|
904
|
-
this._container = t, this._wsuri = i, this._esmsgWsUri = r, this._instance = this.dv(new
|
|
904
|
+
this._container = t, this._wsuri = i, this._esmsgWsUri = r, this._instance = this.dv(new Os(this._container, { url: this._wsuri, esmsgWsUri: this._esmsgWsUri })), this.instanceInit();
|
|
905
905
|
}
|
|
906
906
|
get webSocketReady() {
|
|
907
907
|
return this._instance.esWebSocketReady;
|
|
@@ -960,7 +960,7 @@ class eo extends m {
|
|
|
960
960
|
this._instance.resizeUEVideo(t, i);
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
|
-
class
|
|
963
|
+
class to extends Be {
|
|
964
964
|
constructor(t, i, r, n) {
|
|
965
965
|
super();
|
|
966
966
|
v(this, "_esueViewerWrapper");
|
|
@@ -978,7 +978,7 @@ class io extends De {
|
|
|
978
978
|
v(this, "_webRtcConnected", this.dv(W(!1)));
|
|
979
979
|
this._ueViewer = n, console.log("CSTMPSViewer init ! 以官方像素流 + 独立通信的模式启动!");
|
|
980
980
|
const s = this._ueViewer;
|
|
981
|
-
this._esueViewerWrapper = this.dv(new
|
|
981
|
+
this._esueViewerWrapper = this.dv(new js(t, i, r));
|
|
982
982
|
const o = this._esueViewerWrapper;
|
|
983
983
|
{
|
|
984
984
|
const h = () => o.debug = s.debug ?? !1;
|
|
@@ -1017,7 +1017,7 @@ class io extends De {
|
|
|
1017
1017
|
} else h === "webRtcConnected" ? this.webRtcConnected = !0 : h === "videoinited" ? this.videoinited = !0 : h === "esmsgwsopen" && (this.esmsgwsopen = !0);
|
|
1018
1018
|
}));
|
|
1019
1019
|
{
|
|
1020
|
-
const h = this.dv(
|
|
1020
|
+
const h = this.dv(Je());
|
|
1021
1021
|
let c, f;
|
|
1022
1022
|
h.start(() => {
|
|
1023
1023
|
if (c !== t.offsetWidth || f !== t.offsetHeight) {
|
|
@@ -1071,7 +1071,7 @@ class io extends De {
|
|
|
1071
1071
|
} while (y < w);
|
|
1072
1072
|
}
|
|
1073
1073
|
};
|
|
1074
|
-
this.dv(
|
|
1074
|
+
this.dv(Se()).start(p, 50), this.d(() => console.log("UeCloudViewer正在销毁..."));
|
|
1075
1075
|
}
|
|
1076
1076
|
get esueViewerWrapper() {
|
|
1077
1077
|
return this._esueViewerWrapper;
|
|
@@ -1143,28 +1143,28 @@ class io extends De {
|
|
|
1143
1143
|
};
|
|
1144
1144
|
}
|
|
1145
1145
|
}
|
|
1146
|
-
function
|
|
1146
|
+
function eo(l) {
|
|
1147
1147
|
let e = "";
|
|
1148
1148
|
const t = new Uint8Array(l), i = t.length;
|
|
1149
1149
|
for (let r = 0; r < i; r++)
|
|
1150
1150
|
e += String.fromCharCode(t[r]);
|
|
1151
1151
|
return btoa(e);
|
|
1152
1152
|
}
|
|
1153
|
-
const
|
|
1153
|
+
const io = (l) => {
|
|
1154
1154
|
const e = {
|
|
1155
1155
|
type: "input",
|
|
1156
|
-
inputdata:
|
|
1156
|
+
inputdata: eo(l)
|
|
1157
1157
|
};
|
|
1158
1158
|
return JSON.stringify(e);
|
|
1159
1159
|
};
|
|
1160
|
-
function
|
|
1160
|
+
function ro(l) {
|
|
1161
1161
|
return typeof l == "string" ? document.getElementById(l) : l;
|
|
1162
1162
|
}
|
|
1163
1163
|
window.g_emitDescriptor_maxBytes = 3e4;
|
|
1164
1164
|
console.log("全局可设置消息体最大字节, window.g_emitDescriptor_maxBytes 默认 30000 。");
|
|
1165
|
-
let
|
|
1166
|
-
|
|
1167
|
-
class
|
|
1165
|
+
let no = -1;
|
|
1166
|
+
gr.SetLoggerVerbosity(1);
|
|
1167
|
+
class so extends m {
|
|
1168
1168
|
constructor(t, i) {
|
|
1169
1169
|
super();
|
|
1170
1170
|
v(this, "debug", !1);
|
|
@@ -1175,7 +1175,7 @@ class ao extends m {
|
|
|
1175
1175
|
//发送时记录消息,回调函数中对应消息后再删除
|
|
1176
1176
|
v(this, "uiInteractionCallbacks", /* @__PURE__ */ new Map());
|
|
1177
1177
|
this._container = t, this._option = i;
|
|
1178
|
-
const r = new
|
|
1178
|
+
const r = new wr({
|
|
1179
1179
|
initialSettings: {
|
|
1180
1180
|
HoveringMouse: !0,
|
|
1181
1181
|
AutoPlayVideo: !0,
|
|
@@ -1187,13 +1187,13 @@ class ao extends m {
|
|
|
1187
1187
|
},
|
|
1188
1188
|
useUrlParams: !0
|
|
1189
1189
|
});
|
|
1190
|
-
r.setFlagEnabled(ot.BrowserSendOffer, !1), r.setFlagEnabled(ot.HoveringMouseMode, !0), r.setFlagEnabled(ot.MatchViewportResolution, !0), r.setNumericSetting(
|
|
1190
|
+
r.setFlagEnabled(ot.BrowserSendOffer, !1), r.setFlagEnabled(ot.HoveringMouseMode, !0), r.setFlagEnabled(ot.MatchViewportResolution, !0), r.setNumericSetting(yr.MaxReconnectAttempts, 0), this._pixelStream = new mr(r, { videoElementParent: this.container }), this.d(() => {
|
|
1191
1191
|
this._pixelStream.disconnect();
|
|
1192
1192
|
});
|
|
1193
1193
|
{
|
|
1194
1194
|
const n = this.pixelStream.webSocketController.webSocket, s = this._pixelStream._webRtcController.sendMessageController.dataChannelSender.sendData;
|
|
1195
1195
|
this._pixelStream._webRtcController.sendMessageController.dataChannelSender.constructor.prototype.sendData = function(o) {
|
|
1196
|
-
n ? n.send(
|
|
1196
|
+
n ? n.send(io(o)) : s.call(this, o);
|
|
1197
1197
|
};
|
|
1198
1198
|
}
|
|
1199
1199
|
{
|
|
@@ -1238,7 +1238,7 @@ class ao extends m {
|
|
|
1238
1238
|
return this._ueevent;
|
|
1239
1239
|
}
|
|
1240
1240
|
get container() {
|
|
1241
|
-
return
|
|
1241
|
+
return ro(this._container);
|
|
1242
1242
|
}
|
|
1243
1243
|
get pixelStream() {
|
|
1244
1244
|
return this._pixelStream;
|
|
@@ -1266,7 +1266,7 @@ class ao extends m {
|
|
|
1266
1266
|
//大数据拆分
|
|
1267
1267
|
emitUIInteractionForBigData(t, i) {
|
|
1268
1268
|
typeof i == "function" && (t.callid = _(), this.uiInteractionCallbacks.set(t.callid, i));
|
|
1269
|
-
const r = JSON.stringify(t), n = window.g_emitDescriptor_maxBytes ?? 3e4, s = r.length, o = ++
|
|
1269
|
+
const r = JSON.stringify(t), n = window.g_emitDescriptor_maxBytes ?? 3e4, s = r.length, o = ++no;
|
|
1270
1270
|
if (s < n) {
|
|
1271
1271
|
const g = {
|
|
1272
1272
|
type: "earthsdk",
|
|
@@ -1319,12 +1319,12 @@ class ao extends m {
|
|
|
1319
1319
|
console.log(`resizeUEVideo emitCommand ${t} ${i} begin`), this.emitCommand(r);
|
|
1320
1320
|
}
|
|
1321
1321
|
}
|
|
1322
|
-
class
|
|
1322
|
+
class oo extends m {
|
|
1323
1323
|
constructor(t, i, r) {
|
|
1324
1324
|
super();
|
|
1325
1325
|
v(this, "_instance");
|
|
1326
1326
|
v(this, "_event", this.dv(new S()));
|
|
1327
|
-
this._container = t, this._wsuri = i, this._esmsgWsUri = r, this._instance = this.dv(new
|
|
1327
|
+
this._container = t, this._wsuri = i, this._esmsgWsUri = r, this._instance = this.dv(new so(this._container, { ws: this._wsuri })), this.d(this._instance.connected.don((n) => {
|
|
1328
1328
|
this._event.emit(n, n), console.log(`%c[EarthSDK] ${n}`, "background: #a6ec99; color: black");
|
|
1329
1329
|
})), this.d(this._instance.error.don((n) => {
|
|
1330
1330
|
this._event.emit("errorEvent", n), console.log(`%c[EarthSDK] ${n}`, "background: red; color: black");
|
|
@@ -1363,7 +1363,7 @@ class lo extends m {
|
|
|
1363
1363
|
this._instance.resizeUEVideo(t, i);
|
|
1364
1364
|
}
|
|
1365
1365
|
}
|
|
1366
|
-
class
|
|
1366
|
+
class ao extends Be {
|
|
1367
1367
|
constructor(t, i, r, n) {
|
|
1368
1368
|
super();
|
|
1369
1369
|
v(this, "_videoInitialized", this.dv(W(!1)));
|
|
@@ -1378,7 +1378,7 @@ class co extends De {
|
|
|
1378
1378
|
v(this, "_errorEvent", this.dv(new S()));
|
|
1379
1379
|
v(this, "_readyEvent", this.dv(new S()));
|
|
1380
1380
|
this._ueViewer = n, console.log("INNPSViewer init ! 以内置信令服务器模式启动!");
|
|
1381
|
-
const s = this._ueViewer, o = this.dv(new
|
|
1381
|
+
const s = this._ueViewer, o = this.dv(new oo(t, i, r));
|
|
1382
1382
|
this._ue5ViewerWrapper = o;
|
|
1383
1383
|
{
|
|
1384
1384
|
const d = () => o.debug = s.debug ?? !1;
|
|
@@ -1422,7 +1422,7 @@ class co extends De {
|
|
|
1422
1422
|
}
|
|
1423
1423
|
}));
|
|
1424
1424
|
{
|
|
1425
|
-
const d = this.dv(
|
|
1425
|
+
const d = this.dv(Je());
|
|
1426
1426
|
let h, c, f;
|
|
1427
1427
|
d.start(() => {
|
|
1428
1428
|
if (h !== t.offsetWidth || c !== t.offsetHeight || f !== s.resolutionScale) {
|
|
@@ -1476,7 +1476,7 @@ class co extends De {
|
|
|
1476
1476
|
} while (y < w);
|
|
1477
1477
|
}
|
|
1478
1478
|
};
|
|
1479
|
-
this.dv(
|
|
1479
|
+
this.dv(Se()).start(g, 50), this.d(() => console.log("UeCloudViewer正在销毁..."));
|
|
1480
1480
|
}
|
|
1481
1481
|
get videoInitialized() {
|
|
1482
1482
|
return this._videoInitialized.value;
|
|
@@ -1529,7 +1529,7 @@ class co extends De {
|
|
|
1529
1529
|
};
|
|
1530
1530
|
}
|
|
1531
1531
|
}
|
|
1532
|
-
class
|
|
1532
|
+
class lo extends m {
|
|
1533
1533
|
/**
|
|
1534
1534
|
* Creates an instance of DLViewer.
|
|
1535
1535
|
* @param {HTMLDivElement} container
|
|
@@ -1569,7 +1569,7 @@ class uo extends m {
|
|
|
1569
1569
|
return this._vIframe;
|
|
1570
1570
|
}
|
|
1571
1571
|
}
|
|
1572
|
-
const Ze = typeof TextDecoder < "u" ? new TextDecoder() : void 0,
|
|
1572
|
+
const Ze = typeof TextDecoder < "u" ? new TextDecoder() : void 0, co = (l, e = 0, t = NaN) => {
|
|
1573
1573
|
const i = e + t;
|
|
1574
1574
|
let r = e;
|
|
1575
1575
|
for (; l[r] && !(r >= i); ) ++r;
|
|
@@ -1597,7 +1597,7 @@ const Ze = typeof TextDecoder < "u" ? new TextDecoder() : void 0, ho = (l, e = 0
|
|
|
1597
1597
|
}
|
|
1598
1598
|
return n;
|
|
1599
1599
|
};
|
|
1600
|
-
class
|
|
1600
|
+
class uo extends m {
|
|
1601
1601
|
constructor(e, t, i) {
|
|
1602
1602
|
super();
|
|
1603
1603
|
{
|
|
@@ -1606,7 +1606,7 @@ class po extends m {
|
|
|
1606
1606
|
t.setGlobalProperty(u);
|
|
1607
1607
|
};
|
|
1608
1608
|
r();
|
|
1609
|
-
const n =
|
|
1609
|
+
const n = xe(), s = [];
|
|
1610
1610
|
n.forEach((u) => {
|
|
1611
1611
|
const a = t[u + "Changed"];
|
|
1612
1612
|
s.push(a);
|
|
@@ -1674,8 +1674,8 @@ class po extends m {
|
|
|
1674
1674
|
}));
|
|
1675
1675
|
}
|
|
1676
1676
|
}
|
|
1677
|
-
let
|
|
1678
|
-
class
|
|
1677
|
+
let ho = -1;
|
|
1678
|
+
class po extends Be {
|
|
1679
1679
|
/**
|
|
1680
1680
|
* Creates an instance of H5Viewer.
|
|
1681
1681
|
* @param {HTMLDivElement} container
|
|
@@ -1693,21 +1693,21 @@ class fo extends De {
|
|
|
1693
1693
|
v(this, "_waitingUeCalls", /* @__PURE__ */ new Map());
|
|
1694
1694
|
v(this, "_ueEvent", this.dv(new S()));
|
|
1695
1695
|
this._ueViewer = n;
|
|
1696
|
-
const s = this._ueViewer, o = this.dv(new
|
|
1696
|
+
const s = this._ueViewer, o = this.dv(new lo(t, i, r, s));
|
|
1697
1697
|
let u = !1, a = null;
|
|
1698
1698
|
this.d(o.onRuntimeInitialized.don(() => {
|
|
1699
1699
|
var h;
|
|
1700
1700
|
if (u = !0, (h = o == null ? void 0 : o.vIframe) != null && h.contentWindow) {
|
|
1701
1701
|
a = o.vIframe.contentWindow;
|
|
1702
1702
|
const c = o.vIframe.contentWindow.document.getElementById("mainarea");
|
|
1703
|
-
c ? this.dv(new
|
|
1703
|
+
c ? this.dv(new uo(c, s, this)) : console.error("h5Container is null");
|
|
1704
1704
|
} else {
|
|
1705
1705
|
console.error("iframeWindow is null");
|
|
1706
1706
|
return;
|
|
1707
1707
|
}
|
|
1708
1708
|
a.UE_JSHTML5Communication ? a.UE_JSHTML5Communication.UESendMessageToJS = (c) => {
|
|
1709
1709
|
try {
|
|
1710
|
-
const f =
|
|
1710
|
+
const f = co(a.HEAPU8, c), w = JSON.parse(f);
|
|
1711
1711
|
if (s.debug && (console.group(
|
|
1712
1712
|
"%cUE => JS",
|
|
1713
1713
|
" background-color:#006EFF;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"
|
|
@@ -1744,7 +1744,7 @@ class fo extends De {
|
|
|
1744
1744
|
`%c${JSON.stringify(c, void 0, "")}`,
|
|
1745
1745
|
" border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"
|
|
1746
1746
|
), console.groupEnd());
|
|
1747
|
-
const f = JSON.stringify(c), w = window.g_emitDescriptor_maxBytes ?? 3e4, y = f.length, x = ++
|
|
1747
|
+
const f = JSON.stringify(c), w = window.g_emitDescriptor_maxBytes ?? 3e4, y = f.length, x = ++ho;
|
|
1748
1748
|
if (y < w) {
|
|
1749
1749
|
const T = `${x}-0/1-` + f;
|
|
1750
1750
|
a.UE_JSHTML5Communication.JSSendMessageToUE(T);
|
|
@@ -1752,11 +1752,11 @@ class fo extends De {
|
|
|
1752
1752
|
}
|
|
1753
1753
|
const C = Math.ceil(y / w) | 0;
|
|
1754
1754
|
[...new Array(C).keys()].map((T) => f.slice(T * w, (T + 1) * w)).forEach((T, B) => {
|
|
1755
|
-
const
|
|
1756
|
-
a.UE_JSHTML5Communication.JSSendMessageToUE(
|
|
1755
|
+
const _e = `${x}-${B}/${C}-` + T;
|
|
1756
|
+
a.UE_JSHTML5Communication.JSSendMessageToUE(_e);
|
|
1757
1757
|
});
|
|
1758
1758
|
};
|
|
1759
|
-
this.dv(
|
|
1759
|
+
this.dv(Se()).start(p, 50);
|
|
1760
1760
|
}
|
|
1761
1761
|
processResponse(t) {
|
|
1762
1762
|
if (this._ueViewer.debug ?? !1)
|
|
@@ -1803,8 +1803,8 @@ class fo extends De {
|
|
|
1803
1803
|
};
|
|
1804
1804
|
}
|
|
1805
1805
|
}
|
|
1806
|
-
let
|
|
1807
|
-
class
|
|
1806
|
+
let vo = -1;
|
|
1807
|
+
class fo extends Be {
|
|
1808
1808
|
constructor(t, i) {
|
|
1809
1809
|
super();
|
|
1810
1810
|
v(this, "_ueFuncResultWithIdsEvent", this.dv(new S()));
|
|
@@ -1856,12 +1856,12 @@ class wo extends De {
|
|
|
1856
1856
|
`%c${JSON.stringify(p, void 0, "")}`,
|
|
1857
1857
|
" border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"
|
|
1858
1858
|
), console.groupEnd());
|
|
1859
|
-
const d = ++
|
|
1859
|
+
const d = ++vo;
|
|
1860
1860
|
window.ue.es.oncommand(`${d}-0/1-` + JSON.stringify(p)).then(() => {
|
|
1861
1861
|
this._waitingUeCalls.delete(p);
|
|
1862
1862
|
});
|
|
1863
1863
|
};
|
|
1864
|
-
this.dv(
|
|
1864
|
+
this.dv(Se()).start(u, 50);
|
|
1865
1865
|
}
|
|
1866
1866
|
callUeFunc(t) {
|
|
1867
1867
|
return new Promise((i) => {
|
|
@@ -1893,7 +1893,7 @@ class wo extends De {
|
|
|
1893
1893
|
};
|
|
1894
1894
|
}
|
|
1895
1895
|
}
|
|
1896
|
-
class
|
|
1896
|
+
class go extends m {
|
|
1897
1897
|
constructor(e, t) {
|
|
1898
1898
|
super();
|
|
1899
1899
|
{
|
|
@@ -1902,7 +1902,7 @@ class yo extends m {
|
|
|
1902
1902
|
e.setGlobalProperty(o);
|
|
1903
1903
|
};
|
|
1904
1904
|
i();
|
|
1905
|
-
const r =
|
|
1905
|
+
const r = xe(), n = [];
|
|
1906
1906
|
r.forEach((o) => {
|
|
1907
1907
|
const u = e[o + "Changed"];
|
|
1908
1908
|
n.push(u);
|
|
@@ -1970,7 +1970,7 @@ class yo extends m {
|
|
|
1970
1970
|
}));
|
|
1971
1971
|
}
|
|
1972
1972
|
}
|
|
1973
|
-
class
|
|
1973
|
+
class wo extends m {
|
|
1974
1974
|
constructor(e, t, i) {
|
|
1975
1975
|
super();
|
|
1976
1976
|
{
|
|
@@ -1979,7 +1979,7 @@ class mo extends m {
|
|
|
1979
1979
|
t.setGlobalProperty(a);
|
|
1980
1980
|
};
|
|
1981
1981
|
n();
|
|
1982
|
-
const s =
|
|
1982
|
+
const s = xe(), o = [];
|
|
1983
1983
|
s.forEach((a) => {
|
|
1984
1984
|
const g = t[a + "Changed"];
|
|
1985
1985
|
o.push(g);
|
|
@@ -2066,7 +2066,7 @@ class mo extends m {
|
|
|
2066
2066
|
}));
|
|
2067
2067
|
}
|
|
2068
2068
|
}
|
|
2069
|
-
class
|
|
2069
|
+
class yo extends m {
|
|
2070
2070
|
constructor(t, i, r) {
|
|
2071
2071
|
super();
|
|
2072
2072
|
v(this, "_reconnectEvent", this.dv(new S()));
|
|
@@ -2078,8 +2078,8 @@ class Co extends m {
|
|
|
2078
2078
|
const a = new URLSearchParams(window.location.search).get("eswebview") === "true", g = () => {
|
|
2079
2079
|
if (window.ue.esinput) {
|
|
2080
2080
|
r.setStatus("Creating"), console.log("存在(window.ue && window.ue.es && window.ue.esinput 需要适配新版ESWebView 鼠标穿透), 开始创建UeFalseCloudViewer..."), r.setStatusLog("开始创建本地视口...");
|
|
2081
|
-
const p = this.dv(new
|
|
2082
|
-
this.d(() => r.viewer = void 0), r.viewer = p, r.setStatus("Created"), r.setStatusLog("本地视口创建成功!"), this.dv(new
|
|
2081
|
+
const p = this.dv(new fo(t, r));
|
|
2082
|
+
this.d(() => r.viewer = void 0), r.viewer = p, r.setStatus("Created"), r.setStatusLog("本地视口创建成功!"), this.dv(new wo(t, r, p));
|
|
2083
2083
|
} else
|
|
2084
2084
|
r.setStatus("Error"), r.setStatusLog("请升级 ESWebView !"), this.d(() => r.viewer = void 0), r.viewer = void 0;
|
|
2085
2085
|
};
|
|
@@ -2095,7 +2095,7 @@ class Co extends m {
|
|
|
2095
2095
|
this.d(() => {
|
|
2096
2096
|
r.setStatus("Raw"), r.setStatusLog(""), t && p && t.removeChild(p) && (p = void 0);
|
|
2097
2097
|
});
|
|
2098
|
-
const d = this.dv(
|
|
2098
|
+
const d = this.dv(Te(async (h) => {
|
|
2099
2099
|
r.viewer && !r.viewer.isDestroyed() && r.viewer.destroy(), r.viewer = void 0, p && t.removeChild(p) && (p = void 0), p = document.createElement("div"), p.setAttribute("earthsdk3-ue", "earthsdk3-ue-videoContainer"), p.style.cssText = "position:relative; height: 100%;width:100%;", t.appendChild(p);
|
|
2100
2100
|
let c, f, w;
|
|
2101
2101
|
if (n(i.options, "ws")) {
|
|
@@ -2104,16 +2104,16 @@ class Co extends m {
|
|
|
2104
2104
|
}
|
|
2105
2105
|
if (n(i.options, "uri") && n(i.options, "app")) {
|
|
2106
2106
|
const { offsetWidth: R, offsetHeight: T } = p;
|
|
2107
|
-
let { uri: B, app:
|
|
2107
|
+
let { uri: B, app: _e, token: Xe } = i.options;
|
|
2108
2108
|
B.endsWith("/") || (B += "/");
|
|
2109
|
-
const Tr = Xe ? `?essstoken=${Xe}` : "", Ye = `/${
|
|
2109
|
+
const Tr = Xe ? `?essstoken=${Xe}` : "", Ye = `/${_e}/${R ?? 1920}/${T ?? 1080}` + Tr;
|
|
2110
2110
|
console.log(`请求信令服务器: ${B}instance${Ye}`);
|
|
2111
2111
|
const xr = await h.promise(fetch(`${B}instance${Ye}`, { method: "GET" })), V = await h.promise(xr.json());
|
|
2112
2112
|
if (V && V.status !== "ok") {
|
|
2113
2113
|
r.setStatus("Error"), r.setStatusLog(`信令服务器请求失败 ${V.status}`), this._reconnectEvent.emit(void 0);
|
|
2114
2114
|
return;
|
|
2115
2115
|
} else {
|
|
2116
|
-
console.log(`信令服务器请求成功! ${JSON.stringify(V, void 0, " ")}`), await
|
|
2116
|
+
console.log(`信令服务器请求成功! ${JSON.stringify(V, void 0, " ")}`), await Kn(2e3);
|
|
2117
2117
|
const { server: Rr, esmsg: Lr, instanceId: Pr, useInternalSignallingServer: kr } = V;
|
|
2118
2118
|
if (!Pr) {
|
|
2119
2119
|
r.setStatus("Error"), r.setStatusLog("检查信令服务器版本,返回数据错误! "), console.log("信令服务器返回数据错误!不包含instanceId!请升级到 ESSS V3.0+ 版本!"), this._reconnectEvent.emit(void 0);
|
|
@@ -2122,13 +2122,13 @@ class Co extends m {
|
|
|
2122
2122
|
c = Rr, f = Lr, w = kr ?? !1, r.esssResponse = V;
|
|
2123
2123
|
}
|
|
2124
2124
|
}
|
|
2125
|
-
const y = this.dv(w ? new
|
|
2125
|
+
const y = this.dv(w ? new ao(p, c, f, r) : new to(p, c, f, r));
|
|
2126
2126
|
this.d(() => r.viewer = void 0), this.d(y.errorEvent.don((R) => {
|
|
2127
2127
|
const T = `[${R}]:像素流连接错误!`;
|
|
2128
2128
|
r.setStatus("Error"), r.setStatusLog(T), this._reconnectEvent.emit(y);
|
|
2129
2129
|
})), await h.promise(new Promise((R) => this.d(y.readyEvent.donce(R)))), r.setStatus("Created"), r.setStatusLog("云渲染视口创建成功!"), s = 0, o && clearTimeout(o), o = void 0;
|
|
2130
2130
|
const { offsetWidth: x, offsetHeight: C } = p;
|
|
2131
|
-
y.resize(x * window.devicePixelRatio, C * window.devicePixelRatio), r.viewer = y, this.d(() => r.viewer = void 0), this.dv(new
|
|
2131
|
+
y.resize(x * window.devicePixelRatio, C * window.devicePixelRatio), r.viewer = y, this.d(() => r.viewer = void 0), this.dv(new go(r, y));
|
|
2132
2132
|
}));
|
|
2133
2133
|
d.start(), this.d(this._reconnectEvent.don((h) => {
|
|
2134
2134
|
o === void 0 && (h && !h.isDestroyed() && h.destroy(), r.viewer && !r.viewer.isDestroyed() && r.viewer.destroy(), r.viewer = void 0, r.autoReconnect && (r.setStatus("Reconnecting"), r.setStatusLog("正在尝试重新连接..."), s = s + 5e3 > 3e4 ? 3e4 : s + 5e3, console.warn(`间隔:${s / 1e3}s,正在尝试重新连接...`), o = window.setTimeout(() => {
|
|
@@ -2140,13 +2140,13 @@ class Co extends m {
|
|
|
2140
2140
|
} else if (n(i.options, "project")) {
|
|
2141
2141
|
const p = i, d = p.options.project, h = p.options.baseUrl;
|
|
2142
2142
|
r.setStatus("Creating"), r.setStatusLog("下载编译中...");
|
|
2143
|
-
const c = this.dv(new
|
|
2143
|
+
const c = this.dv(new po(t, d, h, r));
|
|
2144
2144
|
r.viewer = c, this.d(() => r.viewer = void 0);
|
|
2145
2145
|
} else
|
|
2146
2146
|
r.setStatus("Error"), r.setStatusLog("视口创建失败!"), console.warn("视口创建失败: 参数错误!");
|
|
2147
2147
|
}
|
|
2148
2148
|
}
|
|
2149
|
-
const K = class K extends
|
|
2149
|
+
const K = class K extends Ee {
|
|
2150
2150
|
constructor(t) {
|
|
2151
2151
|
super(t);
|
|
2152
2152
|
v(this, "_viewer", this.dv(W(void 0)));
|
|
@@ -2168,7 +2168,7 @@ const K = class K extends Ie {
|
|
|
2168
2168
|
this.viewerChanged.emit(this.viewer);
|
|
2169
2169
|
})), this.dv(new L(this.subContainerChanged, () => {
|
|
2170
2170
|
if (this.setStatus("Raw"), this.setStatusLog(""), !!this.subContainer)
|
|
2171
|
-
return new
|
|
2171
|
+
return new yo(this.subContainer, i, this);
|
|
2172
2172
|
}));
|
|
2173
2173
|
}
|
|
2174
2174
|
get defaultProps() {
|
|
@@ -2211,14 +2211,14 @@ const K = class K extends Ie {
|
|
|
2211
2211
|
console.warn("UEPositionToLonLatAlt: viewer is undefined");
|
|
2212
2212
|
return;
|
|
2213
2213
|
}
|
|
2214
|
-
return await
|
|
2214
|
+
return await ms(this.viewer, t);
|
|
2215
2215
|
}
|
|
2216
2216
|
async changeNavigationMode(t) {
|
|
2217
2217
|
if (!this.viewer) {
|
|
2218
2218
|
console.warn("ChangeNavigationMode: viewer is undefined");
|
|
2219
2219
|
return;
|
|
2220
2220
|
}
|
|
2221
|
-
const i = await
|
|
2221
|
+
const i = await J(this.viewer, t);
|
|
2222
2222
|
return i && !i.error && (this._navigationMode.value = t.mode), i;
|
|
2223
2223
|
}
|
|
2224
2224
|
async resetWithCurrentCamera(t) {
|
|
@@ -2233,175 +2233,175 @@ const K = class K extends Ie {
|
|
|
2233
2233
|
console.warn("GetAllSocketNamesByActorTag: viewer is undefined");
|
|
2234
2234
|
return;
|
|
2235
2235
|
}
|
|
2236
|
-
return await
|
|
2236
|
+
return await Cs(this.viewer, t);
|
|
2237
2237
|
}
|
|
2238
2238
|
async getBoundSphere(t) {
|
|
2239
2239
|
if (!this.viewer) {
|
|
2240
2240
|
console.warn("getBoundSphere: viewer is undefined");
|
|
2241
2241
|
return;
|
|
2242
2242
|
}
|
|
2243
|
-
return await
|
|
2243
|
+
return await Is(this.viewer, t);
|
|
2244
2244
|
}
|
|
2245
2245
|
async getBoundSphereWithChildren(t) {
|
|
2246
2246
|
if (!this.viewer) {
|
|
2247
2247
|
console.warn("getBoundSphereWithChildren: viewer is undefined");
|
|
2248
2248
|
return;
|
|
2249
2249
|
}
|
|
2250
|
-
return await
|
|
2250
|
+
return await Es(this.viewer, t);
|
|
2251
2251
|
}
|
|
2252
2252
|
async getStrokeMaterialParamInfo(t) {
|
|
2253
2253
|
if (!this.viewer) {
|
|
2254
2254
|
console.warn("GetStrokeMaterialParamInfo: viewer is undefined");
|
|
2255
2255
|
return;
|
|
2256
2256
|
}
|
|
2257
|
-
return await
|
|
2257
|
+
return await Ss(this.viewer, t);
|
|
2258
2258
|
}
|
|
2259
2259
|
async getFillMaterialParamInfo(t) {
|
|
2260
2260
|
if (!this.viewer) {
|
|
2261
2261
|
console.warn("getFillMaterialParamInfo: viewer is undefined");
|
|
2262
2262
|
return;
|
|
2263
2263
|
}
|
|
2264
|
-
return await
|
|
2264
|
+
return await Ts(this.viewer, t);
|
|
2265
2265
|
}
|
|
2266
2266
|
async getGlobalProperty(t) {
|
|
2267
2267
|
if (!this.viewer) {
|
|
2268
2268
|
console.warn("getGlobalProperty: viewer is undefined");
|
|
2269
2269
|
return;
|
|
2270
2270
|
}
|
|
2271
|
-
return await
|
|
2271
|
+
return await xs(this.viewer, t);
|
|
2272
2272
|
}
|
|
2273
2273
|
async getObjectByInfo(t) {
|
|
2274
2274
|
if (!this.viewer) {
|
|
2275
2275
|
console.warn("GetObjectByInfo: viewer is undefined");
|
|
2276
2276
|
return;
|
|
2277
2277
|
}
|
|
2278
|
-
return await
|
|
2278
|
+
return await Rs(this.viewer, t);
|
|
2279
2279
|
}
|
|
2280
2280
|
async defaultCameraFlyIn(t = 1) {
|
|
2281
2281
|
if (!this.viewer) {
|
|
2282
2282
|
console.warn("DefaultCameraFlyIn: viewer is undefined");
|
|
2283
2283
|
return;
|
|
2284
2284
|
}
|
|
2285
|
-
return await
|
|
2285
|
+
return await On(this.viewer, t);
|
|
2286
2286
|
}
|
|
2287
2287
|
async startVoice() {
|
|
2288
2288
|
if (!this.viewer) {
|
|
2289
2289
|
console.warn("startVoice:viewer is undefined");
|
|
2290
2290
|
return;
|
|
2291
2291
|
}
|
|
2292
|
-
return await
|
|
2292
|
+
return await jn(this.viewer);
|
|
2293
2293
|
}
|
|
2294
2294
|
async stopVoice() {
|
|
2295
2295
|
if (!this.viewer) {
|
|
2296
2296
|
console.warn("startVoice:viewer is undefined");
|
|
2297
2297
|
return;
|
|
2298
2298
|
}
|
|
2299
|
-
return await
|
|
2299
|
+
return await ts(this.viewer);
|
|
2300
2300
|
}
|
|
2301
2301
|
async mountPakFiles(t) {
|
|
2302
2302
|
if (!this.viewer) {
|
|
2303
2303
|
console.warn("mountPakFiles:viewer is undefined");
|
|
2304
2304
|
return;
|
|
2305
2305
|
}
|
|
2306
|
-
return await
|
|
2306
|
+
return await es(this.viewer, t);
|
|
2307
2307
|
}
|
|
2308
2308
|
async generateMemReport() {
|
|
2309
2309
|
if (!this.viewer) {
|
|
2310
2310
|
console.warn("generateMemReport:viewer is undefined");
|
|
2311
2311
|
return;
|
|
2312
2312
|
}
|
|
2313
|
-
return await
|
|
2313
|
+
return await is(this.viewer);
|
|
2314
2314
|
}
|
|
2315
2315
|
async quit() {
|
|
2316
2316
|
if (!this.viewer) {
|
|
2317
2317
|
console.warn("Quit: viewer is undefined");
|
|
2318
2318
|
return;
|
|
2319
2319
|
}
|
|
2320
|
-
return await
|
|
2320
|
+
return await us(this.viewer);
|
|
2321
2321
|
}
|
|
2322
2322
|
async bindActorByTag(t, i) {
|
|
2323
2323
|
if (!this.viewer) {
|
|
2324
2324
|
console.warn("BindActorByTag: viewer is undefined");
|
|
2325
2325
|
return;
|
|
2326
2326
|
}
|
|
2327
|
-
return await
|
|
2327
|
+
return await Ls(this.viewer, t, i);
|
|
2328
2328
|
}
|
|
2329
2329
|
async restoreOriginalScene() {
|
|
2330
2330
|
if (!this.viewer) {
|
|
2331
2331
|
console.warn("RestoreOriginalScene: viewer is undefined");
|
|
2332
2332
|
return;
|
|
2333
2333
|
}
|
|
2334
|
-
return await
|
|
2334
|
+
return await Ps(this.viewer);
|
|
2335
2335
|
}
|
|
2336
2336
|
async unBindActorByID(t) {
|
|
2337
2337
|
if (!this.viewer) {
|
|
2338
2338
|
console.warn("UnBindActorByID: viewer is undefined");
|
|
2339
2339
|
return;
|
|
2340
2340
|
}
|
|
2341
|
-
return await
|
|
2341
|
+
return await ks(this.viewer, t);
|
|
2342
2342
|
}
|
|
2343
2343
|
async unBindActorByTag(t) {
|
|
2344
2344
|
if (!this.viewer) {
|
|
2345
2345
|
console.warn("UnBindActorByTag: viewer is undefined");
|
|
2346
2346
|
return;
|
|
2347
2347
|
}
|
|
2348
|
-
return await
|
|
2348
|
+
return await Ds(this.viewer, t);
|
|
2349
2349
|
}
|
|
2350
2350
|
async createActorByClass(t, i) {
|
|
2351
2351
|
if (!this.viewer) {
|
|
2352
2352
|
console.warn("CreateActorByClass: viewer is undefined");
|
|
2353
2353
|
return;
|
|
2354
2354
|
}
|
|
2355
|
-
return await
|
|
2355
|
+
return await Bs(this.viewer, t, i);
|
|
2356
2356
|
}
|
|
2357
2357
|
async bind3DTilesetByTag(t, i) {
|
|
2358
2358
|
if (!this.viewer) {
|
|
2359
2359
|
console.warn("Bind3DTilesetByTag: viewer is undefined");
|
|
2360
2360
|
return;
|
|
2361
2361
|
}
|
|
2362
|
-
return await
|
|
2362
|
+
return await _s(this.viewer, t, i);
|
|
2363
2363
|
}
|
|
2364
2364
|
async unBind3DTilesetByTag(t) {
|
|
2365
2365
|
if (!this.viewer) {
|
|
2366
2366
|
console.warn("UnBind3DTilesetByTag: viewer is undefined");
|
|
2367
2367
|
return;
|
|
2368
2368
|
}
|
|
2369
|
-
return await
|
|
2369
|
+
return await Ms(this.viewer, t);
|
|
2370
2370
|
}
|
|
2371
2371
|
async unBind3DTilesetById(t) {
|
|
2372
2372
|
if (!this.viewer) {
|
|
2373
2373
|
console.warn("UnBind3DTilesetById: viewer is undefined");
|
|
2374
2374
|
return;
|
|
2375
2375
|
}
|
|
2376
|
-
return await
|
|
2376
|
+
return await $s(this.viewer, t);
|
|
2377
2377
|
}
|
|
2378
2378
|
async bindImageryByTag(t, i, r) {
|
|
2379
2379
|
if (!this.viewer) {
|
|
2380
2380
|
console.warn("BindImageryByTag: viewer is undefined");
|
|
2381
2381
|
return;
|
|
2382
2382
|
}
|
|
2383
|
-
return await
|
|
2383
|
+
return await Ws(this.viewer, t, i, r);
|
|
2384
2384
|
}
|
|
2385
2385
|
async unBindImageryByTag(t, i) {
|
|
2386
2386
|
if (!this.viewer) {
|
|
2387
2387
|
console.warn("UnBindImageryByTag: viewer is undefined");
|
|
2388
2388
|
return;
|
|
2389
2389
|
}
|
|
2390
|
-
return await
|
|
2390
|
+
return await As(this.viewer, t, i);
|
|
2391
2391
|
}
|
|
2392
2392
|
async unBindImageryById(t) {
|
|
2393
2393
|
if (!this.viewer) {
|
|
2394
2394
|
console.warn("UnBindImageryById: viewer is undefined");
|
|
2395
2395
|
return;
|
|
2396
2396
|
}
|
|
2397
|
-
return await
|
|
2397
|
+
return await Us(this.viewer, t);
|
|
2398
2398
|
}
|
|
2399
2399
|
async getIdByComponentNameAndHitItem(t, i, r) {
|
|
2400
2400
|
if (!this.viewer) {
|
|
2401
2401
|
console.warn("GetIdByComponentNameAndHitItem: viewer is undefined");
|
|
2402
2402
|
return;
|
|
2403
2403
|
}
|
|
2404
|
-
return await
|
|
2404
|
+
return await Ns(this.viewer, t, i, r);
|
|
2405
2405
|
}
|
|
2406
2406
|
/**
|
|
2407
2407
|
* @returns Promise(高度)
|
|
@@ -2413,7 +2413,7 @@ const K = class K extends Ie {
|
|
|
2413
2413
|
console.warn("GetCameraRelativeHeight: viewer is undefined");
|
|
2414
2414
|
return;
|
|
2415
2415
|
}
|
|
2416
|
-
return await
|
|
2416
|
+
return await zs(this.viewer, t);
|
|
2417
2417
|
}
|
|
2418
2418
|
/**
|
|
2419
2419
|
* 保存str到指定目录下
|
|
@@ -2425,28 +2425,28 @@ const K = class K extends Ie {
|
|
|
2425
2425
|
console.warn("SaveStringToFile: viewer is undefined");
|
|
2426
2426
|
return;
|
|
2427
2427
|
}
|
|
2428
|
-
return await
|
|
2428
|
+
return await Hs(this.viewer, t, i, r);
|
|
2429
2429
|
}
|
|
2430
2430
|
async highlightActorByTag(t, i = !0) {
|
|
2431
2431
|
if (!this.viewer) {
|
|
2432
2432
|
console.warn("HighlightActorByTag: viewer is undefined");
|
|
2433
2433
|
return;
|
|
2434
2434
|
}
|
|
2435
|
-
return await
|
|
2435
|
+
return await Js(this.viewer, t, i);
|
|
2436
2436
|
}
|
|
2437
2437
|
async sendCustomMessage(t) {
|
|
2438
2438
|
if (!this.viewer) {
|
|
2439
2439
|
console.warn("SendCustomMessage: viewer is undefined");
|
|
2440
2440
|
return;
|
|
2441
2441
|
}
|
|
2442
|
-
return await
|
|
2442
|
+
return await bs(this.viewer, t);
|
|
2443
2443
|
}
|
|
2444
2444
|
async getStatus() {
|
|
2445
2445
|
if (!this.viewer) {
|
|
2446
2446
|
console.warn("GetStatus:viewer is undefined");
|
|
2447
2447
|
return;
|
|
2448
2448
|
}
|
|
2449
|
-
return await
|
|
2449
|
+
return await Gs(this.viewer);
|
|
2450
2450
|
}
|
|
2451
2451
|
/**
|
|
2452
2452
|
* 获取场景中可替换的材质列表
|
|
@@ -2456,7 +2456,7 @@ const K = class K extends Ie {
|
|
|
2456
2456
|
console.warn("GetTilesetMaterialIDList:viewer is undefined");
|
|
2457
2457
|
return;
|
|
2458
2458
|
}
|
|
2459
|
-
return await
|
|
2459
|
+
return await Zs(this.viewer);
|
|
2460
2460
|
}
|
|
2461
2461
|
//——————————————————————————————————————————
|
|
2462
2462
|
//抽象函数实现------------------------------
|
|
@@ -2467,7 +2467,7 @@ const K = class K extends Ie {
|
|
|
2467
2467
|
const [s, o] = t, { x: u, y: a } = this.container.getBoundingClientRect();
|
|
2468
2468
|
n = [u + s, a + o];
|
|
2469
2469
|
}
|
|
2470
|
-
return await
|
|
2470
|
+
return await hs(this.viewer, n, i, r);
|
|
2471
2471
|
}
|
|
2472
2472
|
async pickPosition(t) {
|
|
2473
2473
|
if (!this.viewer) return;
|
|
@@ -2476,7 +2476,7 @@ const K = class K extends Ie {
|
|
|
2476
2476
|
const [r, n] = t, { x: s, y: o } = this.container.getBoundingClientRect();
|
|
2477
2477
|
i = [s + r, o + n];
|
|
2478
2478
|
}
|
|
2479
|
-
return await
|
|
2479
|
+
return await ps(this.viewer, i);
|
|
2480
2480
|
}
|
|
2481
2481
|
async quickPickPosition(t) {
|
|
2482
2482
|
return await this.pickPosition(t);
|
|
@@ -2486,7 +2486,7 @@ const K = class K extends Ie {
|
|
|
2486
2486
|
}
|
|
2487
2487
|
async flyIn(t, i = [0, 0, 0], r = 1, n = "default") {
|
|
2488
2488
|
if (!this.viewer) return;
|
|
2489
|
-
const s = await
|
|
2489
|
+
const s = await Re(this.viewer, void 0, t, i, r, n);
|
|
2490
2490
|
if (s)
|
|
2491
2491
|
return s.endType === 0 && console.warn(`flyTo:flyTo is end! endType:${s.endType}`), s.endType === 1 && console.warn(`flyTo:飞行中断! endType:${s.endType}`), s;
|
|
2492
2492
|
}
|
|
@@ -2536,7 +2536,7 @@ const K = class K extends Ie {
|
|
|
2536
2536
|
*/
|
|
2537
2537
|
async changeToWalk(t, i = 4.2, r = 1.6) {
|
|
2538
2538
|
if (!this.viewer) return;
|
|
2539
|
-
const n = { mode: "Walk", position: t, jumpZVelocity: i, eyeHeight: r }, s = await
|
|
2539
|
+
const n = { mode: "Walk", position: t, jumpZVelocity: i, eyeHeight: r }, s = await J(this.viewer, n);
|
|
2540
2540
|
return s && !s.error && (this._navigationMode.value = n.mode), s;
|
|
2541
2541
|
}
|
|
2542
2542
|
/**
|
|
@@ -2545,7 +2545,7 @@ const K = class K extends Ie {
|
|
|
2545
2545
|
*/
|
|
2546
2546
|
async changeToMap() {
|
|
2547
2547
|
if (!this.viewer) return;
|
|
2548
|
-
const t = { mode: "Map" }, i = await
|
|
2548
|
+
const t = { mode: "Map" }, i = await J(this.viewer, t);
|
|
2549
2549
|
return i && !i.error && (this._navigationMode.value = t.mode), i;
|
|
2550
2550
|
}
|
|
2551
2551
|
/**
|
|
@@ -2557,7 +2557,7 @@ const K = class K extends Ie {
|
|
|
2557
2557
|
*/
|
|
2558
2558
|
async changeToRotateGlobe(t = 38, i = 1e7, r = 60) {
|
|
2559
2559
|
if (!this.viewer) return;
|
|
2560
|
-
const n = { mode: "RotateGlobe", latitude: t, height: i, cycleTime: r }, s = await
|
|
2560
|
+
const n = { mode: "RotateGlobe", latitude: t, height: i, cycleTime: r }, s = await J(this.viewer, n);
|
|
2561
2561
|
return s && !s.error && (this._navigationMode.value = n.mode), s;
|
|
2562
2562
|
}
|
|
2563
2563
|
/**
|
|
@@ -2572,7 +2572,7 @@ const K = class K extends Ie {
|
|
|
2572
2572
|
*/
|
|
2573
2573
|
async changeToLine(t, i = 10, r = 10, n = !0, s = 10, o = "auto") {
|
|
2574
2574
|
if (!this.viewer) return;
|
|
2575
|
-
const u = { mode: "Line", geoLineStringId: t, speed: i, heightOffset: r, loop: n, turnRateDPS: s, lineMode: o }, a = await
|
|
2575
|
+
const u = { mode: "Line", geoLineStringId: t, speed: i, heightOffset: r, loop: n, turnRateDPS: s, lineMode: o }, a = await J(this.viewer, u);
|
|
2576
2576
|
return a && !a.error && (this._navigationMode.value = u.mode), a;
|
|
2577
2577
|
}
|
|
2578
2578
|
/**
|
|
@@ -2582,7 +2582,7 @@ const K = class K extends Ie {
|
|
|
2582
2582
|
*/
|
|
2583
2583
|
async changeToUserDefined(t) {
|
|
2584
2584
|
if (!this.viewer) return;
|
|
2585
|
-
const i = { mode: "UserDefined", userDefinedPawn: t }, r = await
|
|
2585
|
+
const i = { mode: "UserDefined", userDefinedPawn: t }, r = await J(this.viewer, i);
|
|
2586
2586
|
return r && !r.error && (this._navigationMode.value = i.mode), r;
|
|
2587
2587
|
}
|
|
2588
2588
|
/**
|
|
@@ -2602,7 +2602,7 @@ const K = class K extends Ie {
|
|
|
2602
2602
|
orbitPeriod: r,
|
|
2603
2603
|
heading: n,
|
|
2604
2604
|
pitch: s
|
|
2605
|
-
}, u = await
|
|
2605
|
+
}, u = await J(this.viewer, o);
|
|
2606
2606
|
return u && !u.error && (this._navigationMode.value = o.mode), u;
|
|
2607
2607
|
}
|
|
2608
2608
|
/**
|
|
@@ -2614,7 +2614,7 @@ const K = class K extends Ie {
|
|
|
2614
2614
|
*/
|
|
2615
2615
|
async changeToFollow(t, i = 0, r = 0, n = -30, s = !0) {
|
|
2616
2616
|
if (!this.viewer) return;
|
|
2617
|
-
const o = { mode: "Follow", objectId: t, distance: i, heading: r, pitch: n, relativeRotation: s }, u = await
|
|
2617
|
+
const o = { mode: "Follow", objectId: t, distance: i, heading: r, pitch: n, relativeRotation: s }, u = await J(this.viewer, o);
|
|
2618
2618
|
return u && !u.error && (this._navigationMode.value = o.mode), u;
|
|
2619
2619
|
}
|
|
2620
2620
|
getFPS() {
|
|
@@ -2623,47 +2623,47 @@ const K = class K extends Ie {
|
|
|
2623
2623
|
async getVersion() {
|
|
2624
2624
|
const t = window.g_XE3CopyRights ?? {};
|
|
2625
2625
|
if (!this.viewer) return t;
|
|
2626
|
-
const i = await
|
|
2626
|
+
const i = await Fs(this.viewer);
|
|
2627
2627
|
return t.esforue = i, t;
|
|
2628
2628
|
}
|
|
2629
2629
|
async getHeightByLonLat(t, i, r = "ECC_Visibility") {
|
|
2630
2630
|
if (!this.viewer) return null;
|
|
2631
|
-
const n = await
|
|
2631
|
+
const n = await vs(this.viewer, t, i, r);
|
|
2632
2632
|
return n && n.height !== void 0 ? n.height : null;
|
|
2633
2633
|
}
|
|
2634
2634
|
async getHeightsByLonLats(t, i = "ECC_Visibility") {
|
|
2635
|
-
return this.viewer ? await
|
|
2635
|
+
return this.viewer ? await fs(this.viewer, t, i) : void 0;
|
|
2636
2636
|
}
|
|
2637
2637
|
async capture(t = 64, i = 64) {
|
|
2638
|
-
return this.viewer ? await
|
|
2638
|
+
return this.viewer ? await gs(this.viewer, t, i) : void 0;
|
|
2639
2639
|
}
|
|
2640
2640
|
async partialCapture(t, i = [64, 64]) {
|
|
2641
2641
|
if (!this.viewer) {
|
|
2642
2642
|
console.warn("partialCapture:viewer is undefined");
|
|
2643
2643
|
return;
|
|
2644
2644
|
}
|
|
2645
|
-
return await
|
|
2645
|
+
return await ws(this.viewer, t, i);
|
|
2646
2646
|
}
|
|
2647
2647
|
async lonLatAltToScreenPosition(t) {
|
|
2648
2648
|
if (!this.viewer) return;
|
|
2649
|
-
const i = await
|
|
2649
|
+
const i = await ys(this.viewer, t);
|
|
2650
2650
|
return i && [i.X, i.Y];
|
|
2651
2651
|
}
|
|
2652
2652
|
//------------------------------抽象函数实现
|
|
2653
2653
|
async setGlobalProperty(t) {
|
|
2654
2654
|
if (this.viewer)
|
|
2655
|
-
return await
|
|
2655
|
+
return await cs(this.viewer, t);
|
|
2656
2656
|
}
|
|
2657
2657
|
async startEditing(t, i, r) {
|
|
2658
2658
|
r = Object.assign({ useKeyToSwitch: !0, callSource: "outer" }, r);
|
|
2659
2659
|
const n = t.components.main ?? t;
|
|
2660
2660
|
if (!n || !this.viewer || i == null) return;
|
|
2661
2661
|
const s = Array.isArray(i) ? [...i] : [i];
|
|
2662
|
-
return n.editingID = `${r.callSource}_${_()}`, await
|
|
2662
|
+
return n.editingID = `${r.callSource}_${_()}`, await Ks(this.viewer, n.id, n.editingID, s, r.useKeyToSwitch);
|
|
2663
2663
|
}
|
|
2664
2664
|
async stopEditing() {
|
|
2665
2665
|
if (this.viewer)
|
|
2666
|
-
return await
|
|
2666
|
+
return await Xs(this.viewer);
|
|
2667
2667
|
}
|
|
2668
2668
|
async moveObjects(t) {
|
|
2669
2669
|
if (!this.viewer) return;
|
|
@@ -2673,20 +2673,20 @@ const K = class K extends Ie {
|
|
|
2673
2673
|
o.editingID = r, o && i.push(o.id);
|
|
2674
2674
|
}
|
|
2675
2675
|
if (i.length !== 0)
|
|
2676
|
-
return await
|
|
2676
|
+
return await Ys(this.viewer, i, r);
|
|
2677
2677
|
}
|
|
2678
2678
|
};
|
|
2679
|
-
v(K, "type", K.register("ESUeViewer", K)), v(K, "defaults", { ...
|
|
2679
|
+
v(K, "type", K.register("ESUeViewer", K)), v(K, "defaults", { ...Qn });
|
|
2680
2680
|
let b = K;
|
|
2681
2681
|
((l) => {
|
|
2682
2682
|
l.createDefaultProps = () => ({
|
|
2683
|
-
...
|
|
2683
|
+
...Ee.createDefaultProps(),
|
|
2684
2684
|
/**
|
|
2685
2685
|
* 新增UE属性步骤!!
|
|
2686
2686
|
* 1. createReactProps 中定义属性
|
|
2687
2687
|
* 2. reactPropDefaults 中定义默认值
|
|
2688
2688
|
*/
|
|
2689
|
-
...
|
|
2689
|
+
...Cr(),
|
|
2690
2690
|
//分辨率缩放比例
|
|
2691
2691
|
resolutionScale: 1,
|
|
2692
2692
|
autoReconnect: !1,
|
|
@@ -2697,12 +2697,12 @@ let b = K;
|
|
|
2697
2697
|
customMessageListening: void 0
|
|
2698
2698
|
});
|
|
2699
2699
|
})(b || (b = {}));
|
|
2700
|
-
|
|
2701
|
-
class at extends
|
|
2700
|
+
Xn(b.prototype, b.createDefaultProps);
|
|
2701
|
+
class at extends G {
|
|
2702
2702
|
constructor(e, t) {
|
|
2703
2703
|
super(e, t);
|
|
2704
2704
|
const i = t.viewer;
|
|
2705
|
-
i && (e.components.main || this.d(this.createdEvent.don(() => {
|
|
2705
|
+
if (i && (e.components.main || this.d(this.createdEvent.don(() => {
|
|
2706
2706
|
const r = this.constructor.propValFuncs, n = e.defaultProps, s = Object.keys(n).filter((d) => r[d] !== null);
|
|
2707
2707
|
s.push(...this.constructor.forceUeUpdateProps);
|
|
2708
2708
|
const o = e.constructor.defaults, u = { val: {} }, a = [];
|
|
@@ -2713,7 +2713,7 @@ class at extends J {
|
|
|
2713
2713
|
if (f === null)
|
|
2714
2714
|
throw console.error("vf === null error"), new Error("vf === null error");
|
|
2715
2715
|
const w = () => {
|
|
2716
|
-
const y = e[d] ?? o[d];
|
|
2716
|
+
const y = e[d] ?? o[d] ?? e.constructor[`default${d.charAt(0).toUpperCase() + d.slice(1)}`];
|
|
2717
2717
|
let x = f ? f(y, this, t, e) : y;
|
|
2718
2718
|
if (x === void 0) {
|
|
2719
2719
|
console.warn(`UE自动更新的属性,不应该为undefined! 属性名:${d} 对象名:${e.name} 对象id: ${e.id}`);
|
|
@@ -2733,7 +2733,20 @@ class at extends J {
|
|
|
2733
2733
|
}), u.val = {};
|
|
2734
2734
|
}, p = this.dv(P(...a));
|
|
2735
2735
|
this.d(p.don(g)), this.d(e.createdEvent.don(g)), this.d(e.flushEvent.don(() => p.flush()));
|
|
2736
|
-
})))
|
|
2736
|
+
})), !e.components.main)) {
|
|
2737
|
+
let r = !1;
|
|
2738
|
+
this.d(() => {
|
|
2739
|
+
r && Fr(i, e.id);
|
|
2740
|
+
}), i.callUeFunc({
|
|
2741
|
+
f: "create",
|
|
2742
|
+
p: {
|
|
2743
|
+
type: e.typeName,
|
|
2744
|
+
id: e.id
|
|
2745
|
+
}
|
|
2746
|
+
}).then(() => {
|
|
2747
|
+
r = !0;
|
|
2748
|
+
}).catch((n) => console.error(n));
|
|
2749
|
+
}
|
|
2737
2750
|
}
|
|
2738
2751
|
}
|
|
2739
2752
|
// null 表示不设置,undefined表示不做任何转换
|
|
@@ -2753,7 +2766,7 @@ class M extends at {
|
|
|
2753
2766
|
we(i, e.id, r);
|
|
2754
2767
|
})), this.d(e.flyInEvent.don((r) => {
|
|
2755
2768
|
var n, s;
|
|
2756
|
-
|
|
2769
|
+
Re(i, e.id, (n = e.flyInParam) == null ? void 0 : n.position, (s = e.flyInParam) == null ? void 0 : s.rotation, r ?? 1);
|
|
2757
2770
|
})), this.d(e.calcFlyToParamEvent.don(() => {
|
|
2758
2771
|
dt(i, e.id);
|
|
2759
2772
|
})), this.d(e.calcFlyInParamEvent.don(() => {
|
|
@@ -2791,13 +2804,13 @@ class I extends M {
|
|
|
2791
2804
|
this.d(n.don(() => {
|
|
2792
2805
|
setTimeout(r, 0);
|
|
2793
2806
|
})), this.d(e.smoothMoveEvent.don((u, a) => {
|
|
2794
|
-
|
|
2807
|
+
De(i, e.id, u, a);
|
|
2795
2808
|
})), this.d(e.smoothMoveWithRotationEvent.don((u, a, g) => {
|
|
2796
|
-
|
|
2809
|
+
Le(i, e.id, u, a, g);
|
|
2797
2810
|
})), this.d(e.smoothMoveOnGroundEvent.don((u, a, g, p) => {
|
|
2798
|
-
|
|
2811
|
+
Pe(i, e.id, u, a, p, g);
|
|
2799
2812
|
})), this.d(e.smoothMoveWithRotationOnGroundEvent.don((u, a, g, p, d) => {
|
|
2800
|
-
|
|
2813
|
+
ke(i, e.id, u, a, g, p, d);
|
|
2801
2814
|
})), this.d(e.smoothMoveKeepPitchEvent.don(async (u, a) => {
|
|
2802
2815
|
const g = await i.callUeFunc({
|
|
2803
2816
|
f: "SmoothMoveKeepPitch",
|
|
@@ -2883,7 +2896,7 @@ v(D, "propValFuncs", {
|
|
|
2883
2896
|
materialParams: JSON.stringify(e.materialParams ?? {})
|
|
2884
2897
|
})
|
|
2885
2898
|
});
|
|
2886
|
-
class
|
|
2899
|
+
class z extends I {
|
|
2887
2900
|
constructor(e, t) {
|
|
2888
2901
|
super(e, t), t.viewer && this.d(t.widgetEvent.don((r) => {
|
|
2889
2902
|
if (r.objId !== e.id) return;
|
|
@@ -2930,7 +2943,7 @@ const qe = (l) => {
|
|
|
2930
2943
|
default:
|
|
2931
2944
|
return "未知错误";
|
|
2932
2945
|
}
|
|
2933
|
-
}, ct = class ct extends
|
|
2946
|
+
}, ct = class ct extends G {
|
|
2934
2947
|
constructor(t, i) {
|
|
2935
2948
|
super(t, i);
|
|
2936
2949
|
v(this, "_styleColor", this.dv(W([])));
|
|
@@ -2950,8 +2963,8 @@ const qe = (l) => {
|
|
|
2950
2963
|
show: t.show,
|
|
2951
2964
|
collision: t.collision,
|
|
2952
2965
|
allowPicking: t.allowPicking,
|
|
2953
|
-
flyToParam: t.flyToParam ??
|
|
2954
|
-
flyInParam: t.flyInParam ??
|
|
2966
|
+
flyToParam: t.flyToParam ?? me.defaultFlyToParam,
|
|
2967
|
+
flyInParam: t.flyInParam ?? me.defaultFlyInParam,
|
|
2955
2968
|
highlightID: t.highlightID,
|
|
2956
2969
|
highlightColor: t.highlightColor,
|
|
2957
2970
|
highlight: t.highlight,
|
|
@@ -3037,7 +3050,7 @@ const qe = (l) => {
|
|
|
3037
3050
|
g();
|
|
3038
3051
|
});
|
|
3039
3052
|
{
|
|
3040
|
-
const p = this.dv(
|
|
3053
|
+
const p = this.dv(Te(async (h) => {
|
|
3041
3054
|
if (a.value === void 0) {
|
|
3042
3055
|
await h.promise(g());
|
|
3043
3056
|
return;
|
|
@@ -3093,7 +3106,7 @@ const qe = (l) => {
|
|
|
3093
3106
|
d(), this.d(a.changed.don(d));
|
|
3094
3107
|
}
|
|
3095
3108
|
this.d(t.refreshTilesetEvent.don(() => {
|
|
3096
|
-
|
|
3109
|
+
Vn(r, t.id);
|
|
3097
3110
|
})), this.d(t.flyToEvent.don(async (p, d) => {
|
|
3098
3111
|
if (!n && !s) return;
|
|
3099
3112
|
const h = await we(r, t.id, p);
|
|
@@ -3223,8 +3236,8 @@ const qe = (l) => {
|
|
|
3223
3236
|
this._styleVisable.value = t;
|
|
3224
3237
|
}
|
|
3225
3238
|
};
|
|
3226
|
-
v(ct, "type", ct.register("ESUeViewer",
|
|
3227
|
-
let
|
|
3239
|
+
v(ct, "type", ct.register("ESUeViewer", me.type, ct));
|
|
3240
|
+
let Ue = ct;
|
|
3228
3241
|
const Qe = (l) => {
|
|
3229
3242
|
switch (l) {
|
|
3230
3243
|
case 0:
|
|
@@ -3240,7 +3253,7 @@ const Qe = (l) => {
|
|
|
3240
3253
|
default:
|
|
3241
3254
|
return "未知错误";
|
|
3242
3255
|
}
|
|
3243
|
-
}, ut = class ut extends
|
|
3256
|
+
}, ut = class ut extends G {
|
|
3244
3257
|
constructor(e, t) {
|
|
3245
3258
|
super(e, t);
|
|
3246
3259
|
const i = t.viewer;
|
|
@@ -3249,7 +3262,7 @@ const Qe = (l) => {
|
|
|
3249
3262
|
return;
|
|
3250
3263
|
}
|
|
3251
3264
|
let r, n;
|
|
3252
|
-
const s = this.dv(W(void 0)), o = this.ad(
|
|
3265
|
+
const s = this.dv(W(void 0)), o = this.ad(be(""));
|
|
3253
3266
|
{
|
|
3254
3267
|
const p = () => {
|
|
3255
3268
|
if (typeof e.url == "string")
|
|
@@ -3263,7 +3276,7 @@ const Qe = (l) => {
|
|
|
3263
3276
|
}
|
|
3264
3277
|
const u = async () => {
|
|
3265
3278
|
if (!r && !n) return;
|
|
3266
|
-
let p = e.targetID ??
|
|
3279
|
+
let p = e.targetID ?? U.defaults.targetID;
|
|
3267
3280
|
if (p && p != "") {
|
|
3268
3281
|
const d = E.getSceneObject(p);
|
|
3269
3282
|
p = d ? (d.components.main ?? d).id : p;
|
|
@@ -3276,16 +3289,16 @@ const Qe = (l) => {
|
|
|
3276
3289
|
rectangle: e.rectangle ?? [-180, -90, 180, 90],
|
|
3277
3290
|
collision: e.collision ?? !0,
|
|
3278
3291
|
allowPicking: e.allowPicking ?? !1,
|
|
3279
|
-
flyToParam: e.flyToParam ??
|
|
3280
|
-
flyInParam: e.flyInParam ??
|
|
3292
|
+
flyToParam: e.flyToParam ?? U.defaultFlyToParam,
|
|
3293
|
+
flyInParam: e.flyInParam ?? U.defaultFlyInParam,
|
|
3281
3294
|
url: o.value ?? "",
|
|
3282
3295
|
zIndex: e.zIndex ?? 0,
|
|
3283
|
-
maximumLevel: e.maximumLevel ??
|
|
3284
|
-
minimumLevel: e.minimumLevel ??
|
|
3285
|
-
options: e.options ??
|
|
3296
|
+
maximumLevel: e.maximumLevel ?? U.defaults.maximumLevel,
|
|
3297
|
+
minimumLevel: e.minimumLevel ?? U.defaults.minimumLevel,
|
|
3298
|
+
options: e.options ?? U.defaults.options,
|
|
3286
3299
|
targetID: p,
|
|
3287
|
-
opacity: e.opacity ??
|
|
3288
|
-
splitDirection: e.splitDirection ??
|
|
3300
|
+
opacity: e.opacity ?? U.defaults.opacity,
|
|
3301
|
+
splitDirection: e.splitDirection ?? U.defaults.splitDirection
|
|
3289
3302
|
}
|
|
3290
3303
|
});
|
|
3291
3304
|
}, a = this.dv(P(
|
|
@@ -3340,7 +3353,7 @@ const Qe = (l) => {
|
|
|
3340
3353
|
g();
|
|
3341
3354
|
});
|
|
3342
3355
|
{
|
|
3343
|
-
const p = this.dv(
|
|
3356
|
+
const p = this.dv(Te(async (h) => {
|
|
3344
3357
|
if (s.value === void 0) {
|
|
3345
3358
|
await h.promise(g());
|
|
3346
3359
|
return;
|
|
@@ -3420,7 +3433,7 @@ const Qe = (l) => {
|
|
|
3420
3433
|
})), this.d(e.flyInEvent.don(async (p, d) => {
|
|
3421
3434
|
var f, w;
|
|
3422
3435
|
if (!r && !n) return;
|
|
3423
|
-
const h = await
|
|
3436
|
+
const h = await Re(i, e.id, (f = e.flyInParam) == null ? void 0 : f.position, (w = e.flyInParam) == null ? void 0 : w.rotation, p ?? 1);
|
|
3424
3437
|
let c = "over";
|
|
3425
3438
|
h === void 0 ? c = "error" : h.endType === 0 ? c = "over" : h.endType === 1 && (c = "cancelled"), e.flyOverEvent.emit(d, c, t);
|
|
3426
3439
|
})), this.d(e.calcFlyToParamEvent.don(() => {
|
|
@@ -3439,7 +3452,7 @@ const Qe = (l) => {
|
|
|
3439
3452
|
}));
|
|
3440
3453
|
}
|
|
3441
3454
|
};
|
|
3442
|
-
v(ut, "type", ut.register("ESUeViewer",
|
|
3455
|
+
v(ut, "type", ut.register("ESUeViewer", U.type, ut));
|
|
3443
3456
|
let Ve = ut;
|
|
3444
3457
|
const X = class X extends M {
|
|
3445
3458
|
constructor(e, t) {
|
|
@@ -3561,7 +3574,7 @@ const wt = class wt extends I {
|
|
|
3561
3574
|
}
|
|
3562
3575
|
this.dispose(e.flyInEvent.don((r, n, s = "default") => {
|
|
3563
3576
|
const { id: o, duration: u, position: a, rotation: g } = e;
|
|
3564
|
-
|
|
3577
|
+
Re(i, o, a, g, u ?? r, s);
|
|
3565
3578
|
})), this.dispose(e.resetWithCurrentCameraEvent.don(() => {
|
|
3566
3579
|
Ir(i, e.id);
|
|
3567
3580
|
})), this.dispose(e.captureEvent.don((r, n) => {
|
|
@@ -3591,7 +3604,7 @@ const mt = class mt extends I {
|
|
|
3591
3604
|
}
|
|
3592
3605
|
}
|
|
3593
3606
|
};
|
|
3594
|
-
v(mt, "type", mt.register("ESUeViewer",
|
|
3607
|
+
v(mt, "type", mt.register("ESUeViewer", Jr.type, mt));
|
|
3595
3608
|
let oi = mt;
|
|
3596
3609
|
const Ct = class Ct extends D {
|
|
3597
3610
|
constructor(e, t) {
|
|
@@ -3633,7 +3646,7 @@ const et = class et extends I {
|
|
|
3633
3646
|
}
|
|
3634
3647
|
}
|
|
3635
3648
|
};
|
|
3636
|
-
v(et, "type", et.register("ESUeViewer",
|
|
3649
|
+
v(et, "type", et.register("ESUeViewer", br.type, et)), // null 表示不设置,undefined表示不做任何转换
|
|
3637
3650
|
v(et, "propValFuncs", {
|
|
3638
3651
|
...I.propValFuncs,
|
|
3639
3652
|
targetID: (e) => {
|
|
@@ -3651,28 +3664,28 @@ const Ft = class Ft extends I {
|
|
|
3651
3664
|
console.warn("viewer is undefined!");
|
|
3652
3665
|
return;
|
|
3653
3666
|
}
|
|
3654
|
-
const r = this.ad(
|
|
3667
|
+
const r = this.ad(be(""));
|
|
3655
3668
|
{
|
|
3656
3669
|
const o = () => {
|
|
3657
3670
|
if (typeof e.url == "string")
|
|
3658
|
-
r.value = E.context.getStrFromEnv(e.url ??
|
|
3671
|
+
r.value = E.context.getStrFromEnv(e.url ?? H.defaults.url);
|
|
3659
3672
|
else {
|
|
3660
3673
|
const u = e.url;
|
|
3661
|
-
u.url = E.context.getStrFromEnv(u.url ??
|
|
3674
|
+
u.url = E.context.getStrFromEnv(u.url ?? H.defaults.url), r.value = u;
|
|
3662
3675
|
}
|
|
3663
3676
|
};
|
|
3664
3677
|
o(), this.ad(e.urlChanged.don(o));
|
|
3665
3678
|
}
|
|
3666
3679
|
const n = () => {
|
|
3667
|
-
const o = e.colorStops ??
|
|
3680
|
+
const o = e.colorStops ?? H.defaults.colorStops;
|
|
3668
3681
|
i.callUeFunc({
|
|
3669
3682
|
f: "update",
|
|
3670
3683
|
p: {
|
|
3671
3684
|
id: e.id,
|
|
3672
|
-
url: r.value ??
|
|
3673
|
-
currentTime: e.currentTime ??
|
|
3674
|
-
minPropValue: e.minPropValue ??
|
|
3675
|
-
maxPropValue: e.maxPropValue ??
|
|
3685
|
+
url: r.value ?? H.defaults.url,
|
|
3686
|
+
currentTime: e.currentTime ?? H.defaults.currentTime,
|
|
3687
|
+
minPropValue: e.minPropValue ?? H.defaults.minPropValue,
|
|
3688
|
+
maxPropValue: e.maxPropValue ?? H.defaults.maxPropValue,
|
|
3676
3689
|
colorStops: JSON.stringify(o)
|
|
3677
3690
|
}
|
|
3678
3691
|
});
|
|
@@ -3686,7 +3699,7 @@ const Ft = class Ft extends I {
|
|
|
3686
3699
|
this.d(s.don(n)), this.d(e.createdEvent.don(n));
|
|
3687
3700
|
}
|
|
3688
3701
|
};
|
|
3689
|
-
v(Ft, "type", Ft.register("ESUeViewer",
|
|
3702
|
+
v(Ft, "type", Ft.register("ESUeViewer", H.type, Ft));
|
|
3690
3703
|
let li = Ft;
|
|
3691
3704
|
const It = class It extends I {
|
|
3692
3705
|
constructor(e, t) {
|
|
@@ -3719,9 +3732,9 @@ const St = class St extends D {
|
|
|
3719
3732
|
const r = () => {
|
|
3720
3733
|
let s;
|
|
3721
3734
|
try {
|
|
3722
|
-
s = { ...e.strokeStyle ??
|
|
3735
|
+
s = { ...e.strokeStyle ?? Me.defaults.strokeStyle };
|
|
3723
3736
|
} catch (o) {
|
|
3724
|
-
console.error("ESDistanceMeasurement strokeStyle 属性类型错误!", o), s = { ...
|
|
3737
|
+
console.error("ESDistanceMeasurement strokeStyle 属性类型错误!", o), s = { ...Me.defaults.strokeStyle };
|
|
3725
3738
|
}
|
|
3726
3739
|
i.callUeFunc({
|
|
3727
3740
|
f: "update",
|
|
@@ -3736,7 +3749,7 @@ const St = class St extends D {
|
|
|
3736
3749
|
this.d(n.don(r)), this.d(e.createdEvent.don(r));
|
|
3737
3750
|
}
|
|
3738
3751
|
};
|
|
3739
|
-
v(St, "type", St.register("ESUeViewer",
|
|
3752
|
+
v(St, "type", St.register("ESUeViewer", Me.type, St));
|
|
3740
3753
|
let hi = St;
|
|
3741
3754
|
const Tt = class Tt extends Ke {
|
|
3742
3755
|
constructor(e, t) {
|
|
@@ -3747,8 +3760,8 @@ const Tt = class Tt extends Ke {
|
|
|
3747
3760
|
}
|
|
3748
3761
|
};
|
|
3749
3762
|
v(Tt, "type", Tt.register("ESUeViewer", Xr.type, Tt));
|
|
3750
|
-
let
|
|
3751
|
-
const xt = class xt extends
|
|
3763
|
+
let Ne = Tt;
|
|
3764
|
+
const xt = class xt extends Ne {
|
|
3752
3765
|
constructor(e, t) {
|
|
3753
3766
|
if (super(e, t), !t.viewer) {
|
|
3754
3767
|
console.warn("viewer is undefined!");
|
|
@@ -3808,7 +3821,7 @@ const Pt = class Pt extends M {
|
|
|
3808
3821
|
console.warn("viewer is undefined!");
|
|
3809
3822
|
return;
|
|
3810
3823
|
}
|
|
3811
|
-
const r = this.ad(
|
|
3824
|
+
const r = this.ad(be(""));
|
|
3812
3825
|
{
|
|
3813
3826
|
const o = () => {
|
|
3814
3827
|
if (typeof e.url == "string")
|
|
@@ -3825,14 +3838,14 @@ const Pt = class Pt extends M {
|
|
|
3825
3838
|
f: "update",
|
|
3826
3839
|
p: {
|
|
3827
3840
|
id: e.id,
|
|
3828
|
-
url: r.value ??
|
|
3829
|
-
treeTypes: e.treeTypes ??
|
|
3830
|
-
xiaoBanWidget: e.xiaoBanWidget ??
|
|
3831
|
-
youShiSZ: e.youShiSZ ??
|
|
3832
|
-
diLei: e.diLei ??
|
|
3833
|
-
senLinLB: e.senLinLB ??
|
|
3834
|
-
labelMaterial: e.labelMaterial ??
|
|
3835
|
-
heightOffset: e.heightOffset ??
|
|
3841
|
+
url: r.value ?? N.defaults.url,
|
|
3842
|
+
treeTypes: e.treeTypes ?? N.defaults.treeTypes,
|
|
3843
|
+
xiaoBanWidget: e.xiaoBanWidget ?? N.defaults.xiaoBanWidget,
|
|
3844
|
+
youShiSZ: e.youShiSZ ?? N.defaults.youShiSZ,
|
|
3845
|
+
diLei: e.diLei ?? N.defaults.diLei,
|
|
3846
|
+
senLinLB: e.senLinLB ?? N.defaults.senLinLB,
|
|
3847
|
+
labelMaterial: e.labelMaterial ?? N.defaults.labelMaterial,
|
|
3848
|
+
heightOffset: e.heightOffset ?? N.defaults.heightOffset
|
|
3836
3849
|
}
|
|
3837
3850
|
});
|
|
3838
3851
|
}, s = this.dv(P(
|
|
@@ -3848,25 +3861,25 @@ const Pt = class Pt extends M {
|
|
|
3848
3861
|
this.d(s.don(n)), this.d(e.createdEvent.don(n));
|
|
3849
3862
|
}
|
|
3850
3863
|
};
|
|
3851
|
-
v(Pt, "type", Pt.register("ESUeViewer",
|
|
3864
|
+
v(Pt, "type", Pt.register("ESUeViewer", N.type, Pt));
|
|
3852
3865
|
let wi = Pt;
|
|
3853
|
-
const kt = class kt extends
|
|
3866
|
+
const kt = class kt extends G {
|
|
3854
3867
|
constructor(e, t) {
|
|
3855
|
-
super(e, t), this.ad(new L(e.renderInUEChanged, () => e.renderInUE ? new
|
|
3868
|
+
super(e, t), this.ad(new L(e.renderInUEChanged, () => e.renderInUE ? new Co(e, t) : new mo(e, t)));
|
|
3856
3869
|
}
|
|
3857
3870
|
};
|
|
3858
|
-
v(kt, "type", kt.register("ESUeViewer",
|
|
3871
|
+
v(kt, "type", kt.register("ESUeViewer", Ce.type, kt));
|
|
3859
3872
|
let yi = kt;
|
|
3860
|
-
class
|
|
3873
|
+
class mo extends m {
|
|
3861
3874
|
constructor(t, i) {
|
|
3862
3875
|
super();
|
|
3863
|
-
v(this, "_screenPosition", this.disposeVar(
|
|
3876
|
+
v(this, "_screenPosition", this.disposeVar(fr(void 0)));
|
|
3864
3877
|
const r = i.viewer;
|
|
3865
3878
|
if (!r) {
|
|
3866
3879
|
console.warn("viewer is undefined!");
|
|
3867
3880
|
return;
|
|
3868
3881
|
}
|
|
3869
|
-
const n = this.disposeVar(new
|
|
3882
|
+
const n = this.disposeVar(new pr());
|
|
3870
3883
|
n.parentID = t.id, t.components.disposableAdd(n, !0), n.show = !1, this.dispose(k([n, "position"], [t, "position"])), this.dispose(k([n, "rotation"], [t, "rotation"])), this.dispose(k([n, "flyToParam"], [t, "flyToParam"])), this.dispose(k([n, "flyInParam"], [t, "flyInParam"])), this.dispose(t.calcFlyToParamEvent.disposableOn(() => {
|
|
3871
3884
|
dt(r, n.id);
|
|
3872
3885
|
})), this.dispose(t.calcFlyInParamEvent.disposableOn(async () => {
|
|
@@ -3876,13 +3889,13 @@ class Fo extends m {
|
|
|
3876
3889
|
const { position: a, rotation: g } = u;
|
|
3877
3890
|
t.flyInParam = { position: a, rotation: g, flyDuration: 1 };
|
|
3878
3891
|
})), this.dispose(t.smoothMoveEvent.disposableOn((u, a) => {
|
|
3879
|
-
|
|
3892
|
+
De(r, n.id, u, a);
|
|
3880
3893
|
})), this.dispose(t.smoothMoveWithRotationEvent.disposableOn((u, a, g) => {
|
|
3881
|
-
|
|
3894
|
+
Le(r, n.id, u, a, g);
|
|
3882
3895
|
})), this.dispose(t.smoothMoveOnGroundEvent.disposableOn((u, a, g, p) => {
|
|
3883
|
-
|
|
3896
|
+
Pe(r, n.id, u, a, p, g);
|
|
3884
3897
|
})), this.dispose(t.smoothMoveWithRotationOnGroundEvent.disposableOn((u, a, g, p, d) => {
|
|
3885
|
-
|
|
3898
|
+
ke(r, n.id, u, a, g, p, d);
|
|
3886
3899
|
})), this.dispose(t.flyToEvent.disposableOn((u, a) => {
|
|
3887
3900
|
n.flyTo(u);
|
|
3888
3901
|
})), this.dispose(t.flyInEvent.don((u) => {
|
|
@@ -3891,7 +3904,7 @@ class Fo extends m {
|
|
|
3891
3904
|
const s = this._screenPosition, o = this.disposeVar(new He());
|
|
3892
3905
|
o.parentID = t.id, i.add(o), this.dispose(() => i.delete(o)), this.dispose(k([o, "allowPicking"], [t, "allowPicking"]));
|
|
3893
3906
|
{
|
|
3894
|
-
const u = this.disposeVar(
|
|
3907
|
+
const u = this.disposeVar(Je()), a = () => {
|
|
3895
3908
|
t.show ? u.restart(void 0, async () => {
|
|
3896
3909
|
if (!t.position) return;
|
|
3897
3910
|
const g = await i.lonLatAltToScreenPosition(t.position);
|
|
@@ -3912,9 +3925,9 @@ class Fo extends m {
|
|
|
3912
3925
|
if (super(), this._subContainer = d, !c) return;
|
|
3913
3926
|
if (!t.instanceClass)
|
|
3914
3927
|
throw new Error("!sceneObject.instanceClass");
|
|
3915
|
-
const f = new
|
|
3928
|
+
const f = new Yn(), w = f.element;
|
|
3916
3929
|
this._subContainer.appendChild(w), this.dispose(() => this._subContainer.removeChild(w)), w.onclick = (y) => {
|
|
3917
|
-
(t.allowPicking ?? !1) && t.pickedEvent.emit(new
|
|
3930
|
+
(t.allowPicking ?? !1) && t.pickedEvent.emit(new Ae(
|
|
3918
3931
|
{ div: w, pointerEvent: y },
|
|
3919
3932
|
t,
|
|
3920
3933
|
void 0,
|
|
@@ -3943,14 +3956,14 @@ class Fo extends m {
|
|
|
3943
3956
|
}
|
|
3944
3957
|
{
|
|
3945
3958
|
const y = () => {
|
|
3946
|
-
const [x, C] = t.anchor ??
|
|
3959
|
+
const [x, C] = t.anchor ?? Ce.defaults.anchor;
|
|
3947
3960
|
f.originRatioX = x, f.originRatioY = C;
|
|
3948
3961
|
};
|
|
3949
3962
|
y(), this.dispose(t.anchorChanged.disposableOn(y));
|
|
3950
3963
|
}
|
|
3951
3964
|
{
|
|
3952
3965
|
const y = () => {
|
|
3953
|
-
f.opacity = t.opacity ??
|
|
3966
|
+
f.opacity = t.opacity ?? Ce.defaults.opacity;
|
|
3954
3967
|
};
|
|
3955
3968
|
y(), this.dispose(t.opacityChanged.disposableOn(y));
|
|
3956
3969
|
}
|
|
@@ -3985,12 +3998,12 @@ class Fo extends m {
|
|
|
3985
3998
|
this._screenPosition.value = t;
|
|
3986
3999
|
}
|
|
3987
4000
|
}
|
|
3988
|
-
class
|
|
4001
|
+
class Co extends m {
|
|
3989
4002
|
constructor(t, i) {
|
|
3990
4003
|
super();
|
|
3991
4004
|
v(this, "_imageLabel");
|
|
3992
4005
|
v(this, "_hasClassDivAndPos", {});
|
|
3993
|
-
this._imageLabel = this.dv(new
|
|
4006
|
+
this._imageLabel = this.dv(new vr()), this._imageLabel.isHoverZoom = !1, this._imageLabel.parentID = t.id;
|
|
3994
4007
|
const r = i.viewer;
|
|
3995
4008
|
if (!r) {
|
|
3996
4009
|
console.warn("viewer is undefined!");
|
|
@@ -4004,7 +4017,7 @@ class Io extends m {
|
|
|
4004
4017
|
if (!t.instanceClass)
|
|
4005
4018
|
throw new Error("!sceneObject.instanceClass");
|
|
4006
4019
|
const a = document.createElement("div"), g = this.dv(new t.instanceClass(a, t, i))._container;
|
|
4007
|
-
if (g.style.opacity = t.opacity.toString() ??
|
|
4020
|
+
if (g.style.opacity = t.opacity.toString() ?? Ce.defaults.opacity, g.style.position = "fixed", g.style.zIndex = "-1", g.style.top = "0px", !document.body.contains(g)) {
|
|
4008
4021
|
document.body.appendChild(g);
|
|
4009
4022
|
let d = g ? g.querySelectorAll("*[class]") : [];
|
|
4010
4023
|
for (let h = 0; h < d.length; h++) {
|
|
@@ -4018,7 +4031,7 @@ class Io extends m {
|
|
|
4018
4031
|
];
|
|
4019
4032
|
}
|
|
4020
4033
|
}
|
|
4021
|
-
|
|
4034
|
+
qn(g, {
|
|
4022
4035
|
backgroundColor: null,
|
|
4023
4036
|
allowTaint: !0,
|
|
4024
4037
|
useCORS: !0,
|
|
@@ -4073,13 +4086,13 @@ class Io extends m {
|
|
|
4073
4086
|
const { position: o, rotation: u } = s;
|
|
4074
4087
|
t.flyInParam = { position: o, rotation: u, flyDuration: 1 };
|
|
4075
4088
|
})), this.d(t.smoothMoveEvent.don((s, o) => {
|
|
4076
|
-
|
|
4089
|
+
De(r, n.id, s, o);
|
|
4077
4090
|
})), this.d(t.smoothMoveWithRotationEvent.don((s, o, u) => {
|
|
4078
|
-
|
|
4091
|
+
Le(r, n.id, s, o, u);
|
|
4079
4092
|
})), this.d(t.smoothMoveOnGroundEvent.don((s, o, u, a) => {
|
|
4080
|
-
|
|
4093
|
+
Pe(r, n.id, s, o, a, u);
|
|
4081
4094
|
})), this.d(t.smoothMoveWithRotationOnGroundEvent.don((s, o, u, a, g) => {
|
|
4082
|
-
|
|
4095
|
+
ke(r, n.id, s, o, u, a, g);
|
|
4083
4096
|
})), this.d(t.flyToEvent.don((s, o) => {
|
|
4084
4097
|
n.flyTo(s);
|
|
4085
4098
|
})), this.d(t.flyInEvent.don((s) => {
|
|
@@ -4128,7 +4141,7 @@ const Bt = class Bt extends D {
|
|
|
4128
4141
|
}
|
|
4129
4142
|
};
|
|
4130
4143
|
v(Bt, "type", Bt.register("ESUeViewer", Or.type, Bt));
|
|
4131
|
-
let
|
|
4144
|
+
let ze = Bt;
|
|
4132
4145
|
const _t = class _t extends D {
|
|
4133
4146
|
constructor(e, t) {
|
|
4134
4147
|
if (super(e, t), !t.viewer) {
|
|
@@ -4158,11 +4171,11 @@ const Y = class Y extends I {
|
|
|
4158
4171
|
return;
|
|
4159
4172
|
}
|
|
4160
4173
|
this.d(e.setNodePositionEvent.don((r, n) => {
|
|
4161
|
-
|
|
4174
|
+
as(i, e.id, r, n);
|
|
4162
4175
|
})), this.d(e.setNodeRotationEvent.don((r, n) => {
|
|
4163
|
-
|
|
4176
|
+
ds(i, e.id, r, n);
|
|
4164
4177
|
})), this.d(e.setNodeScaleEvent.don((r, n) => {
|
|
4165
|
-
|
|
4178
|
+
ls(i, e.id, r, n);
|
|
4166
4179
|
}));
|
|
4167
4180
|
}
|
|
4168
4181
|
};
|
|
@@ -4171,7 +4184,7 @@ v(Y, "forceUeUpdateProps", [
|
|
|
4171
4184
|
"url"
|
|
4172
4185
|
]), v(Y, "propValFuncs", {
|
|
4173
4186
|
...I.propValFuncs,
|
|
4174
|
-
url: (e) => typeof e == "string" ? E.context.getStrFromEnv(
|
|
4187
|
+
url: (e) => typeof e == "string" ? E.context.getStrFromEnv(Fe(e)) : (e.url = E.context.getStrFromEnv(Fe(e.url)), e),
|
|
4175
4188
|
czmMaximumScale: null,
|
|
4176
4189
|
czmMinimumPixelSize: null,
|
|
4177
4190
|
czmNativeScale: null,
|
|
@@ -4228,7 +4241,7 @@ const Wt = class Wt extends I {
|
|
|
4228
4241
|
};
|
|
4229
4242
|
v(Wt, "type", Wt.register("ESUeViewer", nn.type, Wt));
|
|
4230
4243
|
let Si = Wt;
|
|
4231
|
-
const Z = class Z extends
|
|
4244
|
+
const Z = class Z extends z {
|
|
4232
4245
|
constructor(e, t) {
|
|
4233
4246
|
if (super(e, t), !t.viewer) {
|
|
4234
4247
|
console.warn("viewer is undefined!");
|
|
@@ -4237,12 +4250,12 @@ const Z = class Z extends N {
|
|
|
4237
4250
|
e.anchor = [0.5, 1];
|
|
4238
4251
|
}
|
|
4239
4252
|
};
|
|
4240
|
-
v(Z, "type", Z.register("ESUeViewer",
|
|
4241
|
-
...
|
|
4253
|
+
v(Z, "type", Z.register("ESUeViewer", vr.type, Z)), v(Z, "forceUeUpdateProps", [
|
|
4254
|
+
...z.forceUeUpdateProps,
|
|
4242
4255
|
"url"
|
|
4243
4256
|
]), v(Z, "propValFuncs", {
|
|
4244
|
-
...
|
|
4245
|
-
url: (e) => typeof e == "string" ? E.context.getStrFromEnv(
|
|
4257
|
+
...z.propValFuncs,
|
|
4258
|
+
url: (e) => typeof e == "string" ? E.context.getStrFromEnv(Fe(e)) : (e.url = E.context.getStrFromEnv(Fe(e.url)), e)
|
|
4246
4259
|
});
|
|
4247
4260
|
let Ti = Z;
|
|
4248
4261
|
const At = class At extends I {
|
|
@@ -4295,7 +4308,7 @@ const Ht = class Ht extends I {
|
|
|
4295
4308
|
};
|
|
4296
4309
|
v(Ht, "type", Ht.register("ESUeViewer", ln.type, Ht));
|
|
4297
4310
|
let ki = Ht;
|
|
4298
|
-
const
|
|
4311
|
+
const Jt = class Jt extends I {
|
|
4299
4312
|
constructor(e, t) {
|
|
4300
4313
|
if (super(e, t), !t.viewer) {
|
|
4301
4314
|
console.warn("viewer is undefined!");
|
|
@@ -4303,9 +4316,9 @@ const bt = class bt extends I {
|
|
|
4303
4316
|
}
|
|
4304
4317
|
}
|
|
4305
4318
|
};
|
|
4306
|
-
v(
|
|
4307
|
-
let Di =
|
|
4308
|
-
const
|
|
4319
|
+
v(Jt, "type", Jt.register("ESUeViewer", cn.type, Jt));
|
|
4320
|
+
let Di = Jt;
|
|
4321
|
+
const bt = class bt extends D {
|
|
4309
4322
|
constructor(e, t) {
|
|
4310
4323
|
if (super(e, t), !t.viewer) {
|
|
4311
4324
|
console.warn("viewer is undefined!");
|
|
@@ -4313,9 +4326,9 @@ const Jt = class Jt extends D {
|
|
|
4313
4326
|
}
|
|
4314
4327
|
}
|
|
4315
4328
|
};
|
|
4316
|
-
v(
|
|
4317
|
-
let Bi =
|
|
4318
|
-
const Gt = class Gt extends
|
|
4329
|
+
v(bt, "type", bt.register("ESUeViewer", un.type, bt));
|
|
4330
|
+
let Bi = bt;
|
|
4331
|
+
const Gt = class Gt extends ze {
|
|
4319
4332
|
constructor(e, t) {
|
|
4320
4333
|
if (super(e, t), !t.viewer) {
|
|
4321
4334
|
console.warn("viewer is undefined!");
|
|
@@ -4325,7 +4338,7 @@ const Gt = class Gt extends Ue {
|
|
|
4325
4338
|
};
|
|
4326
4339
|
v(Gt, "type", Gt.register("ESUeViewer", hn.type, Gt));
|
|
4327
4340
|
let _i = Gt;
|
|
4328
|
-
const Kt = class Kt extends
|
|
4341
|
+
const Kt = class Kt extends Ue {
|
|
4329
4342
|
constructor(e, t) {
|
|
4330
4343
|
super(e, t);
|
|
4331
4344
|
const i = t.viewer;
|
|
@@ -4335,16 +4348,16 @@ const Kt = class Kt extends We {
|
|
|
4335
4348
|
}
|
|
4336
4349
|
this.d(e.highlightFeatureEvent.don((r) => {
|
|
4337
4350
|
const n = typeof r == "number" ? r.toString() : r;
|
|
4338
|
-
|
|
4351
|
+
rs(i, e.id, n);
|
|
4339
4352
|
})), this.d(e.highlightFeatureAndFlyToEvent.don((r, n, s, o) => {
|
|
4340
4353
|
const u = typeof r == "number" ? r.toString() : r;
|
|
4341
|
-
|
|
4354
|
+
ns(i, e.id, u, o ?? 1);
|
|
4342
4355
|
})), this.d(e.setLayerVisibleEvent.don((r, n) => {
|
|
4343
4356
|
let s = "";
|
|
4344
|
-
typeof n != "string" ? s = JSON.stringify(n) : s = n,
|
|
4357
|
+
typeof n != "string" ? s = JSON.stringify(n) : s = n, ss(i, e.id, s);
|
|
4345
4358
|
})), this.d(e.setLayerColorEvent.don((r, n) => {
|
|
4346
4359
|
let s = "";
|
|
4347
|
-
typeof n != "string" ? s = JSON.stringify(n) : s = n,
|
|
4360
|
+
typeof n != "string" ? s = JSON.stringify(n) : s = n, os(i, e.id, s);
|
|
4348
4361
|
}));
|
|
4349
4362
|
}
|
|
4350
4363
|
};
|
|
@@ -4360,7 +4373,7 @@ const Xt = class Xt extends $ {
|
|
|
4360
4373
|
};
|
|
4361
4374
|
v(Xt, "type", Xt.register("ESUeViewer", vn.type, Xt));
|
|
4362
4375
|
let $i = Xt;
|
|
4363
|
-
const Yt = class Yt extends
|
|
4376
|
+
const Yt = class Yt extends z {
|
|
4364
4377
|
constructor(e, t) {
|
|
4365
4378
|
super(e, t);
|
|
4366
4379
|
const i = t.viewer;
|
|
@@ -4527,7 +4540,7 @@ const Vt = class Vt extends at {
|
|
|
4527
4540
|
}
|
|
4528
4541
|
};
|
|
4529
4542
|
v(Vt, "type", Vt.register("ESUeViewer", Fn.type, Vt));
|
|
4530
|
-
let
|
|
4543
|
+
let Ji = Vt;
|
|
4531
4544
|
const Ot = class Ot extends M {
|
|
4532
4545
|
constructor(e, t) {
|
|
4533
4546
|
if (super(e, t), !t.viewer) {
|
|
@@ -4548,7 +4561,7 @@ const Ot = class Ot extends M {
|
|
|
4548
4561
|
}
|
|
4549
4562
|
};
|
|
4550
4563
|
v(Ot, "type", Ot.register("ESUeViewer", In.type, Ot));
|
|
4551
|
-
let
|
|
4564
|
+
let bi = Ot;
|
|
4552
4565
|
const jt = class jt extends I {
|
|
4553
4566
|
constructor(e, t) {
|
|
4554
4567
|
if (super(e, t), !t.viewer) {
|
|
@@ -4606,7 +4619,7 @@ const ee = class ee extends $ {
|
|
|
4606
4619
|
};
|
|
4607
4620
|
v(ee, "type", ee.register("ESUeViewer", kn.type, ee));
|
|
4608
4621
|
let Xi = ee;
|
|
4609
|
-
const ie = class ie extends
|
|
4622
|
+
const ie = class ie extends z {
|
|
4610
4623
|
constructor(e, t) {
|
|
4611
4624
|
if (super(e, t), !t.viewer) {
|
|
4612
4625
|
console.warn("viewer is undefined!");
|
|
@@ -4614,9 +4627,9 @@ const ie = class ie extends N {
|
|
|
4614
4627
|
}
|
|
4615
4628
|
}
|
|
4616
4629
|
};
|
|
4617
|
-
v(ie, "type", ie.register("ESUeViewer",
|
|
4630
|
+
v(ie, "type", ie.register("ESUeViewer", pr.type, ie));
|
|
4618
4631
|
let Yi = ie;
|
|
4619
|
-
const nt = class nt extends
|
|
4632
|
+
const nt = class nt extends z {
|
|
4620
4633
|
constructor(e, t) {
|
|
4621
4634
|
super(e, t);
|
|
4622
4635
|
const i = t.viewer;
|
|
@@ -4631,7 +4644,7 @@ const nt = class nt extends N {
|
|
|
4631
4644
|
}
|
|
4632
4645
|
};
|
|
4633
4646
|
v(nt, "type", nt.register("ESUeViewer", Dn.type, nt)), v(nt, "propValFuncs", {
|
|
4634
|
-
...
|
|
4647
|
+
...z.propValFuncs,
|
|
4635
4648
|
info: (e) => JSON.stringify(e ?? {})
|
|
4636
4649
|
});
|
|
4637
4650
|
let Zi = nt;
|
|
@@ -4650,7 +4663,7 @@ const qi = (l) => {
|
|
|
4650
4663
|
default:
|
|
4651
4664
|
return "未知错误";
|
|
4652
4665
|
}
|
|
4653
|
-
},
|
|
4666
|
+
}, Fo = (l) => {
|
|
4654
4667
|
switch (l) {
|
|
4655
4668
|
case 0:
|
|
4656
4669
|
return "创建成功";
|
|
@@ -4661,7 +4674,7 @@ const qi = (l) => {
|
|
|
4661
4674
|
default:
|
|
4662
4675
|
return "未知错误";
|
|
4663
4676
|
}
|
|
4664
|
-
}, re = class re extends
|
|
4677
|
+
}, re = class re extends G {
|
|
4665
4678
|
constructor(e, t) {
|
|
4666
4679
|
super(e, t);
|
|
4667
4680
|
const i = t.viewer;
|
|
@@ -4670,7 +4683,7 @@ const qi = (l) => {
|
|
|
4670
4683
|
return;
|
|
4671
4684
|
}
|
|
4672
4685
|
this.d(() => {
|
|
4673
|
-
|
|
4686
|
+
Fr(i, e.id);
|
|
4674
4687
|
});
|
|
4675
4688
|
const r = async () => {
|
|
4676
4689
|
a() || await i.callUeFunc({
|
|
@@ -4680,8 +4693,8 @@ const qi = (l) => {
|
|
|
4680
4693
|
name: e.name,
|
|
4681
4694
|
show: e.show,
|
|
4682
4695
|
rotation: e.rotation,
|
|
4683
|
-
flyToParam: e.flyToParam ??
|
|
4684
|
-
flyInParam: e.flyInParam ??
|
|
4696
|
+
flyToParam: e.flyToParam ?? $e.defaultFlyToParam,
|
|
4697
|
+
flyInParam: e.flyInParam ?? $e.defaultFlyInParam,
|
|
4685
4698
|
highlight: e.highlight,
|
|
4686
4699
|
collision: e.collision,
|
|
4687
4700
|
scale: e.scale,
|
|
@@ -4744,7 +4757,7 @@ const qi = (l) => {
|
|
|
4744
4757
|
h(), this.d(d.don(h)), this.d(e.flushEvent.don(() => d.flush()));
|
|
4745
4758
|
}
|
|
4746
4759
|
{
|
|
4747
|
-
const d = this.dv(
|
|
4760
|
+
const d = this.dv(Te(async (c) => {
|
|
4748
4761
|
if (await c.promise(g()), p.value.type === "ActorTag") {
|
|
4749
4762
|
const { actorTag: f } = p.value;
|
|
4750
4763
|
await c.promise(g());
|
|
@@ -4780,7 +4793,7 @@ const qi = (l) => {
|
|
|
4780
4793
|
if (w.re.type === 0)
|
|
4781
4794
|
e.lastActorStatus = "created", o = f;
|
|
4782
4795
|
else {
|
|
4783
|
-
console.warn(`${e.id} UeESUnrealActor CreateActorByClass error type :${f},${
|
|
4796
|
+
console.warn(`${e.id} UeESUnrealActor CreateActorByClass error type :${f},${Fo(w.re.type)}`);
|
|
4784
4797
|
return;
|
|
4785
4798
|
}
|
|
4786
4799
|
} catch (w) {
|
|
@@ -4802,13 +4815,13 @@ const qi = (l) => {
|
|
|
4802
4815
|
const c = await Er(i, e.id, d, h);
|
|
4803
4816
|
e.__callFunctionResultEvent.emit(c);
|
|
4804
4817
|
})), this.d(e.smoothMoveEvent.don((d, h) => {
|
|
4805
|
-
a() ||
|
|
4818
|
+
a() || De(i, e.id, d, h);
|
|
4806
4819
|
})), this.d(e.smoothMoveWithRotationEvent.don((d, h, c) => {
|
|
4807
|
-
a() ||
|
|
4820
|
+
a() || Le(i, e.id, d, h, c);
|
|
4808
4821
|
})), this.d(e.smoothMoveOnGroundEvent.don((d, h, c, f) => {
|
|
4809
|
-
a() ||
|
|
4822
|
+
a() || Pe(i, e.id, d, h, f, c);
|
|
4810
4823
|
})), this.d(e.smoothMoveWithRotationOnGroundEvent.don((d, h, c, f, w) => {
|
|
4811
|
-
a() ||
|
|
4824
|
+
a() || ke(i, e.id, d, h, c, f, w);
|
|
4812
4825
|
})), this.d(e.automaticLandingEvent.don((d) => {
|
|
4813
4826
|
if (a()) return;
|
|
4814
4827
|
const h = [e.position[0], e.position[1]];
|
|
@@ -4836,7 +4849,7 @@ const qi = (l) => {
|
|
|
4836
4849
|
}));
|
|
4837
4850
|
}
|
|
4838
4851
|
};
|
|
4839
|
-
v(re, "type", re.register("ESUeViewer",
|
|
4852
|
+
v(re, "type", re.register("ESUeViewer", $e.type, re));
|
|
4840
4853
|
let Qi = re;
|
|
4841
4854
|
const ne = class ne extends I {
|
|
4842
4855
|
constructor(e, t) {
|
|
@@ -4846,7 +4859,7 @@ const ne = class ne extends I {
|
|
|
4846
4859
|
}
|
|
4847
4860
|
}
|
|
4848
4861
|
};
|
|
4849
|
-
v(ne, "type", ne.register("ESUeViewer",
|
|
4862
|
+
v(ne, "type", ne.register("ESUeViewer", Bn.type, ne));
|
|
4850
4863
|
let Vi = ne;
|
|
4851
4864
|
const se = class se extends I {
|
|
4852
4865
|
constructor(e, t) {
|
|
@@ -4856,7 +4869,7 @@ const se = class se extends I {
|
|
|
4856
4869
|
}
|
|
4857
4870
|
}
|
|
4858
4871
|
};
|
|
4859
|
-
v(se, "type", se.register("ESUeViewer",
|
|
4872
|
+
v(se, "type", se.register("ESUeViewer", _n.type, se));
|
|
4860
4873
|
let Oi = se;
|
|
4861
4874
|
const oe = class oe extends D {
|
|
4862
4875
|
constructor(e, t) {
|
|
@@ -4866,7 +4879,7 @@ const oe = class oe extends D {
|
|
|
4866
4879
|
}
|
|
4867
4880
|
}
|
|
4868
4881
|
};
|
|
4869
|
-
v(oe, "type", oe.register("ESUeViewer",
|
|
4882
|
+
v(oe, "type", oe.register("ESUeViewer", Mn.type, oe));
|
|
4870
4883
|
let ji = oe;
|
|
4871
4884
|
const ae = class ae extends $ {
|
|
4872
4885
|
constructor(e, t) {
|
|
@@ -4893,9 +4906,9 @@ const ae = class ae extends $ {
|
|
|
4893
4906
|
}));
|
|
4894
4907
|
}
|
|
4895
4908
|
};
|
|
4896
|
-
v(ae, "type", ae.register("ESUeViewer",
|
|
4909
|
+
v(ae, "type", ae.register("ESUeViewer", $n.type, ae));
|
|
4897
4910
|
let tr = ae;
|
|
4898
|
-
const st = class st extends
|
|
4911
|
+
const st = class st extends z {
|
|
4899
4912
|
constructor(e, t) {
|
|
4900
4913
|
if (super(e, t), !t.viewer) {
|
|
4901
4914
|
console.warn("viewer is undefined!");
|
|
@@ -4903,12 +4916,12 @@ const st = class st extends N {
|
|
|
4903
4916
|
}
|
|
4904
4917
|
}
|
|
4905
4918
|
};
|
|
4906
|
-
v(st, "type", st.register("ESUeViewer",
|
|
4907
|
-
...
|
|
4919
|
+
v(st, "type", st.register("ESUeViewer", Wn.type, st)), v(st, "propValFuncs", {
|
|
4920
|
+
...z.propValFuncs,
|
|
4908
4921
|
info: (e) => JSON.stringify(e ?? {})
|
|
4909
4922
|
});
|
|
4910
4923
|
let er = st;
|
|
4911
|
-
const de = class de extends
|
|
4924
|
+
const de = class de extends G {
|
|
4912
4925
|
constructor(e, t) {
|
|
4913
4926
|
if (super(e, t), !t.viewer) {
|
|
4914
4927
|
console.warn("viewer is undefined!");
|
|
@@ -4921,10 +4934,10 @@ const de = class de extends J {
|
|
|
4921
4934
|
});
|
|
4922
4935
|
}
|
|
4923
4936
|
};
|
|
4924
|
-
v(de, "type", de.register("ESUeViewer",
|
|
4937
|
+
v(de, "type", de.register("ESUeViewer", An.type, de));
|
|
4925
4938
|
let ir = de;
|
|
4926
4939
|
E.context.getStrFromEnv(j.defaults.imgUrl);
|
|
4927
|
-
const le = class le extends
|
|
4940
|
+
const le = class le extends G {
|
|
4928
4941
|
constructor(e, t) {
|
|
4929
4942
|
if (super(e, t), !t.viewer) {
|
|
4930
4943
|
console.warn("viewer is undefined!");
|
|
@@ -5011,21 +5024,21 @@ const Q = class Q extends D {
|
|
|
5011
5024
|
}
|
|
5012
5025
|
}
|
|
5013
5026
|
};
|
|
5014
|
-
v(Q, "type", Q.register("ESUeViewer",
|
|
5027
|
+
v(Q, "type", Q.register("ESUeViewer", Un.type, Q)), v(Q, "forceUeUpdateProps", [
|
|
5015
5028
|
...D.forceUeUpdateProps
|
|
5016
5029
|
]), v(Q, "propValFuncs", {
|
|
5017
5030
|
...D.propValFuncs,
|
|
5018
5031
|
materialMode: null
|
|
5019
5032
|
});
|
|
5020
5033
|
let nr = Q;
|
|
5021
|
-
async function
|
|
5034
|
+
async function Io(l) {
|
|
5022
5035
|
navigator.clipboard.writeText(l).then(function() {
|
|
5023
5036
|
console.log("复制成功");
|
|
5024
5037
|
}, function(e) {
|
|
5025
5038
|
console.log("复制失败");
|
|
5026
5039
|
});
|
|
5027
5040
|
}
|
|
5028
|
-
const ce = class ce extends
|
|
5041
|
+
const ce = class ce extends G {
|
|
5029
5042
|
constructor(e, t) {
|
|
5030
5043
|
if (super(e, t), !t.viewer) {
|
|
5031
5044
|
console.warn("viewer is undefined!");
|
|
@@ -5044,7 +5057,7 @@ const ce = class ce extends J {
|
|
|
5044
5057
|
const d = document.createElement("span");
|
|
5045
5058
|
g.appendChild(d), d.addEventListener("dblclick", function() {
|
|
5046
5059
|
let c = d.innerHTML;
|
|
5047
|
-
c.startsWith("鼠标位置") && (c = c.slice(5)),
|
|
5060
|
+
c.startsWith("鼠标位置") && (c = c.slice(5)), Io(c);
|
|
5048
5061
|
}), d.style.cursor = "pointer", this.dispose(() => g.removeChild(d));
|
|
5049
5062
|
const h = document.createElement("span");
|
|
5050
5063
|
a.appendChild(h), this.dispose(() => a.removeChild(h));
|
|
@@ -5112,12 +5125,12 @@ const ue = class ue extends I {
|
|
|
5112
5125
|
}
|
|
5113
5126
|
}
|
|
5114
5127
|
};
|
|
5115
|
-
v(ue, "type", ue.register("ESUeViewer",
|
|
5128
|
+
v(ue, "type", ue.register("ESUeViewer", Nn.type, ue));
|
|
5116
5129
|
let or = ue;
|
|
5117
5130
|
const he = class he extends at {
|
|
5118
5131
|
constructor(t, i) {
|
|
5119
5132
|
super(t, i);
|
|
5120
|
-
v(this, "_es3DTileset", this.dv(new
|
|
5133
|
+
v(this, "_es3DTileset", this.dv(new me()));
|
|
5121
5134
|
if (!i.viewer) {
|
|
5122
5135
|
console.warn("viewer is undefined!");
|
|
5123
5136
|
return;
|
|
@@ -5172,7 +5185,7 @@ const he = class he extends at {
|
|
|
5172
5185
|
return this._es3DTileset;
|
|
5173
5186
|
}
|
|
5174
5187
|
};
|
|
5175
|
-
v(he, "type", he.register("ESUeViewer",
|
|
5188
|
+
v(he, "type", he.register("ESUeViewer", zn.type, he));
|
|
5176
5189
|
let ar = he;
|
|
5177
5190
|
const pe = class pe extends at {
|
|
5178
5191
|
constructor(e, t) {
|
|
@@ -5182,7 +5195,7 @@ const pe = class pe extends at {
|
|
|
5182
5195
|
}
|
|
5183
5196
|
}
|
|
5184
5197
|
};
|
|
5185
|
-
v(pe, "type", pe.register("ESUeViewer",
|
|
5198
|
+
v(pe, "type", pe.register("ESUeViewer", Hn.type, pe));
|
|
5186
5199
|
let dr = pe;
|
|
5187
5200
|
const ve = class ve extends $ {
|
|
5188
5201
|
constructor(e, t) {
|
|
@@ -5247,14 +5260,14 @@ const ge = class ge extends D {
|
|
|
5247
5260
|
}));
|
|
5248
5261
|
}
|
|
5249
5262
|
};
|
|
5250
|
-
v(ge, "type", ge.register("ESUeViewer",
|
|
5251
|
-
let ur = ge,
|
|
5263
|
+
v(ge, "type", ge.register("ESUeViewer", bn.type, ge));
|
|
5264
|
+
let ur = ge, We;
|
|
5252
5265
|
try {
|
|
5253
|
-
const l = "earthsdk3-ue", e = "3.4.0-beta.
|
|
5266
|
+
const l = "earthsdk3-ue", e = "3.4.0-beta.9", t = "2025-09-09T00:34:08.000Z", i = "北京西部世界科技有限公司", r = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", n = "937e73065a56c6e2c7bb82ca7812858a91f3853f", o = ((Date.now() - 1757378048e3) / 36e5).toFixed(1), u = `%c🌏 ${l}%c ${e}.${n.slice(0, 8)}.${t} (距今${o}个小时)
|
|
5254
5267
|
%c${r ? r + `
|
|
5255
5268
|
` : ""}当前网站正在使用${l},此软件版权归${i}所有
|
|
5256
5269
|
`;
|
|
5257
|
-
|
|
5270
|
+
We = Object.freeze({
|
|
5258
5271
|
// @ts-ignore
|
|
5259
5272
|
get owner() {
|
|
5260
5273
|
return "北京西部世界科技有限公司";
|
|
@@ -5264,7 +5277,7 @@ try {
|
|
|
5264
5277
|
},
|
|
5265
5278
|
// @ts-ignore
|
|
5266
5279
|
get gituri() {
|
|
5267
|
-
return GITURI_ && GITURI_.replace("${commitId}", "
|
|
5280
|
+
return GITURI_ && GITURI_.replace("${commitId}", "937e73065a56c6e2c7bb82ca7812858a91f3853f");
|
|
5268
5281
|
},
|
|
5269
5282
|
// @ts-ignore
|
|
5270
5283
|
get info() {
|
|
@@ -5272,7 +5285,7 @@ try {
|
|
|
5272
5285
|
},
|
|
5273
5286
|
// @ts-ignore
|
|
5274
5287
|
get date() {
|
|
5275
|
-
return "2025-09-
|
|
5288
|
+
return "2025-09-09T00:34:08.000Z";
|
|
5276
5289
|
},
|
|
5277
5290
|
// @ts-ignore
|
|
5278
5291
|
get author() {
|
|
@@ -5280,7 +5293,7 @@ try {
|
|
|
5280
5293
|
},
|
|
5281
5294
|
// @ts-ignore
|
|
5282
5295
|
get version() {
|
|
5283
|
-
return "3.4.0-beta.
|
|
5296
|
+
return "3.4.0-beta.9";
|
|
5284
5297
|
},
|
|
5285
5298
|
// @ts-ignore
|
|
5286
5299
|
get name() {
|
|
@@ -5288,7 +5301,7 @@ try {
|
|
|
5288
5301
|
},
|
|
5289
5302
|
// @ts-ignore
|
|
5290
5303
|
get commitId() {
|
|
5291
|
-
return "
|
|
5304
|
+
return "937e73065a56c6e2c7bb82ca7812858a91f3853f";
|
|
5292
5305
|
},
|
|
5293
5306
|
print(a = !1) {
|
|
5294
5307
|
!a && window._xe2_no_copy_print || console.info(
|
|
@@ -5315,19 +5328,19 @@ try {
|
|
|
5315
5328
|
`
|
|
5316
5329
|
);
|
|
5317
5330
|
}
|
|
5318
|
-
}), window.g_XE3CopyRights = window.g_XE3CopyRights || {}, window.g_XE3CopyRights[l] =
|
|
5331
|
+
}), window.g_XE3CopyRights = window.g_XE3CopyRights || {}, window.g_XE3CopyRights[l] = We, window.g_earthsdk_copyright_print = window.g_earthsdk_copyright_print ?? !0, window.g_earthsdk_copyright_print && We.print();
|
|
5319
5332
|
} catch {
|
|
5320
5333
|
}
|
|
5321
5334
|
export {
|
|
5322
5335
|
b as ESUeViewer,
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5336
|
+
Co as GeoDivFromESImageLabel,
|
|
5337
|
+
mo as GeoDivFromESTextLabel,
|
|
5338
|
+
ns as HighlightFeatureAndFlyToCallFunc,
|
|
5339
|
+
rs as HighlightFeatureCallFunc,
|
|
5340
|
+
os as SetLayerColorCallFunc,
|
|
5341
|
+
ss as SetLayerVisibleCallFunc,
|
|
5342
|
+
Be as UeCloudViewerBase,
|
|
5343
|
+
Ue as UeES3DTileset,
|
|
5331
5344
|
je as UeESAlarm,
|
|
5332
5345
|
ti as UeESApertureEffect,
|
|
5333
5346
|
ei as UeESAreaMeasurement,
|
|
@@ -5351,7 +5364,7 @@ export {
|
|
|
5351
5364
|
yi as UeESGeoDiv,
|
|
5352
5365
|
lr as UeESGeoExtrudedPolygon,
|
|
5353
5366
|
mi as UeESGeoJson,
|
|
5354
|
-
|
|
5367
|
+
ze as UeESGeoLineString,
|
|
5355
5368
|
$ as UeESGeoPolygon,
|
|
5356
5369
|
Ci as UeESGeoRectangle,
|
|
5357
5370
|
D as UeESGeoVector,
|
|
@@ -5362,10 +5375,10 @@ export {
|
|
|
5362
5375
|
ir as UeESHumanPoi,
|
|
5363
5376
|
Ti as UeESImageLabel,
|
|
5364
5377
|
Ve as UeESImageryLayer,
|
|
5365
|
-
|
|
5378
|
+
z as UeESLabel,
|
|
5366
5379
|
xi as UeESLevelRuntimeModel,
|
|
5367
5380
|
Ri as UeESLocalCircle,
|
|
5368
|
-
|
|
5381
|
+
Ne as UeESLocalPolygon,
|
|
5369
5382
|
Li as UeESLocalPolygonZ,
|
|
5370
5383
|
Pi as UeESLocalRectangle,
|
|
5371
5384
|
ki as UeESLocalSkyBox,
|
|
@@ -5387,9 +5400,9 @@ export {
|
|
|
5387
5400
|
zi as UeESPolygonFlattenedPlane,
|
|
5388
5401
|
Hi as UeESPolygonWithHole,
|
|
5389
5402
|
ar as UeESRtsFeatureEditing,
|
|
5390
|
-
|
|
5403
|
+
Ji as UeESRtsTileset,
|
|
5391
5404
|
at as UeESSceneObject,
|
|
5392
|
-
|
|
5405
|
+
bi as UeESSeparateFoliage,
|
|
5393
5406
|
ur as UeESSkylineAnalysis,
|
|
5394
5407
|
cr as UeESStaticMesh,
|
|
5395
5408
|
Gi as UeESSubmergingAnalysis,
|
|
@@ -5406,64 +5419,64 @@ export {
|
|
|
5406
5419
|
M as UeESVisualObject,
|
|
5407
5420
|
tr as UeESVolumeMeasurement,
|
|
5408
5421
|
er as UeESWidget,
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5422
|
+
_s as bind3DTilesetByTagCallFunc,
|
|
5423
|
+
Ls as bindActorByTagCallFunc,
|
|
5424
|
+
Ws as bindImageryByTagCallFunc,
|
|
5412
5425
|
dt as calcFlyToParamCallFunc,
|
|
5413
5426
|
Er as callFunctionCallFunc,
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5427
|
+
gs as captureCallFunc,
|
|
5428
|
+
J as changeNavigationModeCallFunc,
|
|
5429
|
+
We as copyright,
|
|
5430
|
+
Bs as createActorByClassCallFunc,
|
|
5431
|
+
Fr as destroyCallFunc,
|
|
5432
|
+
Re as flyInCallFunc,
|
|
5433
|
+
On as flyInDefaultCameraCallFunc,
|
|
5421
5434
|
we as flyToCallFunc,
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5435
|
+
is as generateMemReportCallFunc,
|
|
5436
|
+
Cs as getAllSocketNamesByActorTagCallFunc,
|
|
5437
|
+
Is as getBoundSphereCallFunc,
|
|
5438
|
+
Es as getBoundSphereWithChildrenCallFunc,
|
|
5439
|
+
zs as getCameraRelativeHeightCallFunc,
|
|
5440
|
+
Ts as getFillMaterialParamInfoCallFunc,
|
|
5441
|
+
xs as getGlobalPropertyCallFunc,
|
|
5442
|
+
vs as getHeightByLonLatCallFunc,
|
|
5443
|
+
fs as getHeightByLonLatsCallFunc,
|
|
5444
|
+
Ns as getIdByComponentNameAndHitItemCallFunc,
|
|
5445
|
+
ys as getLonLatAltToScreenPositionCallFunc,
|
|
5446
|
+
Rs as getObjectByInfoCallFunc,
|
|
5447
|
+
Gs as getStatusCallFunc,
|
|
5448
|
+
Ss as getStrokeMaterialParamInfoCallFunc,
|
|
5449
|
+
Zs as getTilesetMaterialIDListCallFunc,
|
|
5450
|
+
Fs as getVersionCallFunc,
|
|
5451
|
+
Js as highlightActorByTagCallFunc,
|
|
5452
|
+
es as mountPakFiles,
|
|
5453
|
+
Ys as moveObjectsCallFunc,
|
|
5454
|
+
ws as partialCaptureCallFunc,
|
|
5455
|
+
hs as pickCallFunc,
|
|
5456
|
+
ps as pickPositionCallFunc,
|
|
5457
|
+
us as quitCallFunc,
|
|
5458
|
+
Vn as refreshTilesetCallFunc,
|
|
5446
5459
|
Ir as resetWithCurrentCameraCallFunc,
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5460
|
+
Ps as restoreOriginalSceneCallFunc,
|
|
5461
|
+
Hs as saveStringToFileCallFunc,
|
|
5462
|
+
bs as sendCustomMessageCallFunc,
|
|
5463
|
+
cs as setGlobalPropertyCallFunc,
|
|
5464
|
+
as as setNodePositionCallFunc,
|
|
5465
|
+
ds as setNodeRotationCallFunc,
|
|
5466
|
+
ls as setNodeScaleCallFunc,
|
|
5467
|
+
De as smoothMoveCallFunc,
|
|
5468
|
+
Pe as smoothMoveOnGroundCallFunc,
|
|
5469
|
+
Le as smoothMoveWithRotationCallFunc,
|
|
5470
|
+
ke as smoothMoveWithRotationOnGroundCallFunc,
|
|
5471
|
+
Ks as startEditingCallFunc,
|
|
5472
|
+
jn as startVoiceCallFunc,
|
|
5473
|
+
Xs as stopEditingCallFunc,
|
|
5474
|
+
ts as stopVoiceCallFunc,
|
|
5475
|
+
ms as uePositionToLonLatAltCallFunc,
|
|
5476
|
+
$s as unBind3DTilesetByIdCallFunc,
|
|
5477
|
+
Ms as unBind3DTilesetByTagCallFunc,
|
|
5478
|
+
ks as unBindActorByIDCallFunc,
|
|
5479
|
+
Ds as unBindActorByTagCallFunc,
|
|
5480
|
+
Us as unBindImageryByIdCallFunc,
|
|
5481
|
+
As as unBindImageryByTagCallFunc
|
|
5469
5482
|
};
|