earthsdk3-ue 3.6.0-beta.4 → 3.6.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/earthsdk3-ue.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var Br = Object.defineProperty;
|
|
2
2
|
var _r = (d, e, t) => e in d ? Br(d, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[e] = t;
|
|
3
|
-
var
|
|
4
|
-
import { ESViewer as Ee, reactArrayWithUndefined as pr, ESSceneObject as I, ESJPickedResult as Ae, Destroyable as
|
|
5
|
-
import { Logger as wr, Config as yr, TextParameters as
|
|
6
|
-
import
|
|
3
|
+
var g = (d, e, t) => _r(d, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { ESViewer as Ee, reactArrayWithUndefined as pr, ESSceneObject as I, ESJPickedResult as Ae, Destroyable as C, HasOwner as Mr, createGuid as M, Event as x, createAnimateFrame as ze, createInterval as Se, react as W, createNextAnimateFrameEvent as L, ViewerCustomInteraction as gr, ObjResettingWithEvent as P, createProcessingFromAsyncFunc as Te, sleep as $r, getGeoBoundingSphereFromPositions as Wr, extendClassProps as Ar, EngineObject as G, ES3DTileset as me, ESImageryLayer as U, reactJson as He, ESTerrainLayer as Ur, ESAlarm as Nr, ESApertureEffect as br, ESGeoPolygon as zr, ESAreaMeasurement as j, ESBlastParticleSystem as Hr, ESBoxClipping as Jr, ESCameraView as Gr, ESCameraVisibleRange as Kr, ESCar as Xr, ESClassification as ct, ESClippingPlane as Yr, ESDataMesh as z, ESDatasmithRuntimeModel as Zr, ESDirectionMeasurement as qr, ESDistanceMeasurement as Me, ESLocalPolygon as Qr, ESDynamicWater as Vr, ESEntityCluster as Or, ESExcavate as jr, ESFireParticleSystem as tn, ESForestTileset as N, ESGeoDiv as Ce, ESTextLabel as vr, bind as D, ESCustomDiv as Je, ESImageLabel as fr, track as F, PosFloatDiv as en, getDistancesFromPositions as rn, ESGeoJson as nn, ESGeoLineString as sn, ESGeoRectangle as on, ESGeoWater as an, rpToap as Fe, ESGltfModel as ln, ESHeightMeasurement as dn, ESHuman as cn, ESLevelRuntimeModel as un, ESLocalCircle as hn, ESLocalPolygonZ as pn, ESLocalRectangle as gn, ESLocalSkyBox as vn, ESLocationMeasurement as fn, ESPipeFence as wn, ESPipeline as yn, ESPipeserTileset as mn, ESPit as Cn, ESPoi2D as Fn, ESPoi3D as In, ESPoiTileset as En, ESPolygonFence as Sn, ESPolygonFlattenedPlane as Tn, ESPolygonWithHole as xn, ESRtsTileset as Rn, ESSeparateFoliage as Pn, addTreesCallFunc as Ln, removeAllTreesCallFunc as Dn, updateTreeParamsCallFunc as kn, cutDownTreesCallFunc as Bn, growthSimulationCallFunc as _n, ESSubmergingAnalysis as Mn, ESSunshineAnalysis as $n, ESSurfaceAreaMeasurement as Wn, ESUEWidget as An, ESUnrealActor as $e, ESVideoFusion as Un, ESViewShed as Nn, ESVisibilityAnalysis as bn, ESVolumeMeasurement as zn, ESWidget as Hn, ESHumanPoi as Jn, ESNavigator as tt, ESPath as Gn, ESViewerStatusBar as A, ESGaussianSplatting as Kn, ESRtsFeatureEditing as Xn, ESMsTileset as Yn, ESGeoExtrudedPolygon as ye, ESStaticMesh as Zn, ESSkylineAnalysis as qn } from "earthsdk3";
|
|
5
|
+
import { Logger as wr, Config as yr, TextParameters as Qn, Flags as at, NumericParameters as mr, PixelStreaming as Cr } from "@epicgames-ps/lib-pixelstreamingfrontend-ue5.2";
|
|
6
|
+
import Vn from "html2canvas";
|
|
7
7
|
var hr;
|
|
8
|
-
const
|
|
8
|
+
const On = {
|
|
9
9
|
...Ee.defaults,
|
|
10
10
|
geoReferenceOrigin: void 0,
|
|
11
11
|
keepWorldOriginNearCamera: !1,
|
|
@@ -84,7 +84,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
84
84
|
}).catch((t) => {
|
|
85
85
|
console.error("calcFlyToParam:", t);
|
|
86
86
|
});
|
|
87
|
-
},
|
|
87
|
+
}, jn = (d, e) => {
|
|
88
88
|
d.callUeFunc({
|
|
89
89
|
f: "refreshTileset",
|
|
90
90
|
p: { id: e }
|
|
@@ -103,7 +103,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
103
103
|
return;
|
|
104
104
|
}
|
|
105
105
|
return s.re;
|
|
106
|
-
},
|
|
106
|
+
}, ts = async (d, e) => {
|
|
107
107
|
if (!d) {
|
|
108
108
|
console.warn("DefaultCameraFlyIn: viewer is undefined");
|
|
109
109
|
return;
|
|
@@ -117,7 +117,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
119
119
|
return t;
|
|
120
|
-
},
|
|
120
|
+
}, es = async (d) => {
|
|
121
121
|
if (!d) {
|
|
122
122
|
console.warn("StartVoice:viewer is undefined");
|
|
123
123
|
return;
|
|
@@ -131,7 +131,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
131
131
|
return;
|
|
132
132
|
}
|
|
133
133
|
return e;
|
|
134
|
-
},
|
|
134
|
+
}, is = async (d) => {
|
|
135
135
|
if (!d) {
|
|
136
136
|
console.warn("StopVoice:viewer is undefined");
|
|
137
137
|
return;
|
|
@@ -145,7 +145,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
145
145
|
return;
|
|
146
146
|
}
|
|
147
147
|
return e;
|
|
148
|
-
},
|
|
148
|
+
}, rs = async (d, e) => {
|
|
149
149
|
if (!d) {
|
|
150
150
|
console.warn("mountPakFiles:viewer is undefined");
|
|
151
151
|
return;
|
|
@@ -159,7 +159,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
159
159
|
return;
|
|
160
160
|
}
|
|
161
161
|
return t;
|
|
162
|
-
},
|
|
162
|
+
}, ns = async (d) => {
|
|
163
163
|
if (!d) {
|
|
164
164
|
console.warn("generateMemReport:viewer is undefined");
|
|
165
165
|
return;
|
|
@@ -202,7 +202,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
202
202
|
}).catch((s) => {
|
|
203
203
|
console.error("smoothMoveOnGround:", s);
|
|
204
204
|
});
|
|
205
|
-
},
|
|
205
|
+
}, De = (d, e, t, i, r, n, s) => {
|
|
206
206
|
d.callUeFunc({
|
|
207
207
|
f: "smoothMoveWithRotationOnGround",
|
|
208
208
|
p: {
|
|
@@ -218,7 +218,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
218
218
|
}).catch((o) => {
|
|
219
219
|
console.error("smoothMoveWithRotationOnGround:", o);
|
|
220
220
|
});
|
|
221
|
-
},
|
|
221
|
+
}, ss = (d, e, t) => {
|
|
222
222
|
d.callUeFunc({
|
|
223
223
|
f: "HighlightFeature",
|
|
224
224
|
p: { id: e, HlId: t }
|
|
@@ -227,7 +227,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
227
227
|
}).catch((i) => {
|
|
228
228
|
console.error("HighlightFeature:", i);
|
|
229
229
|
});
|
|
230
|
-
},
|
|
230
|
+
}, os = (d, e, t, i) => {
|
|
231
231
|
d.callUeFunc({
|
|
232
232
|
f: "HighlightFeatureAndFlyTo",
|
|
233
233
|
p: { id: e, HlId: t, Duration: i }
|
|
@@ -236,7 +236,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
236
236
|
}).catch((r) => {
|
|
237
237
|
console.error("HighlightFeatureAndFlyTo:", r);
|
|
238
238
|
});
|
|
239
|
-
},
|
|
239
|
+
}, as = (d, e, t) => {
|
|
240
240
|
d.callUeFunc({
|
|
241
241
|
f: "SetLayerVisible",
|
|
242
242
|
p: { id: e, LayerJson: t }
|
|
@@ -245,7 +245,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
245
245
|
}).catch((i) => {
|
|
246
246
|
console.error("SetLayerVisible:", i);
|
|
247
247
|
});
|
|
248
|
-
},
|
|
248
|
+
}, ls = (d, e, t) => {
|
|
249
249
|
d.callUeFunc({
|
|
250
250
|
f: "SetLayerColor",
|
|
251
251
|
p: { id: e, LayerJson: t }
|
|
@@ -254,7 +254,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
254
254
|
}).catch((i) => {
|
|
255
255
|
console.error("SetLayerColor:", i);
|
|
256
256
|
});
|
|
257
|
-
},
|
|
257
|
+
}, ke = (d, e, t, i) => {
|
|
258
258
|
d.callUeFunc({
|
|
259
259
|
f: "smoothMove",
|
|
260
260
|
p: {
|
|
@@ -273,7 +273,7 @@ const we = async (d, 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
|
+
}, ds = (d, e, t, i) => {
|
|
277
277
|
d.callUeFunc({
|
|
278
278
|
f: "SetNodePosition",
|
|
279
279
|
p: {
|
|
@@ -286,7 +286,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
286
286
|
}).catch((r) => {
|
|
287
287
|
console.error("SetNodePosition:", r);
|
|
288
288
|
});
|
|
289
|
-
},
|
|
289
|
+
}, cs = (d, e, t, i) => {
|
|
290
290
|
d.callUeFunc({
|
|
291
291
|
f: "SetNodeRotation",
|
|
292
292
|
p: {
|
|
@@ -299,7 +299,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
299
299
|
}).catch((r) => {
|
|
300
300
|
console.error("SetNodeRotation:", r);
|
|
301
301
|
});
|
|
302
|
-
},
|
|
302
|
+
}, us = (d, e, t, i) => {
|
|
303
303
|
d.callUeFunc({
|
|
304
304
|
f: "SetNodeScale",
|
|
305
305
|
p: {
|
|
@@ -329,7 +329,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
329
329
|
return;
|
|
330
330
|
}
|
|
331
331
|
return t;
|
|
332
|
-
},
|
|
332
|
+
}, hs = async (d, e) => {
|
|
333
333
|
const t = await d.callUeFunc({
|
|
334
334
|
f: "setGlobalProperty",
|
|
335
335
|
p: e
|
|
@@ -339,7 +339,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
339
339
|
return;
|
|
340
340
|
}
|
|
341
341
|
return t;
|
|
342
|
-
},
|
|
342
|
+
}, ps = async (d) => {
|
|
343
343
|
const e = await d.callUeFunc({
|
|
344
344
|
f: "Quit",
|
|
345
345
|
p: void 0
|
|
@@ -349,7 +349,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
349
349
|
return;
|
|
350
350
|
}
|
|
351
351
|
return e;
|
|
352
|
-
},
|
|
352
|
+
}, gs = async (d, e, t, i) => {
|
|
353
353
|
console.log("pickCallFunc", e, t, i);
|
|
354
354
|
const r = await d.callUeFunc({
|
|
355
355
|
f: "pick",
|
|
@@ -372,7 +372,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
372
372
|
}
|
|
373
373
|
const { position: i } = t.re;
|
|
374
374
|
return i;
|
|
375
|
-
},
|
|
375
|
+
}, fs = async (d, e, t, i = "ECC_Visibility") => {
|
|
376
376
|
const r = await d.callUeFunc({
|
|
377
377
|
f: "GetHeightByLonLat",
|
|
378
378
|
p: { Lon: e, Lat: t, Channel: i }
|
|
@@ -382,7 +382,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
382
382
|
return;
|
|
383
383
|
}
|
|
384
384
|
return r.re;
|
|
385
|
-
},
|
|
385
|
+
}, ws = async (d, e, t = "ECC_Visibility") => {
|
|
386
386
|
const i = await d.callUeFunc({
|
|
387
387
|
f: "GetHeightsByLonLats",
|
|
388
388
|
p: { LonLats: e, Channel: t }
|
|
@@ -397,7 +397,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
397
397
|
} catch {
|
|
398
398
|
return;
|
|
399
399
|
}
|
|
400
|
-
},
|
|
400
|
+
}, ys = async (d, e = 64, t = 64) => {
|
|
401
401
|
const i = await d.callUeFunc({
|
|
402
402
|
f: "capture",
|
|
403
403
|
p: { resx: e, resy: t }
|
|
@@ -407,7 +407,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
407
407
|
return;
|
|
408
408
|
}
|
|
409
409
|
return i.re.image;
|
|
410
|
-
},
|
|
410
|
+
}, ms = async (d, e, t = [64, 64]) => {
|
|
411
411
|
const i = await d.callUeFunc({
|
|
412
412
|
f: "partialCapture",
|
|
413
413
|
p: {
|
|
@@ -420,13 +420,13 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
420
420
|
return;
|
|
421
421
|
}
|
|
422
422
|
return i.re.image;
|
|
423
|
-
},
|
|
423
|
+
}, Cs = async (d, e) => {
|
|
424
424
|
const t = await d.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
|
+
}, Fs = async (d, e) => {
|
|
430
430
|
const t = await d.callUeFunc({
|
|
431
431
|
f: "UEPositionToLonLatAlt",
|
|
432
432
|
p: { UEPosition: e }
|
|
@@ -436,7 +436,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
436
436
|
return;
|
|
437
437
|
}
|
|
438
438
|
return [...t.re.LonLatAlt];
|
|
439
|
-
},
|
|
439
|
+
}, Is = async (d, e) => {
|
|
440
440
|
const t = await d.callUeFunc({
|
|
441
441
|
f: "GetAllSocketNamesByActorTag",
|
|
442
442
|
p: { ActorTag: e }
|
|
@@ -446,7 +446,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
446
446
|
return;
|
|
447
447
|
}
|
|
448
448
|
return [...t.re.socketNames];
|
|
449
|
-
},
|
|
449
|
+
}, Es = async (d) => {
|
|
450
450
|
const e = await d.callUeFunc({
|
|
451
451
|
f: "GetVersion",
|
|
452
452
|
p: void 0
|
|
@@ -456,7 +456,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
456
456
|
return;
|
|
457
457
|
}
|
|
458
458
|
return e.re.version;
|
|
459
|
-
},
|
|
459
|
+
}, Ss = async (d, e) => {
|
|
460
460
|
const t = await d.callUeFunc({
|
|
461
461
|
f: "GetBoundSphere",
|
|
462
462
|
p: { id: e }
|
|
@@ -466,7 +466,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
466
466
|
return;
|
|
467
467
|
}
|
|
468
468
|
return t.re;
|
|
469
|
-
},
|
|
469
|
+
}, Ts = async (d, e) => {
|
|
470
470
|
const t = await d.callUeFunc({
|
|
471
471
|
f: "GetBoundSphereWithChildren",
|
|
472
472
|
p: { id: e }
|
|
@@ -476,7 +476,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
476
476
|
return;
|
|
477
477
|
}
|
|
478
478
|
return t.re;
|
|
479
|
-
},
|
|
479
|
+
}, xs = async (d, e) => {
|
|
480
480
|
const t = await d.callUeFunc({
|
|
481
481
|
f: "GetStrokeMaterialParamInfo",
|
|
482
482
|
p: { id: e }
|
|
@@ -486,7 +486,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
486
486
|
return;
|
|
487
487
|
}
|
|
488
488
|
return t.re;
|
|
489
|
-
},
|
|
489
|
+
}, Rs = async (d, e) => {
|
|
490
490
|
const t = await d.callUeFunc({
|
|
491
491
|
f: "GetFillMaterialParamInfo",
|
|
492
492
|
p: { id: e }
|
|
@@ -496,7 +496,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
496
496
|
return;
|
|
497
497
|
}
|
|
498
498
|
return t.re;
|
|
499
|
-
},
|
|
499
|
+
}, Ps = async (d, e) => {
|
|
500
500
|
const t = await d.callUeFunc({
|
|
501
501
|
f: "getGlobalProperty",
|
|
502
502
|
p: { props: e }
|
|
@@ -506,7 +506,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
506
506
|
return;
|
|
507
507
|
}
|
|
508
508
|
return t.re;
|
|
509
|
-
},
|
|
509
|
+
}, Ls = async (d, e) => {
|
|
510
510
|
const t = await d.callUeFunc({
|
|
511
511
|
f: "GetObjectByInfo",
|
|
512
512
|
p: { info: e }
|
|
@@ -516,62 +516,62 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
516
516
|
return;
|
|
517
517
|
}
|
|
518
518
|
return t.re;
|
|
519
|
-
},
|
|
519
|
+
}, Ds = async (d, e, t) => await d.callUeFunc({
|
|
520
520
|
f: "BindActorByTag",
|
|
521
521
|
p: { ID: e, ActorTag: t }
|
|
522
522
|
}), ks = async (d) => await d.callUeFunc({
|
|
523
523
|
f: "RestoreOriginalScene",
|
|
524
524
|
p: void 0
|
|
525
|
-
}),
|
|
525
|
+
}), Bs = async (d, e) => await d.callUeFunc({
|
|
526
526
|
f: "UnBindActorByID",
|
|
527
527
|
p: { ID: e }
|
|
528
|
-
}),
|
|
528
|
+
}), _s = async (d, e) => await d.callUeFunc({
|
|
529
529
|
f: "UnBindActorByTag",
|
|
530
530
|
p: { ActorTag: e }
|
|
531
|
-
}),
|
|
531
|
+
}), Ms = async (d, e, t) => await d.callUeFunc({
|
|
532
532
|
f: "CreateActorByClass",
|
|
533
533
|
p: { ID: e, ActorClass: t }
|
|
534
|
-
}),
|
|
534
|
+
}), $s = async function(d, e, t) {
|
|
535
535
|
return await d.callUeFunc({
|
|
536
536
|
f: "Bind3DTilesetByTag",
|
|
537
537
|
p: { ID: e, ActorTag: t }
|
|
538
538
|
});
|
|
539
|
-
},
|
|
539
|
+
}, Ws = async function(d, e) {
|
|
540
540
|
return await d.callUeFunc({
|
|
541
541
|
f: "UnBind3DTilesetByTag",
|
|
542
542
|
p: { ActorTag: e }
|
|
543
543
|
});
|
|
544
|
-
},
|
|
544
|
+
}, As = async function(d, e) {
|
|
545
545
|
return await d.callUeFunc({
|
|
546
546
|
f: "UnBind3DTilesetById",
|
|
547
547
|
p: { ID: e }
|
|
548
548
|
});
|
|
549
|
-
},
|
|
549
|
+
}, Us = async function(d, e, t, i) {
|
|
550
550
|
return await d.callUeFunc({
|
|
551
551
|
f: "BindImageryByTag",
|
|
552
552
|
p: { ID: e, ActorTag: t, ComponentTag: i }
|
|
553
553
|
});
|
|
554
|
-
},
|
|
554
|
+
}, Ns = async function(d, e, t) {
|
|
555
555
|
return await d.callUeFunc({
|
|
556
556
|
f: "UnBindImageryByTag",
|
|
557
557
|
p: { ActorTag: e, ComponentTag: t }
|
|
558
558
|
});
|
|
559
|
-
},
|
|
559
|
+
}, bs = async function(d, e) {
|
|
560
560
|
return await d.callUeFunc({
|
|
561
561
|
f: "UnBindImageryById",
|
|
562
562
|
p: { ID: e }
|
|
563
563
|
});
|
|
564
|
-
},
|
|
564
|
+
}, zs = async function(d, e, t, i) {
|
|
565
565
|
return await d.callUeFunc({
|
|
566
566
|
f: "GetIdByComponentNameAndHitItem",
|
|
567
567
|
p: { id: e, ComponentName: t, HitItem: i }
|
|
568
568
|
});
|
|
569
|
-
},
|
|
569
|
+
}, Hs = async function(d, e = "ECC_Visibility") {
|
|
570
570
|
return await d.callUeFunc({
|
|
571
571
|
f: "GetCameraRelativeHeight",
|
|
572
572
|
p: { Channel: e }
|
|
573
573
|
});
|
|
574
|
-
},
|
|
574
|
+
}, Js = async function(d, e, t, i) {
|
|
575
575
|
const r = await d.callUeFunc({
|
|
576
576
|
f: "SaveStringToFile",
|
|
577
577
|
p: {
|
|
@@ -581,7 +581,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
581
581
|
}
|
|
582
582
|
});
|
|
583
583
|
return r.error !== "" && console.warn("SaveStringToFile: ", r.error), r;
|
|
584
|
-
},
|
|
584
|
+
}, Gs = async function(d, e, t = !0) {
|
|
585
585
|
const i = await d.callUeFunc({
|
|
586
586
|
f: "HighlightActorByTag",
|
|
587
587
|
p: {
|
|
@@ -590,13 +590,13 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
590
590
|
}
|
|
591
591
|
});
|
|
592
592
|
return i.error !== "" && console.warn("HighlightActorByTag: ", i.error), i;
|
|
593
|
-
},
|
|
593
|
+
}, Ks = async function(d, e) {
|
|
594
594
|
const t = await d.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
|
+
}, Xs = async function(d) {
|
|
600
600
|
const e = await d.callUeFunc({
|
|
601
601
|
f: "GetStatus",
|
|
602
602
|
p: void 0
|
|
@@ -606,7 +606,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
606
606
|
return;
|
|
607
607
|
}
|
|
608
608
|
return e.re;
|
|
609
|
-
},
|
|
609
|
+
}, Ys = async (d, e, t, i, r = !0) => {
|
|
610
610
|
const n = await d.callUeFunc({
|
|
611
611
|
f: "startEditing",
|
|
612
612
|
p: {
|
|
@@ -621,7 +621,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
621
621
|
return;
|
|
622
622
|
}
|
|
623
623
|
return n;
|
|
624
|
-
},
|
|
624
|
+
}, Zs = async (d) => {
|
|
625
625
|
const e = await d.callUeFunc({
|
|
626
626
|
f: "stopEditing",
|
|
627
627
|
p: void 0
|
|
@@ -631,7 +631,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
631
631
|
return;
|
|
632
632
|
}
|
|
633
633
|
return e;
|
|
634
|
-
},
|
|
634
|
+
}, qs = async (d, e, t) => {
|
|
635
635
|
const i = await d.callUeFunc({
|
|
636
636
|
f: "moveObjects",
|
|
637
637
|
p: {
|
|
@@ -644,7 +644,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
644
644
|
return;
|
|
645
645
|
}
|
|
646
646
|
return i;
|
|
647
|
-
},
|
|
647
|
+
}, Qs = async (d) => {
|
|
648
648
|
const e = await d.callUeFunc({
|
|
649
649
|
f: "GetTilesetMaterialIDList",
|
|
650
650
|
p: void 0
|
|
@@ -655,9 +655,9 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
655
655
|
}
|
|
656
656
|
return e.re.materialIDList;
|
|
657
657
|
};
|
|
658
|
-
class Be extends
|
|
658
|
+
class Be extends C {
|
|
659
659
|
}
|
|
660
|
-
const
|
|
660
|
+
const Vs = {
|
|
661
661
|
Response: 1
|
|
662
662
|
}, Ie = {
|
|
663
663
|
/*
|
|
@@ -667,11 +667,11 @@ const Qs = {
|
|
|
667
667
|
UIInteraction: 50,
|
|
668
668
|
MouseWheel: 75
|
|
669
669
|
};
|
|
670
|
-
class
|
|
670
|
+
class Os extends Mr {
|
|
671
671
|
constructor(t, i) {
|
|
672
672
|
super(t);
|
|
673
|
-
|
|
674
|
-
|
|
673
|
+
g(this, "_processResponseFn", (t) => this.esUeViewer.processResponse(t));
|
|
674
|
+
g(this, "_inner");
|
|
675
675
|
this._uri = i, this._inner = new WebSocket(this._uri), this.d(() => {
|
|
676
676
|
this._inner.close();
|
|
677
677
|
}), this._innerInit();
|
|
@@ -694,7 +694,7 @@ class Vs extends Mr {
|
|
|
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] === Vs.Response) {
|
|
698
698
|
o += 4;
|
|
699
699
|
let h = s[o / 4];
|
|
700
700
|
o += 4;
|
|
@@ -741,16 +741,16 @@ class Vs extends Mr {
|
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
743
|
globalThis.g_emitDescriptor_maxBytes = 3e4;
|
|
744
|
-
let
|
|
744
|
+
let js = -1;
|
|
745
745
|
wr.SetLoggerVerbosity(1);
|
|
746
|
-
class
|
|
746
|
+
class to extends C {
|
|
747
747
|
constructor(t, i) {
|
|
748
748
|
super();
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
749
|
+
g(this, "_eventTarget", new EventTarget());
|
|
750
|
+
g(this, "debug", !1);
|
|
751
|
+
g(this, "uiInteractionCallbacks", /* @__PURE__ */ new Map());
|
|
752
|
+
g(this, "_pixelStream");
|
|
753
|
+
g(this, "_esMsgWsWrapper");
|
|
754
754
|
this._domOrDomId = t, this._options = i;
|
|
755
755
|
const r = typeof this._domOrDomId == "string" ? document.getElementById(this._domOrDomId) : this._domOrDomId;
|
|
756
756
|
if (!r) throw new Error(`ESUEViewer container${this._domOrDomId} error!`);
|
|
@@ -788,7 +788,7 @@ class js extends m {
|
|
|
788
788
|
StartVideoMuted: !1,
|
|
789
789
|
// WaitForStreamer: true,
|
|
790
790
|
SuppressBrowserKeys: !1,
|
|
791
|
-
[
|
|
791
|
+
[Qn.SignallingServerUrl]: i
|
|
792
792
|
}
|
|
793
793
|
});
|
|
794
794
|
return r.setFlagEnabled(at.BrowserSendOffer, !1), r.setFlagEnabled(at.HoveringMouseMode, !0), r.setFlagEnabled(at.MatchViewportResolution, !0), r.setNumericSetting(mr.MaxReconnectAttempts, 0), new Cr(r, { videoElementParent: t });
|
|
@@ -797,7 +797,7 @@ class js extends m {
|
|
|
797
797
|
return this._pixelStream;
|
|
798
798
|
}
|
|
799
799
|
_initEsMsgWsWrapper(t) {
|
|
800
|
-
return t ? this.dv(new
|
|
800
|
+
return t ? this.dv(new Os(this, t)) : void 0;
|
|
801
801
|
}
|
|
802
802
|
get esMsgWsWrapper() {
|
|
803
803
|
return this._esMsgWsWrapper;
|
|
@@ -860,7 +860,7 @@ class js extends m {
|
|
|
860
860
|
// 发送UI interface
|
|
861
861
|
emitUIInteractionForBigData(t, i) {
|
|
862
862
|
typeof i == "function" && (t.callid = M(), this.uiInteractionCallbacks.set(t.callid, i));
|
|
863
|
-
const r = JSON.stringify(t), n = globalThis.g_emitDescriptor_maxBytes, s = r.length, o = ++
|
|
863
|
+
const r = JSON.stringify(t), n = globalThis.g_emitDescriptor_maxBytes, s = r.length, o = ++js;
|
|
864
864
|
if (this.esMsgWsWrapper) {
|
|
865
865
|
if (s < n) {
|
|
866
866
|
this.esMsgWsWrapper.emitDescriptorWithString(Ie.UIInteraction, `${o}-0/1-` + r);
|
|
@@ -896,12 +896,12 @@ class js extends m {
|
|
|
896
896
|
console.log(`resizeUEVideo emitCommand ${t} ${i} begin`), this.emitCommand(r);
|
|
897
897
|
}
|
|
898
898
|
}
|
|
899
|
-
class
|
|
899
|
+
class eo extends C {
|
|
900
900
|
constructor(t, i, r) {
|
|
901
901
|
super();
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
this._container = t, this._wsuri = i, this._esmsgWsUri = r, this._instance = this.dv(new
|
|
902
|
+
g(this, "_instance");
|
|
903
|
+
g(this, "_event", this.dv(new x()));
|
|
904
|
+
this._container = t, this._wsuri = i, this._esmsgWsUri = r, this._instance = this.dv(new to(this._container, { url: this._wsuri, esmsgWsUri: this._esmsgWsUri })), this.instanceInit();
|
|
905
905
|
}
|
|
906
906
|
get webSocketReady() {
|
|
907
907
|
return this._instance.esWebSocketReady;
|
|
@@ -960,25 +960,25 @@ class to extends m {
|
|
|
960
960
|
this._instance.resizeUEVideo(t, i);
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
|
-
class
|
|
963
|
+
class io extends Be {
|
|
964
964
|
constructor(t, i, r, n) {
|
|
965
965
|
super();
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
966
|
+
g(this, "_esueViewerWrapper");
|
|
967
|
+
g(this, "_ueFuncResultWithIdsEvent", this.dv(new x()));
|
|
968
|
+
g(this, "_ueFuncWithIdAndResultCallbacks", []);
|
|
969
|
+
g(this, "_waitingUeFuncIdAndResultCallbacks", /* @__PURE__ */ new Map());
|
|
970
|
+
g(this, "_waitingUeCalls", /* @__PURE__ */ new Set());
|
|
971
|
+
g(this, "_ueEvent", this.dv(new x()));
|
|
972
|
+
g(this, "_errorEvent", this.dv(new x()));
|
|
973
973
|
// private _closeEvent = this.dv(new Event<[string]>());
|
|
974
974
|
// get closeEvent() { return this._closeEvent; }
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
975
|
+
g(this, "_readyEvent", this.dv(new x()));
|
|
976
|
+
g(this, "_esmsgwsopen", this.dv(W(!1)));
|
|
977
|
+
g(this, "_videoinited", this.dv(W(!1)));
|
|
978
|
+
g(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 eo(t, i, r));
|
|
982
982
|
const o = this._esueViewerWrapper;
|
|
983
983
|
{
|
|
984
984
|
const u = () => o.debug = s.debug ?? !1;
|
|
@@ -991,8 +991,8 @@ class eo extends Be {
|
|
|
991
991
|
const c = o.webSocketReady;
|
|
992
992
|
if (this.videoinited && this.webRtcConnected && c) {
|
|
993
993
|
console.log("%c[EarthSDK: esmsgWebSocket && videoinited && webRtcConnected]", "background: #a6ec99; color: black");
|
|
994
|
-
const
|
|
995
|
-
o.emitUIInteractionForBigData(
|
|
994
|
+
const v = { eventType: "init", params: {} };
|
|
995
|
+
o.emitUIInteractionForBigData(v), this._readyEvent.emit(), h = !0;
|
|
996
996
|
}
|
|
997
997
|
};
|
|
998
998
|
this.d(this.videoinitedChanged.don(() => {
|
|
@@ -1007,9 +1007,9 @@ class eo extends Be {
|
|
|
1007
1007
|
if (u === "error")
|
|
1008
1008
|
this._errorEvent.emit(c);
|
|
1009
1009
|
else if (u === "ueevent") {
|
|
1010
|
-
const
|
|
1011
|
-
if (
|
|
1012
|
-
const w =
|
|
1010
|
+
const v = JSON.parse(c);
|
|
1011
|
+
if (v.t === "cr") {
|
|
1012
|
+
const w = v;
|
|
1013
1013
|
if (w.frs && this._ueFuncResultWithIdsEvent.emit(w.frs), w.ers)
|
|
1014
1014
|
for (let y of w.ers)
|
|
1015
1015
|
this._ueEvent.emit(y);
|
|
@@ -1018,21 +1018,21 @@ class eo extends Be {
|
|
|
1018
1018
|
}));
|
|
1019
1019
|
{
|
|
1020
1020
|
const u = this.dv(ze());
|
|
1021
|
-
let c,
|
|
1021
|
+
let c, v;
|
|
1022
1022
|
u.start(() => {
|
|
1023
|
-
if (c !== t.offsetWidth ||
|
|
1024
|
-
if (c = t.offsetWidth,
|
|
1025
|
-
console.warn(`lastWidth === undefined || lastHeight === undefined || !Number.isFinite(lastWidth) || !Number.isFinite(lastHeight) || lastWidth < 0 || lastHeight < 0 ${c} ${
|
|
1023
|
+
if (c !== t.offsetWidth || v !== t.offsetHeight) {
|
|
1024
|
+
if (c = t.offsetWidth, v = t.offsetHeight, c === void 0 || v === void 0 || !Number.isFinite(c) || !Number.isFinite(v) || c < 0 || v < 0) {
|
|
1025
|
+
console.warn(`lastWidth === undefined || lastHeight === undefined || !Number.isFinite(lastWidth) || !Number.isFinite(lastHeight) || lastWidth < 0 || lastHeight < 0 ${c} ${v}`);
|
|
1026
1026
|
return;
|
|
1027
1027
|
}
|
|
1028
|
-
o.resize(c,
|
|
1028
|
+
o.resize(c, v), console.log(`resize: ${c} ${v}`);
|
|
1029
1029
|
}
|
|
1030
1030
|
});
|
|
1031
1031
|
}
|
|
1032
1032
|
this.d(this._ueFuncResultWithIdsEvent.don((u) => {
|
|
1033
1033
|
for (const c of u) {
|
|
1034
|
-
const
|
|
1035
|
-
|
|
1034
|
+
const v = this._waitingUeFuncIdAndResultCallbacks.get(c.fid);
|
|
1035
|
+
v && (this._waitingUeFuncIdAndResultCallbacks.delete(c.fid), v.resultCallback(c.r));
|
|
1036
1036
|
}
|
|
1037
1037
|
}));
|
|
1038
1038
|
let a = 0;
|
|
@@ -1055,19 +1055,19 @@ class eo extends Be {
|
|
|
1055
1055
|
}, p = () => {
|
|
1056
1056
|
if (!h || this._ueFuncWithIdAndResultCallbacks.length === 0) return;
|
|
1057
1057
|
const u = this._ueFuncWithIdAndResultCallbacks.map(([c]) => c);
|
|
1058
|
-
for (const [c,
|
|
1059
|
-
this._waitingUeFuncIdAndResultCallbacks.set(c.fid,
|
|
1058
|
+
for (const [c, v] of this._ueFuncWithIdAndResultCallbacks)
|
|
1059
|
+
this._waitingUeFuncIdAndResultCallbacks.set(c.fid, v);
|
|
1060
1060
|
this._ueFuncWithIdAndResultCallbacks.length = 0;
|
|
1061
1061
|
{
|
|
1062
|
-
const c = globalThis.g_emitDescriptor_maxBytes,
|
|
1063
|
-
let w =
|
|
1062
|
+
const c = globalThis.g_emitDescriptor_maxBytes, v = u.map((T) => ({ f: T, s: JSON.stringify(T).length }));
|
|
1063
|
+
let w = v.length, y = 0, R = 0, m = [];
|
|
1064
1064
|
do {
|
|
1065
1065
|
do {
|
|
1066
|
-
const { f:
|
|
1067
|
-
if (
|
|
1066
|
+
const { f: T, s: S } = v[y];
|
|
1067
|
+
if (m.push(T), ++y, R + S > c || m.length >= 20)
|
|
1068
1068
|
break;
|
|
1069
1069
|
} while (y < w);
|
|
1070
|
-
|
|
1070
|
+
m.length > 0 && (s.debug && console.log(`传送${m.length}条消息...`), f([...m]), m.length = 0, R = 0);
|
|
1071
1071
|
} while (y < w);
|
|
1072
1072
|
}
|
|
1073
1073
|
};
|
|
@@ -1143,36 +1143,36 @@ class eo extends Be {
|
|
|
1143
1143
|
};
|
|
1144
1144
|
}
|
|
1145
1145
|
}
|
|
1146
|
-
function
|
|
1146
|
+
function ro(d) {
|
|
1147
1147
|
let e = "";
|
|
1148
1148
|
const t = new Uint8Array(d), 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 no = (d) => {
|
|
1154
1154
|
const e = {
|
|
1155
1155
|
type: "input",
|
|
1156
|
-
inputdata:
|
|
1156
|
+
inputdata: ro(d)
|
|
1157
1157
|
};
|
|
1158
1158
|
return JSON.stringify(e);
|
|
1159
1159
|
};
|
|
1160
|
-
function
|
|
1160
|
+
function so(d) {
|
|
1161
1161
|
return typeof d == "string" ? document.getElementById(d) : d;
|
|
1162
1162
|
}
|
|
1163
1163
|
globalThis.g_emitDescriptor_maxBytes = 3e4;
|
|
1164
|
-
let
|
|
1164
|
+
let oo = -1;
|
|
1165
1165
|
wr.SetLoggerVerbosity(1);
|
|
1166
|
-
class
|
|
1166
|
+
class ao extends C {
|
|
1167
1167
|
constructor(t, i) {
|
|
1168
1168
|
super();
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1169
|
+
g(this, "debug", !1);
|
|
1170
|
+
g(this, "_error", this.dv(new x()));
|
|
1171
|
+
g(this, "_connected", this.dv(new x()));
|
|
1172
|
+
g(this, "_ueevent", this.dv(new x()));
|
|
1173
|
+
g(this, "_pixelStream");
|
|
1174
1174
|
//发送时记录消息,回调函数中对应消息后再删除
|
|
1175
|
-
|
|
1175
|
+
g(this, "uiInteractionCallbacks", /* @__PURE__ */ new Map());
|
|
1176
1176
|
this._container = t, this._option = i;
|
|
1177
1177
|
const r = new yr({
|
|
1178
1178
|
initialSettings: {
|
|
@@ -1192,7 +1192,7 @@ class oo extends m {
|
|
|
1192
1192
|
{
|
|
1193
1193
|
const n = this.pixelStream.webSocketController.webSocket, s = this._pixelStream._webRtcController.sendMessageController.dataChannelSender.sendData;
|
|
1194
1194
|
this._pixelStream._webRtcController.sendMessageController.dataChannelSender.constructor.prototype.sendData = function(o) {
|
|
1195
|
-
n ? n.send(
|
|
1195
|
+
n ? n.send(no(o)) : s.call(this, o);
|
|
1196
1196
|
};
|
|
1197
1197
|
}
|
|
1198
1198
|
{
|
|
@@ -1237,7 +1237,7 @@ class oo extends m {
|
|
|
1237
1237
|
return this._ueevent;
|
|
1238
1238
|
}
|
|
1239
1239
|
get container() {
|
|
1240
|
-
return
|
|
1240
|
+
return so(this._container);
|
|
1241
1241
|
}
|
|
1242
1242
|
get pixelStream() {
|
|
1243
1243
|
return this._pixelStream;
|
|
@@ -1265,7 +1265,7 @@ class oo extends m {
|
|
|
1265
1265
|
//大数据拆分
|
|
1266
1266
|
emitUIInteractionForBigData(t, i) {
|
|
1267
1267
|
typeof i == "function" && (t.callid = M(), this.uiInteractionCallbacks.set(t.callid, i));
|
|
1268
|
-
const r = JSON.stringify(t), n = globalThis.g_emitDescriptor_maxBytes ?? 3e4, s = r.length, o = ++
|
|
1268
|
+
const r = JSON.stringify(t), n = globalThis.g_emitDescriptor_maxBytes ?? 3e4, s = r.length, o = ++oo;
|
|
1269
1269
|
if (s < n) {
|
|
1270
1270
|
const f = {
|
|
1271
1271
|
type: "earthsdk",
|
|
@@ -1318,12 +1318,12 @@ class oo extends m {
|
|
|
1318
1318
|
console.log(`resizeUEVideo emitCommand ${t} ${i} begin`), this.emitCommand(r);
|
|
1319
1319
|
}
|
|
1320
1320
|
}
|
|
1321
|
-
class
|
|
1321
|
+
class lo extends C {
|
|
1322
1322
|
constructor(t, i, r) {
|
|
1323
1323
|
super();
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
this._container = t, this._wsuri = i, this._esmsgWsUri = r, this._instance = this.dv(new
|
|
1324
|
+
g(this, "_instance");
|
|
1325
|
+
g(this, "_event", this.dv(new x()));
|
|
1326
|
+
this._container = t, this._wsuri = i, this._esmsgWsUri = r, this._instance = this.dv(new ao(this._container, { ws: this._wsuri })), this.d(this._instance.connected.don((n) => {
|
|
1327
1327
|
this._event.emit(n, n), console.log(`%c[EarthSDK] ${n}`, "background: #a6ec99; color: black");
|
|
1328
1328
|
})), this.d(this._instance.error.don((n) => {
|
|
1329
1329
|
this._event.emit("errorEvent", n), console.log(`%c[EarthSDK] ${n}`, "background: red; color: black");
|
|
@@ -1362,22 +1362,22 @@ class ao extends m {
|
|
|
1362
1362
|
this._instance.resizeUEVideo(t, i);
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
|
-
class
|
|
1365
|
+
class co extends Be {
|
|
1366
1366
|
constructor(t, i, r, n) {
|
|
1367
1367
|
super();
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1368
|
+
g(this, "_videoInitialized", this.dv(W(!1)));
|
|
1369
|
+
g(this, "_webRtcConnected", this.dv(W(!1)));
|
|
1370
|
+
g(this, "_webSocketOpen", this.dv(W(!1)));
|
|
1371
|
+
g(this, "_ue5ViewerWrapper");
|
|
1372
|
+
g(this, "_ueFuncResultWithIdsEvent", this.dv(new x()));
|
|
1373
|
+
g(this, "_ueFuncWithIdAndResultCallbacks", []);
|
|
1374
|
+
g(this, "_waitingUeFuncIdAndResultCallbacks", /* @__PURE__ */ new Map());
|
|
1375
|
+
g(this, "_waitingUeCalls", /* @__PURE__ */ new Set());
|
|
1376
|
+
g(this, "_ueEvent", this.dv(new x()));
|
|
1377
|
+
g(this, "_errorEvent", this.dv(new x()));
|
|
1378
|
+
g(this, "_readyEvent", this.dv(new x()));
|
|
1379
1379
|
this._ueViewer = n, console.log("INNPSViewer init ! 以内置信令服务器模式启动!");
|
|
1380
|
-
const s = this._ueViewer, o = this.dv(new
|
|
1380
|
+
const s = this._ueViewer, o = this.dv(new lo(t, i, r));
|
|
1381
1381
|
this._ue5ViewerWrapper = o;
|
|
1382
1382
|
{
|
|
1383
1383
|
const l = () => o.debug = s.debug ?? !1;
|
|
@@ -1395,8 +1395,8 @@ class lo extends Be {
|
|
|
1395
1395
|
const c = this._ue5ViewerWrapper.instance.webSocketReady;
|
|
1396
1396
|
if (this.videoInitialized && this.webRtcConnected && c) {
|
|
1397
1397
|
this._ue5ViewerWrapper.instance.emitUIInteraction(), this._readyEvent.emit(), l = !0, console.log("%c[EarthSDK videoInitialized && webRtcConnected && webSocketReady]", "background: #a6ec99; color: black");
|
|
1398
|
-
const
|
|
1399
|
-
this._ue5ViewerWrapper.emitUIInteractionForBigData(
|
|
1398
|
+
const v = { eventType: "init", params: {} };
|
|
1399
|
+
this._ue5ViewerWrapper.emitUIInteractionForBigData(v);
|
|
1400
1400
|
} else
|
|
1401
1401
|
console.warn("webSocketReady", c), l = !1;
|
|
1402
1402
|
}));
|
|
@@ -1413,23 +1413,23 @@ class lo extends Be {
|
|
|
1413
1413
|
else if (l === "ueevent") {
|
|
1414
1414
|
const c = JSON.parse(u);
|
|
1415
1415
|
if (c.t === "cr") {
|
|
1416
|
-
const
|
|
1417
|
-
if (
|
|
1418
|
-
for (let w of
|
|
1416
|
+
const v = c;
|
|
1417
|
+
if (v.frs && this._ueFuncResultWithIdsEvent.emit(v.frs), v.ers)
|
|
1418
|
+
for (let w of v.ers)
|
|
1419
1419
|
this._ueEvent.emit(w);
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
1422
1422
|
}));
|
|
1423
1423
|
{
|
|
1424
1424
|
const l = this.dv(ze());
|
|
1425
|
-
let u, c,
|
|
1425
|
+
let u, c, v;
|
|
1426
1426
|
l.start(() => {
|
|
1427
|
-
if (u !== t.offsetWidth || c !== t.offsetHeight ||
|
|
1427
|
+
if (u !== t.offsetWidth || c !== t.offsetHeight || v !== s.resolutionScale) {
|
|
1428
1428
|
if (u = t.offsetWidth, c = t.offsetHeight, u === void 0 || c === void 0 || !Number.isFinite(u) || !Number.isFinite(c) || u < 0 || c < 0) {
|
|
1429
1429
|
console.warn(`lastWidth === undefined || lastHeight === undefined || !Number.isFinite(lastWidth) || !Number.isFinite(lastHeight) || lastWidth < 0 || lastHeight < 0 ${u} ${c}`);
|
|
1430
1430
|
return;
|
|
1431
1431
|
}
|
|
1432
|
-
|
|
1432
|
+
v = s.resolutionScale, o.resize(u / v, c / v);
|
|
1433
1433
|
}
|
|
1434
1434
|
});
|
|
1435
1435
|
}
|
|
@@ -1459,19 +1459,19 @@ class lo extends Be {
|
|
|
1459
1459
|
}, f = () => {
|
|
1460
1460
|
if (!this._ue5ViewerWrapper.instance.webSocketReady || this._ueFuncWithIdAndResultCallbacks.length === 0) return;
|
|
1461
1461
|
const u = this._ueFuncWithIdAndResultCallbacks.map(([c]) => c);
|
|
1462
|
-
for (const [c,
|
|
1463
|
-
this._waitingUeFuncIdAndResultCallbacks.set(c.fid,
|
|
1462
|
+
for (const [c, v] of this._ueFuncWithIdAndResultCallbacks)
|
|
1463
|
+
this._waitingUeFuncIdAndResultCallbacks.set(c.fid, v);
|
|
1464
1464
|
this._ueFuncWithIdAndResultCallbacks.length = 0;
|
|
1465
1465
|
{
|
|
1466
|
-
const c = globalThis.g_emitDescriptor_maxBytes,
|
|
1467
|
-
let w =
|
|
1466
|
+
const c = globalThis.g_emitDescriptor_maxBytes, v = u.map((T) => ({ f: T, s: JSON.stringify(T).length }));
|
|
1467
|
+
let w = v.length, y = 0, R = 0, m = [];
|
|
1468
1468
|
do {
|
|
1469
1469
|
do {
|
|
1470
|
-
const { f:
|
|
1471
|
-
if (
|
|
1470
|
+
const { f: T, s: S } = v[y];
|
|
1471
|
+
if (m.push(T), ++y, R + S > c || m.length >= 20)
|
|
1472
1472
|
break;
|
|
1473
1473
|
} while (y < w);
|
|
1474
|
-
|
|
1474
|
+
m.length > 0 && (s.debug && console.log(`传送${m.length}条消息...`), a([...m]), m.length = 0, R = 0);
|
|
1475
1475
|
} while (y < w);
|
|
1476
1476
|
}
|
|
1477
1477
|
};
|
|
@@ -1528,7 +1528,7 @@ class lo extends Be {
|
|
|
1528
1528
|
};
|
|
1529
1529
|
}
|
|
1530
1530
|
}
|
|
1531
|
-
class
|
|
1531
|
+
class uo extends C {
|
|
1532
1532
|
/**
|
|
1533
1533
|
* Creates an instance of DLViewer.
|
|
1534
1534
|
* @param {HTMLDivElement} container
|
|
@@ -1539,8 +1539,8 @@ class co extends m {
|
|
|
1539
1539
|
*/
|
|
1540
1540
|
constructor(t, i, r, n) {
|
|
1541
1541
|
super();
|
|
1542
|
-
|
|
1543
|
-
|
|
1542
|
+
g(this, "_onRuntimeInitialized", this.dv(new x()));
|
|
1543
|
+
g(this, "_vIframe", null);
|
|
1544
1544
|
this._ueViewer = n;
|
|
1545
1545
|
const s = this._ueViewer;
|
|
1546
1546
|
{
|
|
@@ -1568,7 +1568,7 @@ class co extends m {
|
|
|
1568
1568
|
return this._vIframe;
|
|
1569
1569
|
}
|
|
1570
1570
|
}
|
|
1571
|
-
const Ze = typeof TextDecoder < "u" ? new TextDecoder() : void 0,
|
|
1571
|
+
const Ze = typeof TextDecoder < "u" ? new TextDecoder() : void 0, ho = (d, e = 0, t = NaN) => {
|
|
1572
1572
|
const i = e + t;
|
|
1573
1573
|
let r = e;
|
|
1574
1574
|
for (; d[r] && !(r >= i); ) ++r;
|
|
@@ -1596,7 +1596,7 @@ const Ze = typeof TextDecoder < "u" ? new TextDecoder() : void 0, uo = (d, e = 0
|
|
|
1596
1596
|
}
|
|
1597
1597
|
return n;
|
|
1598
1598
|
};
|
|
1599
|
-
class
|
|
1599
|
+
class po extends C {
|
|
1600
1600
|
constructor(e, t, i) {
|
|
1601
1601
|
super();
|
|
1602
1602
|
{
|
|
@@ -1623,45 +1623,45 @@ class ho extends m {
|
|
|
1623
1623
|
} catch (n) {
|
|
1624
1624
|
console.error("ueViewer propChanged:" + n);
|
|
1625
1625
|
}
|
|
1626
|
-
})), t.useCustomInteraction = !1, this.dv(new
|
|
1626
|
+
})), t.useCustomInteraction = !1, this.dv(new gr(t, e)), this.dv(new P(t.statusUpdateIntervalChanged, (r) => {
|
|
1627
1627
|
if ((t.statusUpdateInterval ?? 0.5) === 0) return;
|
|
1628
|
-
const s = new
|
|
1628
|
+
const s = new C();
|
|
1629
1629
|
return s.d(i.disposableOnUeEvent("statusUpdate", (o) => {
|
|
1630
1630
|
t.statusUpdateEvent.emit(o);
|
|
1631
1631
|
})), s;
|
|
1632
1632
|
})), this.dv(new P(t.propChangedListeningChanged, () => {
|
|
1633
1633
|
if (!(t.propChangedListening ?? !0)) return;
|
|
1634
|
-
const n = new
|
|
1634
|
+
const n = new C();
|
|
1635
1635
|
return n.d(i.disposableOnUeEvent("propChanged", (s) => {
|
|
1636
1636
|
t.propChanged.emit(s);
|
|
1637
1637
|
})), n;
|
|
1638
1638
|
})), this.dv(new P(t.objectEventListeningChanged, () => {
|
|
1639
1639
|
if (!(t.objectEventListening ?? !0)) return;
|
|
1640
|
-
const n = new
|
|
1640
|
+
const n = new C();
|
|
1641
1641
|
return n.d(i.disposableOnUeEvent("objectEvent", (s) => {
|
|
1642
1642
|
t.objectEvent.emit(s);
|
|
1643
1643
|
})), n;
|
|
1644
1644
|
})), this.dv(new P(t.widgetEventListeningChanged, () => {
|
|
1645
1645
|
if (!(t.widgetEventListening ?? !0)) return;
|
|
1646
|
-
const n = new
|
|
1646
|
+
const n = new C();
|
|
1647
1647
|
return n.d(i.disposableOnUeEvent("widgetEvent", (s) => {
|
|
1648
1648
|
t.widgetEvent.emit(s);
|
|
1649
1649
|
})), n;
|
|
1650
1650
|
})), this.dv(new P(t.speechRecognitionListeningChanged, () => {
|
|
1651
1651
|
if (!(t.speechRecognitionListening ?? !0)) return;
|
|
1652
|
-
const n = new
|
|
1652
|
+
const n = new C();
|
|
1653
1653
|
return n.d(i.disposableOnUeEvent("speechRecognition", (s) => {
|
|
1654
1654
|
t.speechRecognition.emit(s);
|
|
1655
1655
|
})), n;
|
|
1656
1656
|
})), this.dv(new P(t.customMessageListeningChanged, () => {
|
|
1657
1657
|
if (!(t.customMessageListening ?? !0)) return;
|
|
1658
|
-
const n = new
|
|
1658
|
+
const n = new C();
|
|
1659
1659
|
return n.d(i.disposableOnUeEvent("customMessage", (s) => {
|
|
1660
1660
|
t.customMessage.emit(s);
|
|
1661
1661
|
})), n;
|
|
1662
1662
|
})), this.dv(new P(t.editingEventListeningChanged, () => {
|
|
1663
1663
|
if (!(t.editingEventListening ?? !0)) return;
|
|
1664
|
-
const n = new
|
|
1664
|
+
const n = new C();
|
|
1665
1665
|
return n.d(i.disposableOnUeEvent("editingEvent", (s) => {
|
|
1666
1666
|
s.objectIDs = s.objectIDs.map((o) => {
|
|
1667
1667
|
var h;
|
|
@@ -1673,7 +1673,7 @@ class ho extends m {
|
|
|
1673
1673
|
}));
|
|
1674
1674
|
}
|
|
1675
1675
|
}
|
|
1676
|
-
let
|
|
1676
|
+
let go = -1;
|
|
1677
1677
|
class vo extends Be {
|
|
1678
1678
|
/**
|
|
1679
1679
|
* Creates an instance of H5Viewer.
|
|
@@ -1685,28 +1685,28 @@ class vo extends Be {
|
|
|
1685
1685
|
*/
|
|
1686
1686
|
constructor(t, i, r = "${earthsdk3-ue-h5-assets-script-dir}", n) {
|
|
1687
1687
|
super();
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1688
|
+
g(this, "_ueFuncResultWithIdsEvent", this.dv(new x()));
|
|
1689
|
+
g(this, "_ueFuncWithIdAndResultCallbacks", []);
|
|
1690
|
+
g(this, "_waitingUeFuncIdAndResultCallbacks", /* @__PURE__ */ new Map());
|
|
1691
1691
|
//发送时记录消息,回调函数中对应消息后再删除
|
|
1692
|
-
|
|
1693
|
-
|
|
1692
|
+
g(this, "_waitingUeCalls", /* @__PURE__ */ new Map());
|
|
1693
|
+
g(this, "_ueEvent", this.dv(new x()));
|
|
1694
1694
|
this._ueViewer = n;
|
|
1695
|
-
const s = this._ueViewer, o = this.dv(new
|
|
1695
|
+
const s = this._ueViewer, o = this.dv(new uo(t, i, r, s));
|
|
1696
1696
|
let h = !1, a = null;
|
|
1697
1697
|
this.d(o.onRuntimeInitialized.don(() => {
|
|
1698
1698
|
var u;
|
|
1699
1699
|
if (h = !0, (u = o == null ? void 0 : o.vIframe) != null && u.contentWindow) {
|
|
1700
1700
|
a = o.vIframe.contentWindow;
|
|
1701
1701
|
const c = o.vIframe.contentWindow.document.getElementById("mainarea");
|
|
1702
|
-
c ? this.dv(new
|
|
1702
|
+
c ? this.dv(new po(c, s, this)) : console.error("h5Container is null");
|
|
1703
1703
|
} else {
|
|
1704
1704
|
console.error("iframeWindow is null");
|
|
1705
1705
|
return;
|
|
1706
1706
|
}
|
|
1707
1707
|
a.UE_JSHTML5Communication ? a.UE_JSHTML5Communication.UESendMessageToJS = (c) => {
|
|
1708
1708
|
try {
|
|
1709
|
-
const
|
|
1709
|
+
const v = ho(a.HEAPU8, c), w = JSON.parse(v);
|
|
1710
1710
|
if (s.debug && (console.group(
|
|
1711
1711
|
"%cUE => JS",
|
|
1712
1712
|
" background-color:#006EFF;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"
|
|
@@ -1716,26 +1716,26 @@ class vo extends Be {
|
|
|
1716
1716
|
), console.groupEnd()), w.t === "cr") {
|
|
1717
1717
|
const y = w;
|
|
1718
1718
|
if (y.frs && this._ueFuncResultWithIdsEvent.emit(y.frs), y.ers)
|
|
1719
|
-
for (let
|
|
1720
|
-
this._ueEvent.emit(
|
|
1719
|
+
for (let R of y.ers)
|
|
1720
|
+
this._ueEvent.emit(R);
|
|
1721
1721
|
}
|
|
1722
1722
|
w.callid && this._waitingUeCalls.has(w.callid) && (this._waitingUeCalls.delete(w.callid), console.log(`waitingUeCalls.delete:${w.callid} end`));
|
|
1723
|
-
} catch (
|
|
1724
|
-
console.error("UE_JSHTML5Communication.UESendMessageToJS error:",
|
|
1723
|
+
} catch (v) {
|
|
1724
|
+
console.error("UE_JSHTML5Communication.UESendMessageToJS error:", v);
|
|
1725
1725
|
}
|
|
1726
1726
|
} : console.error("UE_JSHTML5Communication UESendMessageToJS not found");
|
|
1727
1727
|
})), this.dispose(this._ueFuncResultWithIdsEvent.disposableOn((u) => {
|
|
1728
1728
|
for (const c of u) {
|
|
1729
|
-
const
|
|
1730
|
-
|
|
1729
|
+
const v = this._waitingUeFuncIdAndResultCallbacks.get(c.fid);
|
|
1730
|
+
v && (this._waitingUeFuncIdAndResultCallbacks.delete(c.fid), v(c.r));
|
|
1731
1731
|
}
|
|
1732
1732
|
}));
|
|
1733
1733
|
let f = 0;
|
|
1734
1734
|
const p = () => {
|
|
1735
1735
|
if (!h || !a || !a.UE_JSHTML5Communication || !a.UE_JSHTML5Communication.JSSendMessageToUE || this._ueFuncWithIdAndResultCallbacks.length === 0) return;
|
|
1736
|
-
const u = this._ueFuncWithIdAndResultCallbacks.map(([
|
|
1737
|
-
for (const [
|
|
1738
|
-
this._waitingUeFuncIdAndResultCallbacks.set(
|
|
1736
|
+
const u = this._ueFuncWithIdAndResultCallbacks.map(([S]) => S), c = { n: f++, tt: Date.now(), t: "c", fs: u, callid: M() };
|
|
1737
|
+
for (const [S, _] of this._ueFuncWithIdAndResultCallbacks)
|
|
1738
|
+
this._waitingUeFuncIdAndResultCallbacks.set(S.fid, _);
|
|
1739
1739
|
this._ueFuncWithIdAndResultCallbacks.length = 0, this._waitingUeCalls.set(c.callid, c), s.debug && (console.group(
|
|
1740
1740
|
"%cxe2 => ue",
|
|
1741
1741
|
" background-color:green;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"
|
|
@@ -1743,15 +1743,15 @@ class vo extends Be {
|
|
|
1743
1743
|
`%c${JSON.stringify(c, void 0, "")}`,
|
|
1744
1744
|
" border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"
|
|
1745
1745
|
), console.groupEnd());
|
|
1746
|
-
const
|
|
1746
|
+
const v = JSON.stringify(c), w = globalThis.g_emitDescriptor_maxBytes ?? 3e4, y = v.length, R = ++go;
|
|
1747
1747
|
if (y < w) {
|
|
1748
|
-
const
|
|
1749
|
-
a.UE_JSHTML5Communication.JSSendMessageToUE(
|
|
1748
|
+
const S = `${R}-0/1-` + v;
|
|
1749
|
+
a.UE_JSHTML5Communication.JSSendMessageToUE(S);
|
|
1750
1750
|
return;
|
|
1751
1751
|
}
|
|
1752
|
-
const
|
|
1753
|
-
[...new Array(
|
|
1754
|
-
const _e = `${
|
|
1752
|
+
const m = Math.ceil(y / w) | 0;
|
|
1753
|
+
[...new Array(m).keys()].map((S) => v.slice(S * w, (S + 1) * w)).forEach((S, _) => {
|
|
1754
|
+
const _e = `${R}-${_}/${m}-` + S;
|
|
1755
1755
|
a.UE_JSHTML5Communication.JSSendMessageToUE(_e);
|
|
1756
1756
|
});
|
|
1757
1757
|
};
|
|
@@ -1802,15 +1802,15 @@ class vo extends Be {
|
|
|
1802
1802
|
};
|
|
1803
1803
|
}
|
|
1804
1804
|
}
|
|
1805
|
-
let
|
|
1806
|
-
class
|
|
1805
|
+
let fo = -1;
|
|
1806
|
+
class wo extends Be {
|
|
1807
1807
|
constructor(t, i) {
|
|
1808
1808
|
super();
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1809
|
+
g(this, "_ueFuncResultWithIdsEvent", this.dv(new x()));
|
|
1810
|
+
g(this, "_ueFuncWithIdAndResultCallbacks", []);
|
|
1811
|
+
g(this, "_waitingUeFuncIdAndResultCallbacks", /* @__PURE__ */ new Map());
|
|
1812
|
+
g(this, "_waitingUeCalls", /* @__PURE__ */ new Set());
|
|
1813
|
+
g(this, "_ueEvent", this.dv(new x()));
|
|
1814
1814
|
this._ueViewer = i;
|
|
1815
1815
|
const r = this._ueViewer;
|
|
1816
1816
|
let n = !1;
|
|
@@ -1855,7 +1855,7 @@ class fo extends Be {
|
|
|
1855
1855
|
`%c${JSON.stringify(p, void 0, "")}`,
|
|
1856
1856
|
" border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"
|
|
1857
1857
|
), console.groupEnd());
|
|
1858
|
-
const l = ++
|
|
1858
|
+
const l = ++fo;
|
|
1859
1859
|
globalThis.ue.es.oncommand(`${l}-0/1-` + JSON.stringify(p)).then(() => {
|
|
1860
1860
|
this._waitingUeCalls.delete(p);
|
|
1861
1861
|
});
|
|
@@ -1892,7 +1892,7 @@ class fo extends Be {
|
|
|
1892
1892
|
};
|
|
1893
1893
|
}
|
|
1894
1894
|
}
|
|
1895
|
-
class
|
|
1895
|
+
class yo extends C {
|
|
1896
1896
|
constructor(e, t) {
|
|
1897
1897
|
super();
|
|
1898
1898
|
{
|
|
@@ -1921,43 +1921,43 @@ class wo extends m {
|
|
|
1921
1921
|
}
|
|
1922
1922
|
})), this.dv(new P(e.statusUpdateIntervalChanged, (i) => {
|
|
1923
1923
|
if ((e.statusUpdateInterval ?? 0.5) === 0) return;
|
|
1924
|
-
const n = new
|
|
1924
|
+
const n = new C();
|
|
1925
1925
|
return n.d(t.disposableOnUeEvent("statusUpdate", (s) => {
|
|
1926
1926
|
e.statusUpdateEvent.emit(s);
|
|
1927
1927
|
})), n;
|
|
1928
1928
|
})), this.dv(new P(e.propChangedListeningChanged, () => {
|
|
1929
1929
|
if (!(e.propChangedListening ?? !0)) return;
|
|
1930
|
-
const r = new
|
|
1930
|
+
const r = new C();
|
|
1931
1931
|
return r.d(t.disposableOnUeEvent("propChanged", (n) => {
|
|
1932
1932
|
e.propChanged.emit(n);
|
|
1933
1933
|
})), r;
|
|
1934
1934
|
})), this.dv(new P(e.objectEventListeningChanged, () => {
|
|
1935
1935
|
if (!(e.objectEventListening ?? !0)) return;
|
|
1936
|
-
const r = new
|
|
1936
|
+
const r = new C();
|
|
1937
1937
|
return r.d(t.disposableOnUeEvent("objectEvent", (n) => {
|
|
1938
1938
|
e.objectEvent.emit(n);
|
|
1939
1939
|
})), r;
|
|
1940
1940
|
})), this.dv(new P(e.widgetEventListeningChanged, () => {
|
|
1941
1941
|
if (!(e.widgetEventListening ?? !0)) return;
|
|
1942
|
-
const r = new
|
|
1942
|
+
const r = new C();
|
|
1943
1943
|
return r.d(t.disposableOnUeEvent("widgetEvent", (n) => {
|
|
1944
1944
|
e.widgetEvent.emit(n);
|
|
1945
1945
|
})), r;
|
|
1946
1946
|
})), this.dv(new P(e.speechRecognitionListeningChanged, () => {
|
|
1947
1947
|
if (!(e.speechRecognitionListening ?? !0)) return;
|
|
1948
|
-
const r = new
|
|
1948
|
+
const r = new C();
|
|
1949
1949
|
return r.d(t.disposableOnUeEvent("speechRecognition", (n) => {
|
|
1950
1950
|
e.speechRecognition.emit(n);
|
|
1951
1951
|
})), r;
|
|
1952
1952
|
})), this.dv(new P(e.customMessageListeningChanged, () => {
|
|
1953
1953
|
if (!(e.customMessageListening ?? !0)) return;
|
|
1954
|
-
const r = new
|
|
1954
|
+
const r = new C();
|
|
1955
1955
|
return r.d(t.disposableOnUeEvent("customMessage", (n) => {
|
|
1956
1956
|
e.customMessage.emit(n);
|
|
1957
1957
|
})), r;
|
|
1958
1958
|
})), this.dv(new P(e.editingEventListeningChanged, () => {
|
|
1959
1959
|
if (!(e.editingEventListening ?? !0)) return;
|
|
1960
|
-
const r = new
|
|
1960
|
+
const r = new C();
|
|
1961
1961
|
return r.d(t.disposableOnUeEvent("editingEvent", (n) => {
|
|
1962
1962
|
n.objectIDs = n.objectIDs.map((s) => {
|
|
1963
1963
|
var o;
|
|
@@ -1969,7 +1969,7 @@ class wo extends m {
|
|
|
1969
1969
|
}));
|
|
1970
1970
|
}
|
|
1971
1971
|
}
|
|
1972
|
-
class
|
|
1972
|
+
class mo extends C {
|
|
1973
1973
|
constructor(e, t, i) {
|
|
1974
1974
|
super();
|
|
1975
1975
|
{
|
|
@@ -2015,45 +2015,45 @@ class yo extends m {
|
|
|
2015
2015
|
r.removeEventListener("mouseenter", s), r.removeEventListener("mouseleave", o), r.removeEventListener("mousemove", h);
|
|
2016
2016
|
});
|
|
2017
2017
|
}
|
|
2018
|
-
t.useCustomInteraction = !1, this.dv(new
|
|
2018
|
+
t.useCustomInteraction = !1, this.dv(new gr(t, r)), this.dv(new P(t.statusUpdateIntervalChanged, (n) => {
|
|
2019
2019
|
if ((t.statusUpdateInterval ?? 0.5) === 0) return;
|
|
2020
|
-
const o = new
|
|
2020
|
+
const o = new C();
|
|
2021
2021
|
return o.d(i.disposableOnUeEvent("statusUpdate", (h) => {
|
|
2022
2022
|
t.statusUpdateEvent.emit(h);
|
|
2023
2023
|
})), o;
|
|
2024
2024
|
})), this.dv(new P(t.propChangedListeningChanged, () => {
|
|
2025
2025
|
if (!(t.propChangedListening ?? !0)) return;
|
|
2026
|
-
const s = new
|
|
2026
|
+
const s = new C();
|
|
2027
2027
|
return s.d(i.disposableOnUeEvent("propChanged", (o) => {
|
|
2028
2028
|
t.propChanged.emit(o);
|
|
2029
2029
|
})), s;
|
|
2030
2030
|
})), this.dv(new P(t.objectEventListeningChanged, () => {
|
|
2031
2031
|
if (!(t.objectEventListening ?? !0)) return;
|
|
2032
|
-
const s = new
|
|
2032
|
+
const s = new C();
|
|
2033
2033
|
return s.d(i.disposableOnUeEvent("objectEvent", (o) => {
|
|
2034
2034
|
t.objectEvent.emit(o);
|
|
2035
2035
|
})), s;
|
|
2036
2036
|
})), this.dv(new P(t.widgetEventListeningChanged, () => {
|
|
2037
2037
|
if (!(t.widgetEventListening ?? !0)) return;
|
|
2038
|
-
const s = new
|
|
2038
|
+
const s = new C();
|
|
2039
2039
|
return s.d(i.disposableOnUeEvent("widgetEvent", (o) => {
|
|
2040
2040
|
t.widgetEvent.emit(o);
|
|
2041
2041
|
})), s;
|
|
2042
2042
|
})), this.dv(new P(t.speechRecognitionListeningChanged, () => {
|
|
2043
2043
|
if (!(t.speechRecognitionListening ?? !0)) return;
|
|
2044
|
-
const s = new
|
|
2044
|
+
const s = new C();
|
|
2045
2045
|
return s.d(i.disposableOnUeEvent("speechRecognition", (o) => {
|
|
2046
2046
|
t.speechRecognition.emit(o);
|
|
2047
2047
|
})), s;
|
|
2048
2048
|
})), this.dv(new P(t.customMessageListeningChanged, () => {
|
|
2049
2049
|
if (!(t.customMessageListening ?? !0)) return;
|
|
2050
|
-
const s = new
|
|
2050
|
+
const s = new C();
|
|
2051
2051
|
return s.d(i.disposableOnUeEvent("customMessage", (o) => {
|
|
2052
2052
|
t.customMessage.emit(o);
|
|
2053
2053
|
})), s;
|
|
2054
2054
|
})), this.dv(new P(t.editingEventListeningChanged, () => {
|
|
2055
2055
|
if (!(t.editingEventListening ?? !0)) return;
|
|
2056
|
-
const s = new
|
|
2056
|
+
const s = new C();
|
|
2057
2057
|
return s.d(i.disposableOnUeEvent("editingEvent", (o) => {
|
|
2058
2058
|
o.objectIDs = o.objectIDs.map((h) => {
|
|
2059
2059
|
var a;
|
|
@@ -2065,10 +2065,10 @@ class yo extends m {
|
|
|
2065
2065
|
}));
|
|
2066
2066
|
}
|
|
2067
2067
|
}
|
|
2068
|
-
class
|
|
2068
|
+
class Co extends C {
|
|
2069
2069
|
constructor(t, i, r) {
|
|
2070
2070
|
super();
|
|
2071
|
-
|
|
2071
|
+
g(this, "_reconnectEvent", this.dv(new x()));
|
|
2072
2072
|
const n = (p, l) => p.hasOwnProperty(l);
|
|
2073
2073
|
let s = 0, o;
|
|
2074
2074
|
this.d(() => {
|
|
@@ -2077,8 +2077,8 @@ class mo extends m {
|
|
|
2077
2077
|
const a = new URLSearchParams(globalThis.location.search).get("eswebview") === "true", f = () => {
|
|
2078
2078
|
if (globalThis.ue.esinput) {
|
|
2079
2079
|
r.setStatus("Creating"), console.log("存在(window.ue && window.ue.es && window.ue.esinput 需要适配新版ESWebView 鼠标穿透), 开始创建UeFalseCloudViewer..."), r.setStatusLog("开始创建本地视口...");
|
|
2080
|
-
const p = this.dv(new
|
|
2081
|
-
this.d(() => r.viewer = void 0), r.viewer = p, r.setStatus("Created"), r.setStatusLog("本地视口创建成功!"), this.dv(new
|
|
2080
|
+
const p = this.dv(new wo(t, r));
|
|
2081
|
+
this.d(() => r.viewer = void 0), r.viewer = p, r.setStatus("Created"), r.setStatusLog("本地视口创建成功!"), this.dv(new mo(t, r, p));
|
|
2082
2082
|
} else
|
|
2083
2083
|
r.setStatus("Error"), r.setStatusLog("请升级 ESWebView !"), this.d(() => r.viewer = void 0), r.viewer = void 0;
|
|
2084
2084
|
};
|
|
@@ -2096,16 +2096,16 @@ class mo extends m {
|
|
|
2096
2096
|
});
|
|
2097
2097
|
const l = this.dv(Te(async (u) => {
|
|
2098
2098
|
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);
|
|
2099
|
-
let c,
|
|
2099
|
+
let c, v, w;
|
|
2100
2100
|
if (n(i.options, "ws")) {
|
|
2101
|
-
const { ws:
|
|
2102
|
-
c =
|
|
2101
|
+
const { ws: T, esmsg: S, uselnternalSignallingServer: _ } = i.options;
|
|
2102
|
+
c = T, v = S, w = _ ?? !1;
|
|
2103
2103
|
}
|
|
2104
2104
|
if (n(i.options, "uri") && n(i.options, "app")) {
|
|
2105
|
-
const { offsetWidth:
|
|
2105
|
+
const { offsetWidth: T, offsetHeight: S } = p;
|
|
2106
2106
|
let { uri: _, app: _e, token: Xe } = i.options;
|
|
2107
2107
|
_.endsWith("/") || (_ += "/");
|
|
2108
|
-
const xr = Xe ? `?essstoken=${Xe}` : "", Ye = `/${_e}/${
|
|
2108
|
+
const xr = Xe ? `?essstoken=${Xe}` : "", Ye = `/${_e}/${T ?? 1920}/${S ?? 1080}` + xr;
|
|
2109
2109
|
console.log(`请求信令服务器: ${_}instance${Ye}`);
|
|
2110
2110
|
const Rr = await u.promise(fetch(`${_}instance${Ye}`, { method: "GET" })), O = await u.promise(Rr.json());
|
|
2111
2111
|
if (O && O.status !== "ok") {
|
|
@@ -2113,21 +2113,21 @@ class mo extends m {
|
|
|
2113
2113
|
return;
|
|
2114
2114
|
} else {
|
|
2115
2115
|
console.log(`信令服务器请求成功! ${JSON.stringify(O, void 0, " ")}`), await $r(2e3);
|
|
2116
|
-
const { server: Pr, esmsg: Lr, instanceId:
|
|
2117
|
-
if (!
|
|
2116
|
+
const { server: Pr, esmsg: Lr, instanceId: Dr, useInternalSignallingServer: kr } = O;
|
|
2117
|
+
if (!Dr) {
|
|
2118
2118
|
r.setStatus("Error"), r.setStatusLog("检查信令服务器版本,返回数据错误! "), console.log("信令服务器返回数据错误!不包含instanceId!请升级到 ESSS V3.0+ 版本!"), this._reconnectEvent.emit(void 0);
|
|
2119
2119
|
return;
|
|
2120
2120
|
}
|
|
2121
|
-
c = Pr,
|
|
2121
|
+
c = Pr, v = Lr, w = kr ?? !1, r.esssResponse = O;
|
|
2122
2122
|
}
|
|
2123
2123
|
}
|
|
2124
|
-
const y = this.dv(w ? new
|
|
2125
|
-
this.d(() => r.viewer = void 0), this.d(y.errorEvent.don((
|
|
2126
|
-
const
|
|
2127
|
-
r.setStatus("Error"), r.setStatusLog(
|
|
2128
|
-
})), await u.promise(new Promise((
|
|
2129
|
-
const { offsetWidth:
|
|
2130
|
-
y.resize(
|
|
2124
|
+
const y = this.dv(w ? new co(p, c, v, r) : new io(p, c, v, r));
|
|
2125
|
+
this.d(() => r.viewer = void 0), this.d(y.errorEvent.don((T) => {
|
|
2126
|
+
const S = `[${T}]:像素流连接错误!`;
|
|
2127
|
+
r.setStatus("Error"), r.setStatusLog(S), this._reconnectEvent.emit(y);
|
|
2128
|
+
})), await u.promise(new Promise((T) => this.d(y.readyEvent.donce(T)))), r.setStatus("Created"), r.setStatusLog("云渲染视口创建成功!"), s = 0, o && clearTimeout(o), o = void 0;
|
|
2129
|
+
const { offsetWidth: R, offsetHeight: m } = p;
|
|
2130
|
+
y.resize(R * globalThis.devicePixelRatio, m * globalThis.devicePixelRatio), r.viewer = y, this.d(() => r.viewer = void 0), this.dv(new yo(r, y));
|
|
2131
2131
|
}));
|
|
2132
2132
|
l.start(), this.d(this._reconnectEvent.don((u) => {
|
|
2133
2133
|
o === void 0 && (u && !u.isDestroyed() && u.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 = globalThis.setTimeout(() => {
|
|
@@ -2148,15 +2148,15 @@ class mo extends m {
|
|
|
2148
2148
|
const K = class K extends Ee {
|
|
2149
2149
|
constructor(t) {
|
|
2150
2150
|
super(t);
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2151
|
+
g(this, "_viewer", this.dv(W(void 0)));
|
|
2152
|
+
g(this, "_esssResponse");
|
|
2153
|
+
g(this, "_speechRecognition", this.dv(new x()));
|
|
2154
|
+
g(this, "_propChanged", this.dv(new x()));
|
|
2155
|
+
g(this, "_objectEvent", this.dv(new x()));
|
|
2156
|
+
g(this, "_widgetEvent", this.dv(new x()));
|
|
2157
|
+
g(this, "_customMessage", this.dv(new x()));
|
|
2158
|
+
g(this, "_statusUpdateEvent", this.dv(new x()));
|
|
2159
|
+
g(this, "_statusUpdateEventdon", (() => {
|
|
2160
2160
|
this.d(this.statusUpdateEvent.don((t) => {
|
|
2161
2161
|
this._statusInfo.fps = t.FPS ?? 0, this._statusInfo.length = t.length ?? 0, this._statusInfo.position = t.position ?? [0, 0, 0], this._statusInfo.rotation = t.rotation ?? [0, 0, 0];
|
|
2162
2162
|
}));
|
|
@@ -2167,7 +2167,7 @@ const K = class K extends Ee {
|
|
|
2167
2167
|
this.viewerChanged.emit(this.viewer);
|
|
2168
2168
|
})), this.dv(new P(this.subContainerChanged, () => {
|
|
2169
2169
|
if (this.setStatus("Raw"), this.setStatusLog(""), !!this.subContainer)
|
|
2170
|
-
return new
|
|
2170
|
+
return new Co(this.subContainer, i, this);
|
|
2171
2171
|
}));
|
|
2172
2172
|
}
|
|
2173
2173
|
get defaultProps() {
|
|
@@ -2210,7 +2210,7 @@ const K = class K extends Ee {
|
|
|
2210
2210
|
console.warn("UEPositionToLonLatAlt: viewer is undefined");
|
|
2211
2211
|
return;
|
|
2212
2212
|
}
|
|
2213
|
-
return await
|
|
2213
|
+
return await Fs(this.viewer, t);
|
|
2214
2214
|
}
|
|
2215
2215
|
async changeNavigationMode(t) {
|
|
2216
2216
|
if (!this.viewer) {
|
|
@@ -2232,98 +2232,98 @@ const K = class K extends Ee {
|
|
|
2232
2232
|
console.warn("GetAllSocketNamesByActorTag: viewer is undefined");
|
|
2233
2233
|
return;
|
|
2234
2234
|
}
|
|
2235
|
-
return await
|
|
2235
|
+
return await Is(this.viewer, t);
|
|
2236
2236
|
}
|
|
2237
2237
|
async getBoundSphere(t) {
|
|
2238
2238
|
if (!this.viewer) {
|
|
2239
2239
|
console.warn("getBoundSphere: viewer is undefined");
|
|
2240
2240
|
return;
|
|
2241
2241
|
}
|
|
2242
|
-
return await
|
|
2242
|
+
return await Ss(this.viewer, t);
|
|
2243
2243
|
}
|
|
2244
2244
|
async getBoundSphereWithChildren(t) {
|
|
2245
2245
|
if (!this.viewer) {
|
|
2246
2246
|
console.warn("getBoundSphereWithChildren: viewer is undefined");
|
|
2247
2247
|
return;
|
|
2248
2248
|
}
|
|
2249
|
-
return await
|
|
2249
|
+
return await Ts(this.viewer, t);
|
|
2250
2250
|
}
|
|
2251
2251
|
async getStrokeMaterialParamInfo(t) {
|
|
2252
2252
|
if (!this.viewer) {
|
|
2253
2253
|
console.warn("GetStrokeMaterialParamInfo: viewer is undefined");
|
|
2254
2254
|
return;
|
|
2255
2255
|
}
|
|
2256
|
-
return await
|
|
2256
|
+
return await xs(this.viewer, t);
|
|
2257
2257
|
}
|
|
2258
2258
|
async getFillMaterialParamInfo(t) {
|
|
2259
2259
|
if (!this.viewer) {
|
|
2260
2260
|
console.warn("getFillMaterialParamInfo: viewer is undefined");
|
|
2261
2261
|
return;
|
|
2262
2262
|
}
|
|
2263
|
-
return await
|
|
2263
|
+
return await Rs(this.viewer, t);
|
|
2264
2264
|
}
|
|
2265
2265
|
async getGlobalProperty(t) {
|
|
2266
2266
|
if (!this.viewer) {
|
|
2267
2267
|
console.warn("getGlobalProperty: viewer is undefined");
|
|
2268
2268
|
return;
|
|
2269
2269
|
}
|
|
2270
|
-
return await
|
|
2270
|
+
return await Ps(this.viewer, t);
|
|
2271
2271
|
}
|
|
2272
2272
|
async getObjectByInfo(t) {
|
|
2273
2273
|
if (!this.viewer) {
|
|
2274
2274
|
console.warn("GetObjectByInfo: viewer is undefined");
|
|
2275
2275
|
return;
|
|
2276
2276
|
}
|
|
2277
|
-
return await
|
|
2277
|
+
return await Ls(this.viewer, t);
|
|
2278
2278
|
}
|
|
2279
2279
|
async defaultCameraFlyIn(t = 1) {
|
|
2280
2280
|
if (!this.viewer) {
|
|
2281
2281
|
console.warn("DefaultCameraFlyIn: viewer is undefined");
|
|
2282
2282
|
return;
|
|
2283
2283
|
}
|
|
2284
|
-
return await
|
|
2284
|
+
return await ts(this.viewer, t);
|
|
2285
2285
|
}
|
|
2286
2286
|
async startVoice() {
|
|
2287
2287
|
if (!this.viewer) {
|
|
2288
2288
|
console.warn("startVoice:viewer is undefined");
|
|
2289
2289
|
return;
|
|
2290
2290
|
}
|
|
2291
|
-
return await
|
|
2291
|
+
return await es(this.viewer);
|
|
2292
2292
|
}
|
|
2293
2293
|
async stopVoice() {
|
|
2294
2294
|
if (!this.viewer) {
|
|
2295
2295
|
console.warn("startVoice:viewer is undefined");
|
|
2296
2296
|
return;
|
|
2297
2297
|
}
|
|
2298
|
-
return await
|
|
2298
|
+
return await is(this.viewer);
|
|
2299
2299
|
}
|
|
2300
2300
|
async mountPakFiles(t) {
|
|
2301
2301
|
if (!this.viewer) {
|
|
2302
2302
|
console.warn("mountPakFiles:viewer is undefined");
|
|
2303
2303
|
return;
|
|
2304
2304
|
}
|
|
2305
|
-
return await
|
|
2305
|
+
return await rs(this.viewer, t);
|
|
2306
2306
|
}
|
|
2307
2307
|
async generateMemReport() {
|
|
2308
2308
|
if (!this.viewer) {
|
|
2309
2309
|
console.warn("generateMemReport:viewer is undefined");
|
|
2310
2310
|
return;
|
|
2311
2311
|
}
|
|
2312
|
-
return await
|
|
2312
|
+
return await ns(this.viewer);
|
|
2313
2313
|
}
|
|
2314
2314
|
async quit() {
|
|
2315
2315
|
if (!this.viewer) {
|
|
2316
2316
|
console.warn("Quit: viewer is undefined");
|
|
2317
2317
|
return;
|
|
2318
2318
|
}
|
|
2319
|
-
return await
|
|
2319
|
+
return await ps(this.viewer);
|
|
2320
2320
|
}
|
|
2321
2321
|
async bindActorByTag(t, i) {
|
|
2322
2322
|
if (!this.viewer) {
|
|
2323
2323
|
console.warn("BindActorByTag: viewer is undefined");
|
|
2324
2324
|
return;
|
|
2325
2325
|
}
|
|
2326
|
-
return await
|
|
2326
|
+
return await Ds(this.viewer, t, i);
|
|
2327
2327
|
}
|
|
2328
2328
|
async restoreOriginalScene() {
|
|
2329
2329
|
if (!this.viewer) {
|
|
@@ -2337,70 +2337,70 @@ const K = class K extends Ee {
|
|
|
2337
2337
|
console.warn("UnBindActorByID: viewer is undefined");
|
|
2338
2338
|
return;
|
|
2339
2339
|
}
|
|
2340
|
-
return await
|
|
2340
|
+
return await Bs(this.viewer, t);
|
|
2341
2341
|
}
|
|
2342
2342
|
async unBindActorByTag(t) {
|
|
2343
2343
|
if (!this.viewer) {
|
|
2344
2344
|
console.warn("UnBindActorByTag: viewer is undefined");
|
|
2345
2345
|
return;
|
|
2346
2346
|
}
|
|
2347
|
-
return await
|
|
2347
|
+
return await _s(this.viewer, t);
|
|
2348
2348
|
}
|
|
2349
2349
|
async createActorByClass(t, i) {
|
|
2350
2350
|
if (!this.viewer) {
|
|
2351
2351
|
console.warn("CreateActorByClass: viewer is undefined");
|
|
2352
2352
|
return;
|
|
2353
2353
|
}
|
|
2354
|
-
return await
|
|
2354
|
+
return await Ms(this.viewer, t, i);
|
|
2355
2355
|
}
|
|
2356
2356
|
async bind3DTilesetByTag(t, i) {
|
|
2357
2357
|
if (!this.viewer) {
|
|
2358
2358
|
console.warn("Bind3DTilesetByTag: viewer is undefined");
|
|
2359
2359
|
return;
|
|
2360
2360
|
}
|
|
2361
|
-
return await
|
|
2361
|
+
return await $s(this.viewer, t, i);
|
|
2362
2362
|
}
|
|
2363
2363
|
async unBind3DTilesetByTag(t) {
|
|
2364
2364
|
if (!this.viewer) {
|
|
2365
2365
|
console.warn("UnBind3DTilesetByTag: viewer is undefined");
|
|
2366
2366
|
return;
|
|
2367
2367
|
}
|
|
2368
|
-
return await
|
|
2368
|
+
return await Ws(this.viewer, t);
|
|
2369
2369
|
}
|
|
2370
2370
|
async unBind3DTilesetById(t) {
|
|
2371
2371
|
if (!this.viewer) {
|
|
2372
2372
|
console.warn("UnBind3DTilesetById: viewer is undefined");
|
|
2373
2373
|
return;
|
|
2374
2374
|
}
|
|
2375
|
-
return await
|
|
2375
|
+
return await As(this.viewer, t);
|
|
2376
2376
|
}
|
|
2377
2377
|
async bindImageryByTag(t, i, r) {
|
|
2378
2378
|
if (!this.viewer) {
|
|
2379
2379
|
console.warn("BindImageryByTag: viewer is undefined");
|
|
2380
2380
|
return;
|
|
2381
2381
|
}
|
|
2382
|
-
return await
|
|
2382
|
+
return await Us(this.viewer, t, i, r);
|
|
2383
2383
|
}
|
|
2384
2384
|
async unBindImageryByTag(t, i) {
|
|
2385
2385
|
if (!this.viewer) {
|
|
2386
2386
|
console.warn("UnBindImageryByTag: viewer is undefined");
|
|
2387
2387
|
return;
|
|
2388
2388
|
}
|
|
2389
|
-
return await
|
|
2389
|
+
return await Ns(this.viewer, t, i);
|
|
2390
2390
|
}
|
|
2391
2391
|
async unBindImageryById(t) {
|
|
2392
2392
|
if (!this.viewer) {
|
|
2393
2393
|
console.warn("UnBindImageryById: viewer is undefined");
|
|
2394
2394
|
return;
|
|
2395
2395
|
}
|
|
2396
|
-
return await
|
|
2396
|
+
return await bs(this.viewer, t);
|
|
2397
2397
|
}
|
|
2398
2398
|
async getIdByComponentNameAndHitItem(t, i, r) {
|
|
2399
2399
|
if (!this.viewer) {
|
|
2400
2400
|
console.warn("GetIdByComponentNameAndHitItem: viewer is undefined");
|
|
2401
2401
|
return;
|
|
2402
2402
|
}
|
|
2403
|
-
return await
|
|
2403
|
+
return await zs(this.viewer, t, i, r);
|
|
2404
2404
|
}
|
|
2405
2405
|
/**
|
|
2406
2406
|
* @returns Promise(高度)
|
|
@@ -2412,7 +2412,7 @@ const K = class K extends Ee {
|
|
|
2412
2412
|
console.warn("GetCameraRelativeHeight: viewer is undefined");
|
|
2413
2413
|
return;
|
|
2414
2414
|
}
|
|
2415
|
-
return await
|
|
2415
|
+
return await Hs(this.viewer, t);
|
|
2416
2416
|
}
|
|
2417
2417
|
/**
|
|
2418
2418
|
* 保存str到指定目录下
|
|
@@ -2424,28 +2424,28 @@ const K = class K extends Ee {
|
|
|
2424
2424
|
console.warn("SaveStringToFile: viewer is undefined");
|
|
2425
2425
|
return;
|
|
2426
2426
|
}
|
|
2427
|
-
return await
|
|
2427
|
+
return await Js(this.viewer, t, i, r);
|
|
2428
2428
|
}
|
|
2429
2429
|
async highlightActorByTag(t, i = !0) {
|
|
2430
2430
|
if (!this.viewer) {
|
|
2431
2431
|
console.warn("HighlightActorByTag: viewer is undefined");
|
|
2432
2432
|
return;
|
|
2433
2433
|
}
|
|
2434
|
-
return await
|
|
2434
|
+
return await Gs(this.viewer, t, i);
|
|
2435
2435
|
}
|
|
2436
2436
|
async sendCustomMessage(t) {
|
|
2437
2437
|
if (!this.viewer) {
|
|
2438
2438
|
console.warn("SendCustomMessage: viewer is undefined");
|
|
2439
2439
|
return;
|
|
2440
2440
|
}
|
|
2441
|
-
return await
|
|
2441
|
+
return await Ks(this.viewer, t);
|
|
2442
2442
|
}
|
|
2443
2443
|
async getStatus() {
|
|
2444
2444
|
if (!this.viewer) {
|
|
2445
2445
|
console.warn("GetStatus:viewer is undefined");
|
|
2446
2446
|
return;
|
|
2447
2447
|
}
|
|
2448
|
-
return await
|
|
2448
|
+
return await Xs(this.viewer);
|
|
2449
2449
|
}
|
|
2450
2450
|
/**
|
|
2451
2451
|
* 获取场景中可替换的材质列表
|
|
@@ -2455,7 +2455,7 @@ const K = class K extends Ee {
|
|
|
2455
2455
|
console.warn("GetTilesetMaterialIDList:viewer is undefined");
|
|
2456
2456
|
return;
|
|
2457
2457
|
}
|
|
2458
|
-
return await
|
|
2458
|
+
return await Qs(this.viewer);
|
|
2459
2459
|
}
|
|
2460
2460
|
//——————————————————————————————————————————
|
|
2461
2461
|
//抽象函数实现------------------------------
|
|
@@ -2466,7 +2466,7 @@ const K = class K extends Ee {
|
|
|
2466
2466
|
const [s, o] = t, { x: h, y: a } = this.container.getBoundingClientRect();
|
|
2467
2467
|
n = [h + s, a + o];
|
|
2468
2468
|
}
|
|
2469
|
-
return await
|
|
2469
|
+
return await gs(this.viewer, n, i, r);
|
|
2470
2470
|
}
|
|
2471
2471
|
async pickPosition(t) {
|
|
2472
2472
|
if (!this.viewer) return;
|
|
@@ -2624,47 +2624,47 @@ const K = class K extends Ee {
|
|
|
2624
2624
|
async getVersion() {
|
|
2625
2625
|
const t = globalThis.g_XE3CopyRights ?? {};
|
|
2626
2626
|
if (!this.viewer) return t;
|
|
2627
|
-
const i = await
|
|
2627
|
+
const i = await Es(this.viewer);
|
|
2628
2628
|
return t.esforue = i, t;
|
|
2629
2629
|
}
|
|
2630
2630
|
async getHeightByLonLat(t, i, r = "ECC_Visibility") {
|
|
2631
2631
|
if (!this.viewer) return null;
|
|
2632
|
-
const n = await
|
|
2632
|
+
const n = await fs(this.viewer, t, i, r);
|
|
2633
2633
|
return n && n.height !== void 0 ? n.height : null;
|
|
2634
2634
|
}
|
|
2635
2635
|
async getHeightsByLonLats(t, i = "ECC_Visibility") {
|
|
2636
|
-
return this.viewer ? await
|
|
2636
|
+
return this.viewer ? await ws(this.viewer, t, i) : void 0;
|
|
2637
2637
|
}
|
|
2638
2638
|
async capture(t = 64, i = 64) {
|
|
2639
|
-
return this.viewer ? await
|
|
2639
|
+
return this.viewer ? await ys(this.viewer, t, i) : void 0;
|
|
2640
2640
|
}
|
|
2641
2641
|
async partialCapture(t, i = [64, 64]) {
|
|
2642
2642
|
if (!this.viewer) {
|
|
2643
2643
|
console.warn("partialCapture:viewer is undefined");
|
|
2644
2644
|
return;
|
|
2645
2645
|
}
|
|
2646
|
-
return await
|
|
2646
|
+
return await ms(this.viewer, t, i);
|
|
2647
2647
|
}
|
|
2648
2648
|
async lonLatAltToScreenPosition(t) {
|
|
2649
2649
|
if (!this.viewer) return;
|
|
2650
|
-
const i = await
|
|
2650
|
+
const i = await Cs(this.viewer, t);
|
|
2651
2651
|
return i && [i.X, i.Y];
|
|
2652
2652
|
}
|
|
2653
2653
|
//------------------------------抽象函数实现
|
|
2654
2654
|
async setGlobalProperty(t) {
|
|
2655
2655
|
if (this.viewer)
|
|
2656
|
-
return await
|
|
2656
|
+
return await hs(this.viewer, t);
|
|
2657
2657
|
}
|
|
2658
2658
|
async startEditing(t, i, r) {
|
|
2659
2659
|
r = Object.assign({ useKeyToSwitch: !0, callSource: "outer" }, r);
|
|
2660
2660
|
const n = t.components.main ?? t;
|
|
2661
2661
|
if (!n || !this.viewer || i == null) return;
|
|
2662
2662
|
const s = Array.isArray(i) ? [...i] : [i];
|
|
2663
|
-
return n.editingID = `${r.callSource}_${M()}`, await
|
|
2663
|
+
return n.editingID = `${r.callSource}_${M()}`, await Ys(this.viewer, n.id, n.editingID, s, r.useKeyToSwitch);
|
|
2664
2664
|
}
|
|
2665
2665
|
async stopEditing() {
|
|
2666
2666
|
if (this.viewer)
|
|
2667
|
-
return await
|
|
2667
|
+
return await Zs(this.viewer);
|
|
2668
2668
|
}
|
|
2669
2669
|
async moveObjects(t) {
|
|
2670
2670
|
if (!this.viewer) return;
|
|
@@ -2674,10 +2674,10 @@ const K = class K extends Ee {
|
|
|
2674
2674
|
o.editingID = r, o && i.push(o.id);
|
|
2675
2675
|
}
|
|
2676
2676
|
if (i.length !== 0)
|
|
2677
|
-
return await
|
|
2677
|
+
return await qs(this.viewer, i, r);
|
|
2678
2678
|
}
|
|
2679
2679
|
};
|
|
2680
|
-
|
|
2680
|
+
g(K, "type", K.register("ESUeViewer", K)), g(K, "defaults", { ...On });
|
|
2681
2681
|
let J = K;
|
|
2682
2682
|
((d) => {
|
|
2683
2683
|
d.createDefaultProps = () => ({
|
|
@@ -2710,21 +2710,21 @@ class lt extends G {
|
|
|
2710
2710
|
o.push(...this.constructor.forceUeUpdateProps);
|
|
2711
2711
|
const h = e.constructor.defaults, a = { val: {} }, f = [];
|
|
2712
2712
|
for (let u of o) {
|
|
2713
|
-
const c = u + "Changed",
|
|
2714
|
-
f.push(
|
|
2713
|
+
const c = u + "Changed", v = e[c];
|
|
2714
|
+
f.push(v);
|
|
2715
2715
|
const w = n[u];
|
|
2716
2716
|
if (w === null)
|
|
2717
2717
|
throw console.error("vf === null error"), new Error("vf === null error");
|
|
2718
2718
|
const y = () => {
|
|
2719
|
-
const
|
|
2720
|
-
let
|
|
2721
|
-
if (
|
|
2719
|
+
const R = e[u] ?? h[u] ?? e.constructor[`default${u.charAt(0).toUpperCase() + u.slice(1)}`];
|
|
2720
|
+
let m = w ? w(R, this, t, e) : R;
|
|
2721
|
+
if (m === void 0) {
|
|
2722
2722
|
console.warn(`UE自动更新的属性,不应该为undefined! 属性名:${u} 对象名:${e.name} 对象id: ${e.id}`);
|
|
2723
2723
|
return;
|
|
2724
2724
|
}
|
|
2725
|
-
a.val[u] =
|
|
2725
|
+
a.val[u] = m;
|
|
2726
2726
|
};
|
|
2727
|
-
y(), this.d(
|
|
2727
|
+
y(), this.d(v.don(y));
|
|
2728
2728
|
}
|
|
2729
2729
|
const p = () => {
|
|
2730
2730
|
i.callUeFunc({
|
|
@@ -2750,15 +2750,15 @@ class lt extends G {
|
|
|
2750
2750
|
}
|
|
2751
2751
|
}
|
|
2752
2752
|
// null 表示不设置,undefined表示不做任何转换
|
|
2753
|
-
|
|
2753
|
+
g(lt, "propValFuncs", {
|
|
2754
2754
|
ref: null,
|
|
2755
2755
|
devTags: null,
|
|
2756
2756
|
extras: null,
|
|
2757
2757
|
execOnceFuncStr: null,
|
|
2758
2758
|
updateFuncStr: null,
|
|
2759
2759
|
toDestroyFuncStr: null
|
|
2760
|
-
}),
|
|
2761
|
-
class
|
|
2760
|
+
}), g(lt, "forceUeUpdateProps", []);
|
|
2761
|
+
class k extends lt {
|
|
2762
2762
|
constructor(e, t) {
|
|
2763
2763
|
super(e, t);
|
|
2764
2764
|
const i = t.viewer;
|
|
@@ -2782,7 +2782,7 @@ class D extends lt {
|
|
|
2782
2782
|
})));
|
|
2783
2783
|
}
|
|
2784
2784
|
}
|
|
2785
|
-
class E extends
|
|
2785
|
+
class E extends k {
|
|
2786
2786
|
constructor(e, t) {
|
|
2787
2787
|
super(e, t);
|
|
2788
2788
|
const i = t.viewer;
|
|
@@ -2804,13 +2804,13 @@ class E extends D {
|
|
|
2804
2804
|
this.d(n.don(() => {
|
|
2805
2805
|
setTimeout(r, 0);
|
|
2806
2806
|
})), this.d(e.smoothMoveEvent.don((h, a) => {
|
|
2807
|
-
|
|
2807
|
+
ke(i, e.id, h, a);
|
|
2808
2808
|
})), this.d(e.smoothMoveWithRotationEvent.don((h, a, f) => {
|
|
2809
2809
|
Pe(i, e.id, h, a, f);
|
|
2810
2810
|
})), this.d(e.smoothMoveOnGroundEvent.don((h, a, f, p) => {
|
|
2811
2811
|
Le(i, e.id, h, a, p, f);
|
|
2812
2812
|
})), this.d(e.smoothMoveWithRotationOnGroundEvent.don((h, a, f, p, l) => {
|
|
2813
|
-
|
|
2813
|
+
De(i, e.id, h, a, f, p, l);
|
|
2814
2814
|
})), this.d(e.smoothMoveKeepPitchEvent.don(async (h, a) => {
|
|
2815
2815
|
const f = await i.callUeFunc({
|
|
2816
2816
|
f: "SmoothMoveKeepPitch",
|
|
@@ -2859,7 +2859,7 @@ class E extends D {
|
|
|
2859
2859
|
}));
|
|
2860
2860
|
}
|
|
2861
2861
|
}
|
|
2862
|
-
class B extends
|
|
2862
|
+
class B extends k {
|
|
2863
2863
|
constructor(e, t) {
|
|
2864
2864
|
super(e, t);
|
|
2865
2865
|
const i = t.viewer;
|
|
@@ -2881,8 +2881,8 @@ class B extends D {
|
|
|
2881
2881
|
}));
|
|
2882
2882
|
}
|
|
2883
2883
|
}
|
|
2884
|
-
|
|
2885
|
-
...
|
|
2884
|
+
g(B, "propValFuncs", {
|
|
2885
|
+
...k.propValFuncs,
|
|
2886
2886
|
pointStyle: (e) => ({
|
|
2887
2887
|
...e,
|
|
2888
2888
|
materialParams: JSON.stringify(e.materialParams ?? {})
|
|
@@ -2910,7 +2910,7 @@ class Tr extends E {
|
|
|
2910
2910
|
super(e, t), t.viewer;
|
|
2911
2911
|
}
|
|
2912
2912
|
}
|
|
2913
|
-
|
|
2913
|
+
g(Tr, "propValFuncs", {
|
|
2914
2914
|
...E.propValFuncs,
|
|
2915
2915
|
pointStyle: (e) => ({
|
|
2916
2916
|
...e,
|
|
@@ -2946,8 +2946,8 @@ const qe = (d) => {
|
|
|
2946
2946
|
}, ut = class ut extends G {
|
|
2947
2947
|
constructor(t, i) {
|
|
2948
2948
|
super(t, i);
|
|
2949
|
-
|
|
2950
|
-
|
|
2949
|
+
g(this, "_styleColor", this.dv(W([])));
|
|
2950
|
+
g(this, "_styleVisable", this.dv(W([])));
|
|
2951
2951
|
const r = i.viewer;
|
|
2952
2952
|
if (!r) {
|
|
2953
2953
|
console.warn("UeES3DTileset: viewer is undefined!");
|
|
@@ -3060,21 +3060,21 @@ const qe = (d) => {
|
|
|
3060
3060
|
if (n !== c && await u.promise(f()), n !== void 0 || c === void 0) return;
|
|
3061
3061
|
try {
|
|
3062
3062
|
n = c;
|
|
3063
|
-
const
|
|
3064
|
-
if (!
|
|
3065
|
-
if (
|
|
3066
|
-
console.warn(`UeES3DTileset Bind3DTilesetByTag: ${
|
|
3063
|
+
const v = await u.promise(i.bind3DTilesetByTag(t.id, c));
|
|
3064
|
+
if (!v) return;
|
|
3065
|
+
if (v.error !== "") {
|
|
3066
|
+
console.warn(`UeES3DTileset Bind3DTilesetByTag: ${v.error}`);
|
|
3067
3067
|
return;
|
|
3068
3068
|
}
|
|
3069
|
-
if (
|
|
3070
|
-
if (
|
|
3071
|
-
console.warn(`UeES3DTileset Bind3DTilesetByTag: ${qe(
|
|
3069
|
+
if (v.re.type !== 0)
|
|
3070
|
+
if (v.re.type === 1)
|
|
3071
|
+
console.warn(`UeES3DTileset Bind3DTilesetByTag: ${qe(v.re.type)}`);
|
|
3072
3072
|
else {
|
|
3073
|
-
console.warn(`UeES3DTileset Bind3DTilesetByTag: ${qe(
|
|
3073
|
+
console.warn(`UeES3DTileset Bind3DTilesetByTag: ${qe(v.re.type)}`);
|
|
3074
3074
|
return;
|
|
3075
3075
|
}
|
|
3076
|
-
} catch (
|
|
3077
|
-
console.warn(`UeES3DTileset Bind3DTilesetByTag: ${
|
|
3076
|
+
} catch (v) {
|
|
3077
|
+
console.warn(`UeES3DTileset Bind3DTilesetByTag: ${v}`);
|
|
3078
3078
|
return;
|
|
3079
3079
|
}
|
|
3080
3080
|
} else if (a.value.type === "CreatedUrl") {
|
|
@@ -3082,20 +3082,20 @@ const qe = (d) => {
|
|
|
3082
3082
|
if (c !== s && await f(), s !== void 0 || c === void 0) return;
|
|
3083
3083
|
try {
|
|
3084
3084
|
s = c;
|
|
3085
|
-
const
|
|
3085
|
+
const v = await u.promise(r.callUeFunc({
|
|
3086
3086
|
f: "create",
|
|
3087
3087
|
p: {
|
|
3088
3088
|
type: t.typeName,
|
|
3089
3089
|
id: t.id
|
|
3090
3090
|
}
|
|
3091
3091
|
}));
|
|
3092
|
-
if (!
|
|
3093
|
-
if (
|
|
3094
|
-
console.warn(`UeES3DTileset create: ${
|
|
3092
|
+
if (!v) return;
|
|
3093
|
+
if (v.error !== "") {
|
|
3094
|
+
console.warn(`UeES3DTileset create: ${v.error}`);
|
|
3095
3095
|
return;
|
|
3096
3096
|
}
|
|
3097
|
-
} catch (
|
|
3098
|
-
console.warn(`UeES3DTileset create: ${
|
|
3097
|
+
} catch (v) {
|
|
3098
|
+
console.warn(`UeES3DTileset create: ${v}`);
|
|
3099
3099
|
return;
|
|
3100
3100
|
}
|
|
3101
3101
|
}
|
|
@@ -3106,7 +3106,7 @@ const qe = (d) => {
|
|
|
3106
3106
|
l(), this.d(a.changed.don(l));
|
|
3107
3107
|
}
|
|
3108
3108
|
this.d(t.refreshTilesetEvent.don(() => {
|
|
3109
|
-
|
|
3109
|
+
jn(r, t.id);
|
|
3110
3110
|
})), this.d(t.flyToEvent.don(async (p, l) => {
|
|
3111
3111
|
if (!n && !s) return;
|
|
3112
3112
|
const u = await we(r, t.id, p);
|
|
@@ -3129,21 +3129,21 @@ const qe = (d) => {
|
|
|
3129
3129
|
!n && !s || p.id !== t.id || p.type !== "3DTilesetReady" || t.tilesetReady.emit(p.p);
|
|
3130
3130
|
}));
|
|
3131
3131
|
{
|
|
3132
|
-
const p = async (
|
|
3132
|
+
const p = async (v, w) => {
|
|
3133
3133
|
if (!n && !s) return;
|
|
3134
3134
|
const y = await r.callUeFunc({
|
|
3135
3135
|
f: "SetFeatureColor",
|
|
3136
|
-
p: { id: t.id, featureName:
|
|
3136
|
+
p: { id: t.id, featureName: v, json: w }
|
|
3137
3137
|
});
|
|
3138
3138
|
if (y && y.error !== "") {
|
|
3139
3139
|
console.warn(`UeES3DTileset SetFeatureColor: ${y.error}`);
|
|
3140
3140
|
return;
|
|
3141
3141
|
}
|
|
3142
|
-
}, l = async (
|
|
3142
|
+
}, l = async (v, w) => {
|
|
3143
3143
|
if (!n && !s) return;
|
|
3144
3144
|
const y = await r.callUeFunc({
|
|
3145
3145
|
f: "SetFeatureVisable",
|
|
3146
|
-
p: { id: t.id, featureName:
|
|
3146
|
+
p: { id: t.id, featureName: v, json: w }
|
|
3147
3147
|
});
|
|
3148
3148
|
if (y && y.error !== "") {
|
|
3149
3149
|
console.warn(`UeES3DTileset SetFeatureVisable: ${y.error}`);
|
|
@@ -3151,35 +3151,35 @@ const qe = (d) => {
|
|
|
3151
3151
|
}
|
|
3152
3152
|
}, u = async () => {
|
|
3153
3153
|
if (!n && !s) return;
|
|
3154
|
-
const
|
|
3154
|
+
const v = await r.callUeFunc({
|
|
3155
3155
|
f: "ResetFeatureStyle",
|
|
3156
3156
|
p: { id: t.id }
|
|
3157
3157
|
});
|
|
3158
|
-
if (
|
|
3159
|
-
console.warn(`UeES3DTileset ResetFeatureStyle: ${
|
|
3158
|
+
if (v && v.error !== "") {
|
|
3159
|
+
console.warn(`UeES3DTileset ResetFeatureStyle: ${v.error}`);
|
|
3160
3160
|
return;
|
|
3161
3161
|
}
|
|
3162
|
-
}, c = async (
|
|
3162
|
+
}, c = async (v) => {
|
|
3163
3163
|
if (!n && !s) return;
|
|
3164
3164
|
const w = await r.callUeFunc({
|
|
3165
3165
|
f: "SetFeatureStyle",
|
|
3166
|
-
p: { id: t.id, json:
|
|
3166
|
+
p: { id: t.id, json: v }
|
|
3167
3167
|
});
|
|
3168
3168
|
if (w && w.error !== "") {
|
|
3169
3169
|
console.warn(`UeES3DTileset SetFeatureStyle: ${w.error}`);
|
|
3170
3170
|
return;
|
|
3171
3171
|
}
|
|
3172
3172
|
};
|
|
3173
|
-
this.d(t.setFeatureColorEvent.don((
|
|
3173
|
+
this.d(t.setFeatureColorEvent.don((v, w) => {
|
|
3174
3174
|
const y = [...this.styleColor, ...w];
|
|
3175
|
-
this.styleColor = [...y], p(
|
|
3176
|
-
})), this.d(t.setFeatureVisableEvent.don((
|
|
3175
|
+
this.styleColor = [...y], p(v, y);
|
|
3176
|
+
})), this.d(t.setFeatureVisableEvent.don((v, w) => {
|
|
3177
3177
|
const y = [...this.styleVisable, ...w];
|
|
3178
|
-
this.styleVisable = [...y], l(
|
|
3178
|
+
this.styleVisable = [...y], l(v, y);
|
|
3179
3179
|
})), this.d(t.resetFeatureStyleEvent.don(() => {
|
|
3180
3180
|
u(), this.styleColor = [], this.styleVisable = [];
|
|
3181
|
-
})), this.d(t.setFeatureStyleEvent.don((
|
|
3182
|
-
c(
|
|
3181
|
+
})), this.d(t.setFeatureStyleEvent.don((v) => {
|
|
3182
|
+
c(v);
|
|
3183
3183
|
}));
|
|
3184
3184
|
}
|
|
3185
3185
|
{
|
|
@@ -3236,7 +3236,7 @@ const qe = (d) => {
|
|
|
3236
3236
|
this._styleVisable.value = t;
|
|
3237
3237
|
}
|
|
3238
3238
|
};
|
|
3239
|
-
|
|
3239
|
+
g(ut, "type", ut.register("ESUeViewer", me.type, ut));
|
|
3240
3240
|
let Ue = ut;
|
|
3241
3241
|
const Qe = (d) => {
|
|
3242
3242
|
switch (d) {
|
|
@@ -3359,11 +3359,11 @@ const Qe = (d) => {
|
|
|
3359
3359
|
return;
|
|
3360
3360
|
}
|
|
3361
3361
|
if (s.value.type === "ActorTag") {
|
|
3362
|
-
const { actorTag: c, componentTag:
|
|
3362
|
+
const { actorTag: c, componentTag: v } = s.value;
|
|
3363
3363
|
if (r !== c && await u.promise(f()), r !== void 0 || c === void 0) return;
|
|
3364
3364
|
try {
|
|
3365
3365
|
r = c;
|
|
3366
|
-
const w = await u.promise(t.bindImageryByTag(e.id, c,
|
|
3366
|
+
const w = await u.promise(t.bindImageryByTag(e.id, c, v));
|
|
3367
3367
|
if (!w) return;
|
|
3368
3368
|
if (w.error !== "") {
|
|
3369
3369
|
console.warn(`ESImageryLayer BindImageryByTag: ${w.error}`);
|
|
@@ -3385,16 +3385,16 @@ const Qe = (d) => {
|
|
|
3385
3385
|
if (c !== n && await u.promise(f()), n !== void 0 || c === void 0) return;
|
|
3386
3386
|
try {
|
|
3387
3387
|
n = c;
|
|
3388
|
-
const
|
|
3388
|
+
const v = await u.promise(i.callUeFunc({
|
|
3389
3389
|
f: "create",
|
|
3390
3390
|
p: {
|
|
3391
3391
|
type: "ESImageryLayer",
|
|
3392
3392
|
id: e.id
|
|
3393
3393
|
}
|
|
3394
3394
|
}));
|
|
3395
|
-
if (!
|
|
3396
|
-
if (
|
|
3397
|
-
console.warn(`ESImageryLayer create: ${
|
|
3395
|
+
if (!v) return;
|
|
3396
|
+
if (v.error !== "") {
|
|
3397
|
+
console.warn(`ESImageryLayer create: ${v.error}`);
|
|
3398
3398
|
return;
|
|
3399
3399
|
}
|
|
3400
3400
|
} catch {
|
|
@@ -3431,9 +3431,9 @@ const Qe = (d) => {
|
|
|
3431
3431
|
let c = "over";
|
|
3432
3432
|
u === void 0 ? c = "error" : u.endType === 0 ? c = "over" : u.endType === 1 && (c = "cancelled"), e.flyOverEvent.emit(l, c, t);
|
|
3433
3433
|
})), this.d(e.flyInEvent.don(async (p, l) => {
|
|
3434
|
-
var
|
|
3434
|
+
var v, w;
|
|
3435
3435
|
if (!r && !n) return;
|
|
3436
|
-
const u = await Re(i, e.id, (
|
|
3436
|
+
const u = await Re(i, e.id, (v = e.flyInParam) == null ? void 0 : v.position, (w = e.flyInParam) == null ? void 0 : w.rotation, p ?? 1);
|
|
3437
3437
|
let c = "over";
|
|
3438
3438
|
u === void 0 ? c = "error" : u.endType === 0 ? c = "over" : u.endType === 1 && (c = "cancelled"), e.flyOverEvent.emit(l, c, t);
|
|
3439
3439
|
})), this.d(e.calcFlyToParamEvent.don(() => {
|
|
@@ -3452,9 +3452,9 @@ const Qe = (d) => {
|
|
|
3452
3452
|
}));
|
|
3453
3453
|
}
|
|
3454
3454
|
};
|
|
3455
|
-
|
|
3455
|
+
g(ht, "type", ht.register("ESUeViewer", U.type, ht));
|
|
3456
3456
|
let Ve = ht;
|
|
3457
|
-
const X = class X extends
|
|
3457
|
+
const X = class X extends k {
|
|
3458
3458
|
constructor(e, t) {
|
|
3459
3459
|
if (super(e, t), !t.viewer) {
|
|
3460
3460
|
console.warn("viewer is undefined!");
|
|
@@ -3462,11 +3462,11 @@ const X = class X extends D {
|
|
|
3462
3462
|
}
|
|
3463
3463
|
}
|
|
3464
3464
|
};
|
|
3465
|
-
|
|
3466
|
-
...
|
|
3465
|
+
g(X, "type", X.register("ESUeViewer", Ur.type, X)), g(X, "forceUeUpdateProps", [
|
|
3466
|
+
...k.forceUeUpdateProps,
|
|
3467
3467
|
"url"
|
|
3468
|
-
]),
|
|
3469
|
-
...
|
|
3468
|
+
]), g(X, "propValFuncs", {
|
|
3469
|
+
...k.propValFuncs,
|
|
3470
3470
|
url: (e) => typeof e == "string" ? I.context.getStrFromEnv(e) : (e.url = I.context.getStrFromEnv(e.url), e),
|
|
3471
3471
|
czmMaxzoom: null,
|
|
3472
3472
|
czmMinzoom: null
|
|
@@ -3480,9 +3480,9 @@ const pt = class pt extends E {
|
|
|
3480
3480
|
}
|
|
3481
3481
|
}
|
|
3482
3482
|
};
|
|
3483
|
-
|
|
3483
|
+
g(pt, "type", pt.register("ESUeViewer", Nr.type, pt));
|
|
3484
3484
|
let je = pt;
|
|
3485
|
-
const
|
|
3485
|
+
const gt = class gt extends E {
|
|
3486
3486
|
constructor(e, t) {
|
|
3487
3487
|
if (super(e, t), !t.viewer) {
|
|
3488
3488
|
console.warn("viewer is undefined!");
|
|
@@ -3490,9 +3490,9 @@ const vt = class vt extends E {
|
|
|
3490
3490
|
}
|
|
3491
3491
|
}
|
|
3492
3492
|
};
|
|
3493
|
-
|
|
3494
|
-
let ti =
|
|
3495
|
-
const
|
|
3493
|
+
g(gt, "type", gt.register("ESUeViewer", br.type, gt));
|
|
3494
|
+
let ti = gt;
|
|
3495
|
+
const vt = class vt extends B {
|
|
3496
3496
|
constructor(e, t) {
|
|
3497
3497
|
if (super(e, t), !t.viewer) {
|
|
3498
3498
|
console.warn("viewer is undefined!");
|
|
@@ -3500,8 +3500,8 @@ const gt = class gt extends B {
|
|
|
3500
3500
|
}
|
|
3501
3501
|
}
|
|
3502
3502
|
};
|
|
3503
|
-
|
|
3504
|
-
let $ =
|
|
3503
|
+
g(vt, "type", vt.register("ESUeViewer", zr.type, vt));
|
|
3504
|
+
let $ = vt;
|
|
3505
3505
|
const ft = class ft extends $ {
|
|
3506
3506
|
constructor(e, t) {
|
|
3507
3507
|
super(e, t);
|
|
@@ -3534,7 +3534,7 @@ const ft = class ft extends $ {
|
|
|
3534
3534
|
this.d(n.don(r)), this.d(e.createdEvent.don(r));
|
|
3535
3535
|
}
|
|
3536
3536
|
};
|
|
3537
|
-
|
|
3537
|
+
g(ft, "type", ft.register("ESUeViewer", j.type, ft));
|
|
3538
3538
|
let ei = ft;
|
|
3539
3539
|
const wt = class wt extends E {
|
|
3540
3540
|
constructor(e, t) {
|
|
@@ -3544,7 +3544,7 @@ const wt = class wt extends E {
|
|
|
3544
3544
|
}
|
|
3545
3545
|
}
|
|
3546
3546
|
};
|
|
3547
|
-
|
|
3547
|
+
g(wt, "type", wt.register("ESUeViewer", Hr.type, wt));
|
|
3548
3548
|
let ii = wt;
|
|
3549
3549
|
const et = class et extends E {
|
|
3550
3550
|
constructor(e, t) {
|
|
@@ -3554,8 +3554,8 @@ const et = class et extends E {
|
|
|
3554
3554
|
}
|
|
3555
3555
|
}
|
|
3556
3556
|
};
|
|
3557
|
-
|
|
3558
|
-
|
|
3557
|
+
g(et, "type", et.register("ESUeViewer", Jr.type, et)), // null 表示不设置,undefined表示不做任何转换
|
|
3558
|
+
g(et, "propValFuncs", {
|
|
3559
3559
|
...E.propValFuncs,
|
|
3560
3560
|
targetID: (e) => {
|
|
3561
3561
|
if (!e) return "";
|
|
@@ -3584,7 +3584,7 @@ const yt = class yt extends E {
|
|
|
3584
3584
|
}));
|
|
3585
3585
|
}
|
|
3586
3586
|
};
|
|
3587
|
-
|
|
3587
|
+
g(yt, "type", yt.register("ESUeViewer", Gr.type, yt));
|
|
3588
3588
|
let ni = yt;
|
|
3589
3589
|
const mt = class mt extends E {
|
|
3590
3590
|
constructor(e, t) {
|
|
@@ -3594,7 +3594,7 @@ const mt = class mt extends E {
|
|
|
3594
3594
|
}
|
|
3595
3595
|
}
|
|
3596
3596
|
};
|
|
3597
|
-
|
|
3597
|
+
g(mt, "type", mt.register("ESUeViewer", Kr.type, mt));
|
|
3598
3598
|
let si = mt;
|
|
3599
3599
|
const Ct = class Ct extends E {
|
|
3600
3600
|
constructor(e, t) {
|
|
@@ -3604,7 +3604,7 @@ const Ct = class Ct extends E {
|
|
|
3604
3604
|
}
|
|
3605
3605
|
}
|
|
3606
3606
|
};
|
|
3607
|
-
|
|
3607
|
+
g(Ct, "type", Ct.register("ESUeViewer", Xr.type, Ct));
|
|
3608
3608
|
let oi = Ct;
|
|
3609
3609
|
const Ft = class Ft extends B {
|
|
3610
3610
|
constructor(e, t) {
|
|
@@ -3636,7 +3636,7 @@ const Ft = class Ft extends B {
|
|
|
3636
3636
|
this.d(n.don(r)), this.d(e.createdEvent.don(r));
|
|
3637
3637
|
}
|
|
3638
3638
|
};
|
|
3639
|
-
|
|
3639
|
+
g(Ft, "type", Ft.register("ESUeViewer", ct.type, Ft));
|
|
3640
3640
|
let ai = Ft;
|
|
3641
3641
|
const it = class it extends E {
|
|
3642
3642
|
constructor(e, t) {
|
|
@@ -3646,8 +3646,8 @@ const it = class it extends E {
|
|
|
3646
3646
|
}
|
|
3647
3647
|
}
|
|
3648
3648
|
};
|
|
3649
|
-
|
|
3650
|
-
|
|
3649
|
+
g(it, "type", it.register("ESUeViewer", Yr.type, it)), // null 表示不设置,undefined表示不做任何转换
|
|
3650
|
+
g(it, "propValFuncs", {
|
|
3651
3651
|
...E.propValFuncs,
|
|
3652
3652
|
targetID: (e) => {
|
|
3653
3653
|
if (!e) return "";
|
|
@@ -3699,7 +3699,7 @@ const It = class It extends E {
|
|
|
3699
3699
|
this.d(s.don(n)), this.d(e.createdEvent.don(n));
|
|
3700
3700
|
}
|
|
3701
3701
|
};
|
|
3702
|
-
|
|
3702
|
+
g(It, "type", It.register("ESUeViewer", z.type, It));
|
|
3703
3703
|
let di = It;
|
|
3704
3704
|
const Et = class Et extends E {
|
|
3705
3705
|
constructor(e, t) {
|
|
@@ -3709,7 +3709,7 @@ const Et = class Et extends E {
|
|
|
3709
3709
|
}
|
|
3710
3710
|
}
|
|
3711
3711
|
};
|
|
3712
|
-
|
|
3712
|
+
g(Et, "type", Et.register("ESUeViewer", Zr.type, Et));
|
|
3713
3713
|
let ci = Et;
|
|
3714
3714
|
const St = class St extends B {
|
|
3715
3715
|
constructor(e, t) {
|
|
@@ -3719,7 +3719,7 @@ const St = class St extends B {
|
|
|
3719
3719
|
}
|
|
3720
3720
|
}
|
|
3721
3721
|
};
|
|
3722
|
-
|
|
3722
|
+
g(St, "type", St.register("ESUeViewer", qr.type, St));
|
|
3723
3723
|
let ui = St;
|
|
3724
3724
|
const Tt = class Tt extends B {
|
|
3725
3725
|
constructor(e, t) {
|
|
@@ -3749,7 +3749,7 @@ const Tt = class Tt extends B {
|
|
|
3749
3749
|
this.d(n.don(r)), this.d(e.createdEvent.don(r));
|
|
3750
3750
|
}
|
|
3751
3751
|
};
|
|
3752
|
-
|
|
3752
|
+
g(Tt, "type", Tt.register("ESUeViewer", Me.type, Tt));
|
|
3753
3753
|
let hi = Tt;
|
|
3754
3754
|
const xt = class xt extends Ke {
|
|
3755
3755
|
constructor(e, t) {
|
|
@@ -3759,7 +3759,7 @@ const xt = class xt extends Ke {
|
|
|
3759
3759
|
}
|
|
3760
3760
|
}
|
|
3761
3761
|
};
|
|
3762
|
-
|
|
3762
|
+
g(xt, "type", xt.register("ESUeViewer", Qr.type, xt));
|
|
3763
3763
|
let Ne = xt;
|
|
3764
3764
|
const Rt = class Rt extends Ne {
|
|
3765
3765
|
constructor(e, t) {
|
|
@@ -3769,9 +3769,9 @@ const Rt = class Rt extends Ne {
|
|
|
3769
3769
|
}
|
|
3770
3770
|
}
|
|
3771
3771
|
};
|
|
3772
|
-
|
|
3772
|
+
g(Rt, "type", Rt.register("ESUeViewer", Vr.type, Rt));
|
|
3773
3773
|
let pi = Rt;
|
|
3774
|
-
const Pt = class Pt extends
|
|
3774
|
+
const Pt = class Pt extends k {
|
|
3775
3775
|
constructor(e, t) {
|
|
3776
3776
|
if (super(e, t), !t.viewer) {
|
|
3777
3777
|
console.warn("viewer is undefined!");
|
|
@@ -3784,8 +3784,8 @@ const Pt = class Pt extends D {
|
|
|
3784
3784
|
}));
|
|
3785
3785
|
}
|
|
3786
3786
|
};
|
|
3787
|
-
|
|
3788
|
-
let
|
|
3787
|
+
g(Pt, "type", Pt.register("ESUeViewer", Or.type, Pt));
|
|
3788
|
+
let gi = Pt;
|
|
3789
3789
|
const rt = class rt extends $ {
|
|
3790
3790
|
constructor(e, t) {
|
|
3791
3791
|
if (super(e, t), !t.viewer) {
|
|
@@ -3794,7 +3794,7 @@ const rt = class rt extends $ {
|
|
|
3794
3794
|
}
|
|
3795
3795
|
}
|
|
3796
3796
|
};
|
|
3797
|
-
|
|
3797
|
+
g(rt, "type", rt.register("ESUeViewer", jr.type, rt)), g(rt, "propValFuncs", {
|
|
3798
3798
|
...$.propValFuncs,
|
|
3799
3799
|
targetID: (e) => {
|
|
3800
3800
|
if (!e) return "";
|
|
@@ -3802,7 +3802,7 @@ v(rt, "type", rt.register("ESUeViewer", jr.type, rt)), v(rt, "propValFuncs", {
|
|
|
3802
3802
|
return t ? (t.components.main ?? t).id : e;
|
|
3803
3803
|
}
|
|
3804
3804
|
});
|
|
3805
|
-
let
|
|
3805
|
+
let vi = rt;
|
|
3806
3806
|
const Lt = class Lt extends E {
|
|
3807
3807
|
constructor(e, t) {
|
|
3808
3808
|
if (super(e, t), !t.viewer) {
|
|
@@ -3811,9 +3811,9 @@ const Lt = class Lt extends E {
|
|
|
3811
3811
|
}
|
|
3812
3812
|
}
|
|
3813
3813
|
};
|
|
3814
|
-
|
|
3814
|
+
g(Lt, "type", Lt.register("ESUeViewer", tn.type, Lt));
|
|
3815
3815
|
let fi = Lt;
|
|
3816
|
-
const
|
|
3816
|
+
const Dt = class Dt extends k {
|
|
3817
3817
|
constructor(e, t) {
|
|
3818
3818
|
super(e, t);
|
|
3819
3819
|
const i = t.viewer;
|
|
@@ -3861,26 +3861,26 @@ const kt = class kt extends D {
|
|
|
3861
3861
|
this.d(s.don(n)), this.d(e.createdEvent.don(n));
|
|
3862
3862
|
}
|
|
3863
3863
|
};
|
|
3864
|
-
|
|
3865
|
-
let wi =
|
|
3866
|
-
const
|
|
3864
|
+
g(Dt, "type", Dt.register("ESUeViewer", N.type, Dt));
|
|
3865
|
+
let wi = Dt;
|
|
3866
|
+
const kt = class kt extends G {
|
|
3867
3867
|
constructor(e, t) {
|
|
3868
|
-
super(e, t), this.ad(new P(e.renderInUEChanged, () => e.renderInUE ? new
|
|
3868
|
+
super(e, t), this.ad(new P(e.renderInUEChanged, () => e.renderInUE ? new Io(e, t) : new Fo(e, t)));
|
|
3869
3869
|
}
|
|
3870
3870
|
};
|
|
3871
|
-
|
|
3872
|
-
let yi =
|
|
3873
|
-
class
|
|
3871
|
+
g(kt, "type", kt.register("ESUeViewer", Ce.type, kt));
|
|
3872
|
+
let yi = kt;
|
|
3873
|
+
class Fo extends C {
|
|
3874
3874
|
constructor(t, i) {
|
|
3875
3875
|
super();
|
|
3876
|
-
|
|
3876
|
+
g(this, "_screenPosition", this.disposeVar(pr(void 0)));
|
|
3877
3877
|
const r = i.viewer;
|
|
3878
3878
|
if (!r) {
|
|
3879
3879
|
console.warn("viewer is undefined!");
|
|
3880
3880
|
return;
|
|
3881
3881
|
}
|
|
3882
|
-
const n = this.disposeVar(new
|
|
3883
|
-
n.parentID = t.id, t.components.disposableAdd(n, !0), n.show = !1, this.dispose(
|
|
3882
|
+
const n = this.disposeVar(new vr());
|
|
3883
|
+
n.parentID = t.id, this.ad(t.components.disposableAdd(n, !0)), n.show = !1, this.dispose(D([n, "position"], [t, "position"])), this.dispose(D([n, "rotation"], [t, "rotation"])), this.dispose(D([n, "flyToParam"], [t, "flyToParam"])), this.dispose(D([n, "flyInParam"], [t, "flyInParam"])), this.dispose(t.calcFlyToParamEvent.disposableOn(() => {
|
|
3884
3884
|
dt(r, n.id);
|
|
3885
3885
|
})), this.dispose(t.calcFlyInParamEvent.disposableOn(async () => {
|
|
3886
3886
|
if (!i.actived) return;
|
|
@@ -3889,20 +3889,20 @@ class Co extends m {
|
|
|
3889
3889
|
const { position: a, rotation: f } = h;
|
|
3890
3890
|
t.flyInParam = { position: a, rotation: f, flyDuration: 1 };
|
|
3891
3891
|
})), this.dispose(t.smoothMoveEvent.disposableOn((h, a) => {
|
|
3892
|
-
|
|
3892
|
+
ke(r, n.id, h, a);
|
|
3893
3893
|
})), this.dispose(t.smoothMoveWithRotationEvent.disposableOn((h, a, f) => {
|
|
3894
3894
|
Pe(r, n.id, h, a, f);
|
|
3895
3895
|
})), this.dispose(t.smoothMoveOnGroundEvent.disposableOn((h, a, f, p) => {
|
|
3896
3896
|
Le(r, n.id, h, a, p, f);
|
|
3897
3897
|
})), this.dispose(t.smoothMoveWithRotationOnGroundEvent.disposableOn((h, a, f, p, l) => {
|
|
3898
|
-
|
|
3898
|
+
De(r, n.id, h, a, f, p, l);
|
|
3899
3899
|
})), this.dispose(t.flyToEvent.disposableOn((h, a) => {
|
|
3900
3900
|
n.flyTo(h);
|
|
3901
3901
|
})), this.dispose(t.flyInEvent.don((h) => {
|
|
3902
3902
|
n.flyIn(h);
|
|
3903
3903
|
}));
|
|
3904
3904
|
const s = this._screenPosition, o = this.disposeVar(new Je());
|
|
3905
|
-
o.parentID = t.id, i.add(o), this.dispose(() => i.delete(o)), this.dispose(
|
|
3905
|
+
o.parentID = t.id, i.add(o), this.dispose(() => i.delete(o)), this.dispose(D([o, "allowPicking"], [t, "allowPicking"]));
|
|
3906
3906
|
{
|
|
3907
3907
|
const h = this.disposeVar(ze()), a = () => {
|
|
3908
3908
|
t.show ? h.restart(void 0, async () => {
|
|
@@ -3920,12 +3920,12 @@ class Co extends m {
|
|
|
3920
3920
|
a(), this.dispose(t.showChanged.disposableOn(a));
|
|
3921
3921
|
}
|
|
3922
3922
|
{
|
|
3923
|
-
const h = () => class extends
|
|
3923
|
+
const h = () => class extends C {
|
|
3924
3924
|
constructor(l, u, c) {
|
|
3925
3925
|
if (super(), this._subContainer = l, !c) return;
|
|
3926
3926
|
if (!t.instanceClass)
|
|
3927
3927
|
throw new Error("!sceneObject.instanceClass");
|
|
3928
|
-
const
|
|
3928
|
+
const v = new en(), w = v.element;
|
|
3929
3929
|
this._subContainer.appendChild(w), this.dispose(() => this._subContainer.removeChild(w)), w.onclick = (y) => {
|
|
3930
3930
|
(t.allowPicking ?? !1) && t.pickedEvent.emit(new Ae(
|
|
3931
3931
|
{ div: w, pointerEvent: y },
|
|
@@ -3944,30 +3944,38 @@ class Co extends m {
|
|
|
3944
3944
|
}
|
|
3945
3945
|
{
|
|
3946
3946
|
const y = () => {
|
|
3947
|
-
|
|
3948
|
-
|
|
3947
|
+
let m = t.show;
|
|
3948
|
+
if (!m)
|
|
3949
|
+
v.show = m, v.winPos = [0, 0];
|
|
3950
|
+
else if (s.value) {
|
|
3951
|
+
const T = i.getCurrentCameraInfo(), S = rn([t.position, T.position], "NONE")[0];
|
|
3952
|
+
t.minVisibleDistance < t.maxVisibleDistance ? m = t.minVisibleDistance < S && S < t.maxVisibleDistance : t.maxVisibleDistance == 0 && (m = S > t.minVisibleDistance), v.show = m, v.winPos = [...s.value];
|
|
3953
|
+
}
|
|
3949
3954
|
};
|
|
3950
3955
|
y();
|
|
3951
|
-
const
|
|
3956
|
+
const R = this.disposeVar(L(
|
|
3952
3957
|
t.showChanged,
|
|
3953
|
-
s.changed
|
|
3958
|
+
s.changed,
|
|
3959
|
+
i.cameraChanged,
|
|
3960
|
+
t.maxVisibleDistanceChanged,
|
|
3961
|
+
t.minVisibleDistanceChanged
|
|
3954
3962
|
));
|
|
3955
|
-
this.dispose(
|
|
3963
|
+
this.dispose(R.disposableOn(y));
|
|
3956
3964
|
}
|
|
3957
3965
|
{
|
|
3958
3966
|
const y = () => {
|
|
3959
|
-
const [
|
|
3960
|
-
|
|
3967
|
+
const [R, m] = t.anchor ?? Ce.defaults.anchor;
|
|
3968
|
+
v.originRatioX = R, v.originRatioY = m;
|
|
3961
3969
|
};
|
|
3962
3970
|
y(), this.dispose(t.anchorChanged.disposableOn(y));
|
|
3963
3971
|
}
|
|
3964
3972
|
{
|
|
3965
3973
|
const y = () => {
|
|
3966
|
-
|
|
3974
|
+
v.opacity = t.opacity ?? Ce.defaults.opacity;
|
|
3967
3975
|
};
|
|
3968
3976
|
y(), this.dispose(t.opacityChanged.disposableOn(y));
|
|
3969
3977
|
}
|
|
3970
|
-
this.disposeVar(new t.instanceClass(
|
|
3978
|
+
this.disposeVar(new t.instanceClass(v.contentDiv, t, c));
|
|
3971
3979
|
}
|
|
3972
3980
|
}, a = () => {
|
|
3973
3981
|
try {
|
|
@@ -3998,11 +4006,11 @@ class Co extends m {
|
|
|
3998
4006
|
this._screenPosition.value = t;
|
|
3999
4007
|
}
|
|
4000
4008
|
}
|
|
4001
|
-
class
|
|
4009
|
+
class Io extends C {
|
|
4002
4010
|
constructor(t, i) {
|
|
4003
4011
|
super();
|
|
4004
|
-
|
|
4005
|
-
|
|
4012
|
+
g(this, "_imageLabel");
|
|
4013
|
+
g(this, "_hasClassDivAndPos", {});
|
|
4006
4014
|
this._imageLabel = this.dv(new fr()), this._imageLabel.isHoverZoom = !1, this._imageLabel.parentID = t.id;
|
|
4007
4015
|
const r = i.viewer;
|
|
4008
4016
|
if (!r) {
|
|
@@ -4010,7 +4018,7 @@ class Fo extends m {
|
|
|
4010
4018
|
return;
|
|
4011
4019
|
}
|
|
4012
4020
|
const n = this._imageLabel;
|
|
4013
|
-
t.components.disposableAdd(n, !0);
|
|
4021
|
+
this.ad(t.components.disposableAdd(n, !0));
|
|
4014
4022
|
{
|
|
4015
4023
|
const s = () => {
|
|
4016
4024
|
if (!r) return;
|
|
@@ -4031,7 +4039,7 @@ class Fo extends m {
|
|
|
4031
4039
|
];
|
|
4032
4040
|
}
|
|
4033
4041
|
}
|
|
4034
|
-
|
|
4042
|
+
Vn(f, {
|
|
4035
4043
|
backgroundColor: null,
|
|
4036
4044
|
allowTaint: !0,
|
|
4037
4045
|
useCORS: !0,
|
|
@@ -4063,7 +4071,7 @@ class Fo extends m {
|
|
|
4063
4071
|
};
|
|
4064
4072
|
n.show = !1, this.ad(t.showChanged.don(s));
|
|
4065
4073
|
}
|
|
4066
|
-
this.d(F([n, "anchor"], [t, "anchor"])), this.d(
|
|
4074
|
+
this.d(F([n, "anchor"], [t, "anchor"])), this.d(D([n, "position"], [t, "position"])), this.d(D([n, "rotation"], [t, "rotation"])), this.d(D([n, "flyToParam"], [t, "flyToParam"])), this.d(D([n, "flyInParam"], [t, "flyInParam"])), this.d(D([n, "allowPicking"], [t, "allowPicking"])), this.d(D([n, "scale"], [t, "scale"])), this.d(F([n, "minVisibleDistance"], [t, "minVisibleDistance"])), this.d(F([n, "maxVisibleDistance"], [t, "maxVisibleDistance"])), this.ad(t.automaticLandingEvent.don(() => {
|
|
4067
4075
|
n.automaticLanding();
|
|
4068
4076
|
})), this.d(i.widgetEvent.don((s) => {
|
|
4069
4077
|
if (s.objId !== this._imageLabel.id) return;
|
|
@@ -4086,13 +4094,13 @@ class Fo extends m {
|
|
|
4086
4094
|
const { position: o, rotation: h } = s;
|
|
4087
4095
|
t.flyInParam = { position: o, rotation: h, flyDuration: 1 };
|
|
4088
4096
|
})), this.d(t.smoothMoveEvent.don((s, o) => {
|
|
4089
|
-
|
|
4097
|
+
ke(r, n.id, s, o);
|
|
4090
4098
|
})), this.d(t.smoothMoveWithRotationEvent.don((s, o, h) => {
|
|
4091
4099
|
Pe(r, n.id, s, o, h);
|
|
4092
4100
|
})), this.d(t.smoothMoveOnGroundEvent.don((s, o, h, a) => {
|
|
4093
4101
|
Le(r, n.id, s, o, a, h);
|
|
4094
4102
|
})), this.d(t.smoothMoveWithRotationOnGroundEvent.don((s, o, h, a, f) => {
|
|
4095
|
-
|
|
4103
|
+
De(r, n.id, s, o, h, a, f);
|
|
4096
4104
|
})), this.d(t.flyToEvent.don((s, o) => {
|
|
4097
4105
|
n.flyTo(s);
|
|
4098
4106
|
})), this.d(t.flyInEvent.don((s) => {
|
|
@@ -4100,7 +4108,7 @@ class Fo extends m {
|
|
|
4100
4108
|
}));
|
|
4101
4109
|
}
|
|
4102
4110
|
}
|
|
4103
|
-
const Y = class Y extends
|
|
4111
|
+
const Y = class Y extends k {
|
|
4104
4112
|
constructor(e, t) {
|
|
4105
4113
|
super(e, t);
|
|
4106
4114
|
const i = t.viewer;
|
|
@@ -4130,11 +4138,11 @@ const Y = class Y extends D {
|
|
|
4130
4138
|
}));
|
|
4131
4139
|
}
|
|
4132
4140
|
};
|
|
4133
|
-
|
|
4134
|
-
...
|
|
4141
|
+
g(Y, "type", Y.register("ESUeViewer", nn.type, Y)), g(Y, "forceUeUpdateProps", [
|
|
4142
|
+
...k.forceUeUpdateProps,
|
|
4135
4143
|
"url"
|
|
4136
|
-
]),
|
|
4137
|
-
...
|
|
4144
|
+
]), g(Y, "propValFuncs", {
|
|
4145
|
+
...k.propValFuncs,
|
|
4138
4146
|
url: (e) => typeof e == "string" ? I.context.getStrFromEnv(e) : e
|
|
4139
4147
|
});
|
|
4140
4148
|
let mi = Y;
|
|
@@ -4146,7 +4154,7 @@ const Bt = class Bt extends B {
|
|
|
4146
4154
|
}
|
|
4147
4155
|
}
|
|
4148
4156
|
};
|
|
4149
|
-
|
|
4157
|
+
g(Bt, "type", Bt.register("ESUeViewer", sn.type, Bt));
|
|
4150
4158
|
let be = Bt;
|
|
4151
4159
|
const _t = class _t extends B {
|
|
4152
4160
|
constructor(e, t) {
|
|
@@ -4156,7 +4164,7 @@ const _t = class _t extends B {
|
|
|
4156
4164
|
}
|
|
4157
4165
|
}
|
|
4158
4166
|
};
|
|
4159
|
-
|
|
4167
|
+
g(_t, "type", _t.register("ESUeViewer", on.type, _t));
|
|
4160
4168
|
let Ci = _t;
|
|
4161
4169
|
const Mt = class Mt extends $ {
|
|
4162
4170
|
constructor(e, t) {
|
|
@@ -4166,7 +4174,7 @@ const Mt = class Mt extends $ {
|
|
|
4166
4174
|
}
|
|
4167
4175
|
}
|
|
4168
4176
|
};
|
|
4169
|
-
|
|
4177
|
+
g(Mt, "type", Mt.register("ESUeViewer", an.type, Mt));
|
|
4170
4178
|
let Fi = Mt;
|
|
4171
4179
|
const Z = class Z extends E {
|
|
4172
4180
|
constructor(e, t) {
|
|
@@ -4177,25 +4185,25 @@ const Z = class Z extends E {
|
|
|
4177
4185
|
return;
|
|
4178
4186
|
}
|
|
4179
4187
|
this.d(e.setNodePositionEvent.don((r, n) => {
|
|
4180
|
-
ls(i, e.id, r, n);
|
|
4181
|
-
})), this.d(e.setNodeRotationEvent.don((r, n) => {
|
|
4182
4188
|
ds(i, e.id, r, n);
|
|
4183
|
-
})), this.d(e.
|
|
4189
|
+
})), this.d(e.setNodeRotationEvent.don((r, n) => {
|
|
4184
4190
|
cs(i, e.id, r, n);
|
|
4191
|
+
})), this.d(e.setNodeScaleEvent.don((r, n) => {
|
|
4192
|
+
us(i, e.id, r, n);
|
|
4185
4193
|
}));
|
|
4186
4194
|
}
|
|
4187
4195
|
};
|
|
4188
|
-
|
|
4196
|
+
g(Z, "forceUeUpdateProps", [
|
|
4189
4197
|
...E.forceUeUpdateProps,
|
|
4190
4198
|
"url"
|
|
4191
|
-
]),
|
|
4199
|
+
]), g(Z, "propValFuncs", {
|
|
4192
4200
|
...E.propValFuncs,
|
|
4193
4201
|
url: (e) => typeof e == "string" ? I.context.getStrFromEnv(Fe(e)) : (e.url = I.context.getStrFromEnv(Fe(e.url)), e),
|
|
4194
4202
|
czmMaximumScale: null,
|
|
4195
4203
|
czmMinimumPixelSize: null,
|
|
4196
4204
|
czmNativeScale: null,
|
|
4197
4205
|
czmColor: null
|
|
4198
|
-
}),
|
|
4206
|
+
}), g(Z, "type", Z.register("ESUeViewer", ln.type, Z));
|
|
4199
4207
|
let Ii = Z;
|
|
4200
4208
|
const $t = class $t extends B {
|
|
4201
4209
|
constructor(e, t) {
|
|
@@ -4205,7 +4213,7 @@ const $t = class $t extends B {
|
|
|
4205
4213
|
}
|
|
4206
4214
|
}
|
|
4207
4215
|
};
|
|
4208
|
-
|
|
4216
|
+
g($t, "type", $t.register("ESUeViewer", dn.type, $t));
|
|
4209
4217
|
let Ei = $t;
|
|
4210
4218
|
const Wt = class Wt extends E {
|
|
4211
4219
|
constructor(e, t) {
|
|
@@ -4245,7 +4253,7 @@ const Wt = class Wt extends E {
|
|
|
4245
4253
|
}));
|
|
4246
4254
|
}
|
|
4247
4255
|
};
|
|
4248
|
-
|
|
4256
|
+
g(Wt, "type", Wt.register("ESUeViewer", cn.type, Wt));
|
|
4249
4257
|
let Si = Wt;
|
|
4250
4258
|
const q = class q extends b {
|
|
4251
4259
|
constructor(e, t) {
|
|
@@ -4256,10 +4264,10 @@ const q = class q extends b {
|
|
|
4256
4264
|
e.anchor = [0.5, 1];
|
|
4257
4265
|
}
|
|
4258
4266
|
};
|
|
4259
|
-
|
|
4267
|
+
g(q, "type", q.register("ESUeViewer", fr.type, q)), g(q, "forceUeUpdateProps", [
|
|
4260
4268
|
...b.forceUeUpdateProps,
|
|
4261
4269
|
"url"
|
|
4262
|
-
]),
|
|
4270
|
+
]), g(q, "propValFuncs", {
|
|
4263
4271
|
...b.propValFuncs,
|
|
4264
4272
|
url: (e) => typeof e == "string" ? I.context.getStrFromEnv(Fe(e)) : (e.url = I.context.getStrFromEnv(Fe(e.url)), e)
|
|
4265
4273
|
});
|
|
@@ -4272,7 +4280,7 @@ const At = class At extends E {
|
|
|
4272
4280
|
}
|
|
4273
4281
|
}
|
|
4274
4282
|
};
|
|
4275
|
-
|
|
4283
|
+
g(At, "type", At.register("ESUeViewer", un.type, At));
|
|
4276
4284
|
let xi = At;
|
|
4277
4285
|
const Ut = class Ut extends Ke {
|
|
4278
4286
|
constructor(e, t) {
|
|
@@ -4282,9 +4290,9 @@ const Ut = class Ut extends Ke {
|
|
|
4282
4290
|
}
|
|
4283
4291
|
}
|
|
4284
4292
|
};
|
|
4285
|
-
|
|
4293
|
+
g(Ut, "type", Ut.register("ESUeViewer", hn.type, Ut));
|
|
4286
4294
|
let Ri = Ut;
|
|
4287
|
-
const Nt = class Nt extends
|
|
4295
|
+
const Nt = class Nt extends k {
|
|
4288
4296
|
constructor(e, t) {
|
|
4289
4297
|
if (super(e, t), !t.viewer) {
|
|
4290
4298
|
console.warn("viewer is undefined!");
|
|
@@ -4292,7 +4300,7 @@ const Nt = class Nt extends D {
|
|
|
4292
4300
|
}
|
|
4293
4301
|
}
|
|
4294
4302
|
};
|
|
4295
|
-
|
|
4303
|
+
g(Nt, "type", Nt.register("ESUeViewer", pn.type, Nt));
|
|
4296
4304
|
let Pi = Nt;
|
|
4297
4305
|
const bt = class bt extends Ke {
|
|
4298
4306
|
constructor(e, t) {
|
|
@@ -4302,7 +4310,7 @@ const bt = class bt extends Ke {
|
|
|
4302
4310
|
}
|
|
4303
4311
|
}
|
|
4304
4312
|
};
|
|
4305
|
-
|
|
4313
|
+
g(bt, "type", bt.register("ESUeViewer", gn.type, bt));
|
|
4306
4314
|
let Li = bt;
|
|
4307
4315
|
const zt = class zt extends E {
|
|
4308
4316
|
constructor(e, t) {
|
|
@@ -4312,8 +4320,8 @@ const zt = class zt extends E {
|
|
|
4312
4320
|
}
|
|
4313
4321
|
}
|
|
4314
4322
|
};
|
|
4315
|
-
|
|
4316
|
-
let
|
|
4323
|
+
g(zt, "type", zt.register("ESUeViewer", vn.type, zt));
|
|
4324
|
+
let Di = zt;
|
|
4317
4325
|
const Ht = class Ht extends E {
|
|
4318
4326
|
constructor(e, t) {
|
|
4319
4327
|
if (super(e, t), !t.viewer) {
|
|
@@ -4322,8 +4330,8 @@ const Ht = class Ht extends E {
|
|
|
4322
4330
|
}
|
|
4323
4331
|
}
|
|
4324
4332
|
};
|
|
4325
|
-
|
|
4326
|
-
let
|
|
4333
|
+
g(Ht, "type", Ht.register("ESUeViewer", fn.type, Ht));
|
|
4334
|
+
let ki = Ht;
|
|
4327
4335
|
const Jt = class Jt extends B {
|
|
4328
4336
|
constructor(e, t) {
|
|
4329
4337
|
if (super(e, t), !t.viewer) {
|
|
@@ -4332,7 +4340,7 @@ const Jt = class Jt extends B {
|
|
|
4332
4340
|
}
|
|
4333
4341
|
}
|
|
4334
4342
|
};
|
|
4335
|
-
|
|
4343
|
+
g(Jt, "type", Jt.register("ESUeViewer", wn.type, Jt));
|
|
4336
4344
|
let Bi = Jt;
|
|
4337
4345
|
const Gt = class Gt extends be {
|
|
4338
4346
|
constructor(e, t) {
|
|
@@ -4342,7 +4350,7 @@ const Gt = class Gt extends be {
|
|
|
4342
4350
|
}
|
|
4343
4351
|
}
|
|
4344
4352
|
};
|
|
4345
|
-
|
|
4353
|
+
g(Gt, "type", Gt.register("ESUeViewer", yn.type, Gt));
|
|
4346
4354
|
let _i = Gt;
|
|
4347
4355
|
const Kt = class Kt extends Ue {
|
|
4348
4356
|
constructor(e, t) {
|
|
@@ -4354,20 +4362,20 @@ const Kt = class Kt extends Ue {
|
|
|
4354
4362
|
}
|
|
4355
4363
|
this.d(e.highlightFeatureEvent.don((r) => {
|
|
4356
4364
|
const n = typeof r == "number" ? r.toString() : r;
|
|
4357
|
-
|
|
4365
|
+
ss(i, e.id, n);
|
|
4358
4366
|
})), this.d(e.highlightFeatureAndFlyToEvent.don((r, n, s, o) => {
|
|
4359
4367
|
const h = typeof r == "number" ? r.toString() : r;
|
|
4360
|
-
|
|
4368
|
+
os(i, e.id, h, o ?? 1);
|
|
4361
4369
|
})), this.d(e.setLayerVisibleEvent.don((r, n) => {
|
|
4362
4370
|
let s = "";
|
|
4363
|
-
typeof n != "string" ? s = JSON.stringify(n) : s = n,
|
|
4371
|
+
typeof n != "string" ? s = JSON.stringify(n) : s = n, as(i, e.id, s);
|
|
4364
4372
|
})), this.d(e.setLayerColorEvent.don((r, n) => {
|
|
4365
4373
|
let s = "";
|
|
4366
|
-
typeof n != "string" ? s = JSON.stringify(n) : s = n,
|
|
4374
|
+
typeof n != "string" ? s = JSON.stringify(n) : s = n, ls(i, e.id, s);
|
|
4367
4375
|
}));
|
|
4368
4376
|
}
|
|
4369
4377
|
};
|
|
4370
|
-
|
|
4378
|
+
g(Kt, "type", Kt.register("ESUeViewer", mn.type, Kt));
|
|
4371
4379
|
let Mi = Kt;
|
|
4372
4380
|
const Xt = class Xt extends $ {
|
|
4373
4381
|
constructor(e, t) {
|
|
@@ -4377,7 +4385,7 @@ const Xt = class Xt extends $ {
|
|
|
4377
4385
|
}
|
|
4378
4386
|
}
|
|
4379
4387
|
};
|
|
4380
|
-
|
|
4388
|
+
g(Xt, "type", Xt.register("ESUeViewer", Cn.type, Xt));
|
|
4381
4389
|
let $i = Xt;
|
|
4382
4390
|
const Yt = class Yt extends b {
|
|
4383
4391
|
constructor(e, t) {
|
|
@@ -4400,7 +4408,7 @@ const Yt = class Yt extends b {
|
|
|
4400
4408
|
}));
|
|
4401
4409
|
}
|
|
4402
4410
|
};
|
|
4403
|
-
|
|
4411
|
+
g(Yt, "type", Yt.register("ESUeViewer", Fn.type, Yt));
|
|
4404
4412
|
let Wi = Yt;
|
|
4405
4413
|
const Zt = class Zt extends E {
|
|
4406
4414
|
constructor(e, t) {
|
|
@@ -4410,9 +4418,9 @@ const Zt = class Zt extends E {
|
|
|
4410
4418
|
}
|
|
4411
4419
|
}
|
|
4412
4420
|
};
|
|
4413
|
-
|
|
4421
|
+
g(Zt, "type", Zt.register("ESUeViewer", In.type, Zt));
|
|
4414
4422
|
let Ai = Zt;
|
|
4415
|
-
const Q = class Q extends
|
|
4423
|
+
const Q = class Q extends k {
|
|
4416
4424
|
constructor(e, t) {
|
|
4417
4425
|
if (super(e, t), !t.viewer) {
|
|
4418
4426
|
console.warn("viewer is undefined!");
|
|
@@ -4420,11 +4428,11 @@ const Q = class Q extends D {
|
|
|
4420
4428
|
}
|
|
4421
4429
|
}
|
|
4422
4430
|
};
|
|
4423
|
-
|
|
4424
|
-
...
|
|
4431
|
+
g(Q, "type", Q.register("ESUeViewer", En.type, Q)), g(Q, "forceUeUpdateProps", [
|
|
4432
|
+
...k.forceUeUpdateProps,
|
|
4425
4433
|
"url"
|
|
4426
|
-
]),
|
|
4427
|
-
...
|
|
4434
|
+
]), g(Q, "propValFuncs", {
|
|
4435
|
+
...k.propValFuncs,
|
|
4428
4436
|
url: (e) => typeof e == "string" ? I.context.getStrFromEnv(e) : (e.url = I.context.getStrFromEnv(e.url), e)
|
|
4429
4437
|
});
|
|
4430
4438
|
let Ui = Q;
|
|
@@ -4436,7 +4444,7 @@ const qt = class qt extends B {
|
|
|
4436
4444
|
}
|
|
4437
4445
|
}
|
|
4438
4446
|
};
|
|
4439
|
-
|
|
4447
|
+
g(qt, "type", qt.register("ESUeViewer", Sn.type, qt));
|
|
4440
4448
|
let Ni = qt;
|
|
4441
4449
|
const nt = class nt extends $ {
|
|
4442
4450
|
constructor(e, t) {
|
|
@@ -4446,8 +4454,8 @@ const nt = class nt extends $ {
|
|
|
4446
4454
|
}
|
|
4447
4455
|
}
|
|
4448
4456
|
};
|
|
4449
|
-
|
|
4450
|
-
|
|
4457
|
+
g(nt, "type", nt.register("ESUeViewer", Tn.type, nt)), // null 表示不设置,undefined表示不做任何转换
|
|
4458
|
+
g(nt, "propValFuncs", {
|
|
4451
4459
|
...$.propValFuncs,
|
|
4452
4460
|
targetID: (e) => {
|
|
4453
4461
|
if (!e) return "";
|
|
@@ -4464,7 +4472,7 @@ const Qt = class Qt extends $ {
|
|
|
4464
4472
|
}
|
|
4465
4473
|
}
|
|
4466
4474
|
};
|
|
4467
|
-
|
|
4475
|
+
g(Qt, "type", Qt.register("ESUeViewer", xn.type, Qt));
|
|
4468
4476
|
let zi = Qt;
|
|
4469
4477
|
const Vt = class Vt extends lt {
|
|
4470
4478
|
constructor(e, t) {
|
|
@@ -4545,28 +4553,28 @@ const Vt = class Vt extends lt {
|
|
|
4545
4553
|
}
|
|
4546
4554
|
}
|
|
4547
4555
|
};
|
|
4548
|
-
|
|
4556
|
+
g(Vt, "type", Vt.register("ESUeViewer", Rn.type, Vt));
|
|
4549
4557
|
let Hi = Vt;
|
|
4550
|
-
const Ot = class Ot extends
|
|
4558
|
+
const Ot = class Ot extends k {
|
|
4551
4559
|
constructor(e, t) {
|
|
4552
4560
|
if (super(e, t), !t.viewer) {
|
|
4553
4561
|
console.warn("viewer is undefined!");
|
|
4554
4562
|
return;
|
|
4555
4563
|
}
|
|
4556
4564
|
this.d(e.addTreesEvent.don((r) => {
|
|
4557
|
-
|
|
4565
|
+
Ln(t, e.id, r);
|
|
4558
4566
|
})), this.d(e.removeAllTreesEvent.don(() => {
|
|
4559
|
-
|
|
4567
|
+
Dn(t, e.id);
|
|
4560
4568
|
})), this.d(e.updateTreeParamsEvent.don((r) => {
|
|
4561
4569
|
kn(t, e.id, r);
|
|
4562
4570
|
})), this.d(e.cutDownTreesEvent.don((r, n) => {
|
|
4563
|
-
|
|
4571
|
+
Bn(t, e.id, r, n);
|
|
4564
4572
|
})), this.d(e.growthSimulationEvent.don((r, n, s) => {
|
|
4565
|
-
|
|
4573
|
+
_n(t, e.id, r, n, s);
|
|
4566
4574
|
}));
|
|
4567
4575
|
}
|
|
4568
4576
|
};
|
|
4569
|
-
|
|
4577
|
+
g(Ot, "type", Ot.register("ESUeViewer", Pn.type, Ot));
|
|
4570
4578
|
let Ji = Ot;
|
|
4571
4579
|
const jt = class jt extends E {
|
|
4572
4580
|
constructor(e, t) {
|
|
@@ -4576,7 +4584,7 @@ const jt = class jt extends E {
|
|
|
4576
4584
|
}
|
|
4577
4585
|
}
|
|
4578
4586
|
};
|
|
4579
|
-
|
|
4587
|
+
g(jt, "type", jt.register("ESUeViewer", Mn.type, jt));
|
|
4580
4588
|
let Gi = jt;
|
|
4581
4589
|
const te = class te extends $ {
|
|
4582
4590
|
constructor(e, t) {
|
|
@@ -4603,7 +4611,7 @@ const te = class te extends $ {
|
|
|
4603
4611
|
}));
|
|
4604
4612
|
}
|
|
4605
4613
|
};
|
|
4606
|
-
|
|
4614
|
+
g(te, "type", te.register("ESUeViewer", $n.type, te));
|
|
4607
4615
|
let Ki = te;
|
|
4608
4616
|
const ee = class ee extends $ {
|
|
4609
4617
|
constructor(e, t) {
|
|
@@ -4623,7 +4631,7 @@ const ee = class ee extends $ {
|
|
|
4623
4631
|
}));
|
|
4624
4632
|
}
|
|
4625
4633
|
};
|
|
4626
|
-
|
|
4634
|
+
g(ee, "type", ee.register("ESUeViewer", Wn.type, ee));
|
|
4627
4635
|
let Xi = ee;
|
|
4628
4636
|
const ie = class ie extends b {
|
|
4629
4637
|
constructor(e, t) {
|
|
@@ -4633,7 +4641,7 @@ const ie = class ie extends b {
|
|
|
4633
4641
|
}
|
|
4634
4642
|
}
|
|
4635
4643
|
};
|
|
4636
|
-
|
|
4644
|
+
g(ie, "type", ie.register("ESUeViewer", vr.type, ie));
|
|
4637
4645
|
let Yi = ie;
|
|
4638
4646
|
const st = class st extends b {
|
|
4639
4647
|
constructor(e, t) {
|
|
@@ -4649,7 +4657,7 @@ const st = class st extends b {
|
|
|
4649
4657
|
}));
|
|
4650
4658
|
}
|
|
4651
4659
|
};
|
|
4652
|
-
|
|
4660
|
+
g(st, "type", st.register("ESUeViewer", An.type, st)), g(st, "propValFuncs", {
|
|
4653
4661
|
...b.propValFuncs,
|
|
4654
4662
|
info: (e) => JSON.stringify(e ?? {})
|
|
4655
4663
|
});
|
|
@@ -4669,7 +4677,7 @@ const qi = (d) => {
|
|
|
4669
4677
|
default:
|
|
4670
4678
|
return "未知错误";
|
|
4671
4679
|
}
|
|
4672
|
-
},
|
|
4680
|
+
}, Eo = (d) => {
|
|
4673
4681
|
switch (d) {
|
|
4674
4682
|
case 0:
|
|
4675
4683
|
return "创建成功";
|
|
@@ -4765,43 +4773,43 @@ const qi = (d) => {
|
|
|
4765
4773
|
{
|
|
4766
4774
|
const l = this.dv(Te(async (c) => {
|
|
4767
4775
|
if (await c.promise(f()), e.lastActorStatus = "null", p.value.type === "ActorTag") {
|
|
4768
|
-
const { actorTag:
|
|
4776
|
+
const { actorTag: v } = p.value;
|
|
4769
4777
|
try {
|
|
4770
|
-
const w = await c.promise(t.bindActorByTag(e.id,
|
|
4778
|
+
const w = await c.promise(t.bindActorByTag(e.id, v));
|
|
4771
4779
|
if (!w) return;
|
|
4772
4780
|
if (w.error !== "") {
|
|
4773
|
-
console.warn(`${e.id} UeESUnrealActor BindActorByTag:${
|
|
4781
|
+
console.warn(`${e.id} UeESUnrealActor BindActorByTag:${v},${w.error}`);
|
|
4774
4782
|
return;
|
|
4775
4783
|
}
|
|
4776
4784
|
if (w.re.type === 0)
|
|
4777
|
-
e.lastActorStatus = "bound", s =
|
|
4785
|
+
e.lastActorStatus = "bound", s = v;
|
|
4778
4786
|
else if (w.re.type === 1)
|
|
4779
|
-
e.lastActorStatus = "bound", s =
|
|
4787
|
+
e.lastActorStatus = "bound", s = v, console.warn(`${e.id} UeESUnrealActor BindActorByTag:${v},${qi(w.re.type)}`);
|
|
4780
4788
|
else {
|
|
4781
|
-
s = void 0, console.warn(`${e.id} UeESUnrealActor BindActorByTag error:${
|
|
4789
|
+
s = void 0, console.warn(`${e.id} UeESUnrealActor BindActorByTag error:${v}, ${qi(w.re.type)}`);
|
|
4782
4790
|
return;
|
|
4783
4791
|
}
|
|
4784
4792
|
} catch (w) {
|
|
4785
|
-
console.warn(`${e.id} UeESUnrealActor BindActorByTag catch error:${
|
|
4793
|
+
console.warn(`${e.id} UeESUnrealActor BindActorByTag catch error:${v}, ${w}`);
|
|
4786
4794
|
return;
|
|
4787
4795
|
}
|
|
4788
4796
|
} else if (p.value.type === "ActorClass") {
|
|
4789
|
-
const { actorClass:
|
|
4797
|
+
const { actorClass: v } = p.value;
|
|
4790
4798
|
try {
|
|
4791
|
-
const w = await c.promise(t.createActorByClass(e.id,
|
|
4799
|
+
const w = await c.promise(t.createActorByClass(e.id, v));
|
|
4792
4800
|
if (!w) return;
|
|
4793
4801
|
if (w.error !== "") {
|
|
4794
|
-
console.warn(`${e.id} UeESUnrealActor CreateActorByClass error :${
|
|
4802
|
+
console.warn(`${e.id} UeESUnrealActor CreateActorByClass error :${v}, ${w.error}`);
|
|
4795
4803
|
return;
|
|
4796
4804
|
}
|
|
4797
4805
|
if (w.re.type === 0)
|
|
4798
|
-
|
|
4806
|
+
v !== "default" && (e.lastActorStatus = "created"), o = v;
|
|
4799
4807
|
else {
|
|
4800
|
-
console.warn(`${e.id} UeESUnrealActor CreateActorByClass error type :${
|
|
4808
|
+
console.warn(`${e.id} UeESUnrealActor CreateActorByClass error type :${v},${Eo(w.re.type)}`);
|
|
4801
4809
|
return;
|
|
4802
4810
|
}
|
|
4803
4811
|
} catch (w) {
|
|
4804
|
-
console.warn(`${e.id} UeESUnrealActor CreateActorByClass error catch :${
|
|
4812
|
+
console.warn(`${e.id} UeESUnrealActor CreateActorByClass error catch :${v}, ${JSON.stringify(w)}`);
|
|
4805
4813
|
return;
|
|
4806
4814
|
}
|
|
4807
4815
|
}
|
|
@@ -4819,13 +4827,13 @@ const qi = (d) => {
|
|
|
4819
4827
|
const c = await Sr(i, e.id, l, u);
|
|
4820
4828
|
e.__callFunctionResultEvent.emit(c);
|
|
4821
4829
|
})), this.d(e.smoothMoveEvent.don((l, u) => {
|
|
4822
|
-
a() ||
|
|
4830
|
+
a() || ke(i, e.id, l, u);
|
|
4823
4831
|
})), this.d(e.smoothMoveWithRotationEvent.don((l, u, c) => {
|
|
4824
4832
|
a() || Pe(i, e.id, l, u, c);
|
|
4825
|
-
})), this.d(e.smoothMoveOnGroundEvent.don((l, u, c,
|
|
4826
|
-
a() || Le(i, e.id, l, u,
|
|
4827
|
-
})), this.d(e.smoothMoveWithRotationOnGroundEvent.don((l, u, c,
|
|
4828
|
-
a() ||
|
|
4833
|
+
})), this.d(e.smoothMoveOnGroundEvent.don((l, u, c, v) => {
|
|
4834
|
+
a() || Le(i, e.id, l, u, v, c);
|
|
4835
|
+
})), this.d(e.smoothMoveWithRotationOnGroundEvent.don((l, u, c, v, w) => {
|
|
4836
|
+
a() || De(i, e.id, l, u, c, v, w);
|
|
4829
4837
|
})), this.d(e.automaticLandingEvent.don((l) => {
|
|
4830
4838
|
if (a()) return;
|
|
4831
4839
|
const u = [e.position[0], e.position[1]];
|
|
@@ -4835,8 +4843,8 @@ const qi = (d) => {
|
|
|
4835
4843
|
})), this.d(e.flyToEvent.don(async (l, u) => {
|
|
4836
4844
|
if (a()) return;
|
|
4837
4845
|
const c = await we(i, e.id, l);
|
|
4838
|
-
let
|
|
4839
|
-
c === void 0 ?
|
|
4846
|
+
let v = "over";
|
|
4847
|
+
c === void 0 ? v = "error" : c.endType === 0 ? v = "over" : c.endType === 1 && (v = "cancelled"), e.flyOverEvent.emit(u, v, t);
|
|
4840
4848
|
})), this.d(e.calcFlyToParamEvent.don(() => {
|
|
4841
4849
|
a() || dt(i, e.id);
|
|
4842
4850
|
})), this.d(e.calcFlyInParamEvent.don(async () => {
|
|
@@ -4853,7 +4861,7 @@ const qi = (d) => {
|
|
|
4853
4861
|
}));
|
|
4854
4862
|
}
|
|
4855
4863
|
};
|
|
4856
|
-
|
|
4864
|
+
g(re, "type", re.register("ESUeViewer", $e.type, re));
|
|
4857
4865
|
let Qi = re;
|
|
4858
4866
|
const ne = class ne extends E {
|
|
4859
4867
|
constructor(e, t) {
|
|
@@ -4863,7 +4871,7 @@ const ne = class ne extends E {
|
|
|
4863
4871
|
}
|
|
4864
4872
|
}
|
|
4865
4873
|
};
|
|
4866
|
-
|
|
4874
|
+
g(ne, "type", ne.register("ESUeViewer", Un.type, ne));
|
|
4867
4875
|
let Vi = ne;
|
|
4868
4876
|
const se = class se extends E {
|
|
4869
4877
|
constructor(e, t) {
|
|
@@ -4873,7 +4881,7 @@ const se = class se extends E {
|
|
|
4873
4881
|
}
|
|
4874
4882
|
}
|
|
4875
4883
|
};
|
|
4876
|
-
|
|
4884
|
+
g(se, "type", se.register("ESUeViewer", Nn.type, se));
|
|
4877
4885
|
let Oi = se;
|
|
4878
4886
|
const oe = class oe extends B {
|
|
4879
4887
|
constructor(e, t) {
|
|
@@ -4883,7 +4891,7 @@ const oe = class oe extends B {
|
|
|
4883
4891
|
}
|
|
4884
4892
|
}
|
|
4885
4893
|
};
|
|
4886
|
-
|
|
4894
|
+
g(oe, "type", oe.register("ESUeViewer", bn.type, oe));
|
|
4887
4895
|
let ji = oe;
|
|
4888
4896
|
const ae = class ae extends $ {
|
|
4889
4897
|
constructor(e, t) {
|
|
@@ -4910,7 +4918,7 @@ const ae = class ae extends $ {
|
|
|
4910
4918
|
}));
|
|
4911
4919
|
}
|
|
4912
4920
|
};
|
|
4913
|
-
|
|
4921
|
+
g(ae, "type", ae.register("ESUeViewer", zn.type, ae));
|
|
4914
4922
|
let tr = ae;
|
|
4915
4923
|
const ot = class ot extends b {
|
|
4916
4924
|
constructor(e, t) {
|
|
@@ -4920,7 +4928,7 @@ const ot = class ot extends b {
|
|
|
4920
4928
|
}
|
|
4921
4929
|
}
|
|
4922
4930
|
};
|
|
4923
|
-
|
|
4931
|
+
g(ot, "type", ot.register("ESUeViewer", Hn.type, ot)), g(ot, "propValFuncs", {
|
|
4924
4932
|
...b.propValFuncs,
|
|
4925
4933
|
info: (e) => JSON.stringify(e ?? {})
|
|
4926
4934
|
});
|
|
@@ -4938,7 +4946,7 @@ const le = class le extends G {
|
|
|
4938
4946
|
});
|
|
4939
4947
|
}
|
|
4940
4948
|
};
|
|
4941
|
-
|
|
4949
|
+
g(le, "type", le.register("ESUeViewer", Jn.type, le));
|
|
4942
4950
|
let ir = le;
|
|
4943
4951
|
I.context.getStrFromEnv(tt.defaults.imgUrl);
|
|
4944
4952
|
const de = class de extends G {
|
|
@@ -4948,7 +4956,7 @@ const de = class de extends G {
|
|
|
4948
4956
|
return;
|
|
4949
4957
|
}
|
|
4950
4958
|
const r = this.disposeVar(new Je());
|
|
4951
|
-
t.add(r), this.dispose(() => t.delete(r)), this.dispose(F([r, "show"], [e, "show"])), r.instanceClass = class extends
|
|
4959
|
+
t.add(r), this.dispose(() => t.delete(r)), this.dispose(F([r, "show"], [e, "show"])), r.instanceClass = class extends C {
|
|
4952
4960
|
// subContainer是外部视口的div容器,可以在这里创建自己需要的DOM元素
|
|
4953
4961
|
// customDiv指向当前的CustomDiv场景对象
|
|
4954
4962
|
// viewer指定当前的视口
|
|
@@ -5003,7 +5011,7 @@ const de = class de extends G {
|
|
|
5003
5011
|
};
|
|
5004
5012
|
}
|
|
5005
5013
|
};
|
|
5006
|
-
|
|
5014
|
+
g(de, "type", de.register("ESUeViewer", tt.type, de));
|
|
5007
5015
|
let rr = de;
|
|
5008
5016
|
const V = class V extends B {
|
|
5009
5017
|
constructor(e, t) {
|
|
@@ -5027,13 +5035,13 @@ const V = class V extends B {
|
|
|
5027
5035
|
}
|
|
5028
5036
|
}
|
|
5029
5037
|
};
|
|
5030
|
-
|
|
5038
|
+
g(V, "type", V.register("ESUeViewer", Gn.type, V)), g(V, "forceUeUpdateProps", [
|
|
5031
5039
|
...B.forceUeUpdateProps
|
|
5032
|
-
]),
|
|
5040
|
+
]), g(V, "propValFuncs", {
|
|
5033
5041
|
...B.propValFuncs
|
|
5034
5042
|
});
|
|
5035
5043
|
let nr = V;
|
|
5036
|
-
async function
|
|
5044
|
+
async function So(d) {
|
|
5037
5045
|
navigator.clipboard.writeText(d).then(function() {
|
|
5038
5046
|
console.log("复制成功");
|
|
5039
5047
|
}, function(e) {
|
|
@@ -5047,7 +5055,7 @@ const ce = class ce extends G {
|
|
|
5047
5055
|
return;
|
|
5048
5056
|
}
|
|
5049
5057
|
const r = this.disposeVar(new Je());
|
|
5050
|
-
t.add(r), this.dispose(() => t.delete(r)), r.instanceClass = class extends
|
|
5058
|
+
t.add(r), this.dispose(() => t.delete(r)), r.instanceClass = class extends C {
|
|
5051
5059
|
constructor(s, o, h) {
|
|
5052
5060
|
if (super(), this._subContainer = s, !h || !(h instanceof J)) return;
|
|
5053
5061
|
const a = document.createElement("div");
|
|
@@ -5059,7 +5067,7 @@ const ce = class ce extends G {
|
|
|
5059
5067
|
const l = document.createElement("span");
|
|
5060
5068
|
f.appendChild(l), l.addEventListener("dblclick", function() {
|
|
5061
5069
|
let c = l.innerHTML;
|
|
5062
|
-
c.startsWith("鼠标位置") && (c = c.slice(5)),
|
|
5070
|
+
c.startsWith("鼠标位置") && (c = c.slice(5)), So(c);
|
|
5063
5071
|
}), l.style.cursor = "pointer", this.dispose(() => f.removeChild(l));
|
|
5064
5072
|
const u = document.createElement("span");
|
|
5065
5073
|
a.appendChild(u), this.dispose(() => a.removeChild(u));
|
|
@@ -5088,36 +5096,36 @@ const ce = class ce extends G {
|
|
|
5088
5096
|
});
|
|
5089
5097
|
{
|
|
5090
5098
|
const c = () => {
|
|
5091
|
-
let y = "",
|
|
5099
|
+
let y = "", R = "";
|
|
5092
5100
|
y += `帧率:${h.getFPS().toFixed(0)}FPS`, p.innerText = y;
|
|
5093
|
-
const
|
|
5094
|
-
y += ` 经度: ${
|
|
5095
|
-
if (
|
|
5096
|
-
const { pickResult:
|
|
5097
|
-
if (
|
|
5098
|
-
const { position: _ } =
|
|
5099
|
-
|
|
5101
|
+
const m = t.getCurrentCameraInfo();
|
|
5102
|
+
y += ` 经度: ${m.position[0].toFixed(5)}° 纬度: ${m.position[1].toFixed(5)}° 高度: ${m.position[2].toFixed(2)}米 偏航角: ${m.rotation[0].toFixed(2)}° 俯仰角: ${m.rotation[1].toFixed(2)}° 翻滚角:${m.rotation[2].toFixed(2)}° `, p.innerText = y, t.pick().then((T) => {
|
|
5103
|
+
if (T) {
|
|
5104
|
+
const { pickResult: S } = T;
|
|
5105
|
+
if (S && S.position) {
|
|
5106
|
+
const { position: _ } = S;
|
|
5107
|
+
R += `鼠标位置:${_[0].toFixed(5)}° ${_[1].toFixed(5)}° ${_[2].toFixed(2)}m`;
|
|
5100
5108
|
} else
|
|
5101
|
-
|
|
5102
|
-
l.innerText =
|
|
5109
|
+
R += "暂时无法获取鼠标位置...";
|
|
5110
|
+
l.innerText = R;
|
|
5103
5111
|
}
|
|
5104
|
-
}).catch((
|
|
5105
|
-
console.log(
|
|
5112
|
+
}).catch((T) => {
|
|
5113
|
+
console.log(T);
|
|
5106
5114
|
});
|
|
5107
5115
|
};
|
|
5108
|
-
let
|
|
5116
|
+
let v;
|
|
5109
5117
|
const w = async () => {
|
|
5110
|
-
c(), e.show ? (a.style.display = "flex",
|
|
5118
|
+
c(), e.show ? (a.style.display = "flex", v = setInterval(() => {
|
|
5111
5119
|
c();
|
|
5112
|
-
}, 1e3)) : (a.style.display = "none", clearInterval(
|
|
5120
|
+
}, 1e3)) : (a.style.display = "none", clearInterval(v));
|
|
5113
5121
|
};
|
|
5114
|
-
this.dispose(e.showChanged.disposableOn(w)), w(), this.dispose(() => clearInterval(
|
|
5122
|
+
this.dispose(e.showChanged.disposableOn(w)), w(), this.dispose(() => clearInterval(v));
|
|
5115
5123
|
}
|
|
5116
5124
|
}
|
|
5117
5125
|
};
|
|
5118
5126
|
}
|
|
5119
5127
|
};
|
|
5120
|
-
|
|
5128
|
+
g(ce, "type", ce.register("ESUeViewer", A.type, ce));
|
|
5121
5129
|
let sr = ce;
|
|
5122
5130
|
const ue = class ue extends E {
|
|
5123
5131
|
constructor(e, t) {
|
|
@@ -5127,12 +5135,12 @@ const ue = class ue extends E {
|
|
|
5127
5135
|
}
|
|
5128
5136
|
}
|
|
5129
5137
|
};
|
|
5130
|
-
|
|
5138
|
+
g(ue, "type", ue.register("ESUeViewer", Kn.type, ue));
|
|
5131
5139
|
let or = ue;
|
|
5132
5140
|
const he = class he extends lt {
|
|
5133
5141
|
constructor(t, i) {
|
|
5134
5142
|
super(t, i);
|
|
5135
|
-
|
|
5143
|
+
g(this, "_es3DTileset", this.dv(new me()));
|
|
5136
5144
|
if (!i.viewer) {
|
|
5137
5145
|
console.warn("viewer is undefined!");
|
|
5138
5146
|
return;
|
|
@@ -5140,7 +5148,7 @@ const he = class he extends lt {
|
|
|
5140
5148
|
this.es3DTileset.parentID = t.id;
|
|
5141
5149
|
{
|
|
5142
5150
|
const n = this._es3DTileset;
|
|
5143
|
-
t.components.disposableAdd(n, !0), this.d(F([n, "allowPicking"], [t, "allowPicking"])), this.d(F([n, "collision"], [t, "collision"])), this.d(
|
|
5151
|
+
t.components.disposableAdd(n, !0), this.d(F([n, "allowPicking"], [t, "allowPicking"])), this.d(F([n, "collision"], [t, "collision"])), this.d(D([n, "flyToParam"], [t, "flyToParam"])), this.d(D([n, "flyToParam"], [t, "flyToParam"])), this.d(F([n, "url"], [t, "url"])), this.d(F([n, "actorTag"], [t, "actorTag"])), this.d(F([n, "materialMode"], [t, "materialMode"])), this.d(F([n, "highlight"], [t, "highlight"])), this.d(F([n, "maximumScreenSpaceError"], [t, "maximumScreenSpaceError"])), this.d(F([n, "highlightID"], [t, "highlightID"])), this.d(F([n, "highlightColor"], [t, "highlightColor"])), this.d(D([n, "offset"], [t, "offset"])), this.d(D([n, "rotation"], [t, "rotation"])), this.d(F([n, "czmImageBasedLightingFactor"], [t, "czmImageBasedLightingFactor"])), this.d(F([n, "czmLuminanceAtZenith"], [t, "czmLuminanceAtZenith"])), this.d(F([n, "czmMaximumMemoryUsage"], [t, "czmMaximumMemoryUsage"])), this.d(F([n, "czmClassificationType"], [t, "czmClassificationType"])), this.d(F([n, "czmStyleJson"], [t, "czmStyleJson"])), this.d(F([n, "czmBackFaceCulling"], [t, "czmBackFaceCulling"])), this.d(F([n, "czmDebugShowBoundingVolume"], [t, "czmDebugShowBoundingVolume"])), this.d(F([n, "czmDebugShowContentBoundingVolume"], [t, "czmDebugShowContentBoundingVolume"])), this.d(F([n, "colorBlendMode"], [t, "colorBlendMode"])), this.d(F([n, "cacheBytes"], [t, "cacheBytes"])), this.d(F([n, "clippingPlaneEnabled"], [t, "clippingPlaneEnabled"])), this.d(F([n, "unionClippingRegions"], [t, "unionClippingRegions"])), this.d(F([n, "clippingPlaneEdgeColor"], [t, "clippingPlaneEdgeColor"])), this.d(F([n, "clippingPlaneEdgeWidth"], [t, "clippingPlaneEdgeWidth"])), this.d(F([n, "materialParams"], [t, "materialParams"])), this.d(D([n, "supportEdit"], [t, "supportEdit"])), this.d(D([n, "clippingPlanesId"], [t, "clippingPlanesId"])), this.d(D([n, "clippingPlaneIds"], [t, "clippingPlaneIds"])), this.d(D([n, "flattenedPlaneId"], [t, "flattenedPlaneId"])), this.d(D([n, "flattenedPlaneEnabled"], [t, "flattenedPlaneEnabled"])), this.d(D([n, "clippingPlaneId"], [t, "clippingPlaneId"])), this.d(D([n, "excavateId"], [t, "excavateId"]));
|
|
5144
5152
|
}
|
|
5145
5153
|
{
|
|
5146
5154
|
const n = this._es3DTileset;
|
|
@@ -5187,7 +5195,7 @@ const he = class he extends lt {
|
|
|
5187
5195
|
return this._es3DTileset;
|
|
5188
5196
|
}
|
|
5189
5197
|
};
|
|
5190
|
-
|
|
5198
|
+
g(he, "type", he.register("ESUeViewer", Xn.type, he));
|
|
5191
5199
|
let ar = he;
|
|
5192
5200
|
const pe = class pe extends lt {
|
|
5193
5201
|
constructor(e, t) {
|
|
@@ -5197,9 +5205,9 @@ const pe = class pe extends lt {
|
|
|
5197
5205
|
}
|
|
5198
5206
|
}
|
|
5199
5207
|
};
|
|
5200
|
-
|
|
5208
|
+
g(pe, "type", pe.register("ESUeViewer", Yn.type, pe));
|
|
5201
5209
|
let lr = pe;
|
|
5202
|
-
const
|
|
5210
|
+
const ge = class ge extends $ {
|
|
5203
5211
|
constructor(e, t) {
|
|
5204
5212
|
super(e, t);
|
|
5205
5213
|
const i = t.viewer;
|
|
@@ -5225,9 +5233,9 @@ const ve = class ve extends $ {
|
|
|
5225
5233
|
this.dispose(n.disposableOn(r)), this.dispose(e.createdEvent.disposableOn(r));
|
|
5226
5234
|
}
|
|
5227
5235
|
};
|
|
5228
|
-
|
|
5229
|
-
let dr =
|
|
5230
|
-
const
|
|
5236
|
+
g(ge, "type", ge.register("ESUeViewer", ye.type, ge));
|
|
5237
|
+
let dr = ge;
|
|
5238
|
+
const ve = class ve extends E {
|
|
5231
5239
|
constructor(e, t) {
|
|
5232
5240
|
if (super(e, t), !t.viewer) {
|
|
5233
5241
|
console.warn("viewer is undefined!");
|
|
@@ -5235,8 +5243,8 @@ const ge = class ge extends E {
|
|
|
5235
5243
|
}
|
|
5236
5244
|
}
|
|
5237
5245
|
};
|
|
5238
|
-
|
|
5239
|
-
let cr =
|
|
5246
|
+
g(ve, "type", ve.register("ESUeViewer", Zn.type, ve));
|
|
5247
|
+
let cr = ve;
|
|
5240
5248
|
const fe = class fe extends B {
|
|
5241
5249
|
constructor(e, t) {
|
|
5242
5250
|
super(e, t);
|
|
@@ -5262,10 +5270,10 @@ const fe = class fe extends B {
|
|
|
5262
5270
|
}));
|
|
5263
5271
|
}
|
|
5264
5272
|
};
|
|
5265
|
-
|
|
5273
|
+
g(fe, "type", fe.register("ESUeViewer", qn.type, fe));
|
|
5266
5274
|
let ur = fe, We;
|
|
5267
5275
|
try {
|
|
5268
|
-
const d = "earthsdk3-ue", e = "3.6.0-beta.
|
|
5276
|
+
const d = "earthsdk3-ue", e = "3.6.0-beta.6", t = "2025-11-27T03:19:13.000Z", i = "北京西部世界科技有限公司", r = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", n = "24b300a1097840722d4cb07aa9237e3b6ba62c73", o = ((Date.now() - 1764213553e3) / 36e5).toFixed(1), h = `%c🌏 ${d}%c ${e}.${n.slice(0, 8)}.${t} (距今${o}个小时)
|
|
5269
5277
|
%c${r ? r + `
|
|
5270
5278
|
` : ""}当前网站正在使用${d},此软件版权归${i}所有
|
|
5271
5279
|
`;
|
|
@@ -5279,7 +5287,7 @@ try {
|
|
|
5279
5287
|
},
|
|
5280
5288
|
// @ts-ignore
|
|
5281
5289
|
get gituri() {
|
|
5282
|
-
return GITURI_ && GITURI_.replace("${commitId}", "
|
|
5290
|
+
return GITURI_ && GITURI_.replace("${commitId}", "24b300a1097840722d4cb07aa9237e3b6ba62c73");
|
|
5283
5291
|
},
|
|
5284
5292
|
// @ts-ignore
|
|
5285
5293
|
get info() {
|
|
@@ -5287,7 +5295,7 @@ try {
|
|
|
5287
5295
|
},
|
|
5288
5296
|
// @ts-ignore
|
|
5289
5297
|
get date() {
|
|
5290
|
-
return "2025-11-
|
|
5298
|
+
return "2025-11-27T03:19:13.000Z";
|
|
5291
5299
|
},
|
|
5292
5300
|
// @ts-ignore
|
|
5293
5301
|
get author() {
|
|
@@ -5295,7 +5303,7 @@ try {
|
|
|
5295
5303
|
},
|
|
5296
5304
|
// @ts-ignore
|
|
5297
5305
|
get version() {
|
|
5298
|
-
return "3.6.0-beta.
|
|
5306
|
+
return "3.6.0-beta.6";
|
|
5299
5307
|
},
|
|
5300
5308
|
// @ts-ignore
|
|
5301
5309
|
get name() {
|
|
@@ -5303,7 +5311,7 @@ try {
|
|
|
5303
5311
|
},
|
|
5304
5312
|
// @ts-ignore
|
|
5305
5313
|
get commitId() {
|
|
5306
|
-
return "
|
|
5314
|
+
return "24b300a1097840722d4cb07aa9237e3b6ba62c73";
|
|
5307
5315
|
},
|
|
5308
5316
|
print(a = !1) {
|
|
5309
5317
|
!a && globalThis._xe2_no_copy_print || console.info(
|
|
@@ -5335,12 +5343,12 @@ try {
|
|
|
5335
5343
|
}
|
|
5336
5344
|
export {
|
|
5337
5345
|
J as ESUeViewer,
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5346
|
+
Io as GeoDivFromESImageLabel,
|
|
5347
|
+
Fo as GeoDivFromESTextLabel,
|
|
5348
|
+
os as HighlightFeatureAndFlyToCallFunc,
|
|
5349
|
+
ss as HighlightFeatureCallFunc,
|
|
5350
|
+
ls as SetLayerColorCallFunc,
|
|
5351
|
+
as as SetLayerVisibleCallFunc,
|
|
5344
5352
|
Be as UeCloudViewerBase,
|
|
5345
5353
|
Ue as UeES3DTileset,
|
|
5346
5354
|
je as UeESAlarm,
|
|
@@ -5358,8 +5366,8 @@ export {
|
|
|
5358
5366
|
ui as UeESDirectionMeasurement,
|
|
5359
5367
|
hi as UeESDistanceMeasurement,
|
|
5360
5368
|
pi as UeESDynamicWater,
|
|
5361
|
-
|
|
5362
|
-
|
|
5369
|
+
gi as UeESEntityCluster,
|
|
5370
|
+
vi as UeESExcavate,
|
|
5363
5371
|
fi as UeESFireParticleSystem,
|
|
5364
5372
|
wi as UeESForestTileset,
|
|
5365
5373
|
or as UeESGaussianSplatting,
|
|
@@ -5383,10 +5391,10 @@ export {
|
|
|
5383
5391
|
Ne as UeESLocalPolygon,
|
|
5384
5392
|
Pi as UeESLocalPolygonZ,
|
|
5385
5393
|
Li as UeESLocalRectangle,
|
|
5386
|
-
|
|
5394
|
+
Di as UeESLocalSkyBox,
|
|
5387
5395
|
Tr as UeESLocalVector,
|
|
5388
5396
|
Ke as UeESLocalVector2D,
|
|
5389
|
-
|
|
5397
|
+
ki as UeESLocationMeasurement,
|
|
5390
5398
|
lr as UeESMsTileset,
|
|
5391
5399
|
rr as UeESNavigator,
|
|
5392
5400
|
E as UeESObjectWithLocation,
|
|
@@ -5418,67 +5426,67 @@ export {
|
|
|
5418
5426
|
Oi as UeESViewShed,
|
|
5419
5427
|
sr as UeESViewerStatusBar,
|
|
5420
5428
|
ji as UeESVisibilityAnalysis,
|
|
5421
|
-
|
|
5429
|
+
k as UeESVisualObject,
|
|
5422
5430
|
tr as UeESVolumeMeasurement,
|
|
5423
5431
|
er as UeESWidget,
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5432
|
+
$s as bind3DTilesetByTagCallFunc,
|
|
5433
|
+
Ds as bindActorByTagCallFunc,
|
|
5434
|
+
Us as bindImageryByTagCallFunc,
|
|
5427
5435
|
dt as calcFlyToParamCallFunc,
|
|
5428
5436
|
Sr as callFunctionCallFunc,
|
|
5429
|
-
|
|
5437
|
+
ys as captureCallFunc,
|
|
5430
5438
|
H as changeNavigationModeCallFunc,
|
|
5431
5439
|
We as copyright,
|
|
5432
|
-
|
|
5440
|
+
Ms as createActorByClassCallFunc,
|
|
5433
5441
|
Ir as destroyCallFunc,
|
|
5434
5442
|
Re as flyInCallFunc,
|
|
5435
|
-
|
|
5443
|
+
ts as flyInDefaultCameraCallFunc,
|
|
5436
5444
|
we as flyToCallFunc,
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5445
|
+
ns as generateMemReportCallFunc,
|
|
5446
|
+
Is as getAllSocketNamesByActorTagCallFunc,
|
|
5447
|
+
Ss as getBoundSphereCallFunc,
|
|
5448
|
+
Ts as getBoundSphereWithChildrenCallFunc,
|
|
5449
|
+
Hs as getCameraRelativeHeightCallFunc,
|
|
5450
|
+
Rs as getFillMaterialParamInfoCallFunc,
|
|
5451
|
+
Ps as getGlobalPropertyCallFunc,
|
|
5452
|
+
fs as getHeightByLonLatCallFunc,
|
|
5453
|
+
ws as getHeightByLonLatsCallFunc,
|
|
5454
|
+
zs as getIdByComponentNameAndHitItemCallFunc,
|
|
5455
|
+
Cs as getLonLatAltToScreenPositionCallFunc,
|
|
5456
|
+
Ls as getObjectByInfoCallFunc,
|
|
5457
|
+
Xs as getStatusCallFunc,
|
|
5458
|
+
xs as getStrokeMaterialParamInfoCallFunc,
|
|
5459
|
+
Qs as getTilesetMaterialIDListCallFunc,
|
|
5460
|
+
Es as getVersionCallFunc,
|
|
5461
|
+
Gs as highlightActorByTagCallFunc,
|
|
5462
|
+
rs as mountPakFiles,
|
|
5463
|
+
qs as moveObjectsCallFunc,
|
|
5464
|
+
ms as partialCaptureCallFunc,
|
|
5465
|
+
gs as pickCallFunc,
|
|
5458
5466
|
vs as pickPositionCallFunc,
|
|
5459
|
-
|
|
5460
|
-
|
|
5467
|
+
ps as quitCallFunc,
|
|
5468
|
+
jn as refreshTilesetCallFunc,
|
|
5461
5469
|
Er as resetWithCurrentCameraCallFunc,
|
|
5462
5470
|
ks as restoreOriginalSceneCallFunc,
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5471
|
+
Js as saveStringToFileCallFunc,
|
|
5472
|
+
Ks as sendCustomMessageCallFunc,
|
|
5473
|
+
hs as setGlobalPropertyCallFunc,
|
|
5474
|
+
ds as setNodePositionCallFunc,
|
|
5475
|
+
cs as setNodeRotationCallFunc,
|
|
5476
|
+
us as setNodeScaleCallFunc,
|
|
5477
|
+
ke as smoothMoveCallFunc,
|
|
5470
5478
|
Le as smoothMoveOnGroundCallFunc,
|
|
5471
5479
|
Pe as smoothMoveWithRotationCallFunc,
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5480
|
+
De as smoothMoveWithRotationOnGroundCallFunc,
|
|
5481
|
+
Ys as startEditingCallFunc,
|
|
5482
|
+
es as startVoiceCallFunc,
|
|
5483
|
+
Zs as stopEditingCallFunc,
|
|
5484
|
+
is as stopVoiceCallFunc,
|
|
5485
|
+
Fs as uePositionToLonLatAltCallFunc,
|
|
5486
|
+
As as unBind3DTilesetByIdCallFunc,
|
|
5487
|
+
Ws as unBind3DTilesetByTagCallFunc,
|
|
5488
|
+
Bs as unBindActorByIDCallFunc,
|
|
5489
|
+
_s as unBindActorByTagCallFunc,
|
|
5490
|
+
bs as unBindImageryByIdCallFunc,
|
|
5491
|
+
Ns as unBindImageryByTagCallFunc
|
|
5484
5492
|
};
|