earthsdk3-ue 3.4.0-beta.2 → 3.4.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/earthsdk3-ue.iife.js +4 -4
- package/dist/earthsdk3-ue.js +860 -870
- package/dist/earthsdk3-ue.umd.cjs +3 -3
- package/dist/types/ESUeViewer/ESUeViewer.d.ts +0 -1
- package/dist/types/ESUeViewer/ESUeViewer.d.ts.map +1 -1
- package/dist/types/ESUeViewer/uemsg/CallUeFuncs.d.ts.map +1 -1
- package/dist/types/UeObjects/base/UeESSceneObject/index.d.ts.map +1 -1
- package/dist/types/UeObjects/general/UeES3DTileset/index.d.ts.map +1 -1
- package/dist/types/UeObjects/general/UeESImageryLayer/index.d.ts.map +1 -1
- package/dist/types/UeObjects/general/UeESUnrealActor/index.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/earthsdk3-ue.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var Pr = (c, e, t) => e in c ?
|
|
1
|
+
var kr = Object.defineProperty;
|
|
2
|
+
var Pr = (c, e, t) => e in c ? kr(c, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[e] = t;
|
|
3
3
|
var p = (c, e, t) => Pr(c, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { ESViewer as
|
|
5
|
-
import { reactArrayWithUndefined as
|
|
6
|
-
import { Logger as fr, Config as
|
|
7
|
-
import
|
|
8
|
-
const
|
|
9
|
-
...
|
|
4
|
+
import { ESViewer as Ee, ESSceneObject as E, ESJPickedResult as $e, ViewerCustomInteraction as cr, getGeoBoundingSphereFromPositions as Dr, EngineObject as b, ES3DTileset as ur, defaultFlyInParam as Ne, defaultFlyToParam as ze, ESImageryLayer as G, ESTerrainLayer as Br, ESAlarm as _r, ESApertureEffect as Mr, ESGeoPolygon as $r, ESAreaMeasurement as O, ESBlastParticleSystem as Wr, ESBoxClipping as Ar, ESCameraView as Ur, ESCameraVisibleRange as Nr, ESCar as zr, ESClassification as lt, ESClippingPlane as Hr, ESDataMesh as z, ESDatasmithRuntimeModel as Jr, ESDirectionMeasurement as br, ESDistanceMeasurement as _e, ESLocalPolygon as Gr, ESDynamicWater as Kr, ESEntityCluster as Xr, ESExcavate as Yr, ESFireParticleSystem as Zr, ESForestTileset as U, ESGeoDiv as Ce, ESTextLabel as hr, ESCustomDiv as He, ESImageLabel as pr, ESGeoJson as qr, ESGeoLineString as Qr, ESGeoRectangle as Vr, ESGeoWater as Or, rpToap as Fe, ESGltfModel as jr, ESHeightMeasurement as tn, ESHuman as en, ESLevelRuntimeModel as rn, ESLocalCircle as nn, ESLocalPolygonZ as sn, ESLocalRectangle as on, ESLocalSkyBox as an, ESLocationMeasurement as dn, ESPipeFence as ln, ESPipeline as cn, ESPipeserTileset as un, ESPit as hn, ESPoi2D as pn, ESPoi3D as vn, ESPoiTileset as fn, ESPolygonFence as gn, ESPolygonFlattenedPlane as wn, ESPolygonWithHole as yn, ESRtsTileset as mn, ESSeparateFoliage as Cn, addTreesCallFunc as Fn, removeAllTreesCallFunc as In, updateTreeParamsCallFunc as En, cutDownTreesCallFunc as Sn, growthSimulationCallFunc as Tn, ESSubmergingAnalysis as xn, ESSunshineAnalysis as Rn, ESSurfaceAreaMeasurement as Ln, ESUEWidget as kn, ESUnrealActor as Pn, ESVideoFusion as Dn, ESViewShed as Bn, ESVisibilityAnalysis as _n, ESVolumeMeasurement as Mn, ESWidget as $n, ESHumanPoi as Wn, ESNavigator as j, ESPath as An, ESViewerStatusBar as W, ESGaussianSplatting as Un, ESRtsFeatureEditing as Nn, ESMsTileset as zn, ESGeoExtrudedPolygon as me, ESStaticMesh as Hn, ESSkylineAnalysis as Jn } from "earthsdk3";
|
|
5
|
+
import { reactArrayWithUndefined as vr, Destroyable as m, HasOwner as bn, createGuid as B, Event as T, createAnimateFrame as Je, createInterval as Se, react as $, createNextAnimateFrameEvent as R, ObjResettingWithEvent as x, createProcessingFromAsyncFunc as Te, sleep as Gn, extendClassProps as Kn, reactJson as be, bind as L, track as F, PosFloatDiv as Xn } from "xbsj-base";
|
|
6
|
+
import { Logger as fr, Config as gr, TextParameters as Yn, Flags as ot, NumericParameters as wr, PixelStreaming as yr } from "@epicgames-ps/lib-pixelstreamingfrontend-ue5.2";
|
|
7
|
+
import Zn from "html2canvas";
|
|
8
|
+
const qn = {
|
|
9
|
+
...Ee.defaults,
|
|
10
10
|
geoReferenceOrigin: void 0,
|
|
11
11
|
keepWorldOriginNearCamera: !1,
|
|
12
12
|
useCache: !0,
|
|
@@ -17,14 +17,14 @@ const Zn = {
|
|
|
17
17
|
emissiveIntensity: 1,
|
|
18
18
|
statusUpdateInterval: 0.5,
|
|
19
19
|
baseUrl: window.location.href ?? ""
|
|
20
|
-
},
|
|
21
|
-
...
|
|
20
|
+
}, mr = () => ({
|
|
21
|
+
...Ee.createCommonProps(),
|
|
22
22
|
//语音模式
|
|
23
23
|
apiKey: "",
|
|
24
24
|
apiUrl: "",
|
|
25
25
|
secretKey: "",
|
|
26
26
|
speechVoiceMode: "",
|
|
27
|
-
geoReferenceOrigin:
|
|
27
|
+
geoReferenceOrigin: vr(void 0),
|
|
28
28
|
//地理参考原点
|
|
29
29
|
keepWorldOriginNearCamera: void 0,
|
|
30
30
|
//地理参考的保持世界原点开关
|
|
@@ -44,19 +44,19 @@ const Zn = {
|
|
|
44
44
|
baseUrl: void 0
|
|
45
45
|
//基础路径
|
|
46
46
|
});
|
|
47
|
-
function
|
|
48
|
-
const c =
|
|
47
|
+
function xe() {
|
|
48
|
+
const c = mr(), e = [];
|
|
49
49
|
return Object.keys(c).forEach((t) => {
|
|
50
50
|
e.push(t);
|
|
51
51
|
}), e;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
const { defaults: e } = J, t =
|
|
53
|
+
function Ge(c) {
|
|
54
|
+
const { defaults: e } = J, t = xe(), i = {};
|
|
55
55
|
return t.forEach((r) => {
|
|
56
56
|
i[r] = c[r] ?? e[r];
|
|
57
57
|
}), i;
|
|
58
58
|
}
|
|
59
|
-
const
|
|
59
|
+
const we = async (c, e, t, i, r, n = "default") => {
|
|
60
60
|
const s = await c.callUeFunc({
|
|
61
61
|
f: "flyTo",
|
|
62
62
|
p: { id: e, duration: t, flyToParam: i, position: r, flyMode: n }
|
|
@@ -66,10 +66,10 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
68
68
|
return s.re;
|
|
69
|
-
},
|
|
69
|
+
}, Cr = async (c, e) => {
|
|
70
70
|
const t = await c.callUeFunc({ f: "destroy", p: { id: e } });
|
|
71
71
|
return t.error && console.error(t.error), t;
|
|
72
|
-
},
|
|
72
|
+
}, dt = (c, e) => {
|
|
73
73
|
c.callUeFunc({
|
|
74
74
|
f: "calcFlyToParam",
|
|
75
75
|
p: { id: e }
|
|
@@ -78,7 +78,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
78
78
|
}).catch((t) => {
|
|
79
79
|
console.error("calcFlyToParam:", t);
|
|
80
80
|
});
|
|
81
|
-
},
|
|
81
|
+
}, Qn = (c, e) => {
|
|
82
82
|
c.callUeFunc({
|
|
83
83
|
f: "refreshTileset",
|
|
84
84
|
p: { id: e }
|
|
@@ -87,7 +87,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
87
87
|
}).catch((t) => {
|
|
88
88
|
console.error("refreshTileset:", t);
|
|
89
89
|
});
|
|
90
|
-
},
|
|
90
|
+
}, Re = async (c, e, t, i, r, n = "default") => {
|
|
91
91
|
const s = await c.callUeFunc({
|
|
92
92
|
f: "flyIn",
|
|
93
93
|
p: { id: e, position: t, rotation: i, duration: r, flyMode: n }
|
|
@@ -97,7 +97,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
99
99
|
return s.re;
|
|
100
|
-
},
|
|
100
|
+
}, Vn = async (c, e) => {
|
|
101
101
|
if (!c) {
|
|
102
102
|
console.warn("DefaultCameraFlyIn: viewer is undefined");
|
|
103
103
|
return;
|
|
@@ -111,7 +111,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
111
111
|
return;
|
|
112
112
|
}
|
|
113
113
|
return t;
|
|
114
|
-
},
|
|
114
|
+
}, On = async (c) => {
|
|
115
115
|
if (!c) {
|
|
116
116
|
console.warn("StartVoice:viewer is undefined");
|
|
117
117
|
return;
|
|
@@ -125,7 +125,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
125
125
|
return;
|
|
126
126
|
}
|
|
127
127
|
return e;
|
|
128
|
-
},
|
|
128
|
+
}, jn = async (c) => {
|
|
129
129
|
if (!c) {
|
|
130
130
|
console.warn("StopVoice:viewer is undefined");
|
|
131
131
|
return;
|
|
@@ -139,7 +139,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
139
139
|
return;
|
|
140
140
|
}
|
|
141
141
|
return e;
|
|
142
|
-
},
|
|
142
|
+
}, ts = async (c, e) => {
|
|
143
143
|
if (!c) {
|
|
144
144
|
console.warn("mountPakFiles:viewer is undefined");
|
|
145
145
|
return;
|
|
@@ -153,7 +153,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
153
153
|
return;
|
|
154
154
|
}
|
|
155
155
|
return t;
|
|
156
|
-
},
|
|
156
|
+
}, es = async (c) => {
|
|
157
157
|
if (!c) {
|
|
158
158
|
console.warn("generateMemReport:viewer is undefined");
|
|
159
159
|
return;
|
|
@@ -167,13 +167,13 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
167
167
|
return;
|
|
168
168
|
}
|
|
169
169
|
return e;
|
|
170
|
-
},
|
|
170
|
+
}, Fr = async (c, e) => {
|
|
171
171
|
const t = await c.callUeFunc({
|
|
172
172
|
f: "resetWithCurrentCamera",
|
|
173
173
|
p: { id: e }
|
|
174
174
|
});
|
|
175
175
|
return t.error && console.error("resetWithCurrentCamera:", t.error), t;
|
|
176
|
-
},
|
|
176
|
+
}, Le = (c, e, t, i, r) => {
|
|
177
177
|
c.callUeFunc({
|
|
178
178
|
f: "smoothMoveWithRotation",
|
|
179
179
|
p: {
|
|
@@ -196,7 +196,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
196
196
|
}).catch((s) => {
|
|
197
197
|
console.error("smoothMoveOnGround:", s);
|
|
198
198
|
});
|
|
199
|
-
},
|
|
199
|
+
}, Pe = (c, e, t, i, r, n, s) => {
|
|
200
200
|
c.callUeFunc({
|
|
201
201
|
f: "smoothMoveWithRotationOnGround",
|
|
202
202
|
p: {
|
|
@@ -212,7 +212,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
212
212
|
}).catch((o) => {
|
|
213
213
|
console.error("smoothMoveWithRotationOnGround:", o);
|
|
214
214
|
});
|
|
215
|
-
},
|
|
215
|
+
}, is = (c, e, t) => {
|
|
216
216
|
c.callUeFunc({
|
|
217
217
|
f: "HighlightFeature",
|
|
218
218
|
p: { id: e, HlId: t }
|
|
@@ -221,7 +221,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
221
221
|
}).catch((i) => {
|
|
222
222
|
console.error("HighlightFeature:", i);
|
|
223
223
|
});
|
|
224
|
-
},
|
|
224
|
+
}, rs = (c, e, t, i) => {
|
|
225
225
|
c.callUeFunc({
|
|
226
226
|
f: "HighlightFeatureAndFlyTo",
|
|
227
227
|
p: { id: e, HlId: t, Duration: i }
|
|
@@ -230,7 +230,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
230
230
|
}).catch((r) => {
|
|
231
231
|
console.error("HighlightFeatureAndFlyTo:", r);
|
|
232
232
|
});
|
|
233
|
-
},
|
|
233
|
+
}, ns = (c, e, t) => {
|
|
234
234
|
c.callUeFunc({
|
|
235
235
|
f: "SetLayerVisible",
|
|
236
236
|
p: { id: e, LayerJson: t }
|
|
@@ -239,7 +239,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
239
239
|
}).catch((i) => {
|
|
240
240
|
console.error("SetLayerVisible:", i);
|
|
241
241
|
});
|
|
242
|
-
},
|
|
242
|
+
}, ss = (c, e, t) => {
|
|
243
243
|
c.callUeFunc({
|
|
244
244
|
f: "SetLayerColor",
|
|
245
245
|
p: { id: e, LayerJson: t }
|
|
@@ -248,7 +248,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
248
248
|
}).catch((i) => {
|
|
249
249
|
console.error("SetLayerColor:", i);
|
|
250
250
|
});
|
|
251
|
-
},
|
|
251
|
+
}, De = (c, e, t, i) => {
|
|
252
252
|
c.callUeFunc({
|
|
253
253
|
f: "smoothMove",
|
|
254
254
|
p: {
|
|
@@ -261,13 +261,13 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
261
261
|
}).catch((r) => {
|
|
262
262
|
console.error("smoothMove:", r);
|
|
263
263
|
});
|
|
264
|
-
},
|
|
264
|
+
}, Ir = async (c, e, t, i) => {
|
|
265
265
|
const r = await c.callUeFunc({
|
|
266
266
|
f: "callFunction",
|
|
267
267
|
p: { id: e, fn: t, p: i }
|
|
268
268
|
});
|
|
269
269
|
return r.error && (console.error("callFunction:", r.error), console.error(`id: ${e} fn: ${t} param: ${i}`)), r.re ?? void 0;
|
|
270
|
-
},
|
|
270
|
+
}, os = (c, e, t, i) => {
|
|
271
271
|
c.callUeFunc({
|
|
272
272
|
f: "SetNodePosition",
|
|
273
273
|
p: {
|
|
@@ -280,7 +280,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
280
280
|
}).catch((r) => {
|
|
281
281
|
console.error("SetNodePosition:", r);
|
|
282
282
|
});
|
|
283
|
-
},
|
|
283
|
+
}, as = (c, e, t, i) => {
|
|
284
284
|
c.callUeFunc({
|
|
285
285
|
f: "SetNodeRotation",
|
|
286
286
|
p: {
|
|
@@ -293,7 +293,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
293
293
|
}).catch((r) => {
|
|
294
294
|
console.error("SetNodeRotation:", r);
|
|
295
295
|
});
|
|
296
|
-
},
|
|
296
|
+
}, ds = (c, e, t, i) => {
|
|
297
297
|
c.callUeFunc({
|
|
298
298
|
f: "SetNodeScale",
|
|
299
299
|
p: {
|
|
@@ -307,18 +307,13 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
307
307
|
console.error("SetNodeScale:", r);
|
|
308
308
|
});
|
|
309
309
|
}, H = async (c, e) => {
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
const i = E.getSceneObject(e.geoLineStringId);
|
|
318
|
-
e.geoLineStringId = i ? i.getMainClass().id : e.geoLineStringId;
|
|
319
|
-
break;
|
|
320
|
-
}
|
|
321
|
-
} while (!1);
|
|
310
|
+
if (e.mode == "Follow") {
|
|
311
|
+
const i = E.getSceneObject(e.objectId);
|
|
312
|
+
e.objectId = i ? i.mainClass.id : e.objectId;
|
|
313
|
+
} else if (e.mode == "Line") {
|
|
314
|
+
const i = E.getSceneObject(e.geoLineStringId);
|
|
315
|
+
e.geoLineStringId = i ? i.mainClass.id : e.geoLineStringId;
|
|
316
|
+
}
|
|
322
317
|
const t = await c.callUeFunc({
|
|
323
318
|
f: "ChangeNavigationMode",
|
|
324
319
|
p: e
|
|
@@ -328,7 +323,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
328
323
|
return;
|
|
329
324
|
}
|
|
330
325
|
return t;
|
|
331
|
-
},
|
|
326
|
+
}, ls = async (c, e) => {
|
|
332
327
|
const t = await c.callUeFunc({
|
|
333
328
|
f: "setGlobalProperty",
|
|
334
329
|
p: e
|
|
@@ -338,7 +333,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
338
333
|
return;
|
|
339
334
|
}
|
|
340
335
|
return t;
|
|
341
|
-
},
|
|
336
|
+
}, cs = async (c) => {
|
|
342
337
|
const e = await c.callUeFunc({
|
|
343
338
|
f: "Quit",
|
|
344
339
|
p: void 0
|
|
@@ -348,7 +343,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
348
343
|
return;
|
|
349
344
|
}
|
|
350
345
|
return e;
|
|
351
|
-
},
|
|
346
|
+
}, us = async (c, e, t, i) => {
|
|
352
347
|
console.log("pickCallFunc", e, t, i);
|
|
353
348
|
const r = await c.callUeFunc({
|
|
354
349
|
f: "pick",
|
|
@@ -359,8 +354,8 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
359
354
|
return;
|
|
360
355
|
}
|
|
361
356
|
let n = r.re.id, s, o = n ? E.getSceneObject(n) : void 0;
|
|
362
|
-
return o && o.parentID && (o = E.getSceneObject(o.parentID)), s = new
|
|
363
|
-
},
|
|
357
|
+
return o && o.parentID && (o = E.getSceneObject(o.parentID)), s = new $e(r.re, o, r.re.features, r.re.add, t, e), o && Reflect.has(o, "allowPicking") && Reflect.has(o, "pickedEvent") && (o.allowPicking ?? !1) && o.pickedEvent.emit(s), o && Reflect.has(o, "allowPicking") && !o.allowPicking ? new $e() : s;
|
|
358
|
+
}, hs = async (c, e) => {
|
|
364
359
|
const t = await c.callUeFunc({
|
|
365
360
|
f: "pickPosition",
|
|
366
361
|
p: { screenPosition: e }
|
|
@@ -371,7 +366,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
371
366
|
}
|
|
372
367
|
const { position: i } = t.re;
|
|
373
368
|
return i;
|
|
374
|
-
},
|
|
369
|
+
}, ps = async (c, e, t, i = "ECC_Visibility") => {
|
|
375
370
|
const r = await c.callUeFunc({
|
|
376
371
|
f: "GetHeightByLonLat",
|
|
377
372
|
p: { Lon: e, Lat: t, Channel: i }
|
|
@@ -381,7 +376,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
381
376
|
return;
|
|
382
377
|
}
|
|
383
378
|
return r.re;
|
|
384
|
-
},
|
|
379
|
+
}, vs = async (c, e, t = "ECC_Visibility") => {
|
|
385
380
|
const i = await c.callUeFunc({
|
|
386
381
|
f: "GetHeightsByLonLats",
|
|
387
382
|
p: { LonLats: e, Channel: t }
|
|
@@ -406,7 +401,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
406
401
|
return;
|
|
407
402
|
}
|
|
408
403
|
return i.re.image;
|
|
409
|
-
},
|
|
404
|
+
}, gs = async (c, e, t = [64, 64]) => {
|
|
410
405
|
const i = await c.callUeFunc({
|
|
411
406
|
f: "partialCapture",
|
|
412
407
|
p: {
|
|
@@ -419,13 +414,13 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
419
414
|
return;
|
|
420
415
|
}
|
|
421
416
|
return i.re.image;
|
|
422
|
-
},
|
|
417
|
+
}, ws = async (c, e) => {
|
|
423
418
|
const t = await c.callUeFunc({
|
|
424
419
|
f: "LonLatAltToScreenPosition",
|
|
425
420
|
p: { LonLatAlt: e }
|
|
426
421
|
});
|
|
427
422
|
return t.error && console.warn(t.error), t.re;
|
|
428
|
-
},
|
|
423
|
+
}, ys = async (c, e) => {
|
|
429
424
|
const t = await c.callUeFunc({
|
|
430
425
|
f: "UEPositionToLonLatAlt",
|
|
431
426
|
p: { UEPosition: e }
|
|
@@ -435,7 +430,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
435
430
|
return;
|
|
436
431
|
}
|
|
437
432
|
return [...t.re.LonLatAlt];
|
|
438
|
-
},
|
|
433
|
+
}, ms = async (c, e) => {
|
|
439
434
|
const t = await c.callUeFunc({
|
|
440
435
|
f: "GetAllSocketNamesByActorTag",
|
|
441
436
|
p: { ActorTag: e }
|
|
@@ -445,7 +440,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
445
440
|
return;
|
|
446
441
|
}
|
|
447
442
|
return [...t.re.socketNames];
|
|
448
|
-
},
|
|
443
|
+
}, Cs = async (c) => {
|
|
449
444
|
const e = await c.callUeFunc({
|
|
450
445
|
f: "GetVersion",
|
|
451
446
|
p: void 0
|
|
@@ -455,7 +450,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
455
450
|
return;
|
|
456
451
|
}
|
|
457
452
|
return e.re.version;
|
|
458
|
-
},
|
|
453
|
+
}, Fs = async (c, e) => {
|
|
459
454
|
const t = await c.callUeFunc({
|
|
460
455
|
f: "GetBoundSphere",
|
|
461
456
|
p: { id: e }
|
|
@@ -465,7 +460,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
465
460
|
return;
|
|
466
461
|
}
|
|
467
462
|
return t.re;
|
|
468
|
-
},
|
|
463
|
+
}, Is = async (c, e) => {
|
|
469
464
|
const t = await c.callUeFunc({
|
|
470
465
|
f: "GetBoundSphereWithChildren",
|
|
471
466
|
p: { id: e }
|
|
@@ -475,7 +470,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
475
470
|
return;
|
|
476
471
|
}
|
|
477
472
|
return t.re;
|
|
478
|
-
},
|
|
473
|
+
}, Es = async (c, e) => {
|
|
479
474
|
const t = await c.callUeFunc({
|
|
480
475
|
f: "GetStrokeMaterialParamInfo",
|
|
481
476
|
p: { id: e }
|
|
@@ -485,7 +480,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
485
480
|
return;
|
|
486
481
|
}
|
|
487
482
|
return t.re;
|
|
488
|
-
},
|
|
483
|
+
}, Ss = async (c, e) => {
|
|
489
484
|
const t = await c.callUeFunc({
|
|
490
485
|
f: "GetFillMaterialParamInfo",
|
|
491
486
|
p: { id: e }
|
|
@@ -495,7 +490,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
495
490
|
return;
|
|
496
491
|
}
|
|
497
492
|
return t.re;
|
|
498
|
-
},
|
|
493
|
+
}, Ts = async (c, e) => {
|
|
499
494
|
const t = await c.callUeFunc({
|
|
500
495
|
f: "getGlobalProperty",
|
|
501
496
|
p: { props: e }
|
|
@@ -505,7 +500,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
505
500
|
return;
|
|
506
501
|
}
|
|
507
502
|
return t.re;
|
|
508
|
-
},
|
|
503
|
+
}, xs = async (c, e) => {
|
|
509
504
|
const t = await c.callUeFunc({
|
|
510
505
|
f: "GetObjectByInfo",
|
|
511
506
|
p: { info: e }
|
|
@@ -515,62 +510,62 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
515
510
|
return;
|
|
516
511
|
}
|
|
517
512
|
return t.re;
|
|
518
|
-
},
|
|
513
|
+
}, Rs = async (c, e, t) => await c.callUeFunc({
|
|
519
514
|
f: "BindActorByTag",
|
|
520
515
|
p: { ID: e, ActorTag: t }
|
|
521
|
-
}),
|
|
516
|
+
}), Ls = async (c) => await c.callUeFunc({
|
|
522
517
|
f: "RestoreOriginalScene",
|
|
523
518
|
p: void 0
|
|
524
|
-
}),
|
|
519
|
+
}), ks = async (c, e) => await c.callUeFunc({
|
|
525
520
|
f: "UnBindActorByID",
|
|
526
521
|
p: { ID: e }
|
|
527
522
|
}), Ps = async (c, e) => await c.callUeFunc({
|
|
528
523
|
f: "UnBindActorByTag",
|
|
529
524
|
p: { ActorTag: e }
|
|
530
|
-
}),
|
|
525
|
+
}), Ds = async (c, e, t) => await c.callUeFunc({
|
|
531
526
|
f: "CreateActorByClass",
|
|
532
527
|
p: { ID: e, ActorClass: t }
|
|
533
|
-
}),
|
|
528
|
+
}), Bs = async function(c, e, t) {
|
|
534
529
|
return await c.callUeFunc({
|
|
535
530
|
f: "Bind3DTilesetByTag",
|
|
536
531
|
p: { ID: e, ActorTag: t }
|
|
537
532
|
});
|
|
538
|
-
},
|
|
533
|
+
}, _s = async function(c, e) {
|
|
539
534
|
return await c.callUeFunc({
|
|
540
535
|
f: "UnBind3DTilesetByTag",
|
|
541
536
|
p: { ActorTag: e }
|
|
542
537
|
});
|
|
543
|
-
},
|
|
538
|
+
}, Ms = async function(c, e) {
|
|
544
539
|
return await c.callUeFunc({
|
|
545
540
|
f: "UnBind3DTilesetById",
|
|
546
541
|
p: { ID: e }
|
|
547
542
|
});
|
|
548
|
-
},
|
|
543
|
+
}, $s = async function(c, e, t, i) {
|
|
549
544
|
return await c.callUeFunc({
|
|
550
545
|
f: "BindImageryByTag",
|
|
551
546
|
p: { ID: e, ActorTag: t, ComponentTag: i }
|
|
552
547
|
});
|
|
553
|
-
},
|
|
548
|
+
}, Ws = async function(c, e, t) {
|
|
554
549
|
return await c.callUeFunc({
|
|
555
550
|
f: "UnBindImageryByTag",
|
|
556
551
|
p: { ActorTag: e, ComponentTag: t }
|
|
557
552
|
});
|
|
558
|
-
},
|
|
553
|
+
}, As = async function(c, e) {
|
|
559
554
|
return await c.callUeFunc({
|
|
560
555
|
f: "UnBindImageryById",
|
|
561
556
|
p: { ID: e }
|
|
562
557
|
});
|
|
563
|
-
},
|
|
558
|
+
}, Us = async function(c, e, t, i) {
|
|
564
559
|
return await c.callUeFunc({
|
|
565
560
|
f: "GetIdByComponentNameAndHitItem",
|
|
566
561
|
p: { id: e, ComponentName: t, HitItem: i }
|
|
567
562
|
});
|
|
568
|
-
},
|
|
563
|
+
}, Ns = async function(c, e = "ECC_Visibility") {
|
|
569
564
|
return await c.callUeFunc({
|
|
570
565
|
f: "GetCameraRelativeHeight",
|
|
571
566
|
p: { Channel: e }
|
|
572
567
|
});
|
|
573
|
-
},
|
|
568
|
+
}, zs = async function(c, e, t, i) {
|
|
574
569
|
const r = await c.callUeFunc({
|
|
575
570
|
f: "SaveStringToFile",
|
|
576
571
|
p: {
|
|
@@ -580,7 +575,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
580
575
|
}
|
|
581
576
|
});
|
|
582
577
|
return r.error !== "" && console.warn("SaveStringToFile: ", r.error), r;
|
|
583
|
-
},
|
|
578
|
+
}, Hs = async function(c, e, t = !0) {
|
|
584
579
|
const i = await c.callUeFunc({
|
|
585
580
|
f: "HighlightActorByTag",
|
|
586
581
|
p: {
|
|
@@ -589,13 +584,13 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
589
584
|
}
|
|
590
585
|
});
|
|
591
586
|
return i.error !== "" && console.warn("HighlightActorByTag: ", i.error), i;
|
|
592
|
-
},
|
|
587
|
+
}, Js = async function(c, e) {
|
|
593
588
|
const t = await c.callUeFunc({
|
|
594
589
|
f: "SendCustomMessage",
|
|
595
590
|
p: { Message: e }
|
|
596
591
|
});
|
|
597
592
|
return t.error !== "" && console.warn("SendCustomMessage: ", t.error), t;
|
|
598
|
-
},
|
|
593
|
+
}, bs = async function(c) {
|
|
599
594
|
const e = await c.callUeFunc({
|
|
600
595
|
f: "GetStatus",
|
|
601
596
|
p: void 0
|
|
@@ -605,7 +600,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
605
600
|
return;
|
|
606
601
|
}
|
|
607
602
|
return e.re;
|
|
608
|
-
},
|
|
603
|
+
}, Gs = async (c, e, t, i, r = !0) => {
|
|
609
604
|
const n = await c.callUeFunc({
|
|
610
605
|
f: "startEditing",
|
|
611
606
|
p: {
|
|
@@ -620,7 +615,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
620
615
|
return;
|
|
621
616
|
}
|
|
622
617
|
return n;
|
|
623
|
-
},
|
|
618
|
+
}, Ks = async (c) => {
|
|
624
619
|
const e = await c.callUeFunc({
|
|
625
620
|
f: "stopEditing",
|
|
626
621
|
p: void 0
|
|
@@ -630,7 +625,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
630
625
|
return;
|
|
631
626
|
}
|
|
632
627
|
return e;
|
|
633
|
-
},
|
|
628
|
+
}, Xs = async (c, e, t) => {
|
|
634
629
|
const i = await c.callUeFunc({
|
|
635
630
|
f: "moveObjects",
|
|
636
631
|
p: {
|
|
@@ -643,7 +638,7 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
643
638
|
return;
|
|
644
639
|
}
|
|
645
640
|
return i;
|
|
646
|
-
},
|
|
641
|
+
}, Ys = async (c) => {
|
|
647
642
|
const e = await c.callUeFunc({
|
|
648
643
|
f: "GetTilesetMaterialIDList",
|
|
649
644
|
p: void 0
|
|
@@ -654,11 +649,11 @@ const ye = async (c, e, t, i, r, n = "default") => {
|
|
|
654
649
|
}
|
|
655
650
|
return e.re.materialIDList;
|
|
656
651
|
};
|
|
657
|
-
class
|
|
652
|
+
class Be extends m {
|
|
658
653
|
}
|
|
659
|
-
const
|
|
654
|
+
const Zs = {
|
|
660
655
|
Response: 1
|
|
661
|
-
},
|
|
656
|
+
}, Ie = {
|
|
662
657
|
/*
|
|
663
658
|
* Input Messages. Range = 50..89.
|
|
664
659
|
*/
|
|
@@ -666,7 +661,7 @@ const Ys = {
|
|
|
666
661
|
UIInteraction: 50,
|
|
667
662
|
MouseWheel: 75
|
|
668
663
|
};
|
|
669
|
-
class
|
|
664
|
+
class qs extends bn {
|
|
670
665
|
constructor(t, i) {
|
|
671
666
|
super(t);
|
|
672
667
|
p(this, "_processResponseFn", (t) => this.esUeViewer.processResponse(t));
|
|
@@ -693,15 +688,15 @@ class Zs extends Jn {
|
|
|
693
688
|
if (this.isDestroyed())
|
|
694
689
|
return;
|
|
695
690
|
let n = r.target.result, s = new Uint32Array(n), o = 0;
|
|
696
|
-
if (s[0] ===
|
|
691
|
+
if (s[0] === Zs.Response) {
|
|
697
692
|
o += 4;
|
|
698
693
|
let l = s[o / 4];
|
|
699
694
|
o += 4;
|
|
700
695
|
for (let a = 0; a < l; a++) {
|
|
701
|
-
let
|
|
696
|
+
let f = s[o / 4];
|
|
702
697
|
o += 4;
|
|
703
|
-
let
|
|
704
|
-
o +=
|
|
698
|
+
let v = new TextDecoder("utf-8").decode(n.slice(o, o + f));
|
|
699
|
+
o += f, this._processResponseFn(v);
|
|
705
700
|
}
|
|
706
701
|
}
|
|
707
702
|
}, i.readAsArrayBuffer(t.data);
|
|
@@ -717,7 +712,7 @@ class Zs extends Jn {
|
|
|
717
712
|
const i = this.inner;
|
|
718
713
|
if (i.readyState !== WebSocket.OPEN) return;
|
|
719
714
|
const n = new Uint8Array(t)[0];
|
|
720
|
-
if (n >=
|
|
715
|
+
if (n >= Ie.UIInteraction && n <= Ie.MouseWheel) {
|
|
721
716
|
const s = new ArrayBuffer(t.byteLength + 4);
|
|
722
717
|
return new DataView(s).setUint32(0, t.byteLength, !0), new Uint8Array(s, 4).set(new Uint8Array(t)), i.send(new DataView(s)), !0;
|
|
723
718
|
} else
|
|
@@ -740,9 +735,9 @@ class Zs extends Jn {
|
|
|
740
735
|
}
|
|
741
736
|
}
|
|
742
737
|
window.g_emitDescriptor_maxBytes = 3e4;
|
|
743
|
-
let
|
|
738
|
+
let Qs = -1;
|
|
744
739
|
fr.SetLoggerVerbosity(1);
|
|
745
|
-
class
|
|
740
|
+
class Vs extends m {
|
|
746
741
|
constructor(t, i) {
|
|
747
742
|
super();
|
|
748
743
|
p(this, "_eventTarget", new EventTarget());
|
|
@@ -779,7 +774,7 @@ class Qs extends m {
|
|
|
779
774
|
return this.eventTarget.dispatchEvent(t);
|
|
780
775
|
}
|
|
781
776
|
_initPixelStream(t, i) {
|
|
782
|
-
const r = new
|
|
777
|
+
const r = new gr({
|
|
783
778
|
initialSettings: {
|
|
784
779
|
AutoPlayVideo: !0,
|
|
785
780
|
AutoConnect: !0,
|
|
@@ -787,16 +782,16 @@ class Qs extends m {
|
|
|
787
782
|
StartVideoMuted: !1,
|
|
788
783
|
// WaitForStreamer: true,
|
|
789
784
|
SuppressBrowserKeys: !1,
|
|
790
|
-
[
|
|
785
|
+
[Yn.SignallingServerUrl]: i
|
|
791
786
|
}
|
|
792
787
|
});
|
|
793
|
-
return r.setFlagEnabled(ot.BrowserSendOffer, !1), r.setFlagEnabled(ot.HoveringMouseMode, !0), r.setFlagEnabled(ot.MatchViewportResolution, !0), r.setNumericSetting(
|
|
788
|
+
return r.setFlagEnabled(ot.BrowserSendOffer, !1), r.setFlagEnabled(ot.HoveringMouseMode, !0), r.setFlagEnabled(ot.MatchViewportResolution, !0), r.setNumericSetting(wr.MaxReconnectAttempts, 0), new yr(r, { videoElementParent: t });
|
|
794
789
|
}
|
|
795
790
|
get pixelStream() {
|
|
796
791
|
return this._pixelStream;
|
|
797
792
|
}
|
|
798
793
|
_initEsMsgWsWrapper(t) {
|
|
799
|
-
return t ? this.dv(new
|
|
794
|
+
return t ? this.dv(new qs(this, t)) : void 0;
|
|
800
795
|
}
|
|
801
796
|
get esMsgWsWrapper() {
|
|
802
797
|
return this._esMsgWsWrapper;
|
|
@@ -859,15 +854,15 @@ class Qs extends m {
|
|
|
859
854
|
// 发送UI interface
|
|
860
855
|
emitUIInteractionForBigData(t, i) {
|
|
861
856
|
typeof i == "function" && (t.callid = B(), this.uiInteractionCallbacks.set(t.callid, i));
|
|
862
|
-
const r = JSON.stringify(t), n = window.g_emitDescriptor_maxBytes, s = r.length, o = ++
|
|
857
|
+
const r = JSON.stringify(t), n = window.g_emitDescriptor_maxBytes, s = r.length, o = ++Qs;
|
|
863
858
|
if (this.esMsgWsWrapper) {
|
|
864
859
|
if (s < n) {
|
|
865
|
-
this.esMsgWsWrapper.emitDescriptorWithString(
|
|
860
|
+
this.esMsgWsWrapper.emitDescriptorWithString(Ie.UIInteraction, `${o}-0/1-` + r);
|
|
866
861
|
return;
|
|
867
862
|
}
|
|
868
863
|
const l = Math.ceil(s / n) | 0;
|
|
869
|
-
[...new Array(l).keys()].map((
|
|
870
|
-
this.esMsgWsWrapper && this.esMsgWsWrapper.emitDescriptorWithString(
|
|
864
|
+
[...new Array(l).keys()].map((f) => r.slice(f * n, (f + 1) * n)).forEach((f, v) => {
|
|
865
|
+
this.esMsgWsWrapper && this.esMsgWsWrapper.emitDescriptorWithString(Ie.UIInteraction, `${o}-${v}/${l}-` + f);
|
|
871
866
|
});
|
|
872
867
|
}
|
|
873
868
|
}
|
|
@@ -895,12 +890,12 @@ class Qs extends m {
|
|
|
895
890
|
console.log(`resizeUEVideo emitCommand ${t} ${i} begin`), this.emitCommand(r);
|
|
896
891
|
}
|
|
897
892
|
}
|
|
898
|
-
class
|
|
893
|
+
class Os extends m {
|
|
899
894
|
constructor(t, i, r) {
|
|
900
895
|
super();
|
|
901
896
|
p(this, "_instance");
|
|
902
897
|
p(this, "_event", this.dv(new T()));
|
|
903
|
-
this._container = t, this._wsuri = i, this._esmsgWsUri = r, this._instance = this.dv(new
|
|
898
|
+
this._container = t, this._wsuri = i, this._esmsgWsUri = r, this._instance = this.dv(new Vs(this._container, { url: this._wsuri, esmsgWsUri: this._esmsgWsUri })), this.instanceInit();
|
|
904
899
|
}
|
|
905
900
|
get webSocketReady() {
|
|
906
901
|
return this._instance.esWebSocketReady;
|
|
@@ -959,7 +954,7 @@ class Vs extends m {
|
|
|
959
954
|
this._instance.resizeUEVideo(t, i);
|
|
960
955
|
}
|
|
961
956
|
}
|
|
962
|
-
class
|
|
957
|
+
class js extends Be {
|
|
963
958
|
constructor(t, i, r, n) {
|
|
964
959
|
super();
|
|
965
960
|
p(this, "_esueViewerWrapper");
|
|
@@ -977,7 +972,7 @@ class Os extends _e {
|
|
|
977
972
|
p(this, "_webRtcConnected", this.dv($(!1)));
|
|
978
973
|
this._ueViewer = n, console.log("CSTMPSViewer init ! 以官方像素流 + 独立通信的模式启动!");
|
|
979
974
|
const s = this._ueViewer;
|
|
980
|
-
this._esueViewerWrapper = this.dv(new
|
|
975
|
+
this._esueViewerWrapper = this.dv(new Os(t, i, r));
|
|
981
976
|
const o = this._esueViewerWrapper;
|
|
982
977
|
{
|
|
983
978
|
const h = () => o.debug = s.debug ?? !1;
|
|
@@ -1016,7 +1011,7 @@ class Os extends _e {
|
|
|
1016
1011
|
} else h === "webRtcConnected" ? this.webRtcConnected = !0 : h === "videoinited" ? this.videoinited = !0 : h === "esmsgwsopen" && (this.esmsgwsopen = !0);
|
|
1017
1012
|
}));
|
|
1018
1013
|
{
|
|
1019
|
-
const h = this.dv(
|
|
1014
|
+
const h = this.dv(Je());
|
|
1020
1015
|
let u, g;
|
|
1021
1016
|
h.start(() => {
|
|
1022
1017
|
if (u !== t.offsetWidth || g !== t.offsetHeight) {
|
|
@@ -1035,7 +1030,7 @@ class Os extends _e {
|
|
|
1035
1030
|
}
|
|
1036
1031
|
}));
|
|
1037
1032
|
let a = 0;
|
|
1038
|
-
const
|
|
1033
|
+
const f = (h) => {
|
|
1039
1034
|
const u = {
|
|
1040
1035
|
n: a++,
|
|
1041
1036
|
tt: Date.now(),
|
|
@@ -1051,26 +1046,26 @@ class Os extends _e {
|
|
|
1051
1046
|
), console.groupEnd()), this._esueViewerWrapper.emitUIInteractionForBigData(u, () => {
|
|
1052
1047
|
this._waitingUeCalls.delete(u);
|
|
1053
1048
|
});
|
|
1054
|
-
},
|
|
1049
|
+
}, v = () => {
|
|
1055
1050
|
if (!l || this._ueFuncWithIdAndResultCallbacks.length === 0) return;
|
|
1056
1051
|
const h = this._ueFuncWithIdAndResultCallbacks.map(([u]) => u);
|
|
1057
1052
|
for (const [u, g] of this._ueFuncWithIdAndResultCallbacks)
|
|
1058
1053
|
this._waitingUeFuncIdAndResultCallbacks.set(u.fid, g);
|
|
1059
1054
|
this._ueFuncWithIdAndResultCallbacks.length = 0;
|
|
1060
1055
|
{
|
|
1061
|
-
const u = window.g_emitDescriptor_maxBytes, g = h.map((
|
|
1056
|
+
const u = window.g_emitDescriptor_maxBytes, g = h.map((P) => ({ f: P, s: JSON.stringify(P).length }));
|
|
1062
1057
|
let w = g.length, y = 0, S = 0, C = [];
|
|
1063
1058
|
do {
|
|
1064
1059
|
do {
|
|
1065
|
-
const { f:
|
|
1066
|
-
if (C.push(
|
|
1060
|
+
const { f: P, s: k } = g[y];
|
|
1061
|
+
if (C.push(P), ++y, S + k > u || C.length >= 20)
|
|
1067
1062
|
break;
|
|
1068
1063
|
} while (y < w);
|
|
1069
|
-
C.length > 0 && (s.debug && console.log(`传送${C.length}条消息...`),
|
|
1064
|
+
C.length > 0 && (s.debug && console.log(`传送${C.length}条消息...`), f([...C]), C.length = 0, S = 0);
|
|
1070
1065
|
} while (y < w);
|
|
1071
1066
|
}
|
|
1072
1067
|
};
|
|
1073
|
-
this.dv(
|
|
1068
|
+
this.dv(Se()).start(v, 50), this.d(() => console.log("UeCloudViewer正在销毁..."));
|
|
1074
1069
|
}
|
|
1075
1070
|
get esueViewerWrapper() {
|
|
1076
1071
|
return this._esueViewerWrapper;
|
|
@@ -1142,28 +1137,28 @@ class Os extends _e {
|
|
|
1142
1137
|
};
|
|
1143
1138
|
}
|
|
1144
1139
|
}
|
|
1145
|
-
function
|
|
1140
|
+
function to(c) {
|
|
1146
1141
|
let e = "";
|
|
1147
1142
|
const t = new Uint8Array(c), i = t.length;
|
|
1148
1143
|
for (let r = 0; r < i; r++)
|
|
1149
1144
|
e += String.fromCharCode(t[r]);
|
|
1150
1145
|
return btoa(e);
|
|
1151
1146
|
}
|
|
1152
|
-
const
|
|
1147
|
+
const eo = (c) => {
|
|
1153
1148
|
const e = {
|
|
1154
1149
|
type: "input",
|
|
1155
|
-
inputdata:
|
|
1150
|
+
inputdata: to(c)
|
|
1156
1151
|
};
|
|
1157
1152
|
return JSON.stringify(e);
|
|
1158
1153
|
};
|
|
1159
|
-
function
|
|
1154
|
+
function io(c) {
|
|
1160
1155
|
return typeof c == "string" ? document.getElementById(c) : c;
|
|
1161
1156
|
}
|
|
1162
1157
|
window.g_emitDescriptor_maxBytes = 3e4;
|
|
1163
1158
|
console.log("全局可设置消息体最大字节, window.g_emitDescriptor_maxBytes 默认 30000 。");
|
|
1164
|
-
let
|
|
1159
|
+
let ro = -1;
|
|
1165
1160
|
fr.SetLoggerVerbosity(1);
|
|
1166
|
-
class
|
|
1161
|
+
class no extends m {
|
|
1167
1162
|
constructor(t, i) {
|
|
1168
1163
|
super();
|
|
1169
1164
|
p(this, "debug", !1);
|
|
@@ -1174,7 +1169,7 @@ class ro extends m {
|
|
|
1174
1169
|
//发送时记录消息,回调函数中对应消息后再删除
|
|
1175
1170
|
p(this, "uiInteractionCallbacks", /* @__PURE__ */ new Map());
|
|
1176
1171
|
this._container = t, this._option = i;
|
|
1177
|
-
const r = new
|
|
1172
|
+
const r = new gr({
|
|
1178
1173
|
initialSettings: {
|
|
1179
1174
|
HoveringMouse: !0,
|
|
1180
1175
|
AutoPlayVideo: !0,
|
|
@@ -1186,21 +1181,21 @@ class ro extends m {
|
|
|
1186
1181
|
},
|
|
1187
1182
|
useUrlParams: !0
|
|
1188
1183
|
});
|
|
1189
|
-
r.setFlagEnabled(ot.BrowserSendOffer, !1), r.setFlagEnabled(ot.HoveringMouseMode, !0), r.setFlagEnabled(ot.MatchViewportResolution, !0), r.setNumericSetting(
|
|
1184
|
+
r.setFlagEnabled(ot.BrowserSendOffer, !1), r.setFlagEnabled(ot.HoveringMouseMode, !0), r.setFlagEnabled(ot.MatchViewportResolution, !0), r.setNumericSetting(wr.MaxReconnectAttempts, 0), this._pixelStream = new yr(r, { videoElementParent: this.container }), this.d(() => {
|
|
1190
1185
|
this._pixelStream.disconnect();
|
|
1191
1186
|
});
|
|
1192
1187
|
{
|
|
1193
1188
|
const n = this.pixelStream.webSocketController.webSocket, s = this._pixelStream._webRtcController.sendMessageController.dataChannelSender.sendData;
|
|
1194
1189
|
this._pixelStream._webRtcController.sendMessageController.dataChannelSender.constructor.prototype.sendData = function(o) {
|
|
1195
|
-
n ? n.send(
|
|
1190
|
+
n ? n.send(eo(o)) : s.call(this, o);
|
|
1196
1191
|
};
|
|
1197
1192
|
}
|
|
1198
1193
|
{
|
|
1199
1194
|
const n = (s) => {
|
|
1200
1195
|
const o = this._pixelStream._webRtcController.mouseController;
|
|
1201
1196
|
setTimeout(() => {
|
|
1202
|
-
const l = o.coordinateConverter.normalizeAndQuantizeUnsigned(s.offsetX, s.offsetY),
|
|
1203
|
-
|
|
1197
|
+
const l = o.coordinateConverter.normalizeAndQuantizeUnsigned(s.offsetX, s.offsetY), f = o.toStreamerMessagesProvider.toStreamerHandlers.get("MouseUp");
|
|
1198
|
+
f && f([s.button, l.x, l.y]), s.preventDefault();
|
|
1204
1199
|
});
|
|
1205
1200
|
};
|
|
1206
1201
|
this.container.addEventListener("dblclick", n), this.d(() => {
|
|
@@ -1237,7 +1232,7 @@ class ro extends m {
|
|
|
1237
1232
|
return this._ueevent;
|
|
1238
1233
|
}
|
|
1239
1234
|
get container() {
|
|
1240
|
-
return
|
|
1235
|
+
return io(this._container);
|
|
1241
1236
|
}
|
|
1242
1237
|
get pixelStream() {
|
|
1243
1238
|
return this._pixelStream;
|
|
@@ -1265,19 +1260,19 @@ class ro extends m {
|
|
|
1265
1260
|
//大数据拆分
|
|
1266
1261
|
emitUIInteractionForBigData(t, i) {
|
|
1267
1262
|
typeof i == "function" && (t.callid = B(), this.uiInteractionCallbacks.set(t.callid, i));
|
|
1268
|
-
const r = JSON.stringify(t), n = window.g_emitDescriptor_maxBytes ?? 3e4, s = r.length, o = ++
|
|
1263
|
+
const r = JSON.stringify(t), n = window.g_emitDescriptor_maxBytes ?? 3e4, s = r.length, o = ++ro;
|
|
1269
1264
|
if (s < n) {
|
|
1270
|
-
const
|
|
1265
|
+
const f = {
|
|
1271
1266
|
type: "earthsdk",
|
|
1272
1267
|
time: (/* @__PURE__ */ new Date()).getTime(),
|
|
1273
1268
|
params: `${o}-0/1-` + r
|
|
1274
1269
|
};
|
|
1275
|
-
this.sendData(JSON.stringify(
|
|
1270
|
+
this.sendData(JSON.stringify(f));
|
|
1276
1271
|
return;
|
|
1277
1272
|
}
|
|
1278
1273
|
const l = Math.ceil(s / n) | 0;
|
|
1279
|
-
[...new Array(l).keys()].map((
|
|
1280
|
-
const d = { type: "earthsdk", time: (/* @__PURE__ */ new Date()).getTime(), params: `${o}-${
|
|
1274
|
+
[...new Array(l).keys()].map((f) => r.slice(f * n, (f + 1) * n)).forEach((f, v) => {
|
|
1275
|
+
const d = { type: "earthsdk", time: (/* @__PURE__ */ new Date()).getTime(), params: `${o}-${v}/${l}-` + f };
|
|
1281
1276
|
this.sendData(JSON.stringify(d));
|
|
1282
1277
|
});
|
|
1283
1278
|
}
|
|
@@ -1318,12 +1313,12 @@ class ro extends m {
|
|
|
1318
1313
|
console.log(`resizeUEVideo emitCommand ${t} ${i} begin`), this.emitCommand(r);
|
|
1319
1314
|
}
|
|
1320
1315
|
}
|
|
1321
|
-
class
|
|
1316
|
+
class so extends m {
|
|
1322
1317
|
constructor(t, i, r) {
|
|
1323
1318
|
super();
|
|
1324
1319
|
p(this, "_instance");
|
|
1325
1320
|
p(this, "_event", this.dv(new T()));
|
|
1326
|
-
this._container = t, this._wsuri = i, this._esmsgWsUri = r, this._instance = this.dv(new
|
|
1321
|
+
this._container = t, this._wsuri = i, this._esmsgWsUri = r, this._instance = this.dv(new no(this._container, { ws: this._wsuri })), this.d(this._instance.connected.don((n) => {
|
|
1327
1322
|
this._event.emit(n, n), console.log(`%c[EarthSDK] ${n}`, "background: #a6ec99; color: black");
|
|
1328
1323
|
})), this.d(this._instance.error.don((n) => {
|
|
1329
1324
|
this._event.emit("errorEvent", n), console.log(`%c[EarthSDK] ${n}`, "background: red; color: black");
|
|
@@ -1362,7 +1357,7 @@ class no extends m {
|
|
|
1362
1357
|
this._instance.resizeUEVideo(t, i);
|
|
1363
1358
|
}
|
|
1364
1359
|
}
|
|
1365
|
-
class
|
|
1360
|
+
class oo extends Be {
|
|
1366
1361
|
constructor(t, i, r, n) {
|
|
1367
1362
|
super();
|
|
1368
1363
|
p(this, "_videoInitialized", this.dv($(!1)));
|
|
@@ -1377,7 +1372,7 @@ class so extends _e {
|
|
|
1377
1372
|
p(this, "_errorEvent", this.dv(new T()));
|
|
1378
1373
|
p(this, "_readyEvent", this.dv(new T()));
|
|
1379
1374
|
this._ueViewer = n, console.log("INNPSViewer init ! 以内置信令服务器模式启动!");
|
|
1380
|
-
const s = this._ueViewer, o = this.dv(new
|
|
1375
|
+
const s = this._ueViewer, o = this.dv(new so(t, i, r));
|
|
1381
1376
|
this._ue5ViewerWrapper = o;
|
|
1382
1377
|
{
|
|
1383
1378
|
const d = () => o.debug = s.debug ?? !1;
|
|
@@ -1421,7 +1416,7 @@ class so extends _e {
|
|
|
1421
1416
|
}
|
|
1422
1417
|
}));
|
|
1423
1418
|
{
|
|
1424
|
-
const d = this.dv(
|
|
1419
|
+
const d = this.dv(Je());
|
|
1425
1420
|
let h, u, g;
|
|
1426
1421
|
d.start(() => {
|
|
1427
1422
|
if (h !== t.offsetWidth || u !== t.offsetHeight || g !== s.resolutionScale) {
|
|
@@ -1456,26 +1451,26 @@ class so extends _e {
|
|
|
1456
1451
|
), console.groupEnd()), this._ue5ViewerWrapper.emitUIInteractionForBigData(h, () => {
|
|
1457
1452
|
this._waitingUeCalls.delete(h);
|
|
1458
1453
|
});
|
|
1459
|
-
},
|
|
1454
|
+
}, f = () => {
|
|
1460
1455
|
if (!this._ue5ViewerWrapper.instance.webSocketReady || this._ueFuncWithIdAndResultCallbacks.length === 0) return;
|
|
1461
1456
|
const h = this._ueFuncWithIdAndResultCallbacks.map(([u]) => u);
|
|
1462
1457
|
for (const [u, g] of this._ueFuncWithIdAndResultCallbacks)
|
|
1463
1458
|
this._waitingUeFuncIdAndResultCallbacks.set(u.fid, g);
|
|
1464
1459
|
this._ueFuncWithIdAndResultCallbacks.length = 0;
|
|
1465
1460
|
{
|
|
1466
|
-
const u = window.g_emitDescriptor_maxBytes, g = h.map((
|
|
1461
|
+
const u = window.g_emitDescriptor_maxBytes, g = h.map((P) => ({ f: P, s: JSON.stringify(P).length }));
|
|
1467
1462
|
let w = g.length, y = 0, S = 0, C = [];
|
|
1468
1463
|
do {
|
|
1469
1464
|
do {
|
|
1470
|
-
const { f:
|
|
1471
|
-
if (C.push(
|
|
1465
|
+
const { f: P, s: k } = g[y];
|
|
1466
|
+
if (C.push(P), ++y, S + k > u || C.length >= 20)
|
|
1472
1467
|
break;
|
|
1473
1468
|
} while (y < w);
|
|
1474
1469
|
C.length > 0 && (s.debug && console.log(`传送${C.length}条消息...`), a([...C]), C.length = 0, S = 0);
|
|
1475
1470
|
} while (y < w);
|
|
1476
1471
|
}
|
|
1477
1472
|
};
|
|
1478
|
-
this.dv(
|
|
1473
|
+
this.dv(Se()).start(f, 50), this.d(() => console.log("UeCloudViewer正在销毁..."));
|
|
1479
1474
|
}
|
|
1480
1475
|
get videoInitialized() {
|
|
1481
1476
|
return this._videoInitialized.value;
|
|
@@ -1528,7 +1523,7 @@ class so extends _e {
|
|
|
1528
1523
|
};
|
|
1529
1524
|
}
|
|
1530
1525
|
}
|
|
1531
|
-
class
|
|
1526
|
+
class ao extends m {
|
|
1532
1527
|
/**
|
|
1533
1528
|
* Creates an instance of DLViewer.
|
|
1534
1529
|
* @param {HTMLDivElement} container
|
|
@@ -1568,12 +1563,12 @@ class oo extends m {
|
|
|
1568
1563
|
return this._vIframe;
|
|
1569
1564
|
}
|
|
1570
1565
|
}
|
|
1571
|
-
const
|
|
1566
|
+
const Xe = typeof TextDecoder < "u" ? new TextDecoder() : void 0, lo = (c, e = 0, t = NaN) => {
|
|
1572
1567
|
const i = e + t;
|
|
1573
1568
|
let r = e;
|
|
1574
1569
|
for (; c[r] && !(r >= i); ) ++r;
|
|
1575
|
-
if (r - e > 16 && c.buffer &&
|
|
1576
|
-
return
|
|
1570
|
+
if (r - e > 16 && c.buffer && Xe)
|
|
1571
|
+
return Xe.decode(c.subarray(e, r));
|
|
1577
1572
|
let n = "";
|
|
1578
1573
|
for (; e < r; ) {
|
|
1579
1574
|
var s = c[e++];
|
|
@@ -1596,16 +1591,16 @@ const Ke = typeof TextDecoder < "u" ? new TextDecoder() : void 0, ao = (c, e = 0
|
|
|
1596
1591
|
}
|
|
1597
1592
|
return n;
|
|
1598
1593
|
};
|
|
1599
|
-
class
|
|
1594
|
+
class co extends m {
|
|
1600
1595
|
constructor(e, t, i) {
|
|
1601
1596
|
super();
|
|
1602
1597
|
{
|
|
1603
1598
|
const r = () => {
|
|
1604
|
-
const l =
|
|
1599
|
+
const l = Ge(t);
|
|
1605
1600
|
t.setGlobalProperty(l);
|
|
1606
1601
|
};
|
|
1607
1602
|
r();
|
|
1608
|
-
const n =
|
|
1603
|
+
const n = xe(), s = [];
|
|
1609
1604
|
n.forEach((l) => {
|
|
1610
1605
|
const a = t[l + "Changed"];
|
|
1611
1606
|
s.push(a);
|
|
@@ -1623,7 +1618,7 @@ class lo extends m {
|
|
|
1623
1618
|
} catch (n) {
|
|
1624
1619
|
console.error("ueViewer propChanged:" + n);
|
|
1625
1620
|
}
|
|
1626
|
-
})), t.useCustomInteraction = !1, this.dv(new
|
|
1621
|
+
})), t.useCustomInteraction = !1, this.dv(new cr(t, e)), this.dv(new x(t.statusUpdateIntervalChanged, (r) => {
|
|
1627
1622
|
if ((t.statusUpdateInterval ?? 0.5) === 0) return;
|
|
1628
1623
|
const s = new m();
|
|
1629
1624
|
return s.d(i.disposableOnUeEvent("statusUpdate", (o) => {
|
|
@@ -1671,8 +1666,8 @@ class lo extends m {
|
|
|
1671
1666
|
}));
|
|
1672
1667
|
}
|
|
1673
1668
|
}
|
|
1674
|
-
let
|
|
1675
|
-
class
|
|
1669
|
+
let uo = -1;
|
|
1670
|
+
class ho extends Be {
|
|
1676
1671
|
/**
|
|
1677
1672
|
* Creates an instance of H5Viewer.
|
|
1678
1673
|
* @param {HTMLDivElement} container
|
|
@@ -1690,21 +1685,21 @@ class uo extends _e {
|
|
|
1690
1685
|
p(this, "_waitingUeCalls", /* @__PURE__ */ new Map());
|
|
1691
1686
|
p(this, "_ueEvent", this.dv(new T()));
|
|
1692
1687
|
this._ueViewer = n;
|
|
1693
|
-
const s = this._ueViewer, o = this.dv(new
|
|
1688
|
+
const s = this._ueViewer, o = this.dv(new ao(t, i, r, s));
|
|
1694
1689
|
let l = !1, a = null;
|
|
1695
1690
|
this.d(o.onRuntimeInitialized.don(() => {
|
|
1696
1691
|
var h;
|
|
1697
1692
|
if (l = !0, (h = o == null ? void 0 : o.vIframe) != null && h.contentWindow) {
|
|
1698
1693
|
a = o.vIframe.contentWindow;
|
|
1699
1694
|
const u = o.vIframe.contentWindow.document.getElementById("mainarea");
|
|
1700
|
-
u ? this.dv(new
|
|
1695
|
+
u ? this.dv(new co(u, s, this)) : console.error("h5Container is null");
|
|
1701
1696
|
} else {
|
|
1702
1697
|
console.error("iframeWindow is null");
|
|
1703
1698
|
return;
|
|
1704
1699
|
}
|
|
1705
1700
|
a.UE_JSHTML5Communication ? a.UE_JSHTML5Communication.UESendMessageToJS = (u) => {
|
|
1706
1701
|
try {
|
|
1707
|
-
const g =
|
|
1702
|
+
const g = lo(a.HEAPU8, u), w = JSON.parse(g);
|
|
1708
1703
|
if (s.debug && (console.group(
|
|
1709
1704
|
"%cUE => JS",
|
|
1710
1705
|
" background-color:#006EFF;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"
|
|
@@ -1728,12 +1723,12 @@ class uo extends _e {
|
|
|
1728
1723
|
g && (this._waitingUeFuncIdAndResultCallbacks.delete(u.fid), g(u.r));
|
|
1729
1724
|
}
|
|
1730
1725
|
}));
|
|
1731
|
-
let
|
|
1732
|
-
const
|
|
1726
|
+
let f = 0;
|
|
1727
|
+
const v = () => {
|
|
1733
1728
|
if (!l || !a || !a.UE_JSHTML5Communication || !a.UE_JSHTML5Communication.JSSendMessageToUE || this._ueFuncWithIdAndResultCallbacks.length === 0) return;
|
|
1734
|
-
const h = this._ueFuncWithIdAndResultCallbacks.map(([
|
|
1735
|
-
for (const [
|
|
1736
|
-
this._waitingUeFuncIdAndResultCallbacks.set(
|
|
1729
|
+
const h = this._ueFuncWithIdAndResultCallbacks.map(([k]) => k), u = { n: f++, tt: Date.now(), t: "c", fs: h, callid: B() };
|
|
1730
|
+
for (const [k, A] of this._ueFuncWithIdAndResultCallbacks)
|
|
1731
|
+
this._waitingUeFuncIdAndResultCallbacks.set(k.fid, A);
|
|
1737
1732
|
this._ueFuncWithIdAndResultCallbacks.length = 0, this._waitingUeCalls.set(u.callid, u), s.debug && (console.group(
|
|
1738
1733
|
"%cxe2 => ue",
|
|
1739
1734
|
" background-color:green;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"
|
|
@@ -1741,19 +1736,19 @@ class uo extends _e {
|
|
|
1741
1736
|
`%c${JSON.stringify(u, void 0, "")}`,
|
|
1742
1737
|
" border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"
|
|
1743
1738
|
), console.groupEnd());
|
|
1744
|
-
const g = JSON.stringify(u), w = window.g_emitDescriptor_maxBytes ?? 3e4, y = g.length, S = ++
|
|
1739
|
+
const g = JSON.stringify(u), w = window.g_emitDescriptor_maxBytes ?? 3e4, y = g.length, S = ++uo;
|
|
1745
1740
|
if (y < w) {
|
|
1746
|
-
const
|
|
1747
|
-
a.UE_JSHTML5Communication.JSSendMessageToUE(
|
|
1741
|
+
const k = `${S}-0/1-` + g;
|
|
1742
|
+
a.UE_JSHTML5Communication.JSSendMessageToUE(k);
|
|
1748
1743
|
return;
|
|
1749
1744
|
}
|
|
1750
1745
|
const C = Math.ceil(y / w) | 0;
|
|
1751
|
-
[...new Array(C).keys()].map((
|
|
1752
|
-
const
|
|
1753
|
-
a.UE_JSHTML5Communication.JSSendMessageToUE(
|
|
1746
|
+
[...new Array(C).keys()].map((k) => g.slice(k * w, (k + 1) * w)).forEach((k, A) => {
|
|
1747
|
+
const ye = `${S}-${A}/${C}-` + k;
|
|
1748
|
+
a.UE_JSHTML5Communication.JSSendMessageToUE(ye);
|
|
1754
1749
|
});
|
|
1755
1750
|
};
|
|
1756
|
-
this.dv(
|
|
1751
|
+
this.dv(Se()).start(v, 50);
|
|
1757
1752
|
}
|
|
1758
1753
|
processResponse(t) {
|
|
1759
1754
|
if (this._ueViewer.debug ?? !1)
|
|
@@ -1800,8 +1795,8 @@ class uo extends _e {
|
|
|
1800
1795
|
};
|
|
1801
1796
|
}
|
|
1802
1797
|
}
|
|
1803
|
-
let
|
|
1804
|
-
class
|
|
1798
|
+
let po = -1;
|
|
1799
|
+
class vo extends Be {
|
|
1805
1800
|
constructor(t, i) {
|
|
1806
1801
|
super();
|
|
1807
1802
|
p(this, "_ueFuncResultWithIdsEvent", this.dv(new T()));
|
|
@@ -1816,10 +1811,10 @@ class po extends _e {
|
|
|
1816
1811
|
eventType: "init",
|
|
1817
1812
|
params: {}
|
|
1818
1813
|
};
|
|
1819
|
-
window.ue.es.oncommand(JSON.stringify(s)), n = !0, window.calljs = (
|
|
1820
|
-
if (r.debug && console.log(`calljs eventName:${
|
|
1814
|
+
window.ue.es.oncommand(JSON.stringify(s)), n = !0, window.calljs = (f, v) => {
|
|
1815
|
+
if (r.debug && console.log(`calljs eventName:${f} eventDetailStr:${v}`), f === "ueevent" || f === "commanFinish")
|
|
1821
1816
|
try {
|
|
1822
|
-
const d = JSON.parse(
|
|
1817
|
+
const d = JSON.parse(v);
|
|
1823
1818
|
if (d.t === "cr") {
|
|
1824
1819
|
const h = d;
|
|
1825
1820
|
if (h.frs && this._ueFuncResultWithIdsEvent.emit(h.frs), h.ers)
|
|
@@ -1829,36 +1824,36 @@ class po extends _e {
|
|
|
1829
1824
|
} catch (d) {
|
|
1830
1825
|
console.error(d);
|
|
1831
1826
|
}
|
|
1832
|
-
}, this.dispose(this._ueFuncResultWithIdsEvent.disposableOn((
|
|
1833
|
-
for (const
|
|
1834
|
-
const d = this._waitingUeFuncIdAndResultCallbacks.get(
|
|
1835
|
-
d && (this._waitingUeFuncIdAndResultCallbacks.delete(
|
|
1827
|
+
}, this.dispose(this._ueFuncResultWithIdsEvent.disposableOn((f) => {
|
|
1828
|
+
for (const v of f) {
|
|
1829
|
+
const d = this._waitingUeFuncIdAndResultCallbacks.get(v.fid);
|
|
1830
|
+
d && (this._waitingUeFuncIdAndResultCallbacks.delete(v.fid), d(v.r));
|
|
1836
1831
|
}
|
|
1837
1832
|
}));
|
|
1838
1833
|
let o = 0;
|
|
1839
1834
|
const l = () => {
|
|
1840
1835
|
if (!n || this._ueFuncWithIdAndResultCallbacks.length === 0) return;
|
|
1841
|
-
const
|
|
1836
|
+
const f = this._ueFuncWithIdAndResultCallbacks.map(([h]) => h), v = {
|
|
1842
1837
|
n: o++,
|
|
1843
1838
|
tt: Date.now(),
|
|
1844
1839
|
t: "c",
|
|
1845
|
-
fs:
|
|
1840
|
+
fs: f
|
|
1846
1841
|
};
|
|
1847
1842
|
for (const [h, u] of this._ueFuncWithIdAndResultCallbacks)
|
|
1848
1843
|
this._waitingUeFuncIdAndResultCallbacks.set(h.fid, u);
|
|
1849
|
-
this._ueFuncWithIdAndResultCallbacks.length = 0, this._waitingUeCalls.add(
|
|
1844
|
+
this._ueFuncWithIdAndResultCallbacks.length = 0, this._waitingUeCalls.add(v), r.debug && (console.group(
|
|
1850
1845
|
"%cxe2 => ue",
|
|
1851
1846
|
" background-color:green;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"
|
|
1852
1847
|
), console.log(
|
|
1853
|
-
`%c${JSON.stringify(
|
|
1848
|
+
`%c${JSON.stringify(v, void 0, "")}`,
|
|
1854
1849
|
" border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"
|
|
1855
1850
|
), console.groupEnd());
|
|
1856
|
-
const d = ++
|
|
1857
|
-
window.ue.es.oncommand(`${d}-0/1-` + JSON.stringify(
|
|
1858
|
-
this._waitingUeCalls.delete(
|
|
1851
|
+
const d = ++po;
|
|
1852
|
+
window.ue.es.oncommand(`${d}-0/1-` + JSON.stringify(v)).then(() => {
|
|
1853
|
+
this._waitingUeCalls.delete(v);
|
|
1859
1854
|
});
|
|
1860
1855
|
};
|
|
1861
|
-
this.dv(
|
|
1856
|
+
this.dv(Se()).start(l, 50);
|
|
1862
1857
|
}
|
|
1863
1858
|
callUeFunc(t) {
|
|
1864
1859
|
return new Promise((i) => {
|
|
@@ -1895,11 +1890,11 @@ class fo extends m {
|
|
|
1895
1890
|
super();
|
|
1896
1891
|
{
|
|
1897
1892
|
const i = () => {
|
|
1898
|
-
const o =
|
|
1893
|
+
const o = Ge(e);
|
|
1899
1894
|
e.setGlobalProperty(o);
|
|
1900
1895
|
};
|
|
1901
1896
|
i();
|
|
1902
|
-
const r =
|
|
1897
|
+
const r = xe(), n = [];
|
|
1903
1898
|
r.forEach((o) => {
|
|
1904
1899
|
const l = e[o + "Changed"];
|
|
1905
1900
|
n.push(l);
|
|
@@ -1965,19 +1960,19 @@ class fo extends m {
|
|
|
1965
1960
|
}));
|
|
1966
1961
|
}
|
|
1967
1962
|
}
|
|
1968
|
-
class
|
|
1963
|
+
class go extends m {
|
|
1969
1964
|
constructor(e, t, i) {
|
|
1970
1965
|
super();
|
|
1971
1966
|
{
|
|
1972
1967
|
const n = () => {
|
|
1973
|
-
const a =
|
|
1968
|
+
const a = Ge(t);
|
|
1974
1969
|
t.setGlobalProperty(a);
|
|
1975
1970
|
};
|
|
1976
1971
|
n();
|
|
1977
|
-
const s =
|
|
1972
|
+
const s = xe(), o = [];
|
|
1978
1973
|
s.forEach((a) => {
|
|
1979
|
-
const
|
|
1980
|
-
o.push(
|
|
1974
|
+
const f = t[a + "Changed"];
|
|
1975
|
+
o.push(f);
|
|
1981
1976
|
});
|
|
1982
1977
|
const l = this.dv(R(...o));
|
|
1983
1978
|
this.d(l.don(n));
|
|
@@ -1998,8 +1993,8 @@ class vo extends m {
|
|
|
1998
1993
|
r && e && e.removeChild(r);
|
|
1999
1994
|
});
|
|
2000
1995
|
{
|
|
2001
|
-
const n = (a,
|
|
2002
|
-
window.ue.esinput.setinterceptevent(
|
|
1996
|
+
const n = (a, f) => {
|
|
1997
|
+
window.ue.esinput.setinterceptevent(f), a.preventDefault();
|
|
2003
1998
|
}, s = (a) => {
|
|
2004
1999
|
n(a, !1);
|
|
2005
2000
|
}, o = (a) => {
|
|
@@ -2011,7 +2006,7 @@ class vo extends m {
|
|
|
2011
2006
|
r.removeEventListener("mouseenter", s), r.removeEventListener("mouseleave", o), r.removeEventListener("mousemove", l);
|
|
2012
2007
|
});
|
|
2013
2008
|
}
|
|
2014
|
-
t.useCustomInteraction = !1, this.dv(new
|
|
2009
|
+
t.useCustomInteraction = !1, this.dv(new cr(t, r)), this.dv(new x(t.statusUpdateIntervalChanged, (n) => {
|
|
2015
2010
|
if ((t.statusUpdateInterval ?? 0.5) === 0) return;
|
|
2016
2011
|
const o = new m();
|
|
2017
2012
|
return o.d(i.disposableOnUeEvent("statusUpdate", (l) => {
|
|
@@ -2059,7 +2054,7 @@ class vo extends m {
|
|
|
2059
2054
|
}));
|
|
2060
2055
|
}
|
|
2061
2056
|
}
|
|
2062
|
-
class
|
|
2057
|
+
class wo extends m {
|
|
2063
2058
|
constructor(t, i, r) {
|
|
2064
2059
|
super();
|
|
2065
2060
|
p(this, "_reconnectEvent", this.dv(new T()));
|
|
@@ -2070,8 +2065,8 @@ class go extends m {
|
|
|
2070
2065
|
}), window.ue && window.ue.es)
|
|
2071
2066
|
if (window.ue.esinput) {
|
|
2072
2067
|
r.setStatus("Creating"), console.log("存在(window.ue && window.ue.es && window.ue.esinput 需要适配新版ESWebView 鼠标穿透), 开始创建UeFalseCloudViewer..."), r.setStatusLog("开始创建本地视口...");
|
|
2073
|
-
const l = this.dv(new
|
|
2074
|
-
this.d(() => r.viewer = void 0), r.viewer = l, r.setStatus("Created"), r.setStatusLog("本地视口创建成功!"), this.dv(new
|
|
2068
|
+
const l = this.dv(new vo(t, r));
|
|
2069
|
+
this.d(() => r.viewer = void 0), r.viewer = l, r.setStatus("Created"), r.setStatusLog("本地视口创建成功!"), this.dv(new go(t, r, l));
|
|
2075
2070
|
} else
|
|
2076
2071
|
r.setStatus("Error"), r.setStatusLog("请升级 ESWebView !");
|
|
2077
2072
|
else if (n(i.options, "ws") || n(i.options, "uri") && n(i.options, "app")) {
|
|
@@ -2080,58 +2075,58 @@ class go extends m {
|
|
|
2080
2075
|
this.d(() => {
|
|
2081
2076
|
r.setStatus("Raw"), r.setStatusLog(""), t && l && t.removeChild(l) && (l = void 0);
|
|
2082
2077
|
});
|
|
2083
|
-
const a = this.dv(
|
|
2078
|
+
const a = this.dv(Te(async (f) => {
|
|
2084
2079
|
r.viewer && !r.viewer.isDestroyed() && r.viewer.destroy(), r.viewer = void 0, l && t.removeChild(l) && (l = void 0), l = document.createElement("div"), l.setAttribute("earthsdk3-ue", "earthsdk3-ue-videoContainer"), l.style.cssText = "position:relative; height: 100%;width:100%;", t.appendChild(l);
|
|
2085
|
-
let
|
|
2080
|
+
let v, d, h;
|
|
2086
2081
|
if (n(i.options, "ws")) {
|
|
2087
2082
|
const { ws: y, esmsg: S, uselnternalSignallingServer: C } = i.options;
|
|
2088
|
-
|
|
2083
|
+
v = y, d = S, h = C ?? !1;
|
|
2089
2084
|
}
|
|
2090
2085
|
if (n(i.options, "uri") && n(i.options, "app")) {
|
|
2091
2086
|
const { offsetWidth: y, offsetHeight: S } = l;
|
|
2092
|
-
let { uri: C, app:
|
|
2087
|
+
let { uri: C, app: P, token: k } = i.options;
|
|
2093
2088
|
C.endsWith("/") || (C += "/");
|
|
2094
|
-
const A =
|
|
2095
|
-
console.log(`请求信令服务器: ${C}instance${
|
|
2096
|
-
const
|
|
2089
|
+
const A = k ? `?essstoken=${k}` : "", ye = `/${P}/${y ?? 1920}/${S ?? 1080}` + A;
|
|
2090
|
+
console.log(`请求信令服务器: ${C}instance${ye}`);
|
|
2091
|
+
const Sr = await f.promise(fetch(`${C}instance${ye}`, { method: "GET" })), V = await f.promise(Sr.json());
|
|
2097
2092
|
if (V && V.status !== "ok") {
|
|
2098
2093
|
r.setStatus("Error"), r.setStatusLog(`信令服务器请求失败 ${V.status}`), this._reconnectEvent.emit(void 0);
|
|
2099
2094
|
return;
|
|
2100
2095
|
} else {
|
|
2101
|
-
console.log(`信令服务器请求成功! ${JSON.stringify(V, void 0, " ")}`), await
|
|
2102
|
-
const { server:
|
|
2103
|
-
if (!
|
|
2096
|
+
console.log(`信令服务器请求成功! ${JSON.stringify(V, void 0, " ")}`), await Gn(2e3);
|
|
2097
|
+
const { server: Tr, esmsg: xr, instanceId: Rr, useInternalSignallingServer: Lr } = V;
|
|
2098
|
+
if (!Rr) {
|
|
2104
2099
|
r.setStatus("Error"), r.setStatusLog("检查信令服务器版本,返回数据错误! "), console.log("信令服务器返回数据错误!不包含instanceId!请升级到 ESSS V3.0+ 版本!"), this._reconnectEvent.emit(void 0);
|
|
2105
2100
|
return;
|
|
2106
2101
|
}
|
|
2107
|
-
|
|
2102
|
+
v = Tr, d = xr, h = Lr ?? !1, r.esssResponse = V;
|
|
2108
2103
|
}
|
|
2109
2104
|
}
|
|
2110
|
-
const u = this.dv(h ? new
|
|
2105
|
+
const u = this.dv(h ? new oo(l, v, d, r) : new js(l, v, d, r));
|
|
2111
2106
|
this.d(() => r.viewer = void 0), this.d(u.errorEvent.don((y) => {
|
|
2112
2107
|
const S = `[${y}]:像素流连接错误!`;
|
|
2113
2108
|
r.setStatus("Error"), r.setStatusLog(S), this._reconnectEvent.emit(u);
|
|
2114
|
-
})), await
|
|
2109
|
+
})), await f.promise(new Promise((y) => this.d(u.readyEvent.donce(y)))), r.setStatus("Created"), r.setStatusLog("云渲染视口创建成功!"), s = 0, o && clearTimeout(o), o = void 0;
|
|
2115
2110
|
const { offsetWidth: g, offsetHeight: w } = l;
|
|
2116
2111
|
u.resize(g * window.devicePixelRatio, w * window.devicePixelRatio), r.viewer = u, this.d(() => r.viewer = void 0), this.dv(new fo(r, u));
|
|
2117
2112
|
}));
|
|
2118
|
-
a.start(), this.d(this._reconnectEvent.don((
|
|
2119
|
-
o === void 0 && (
|
|
2113
|
+
a.start(), this.d(this._reconnectEvent.don((f) => {
|
|
2114
|
+
o === void 0 && (f && !f.isDestroyed() && f.destroy(), r.viewer && !r.viewer.isDestroyed() && r.viewer.destroy(), r.viewer = void 0, r.autoReconnect && (r.setStatus("Reconnecting"), r.setStatusLog("正在尝试重新连接..."), s = s + 5e3 > 3e4 ? 3e4 : s + 5e3, console.warn(`间隔:${s / 1e3}s,正在尝试重新连接...`), o = window.setTimeout(() => {
|
|
2120
2115
|
a.restart();
|
|
2121
2116
|
}, s)));
|
|
2122
|
-
})), this.d(a.errorEvent.don((
|
|
2123
|
-
r.setStatus("Error"), r.setStatusLog("云渲染视口创建失败!"), console.warn("云渲染视口创建失败!",
|
|
2117
|
+
})), this.d(a.errorEvent.don((f) => {
|
|
2118
|
+
r.setStatus("Error"), r.setStatusLog("云渲染视口创建失败!"), console.warn("云渲染视口创建失败!", f), this._reconnectEvent.emit(void 0);
|
|
2124
2119
|
}));
|
|
2125
2120
|
} else if (n(i.options, "project")) {
|
|
2126
|
-
const l = i, a = l.options.project,
|
|
2121
|
+
const l = i, a = l.options.project, f = l.options.baseUrl;
|
|
2127
2122
|
r.setStatus("Creating"), r.setStatusLog("下载编译中...");
|
|
2128
|
-
const
|
|
2129
|
-
r.viewer =
|
|
2123
|
+
const v = this.dv(new ho(t, a, f, r));
|
|
2124
|
+
r.viewer = v, this.d(() => r.viewer = void 0);
|
|
2130
2125
|
} else
|
|
2131
2126
|
r.setStatus("Error"), r.setStatusLog("视口创建失败!"), console.warn("视口创建失败: 参数错误!");
|
|
2132
2127
|
}
|
|
2133
2128
|
}
|
|
2134
|
-
const K = class K extends
|
|
2129
|
+
const K = class K extends Ee {
|
|
2135
2130
|
constructor(t) {
|
|
2136
2131
|
super(t);
|
|
2137
2132
|
p(this, "_viewer", this.dv($(void 0)));
|
|
@@ -2153,7 +2148,7 @@ const K = class K extends Se {
|
|
|
2153
2148
|
this.viewerChanged.emit(this.viewer);
|
|
2154
2149
|
})), this.dv(new x(this.subContainerChanged, () => {
|
|
2155
2150
|
if (this.setStatus("Raw"), this.setStatusLog(""), !!this.subContainer)
|
|
2156
|
-
return new
|
|
2151
|
+
return new wo(this.subContainer, i, this);
|
|
2157
2152
|
}));
|
|
2158
2153
|
}
|
|
2159
2154
|
get defaultProps() {
|
|
@@ -2196,7 +2191,7 @@ const K = class K extends Se {
|
|
|
2196
2191
|
console.warn("UEPositionToLonLatAlt: viewer is undefined");
|
|
2197
2192
|
return;
|
|
2198
2193
|
}
|
|
2199
|
-
return await
|
|
2194
|
+
return await ys(this.viewer, t);
|
|
2200
2195
|
}
|
|
2201
2196
|
async changeNavigationMode(t) {
|
|
2202
2197
|
if (!this.viewer) {
|
|
@@ -2211,119 +2206,119 @@ const K = class K extends Se {
|
|
|
2211
2206
|
console.warn("resetWithCurrentCamera: viewer is undefined");
|
|
2212
2207
|
return;
|
|
2213
2208
|
}
|
|
2214
|
-
return await
|
|
2209
|
+
return await Fr(this.viewer, t);
|
|
2215
2210
|
}
|
|
2216
2211
|
async getAllSocketNamesByActorTag(t) {
|
|
2217
2212
|
if (!this.viewer) {
|
|
2218
2213
|
console.warn("GetAllSocketNamesByActorTag: viewer is undefined");
|
|
2219
2214
|
return;
|
|
2220
2215
|
}
|
|
2221
|
-
return await
|
|
2216
|
+
return await ms(this.viewer, t);
|
|
2222
2217
|
}
|
|
2223
2218
|
async getBoundSphere(t) {
|
|
2224
2219
|
if (!this.viewer) {
|
|
2225
2220
|
console.warn("getBoundSphere: viewer is undefined");
|
|
2226
2221
|
return;
|
|
2227
2222
|
}
|
|
2228
|
-
return await
|
|
2223
|
+
return await Fs(this.viewer, t);
|
|
2229
2224
|
}
|
|
2230
2225
|
async getBoundSphereWithChildren(t) {
|
|
2231
2226
|
if (!this.viewer) {
|
|
2232
2227
|
console.warn("getBoundSphereWithChildren: viewer is undefined");
|
|
2233
2228
|
return;
|
|
2234
2229
|
}
|
|
2235
|
-
return await
|
|
2230
|
+
return await Is(this.viewer, t);
|
|
2236
2231
|
}
|
|
2237
2232
|
async getStrokeMaterialParamInfo(t) {
|
|
2238
2233
|
if (!this.viewer) {
|
|
2239
2234
|
console.warn("GetStrokeMaterialParamInfo: viewer is undefined");
|
|
2240
2235
|
return;
|
|
2241
2236
|
}
|
|
2242
|
-
return await
|
|
2237
|
+
return await Es(this.viewer, t);
|
|
2243
2238
|
}
|
|
2244
2239
|
async getFillMaterialParamInfo(t) {
|
|
2245
2240
|
if (!this.viewer) {
|
|
2246
2241
|
console.warn("getFillMaterialParamInfo: viewer is undefined");
|
|
2247
2242
|
return;
|
|
2248
2243
|
}
|
|
2249
|
-
return await
|
|
2244
|
+
return await Ss(this.viewer, t);
|
|
2250
2245
|
}
|
|
2251
2246
|
async getGlobalProperty(t) {
|
|
2252
2247
|
if (!this.viewer) {
|
|
2253
2248
|
console.warn("getGlobalProperty: viewer is undefined");
|
|
2254
2249
|
return;
|
|
2255
2250
|
}
|
|
2256
|
-
return await
|
|
2251
|
+
return await Ts(this.viewer, t);
|
|
2257
2252
|
}
|
|
2258
2253
|
async getObjectByInfo(t) {
|
|
2259
2254
|
if (!this.viewer) {
|
|
2260
2255
|
console.warn("GetObjectByInfo: viewer is undefined");
|
|
2261
2256
|
return;
|
|
2262
2257
|
}
|
|
2263
|
-
return await
|
|
2258
|
+
return await xs(this.viewer, t);
|
|
2264
2259
|
}
|
|
2265
2260
|
async defaultCameraFlyIn(t = 1) {
|
|
2266
2261
|
if (!this.viewer) {
|
|
2267
2262
|
console.warn("DefaultCameraFlyIn: viewer is undefined");
|
|
2268
2263
|
return;
|
|
2269
2264
|
}
|
|
2270
|
-
return await
|
|
2265
|
+
return await Vn(this.viewer, t);
|
|
2271
2266
|
}
|
|
2272
2267
|
async startVoice() {
|
|
2273
2268
|
if (!this.viewer) {
|
|
2274
2269
|
console.warn("startVoice:viewer is undefined");
|
|
2275
2270
|
return;
|
|
2276
2271
|
}
|
|
2277
|
-
return await
|
|
2272
|
+
return await On(this.viewer);
|
|
2278
2273
|
}
|
|
2279
2274
|
async stopVoice() {
|
|
2280
2275
|
if (!this.viewer) {
|
|
2281
2276
|
console.warn("startVoice:viewer is undefined");
|
|
2282
2277
|
return;
|
|
2283
2278
|
}
|
|
2284
|
-
return await
|
|
2279
|
+
return await jn(this.viewer);
|
|
2285
2280
|
}
|
|
2286
2281
|
async mountPakFiles(t) {
|
|
2287
2282
|
if (!this.viewer) {
|
|
2288
2283
|
console.warn("mountPakFiles:viewer is undefined");
|
|
2289
2284
|
return;
|
|
2290
2285
|
}
|
|
2291
|
-
return await
|
|
2286
|
+
return await ts(this.viewer, t);
|
|
2292
2287
|
}
|
|
2293
2288
|
async generateMemReport() {
|
|
2294
2289
|
if (!this.viewer) {
|
|
2295
2290
|
console.warn("generateMemReport:viewer is undefined");
|
|
2296
2291
|
return;
|
|
2297
2292
|
}
|
|
2298
|
-
return await
|
|
2293
|
+
return await es(this.viewer);
|
|
2299
2294
|
}
|
|
2300
2295
|
async quit() {
|
|
2301
2296
|
if (!this.viewer) {
|
|
2302
2297
|
console.warn("Quit: viewer is undefined");
|
|
2303
2298
|
return;
|
|
2304
2299
|
}
|
|
2305
|
-
return await
|
|
2300
|
+
return await cs(this.viewer);
|
|
2306
2301
|
}
|
|
2307
2302
|
async bindActorByTag(t, i) {
|
|
2308
2303
|
if (!this.viewer) {
|
|
2309
2304
|
console.warn("BindActorByTag: viewer is undefined");
|
|
2310
2305
|
return;
|
|
2311
2306
|
}
|
|
2312
|
-
return await
|
|
2307
|
+
return await Rs(this.viewer, t, i);
|
|
2313
2308
|
}
|
|
2314
2309
|
async restoreOriginalScene() {
|
|
2315
2310
|
if (!this.viewer) {
|
|
2316
2311
|
console.warn("RestoreOriginalScene: viewer is undefined");
|
|
2317
2312
|
return;
|
|
2318
2313
|
}
|
|
2319
|
-
return await
|
|
2314
|
+
return await Ls(this.viewer);
|
|
2320
2315
|
}
|
|
2321
2316
|
async unBindActorByID(t) {
|
|
2322
2317
|
if (!this.viewer) {
|
|
2323
2318
|
console.warn("UnBindActorByID: viewer is undefined");
|
|
2324
2319
|
return;
|
|
2325
2320
|
}
|
|
2326
|
-
return await
|
|
2321
|
+
return await ks(this.viewer, t);
|
|
2327
2322
|
}
|
|
2328
2323
|
async unBindActorByTag(t) {
|
|
2329
2324
|
if (!this.viewer) {
|
|
@@ -2337,56 +2332,56 @@ const K = class K extends Se {
|
|
|
2337
2332
|
console.warn("CreateActorByClass: viewer is undefined");
|
|
2338
2333
|
return;
|
|
2339
2334
|
}
|
|
2340
|
-
return await
|
|
2335
|
+
return await Ds(this.viewer, t, i);
|
|
2341
2336
|
}
|
|
2342
2337
|
async bind3DTilesetByTag(t, i) {
|
|
2343
2338
|
if (!this.viewer) {
|
|
2344
2339
|
console.warn("Bind3DTilesetByTag: viewer is undefined");
|
|
2345
2340
|
return;
|
|
2346
2341
|
}
|
|
2347
|
-
return await
|
|
2342
|
+
return await Bs(this.viewer, t, i);
|
|
2348
2343
|
}
|
|
2349
2344
|
async unBind3DTilesetByTag(t) {
|
|
2350
2345
|
if (!this.viewer) {
|
|
2351
2346
|
console.warn("UnBind3DTilesetByTag: viewer is undefined");
|
|
2352
2347
|
return;
|
|
2353
2348
|
}
|
|
2354
|
-
return await
|
|
2349
|
+
return await _s(this.viewer, t);
|
|
2355
2350
|
}
|
|
2356
2351
|
async unBind3DTilesetById(t) {
|
|
2357
2352
|
if (!this.viewer) {
|
|
2358
2353
|
console.warn("UnBind3DTilesetById: viewer is undefined");
|
|
2359
2354
|
return;
|
|
2360
2355
|
}
|
|
2361
|
-
return await
|
|
2356
|
+
return await Ms(this.viewer, t);
|
|
2362
2357
|
}
|
|
2363
2358
|
async bindImageryByTag(t, i, r) {
|
|
2364
2359
|
if (!this.viewer) {
|
|
2365
2360
|
console.warn("BindImageryByTag: viewer is undefined");
|
|
2366
2361
|
return;
|
|
2367
2362
|
}
|
|
2368
|
-
return await
|
|
2363
|
+
return await $s(this.viewer, t, i, r);
|
|
2369
2364
|
}
|
|
2370
2365
|
async unBindImageryByTag(t, i) {
|
|
2371
2366
|
if (!this.viewer) {
|
|
2372
2367
|
console.warn("UnBindImageryByTag: viewer is undefined");
|
|
2373
2368
|
return;
|
|
2374
2369
|
}
|
|
2375
|
-
return await
|
|
2370
|
+
return await Ws(this.viewer, t, i);
|
|
2376
2371
|
}
|
|
2377
2372
|
async unBindImageryById(t) {
|
|
2378
2373
|
if (!this.viewer) {
|
|
2379
2374
|
console.warn("UnBindImageryById: viewer is undefined");
|
|
2380
2375
|
return;
|
|
2381
2376
|
}
|
|
2382
|
-
return await
|
|
2377
|
+
return await As(this.viewer, t);
|
|
2383
2378
|
}
|
|
2384
2379
|
async getIdByComponentNameAndHitItem(t, i, r) {
|
|
2385
2380
|
if (!this.viewer) {
|
|
2386
2381
|
console.warn("GetIdByComponentNameAndHitItem: viewer is undefined");
|
|
2387
2382
|
return;
|
|
2388
2383
|
}
|
|
2389
|
-
return await
|
|
2384
|
+
return await Us(this.viewer, t, i, r);
|
|
2390
2385
|
}
|
|
2391
2386
|
/**
|
|
2392
2387
|
* @returns Promise(高度)
|
|
@@ -2398,7 +2393,7 @@ const K = class K extends Se {
|
|
|
2398
2393
|
console.warn("GetCameraRelativeHeight: viewer is undefined");
|
|
2399
2394
|
return;
|
|
2400
2395
|
}
|
|
2401
|
-
return await
|
|
2396
|
+
return await Ns(this.viewer, t);
|
|
2402
2397
|
}
|
|
2403
2398
|
/**
|
|
2404
2399
|
* 保存str到指定目录下
|
|
@@ -2410,28 +2405,28 @@ const K = class K extends Se {
|
|
|
2410
2405
|
console.warn("SaveStringToFile: viewer is undefined");
|
|
2411
2406
|
return;
|
|
2412
2407
|
}
|
|
2413
|
-
return await
|
|
2408
|
+
return await zs(this.viewer, t, i, r);
|
|
2414
2409
|
}
|
|
2415
2410
|
async highlightActorByTag(t, i = !0) {
|
|
2416
2411
|
if (!this.viewer) {
|
|
2417
2412
|
console.warn("HighlightActorByTag: viewer is undefined");
|
|
2418
2413
|
return;
|
|
2419
2414
|
}
|
|
2420
|
-
return await
|
|
2415
|
+
return await Hs(this.viewer, t, i);
|
|
2421
2416
|
}
|
|
2422
2417
|
async sendCustomMessage(t) {
|
|
2423
2418
|
if (!this.viewer) {
|
|
2424
2419
|
console.warn("SendCustomMessage: viewer is undefined");
|
|
2425
2420
|
return;
|
|
2426
2421
|
}
|
|
2427
|
-
return await
|
|
2422
|
+
return await Js(this.viewer, t);
|
|
2428
2423
|
}
|
|
2429
2424
|
async getStatus() {
|
|
2430
2425
|
if (!this.viewer) {
|
|
2431
2426
|
console.warn("GetStatus:viewer is undefined");
|
|
2432
2427
|
return;
|
|
2433
2428
|
}
|
|
2434
|
-
return await
|
|
2429
|
+
return await bs(this.viewer);
|
|
2435
2430
|
}
|
|
2436
2431
|
/**
|
|
2437
2432
|
* 获取场景中可替换的材质列表
|
|
@@ -2441,7 +2436,7 @@ const K = class K extends Se {
|
|
|
2441
2436
|
console.warn("GetTilesetMaterialIDList:viewer is undefined");
|
|
2442
2437
|
return;
|
|
2443
2438
|
}
|
|
2444
|
-
return await
|
|
2439
|
+
return await Ys(this.viewer);
|
|
2445
2440
|
}
|
|
2446
2441
|
//——————————————————————————————————————————
|
|
2447
2442
|
//抽象函数实现------------------------------
|
|
@@ -2452,7 +2447,7 @@ const K = class K extends Se {
|
|
|
2452
2447
|
const [s, o] = t, { x: l, y: a } = this.container.getBoundingClientRect();
|
|
2453
2448
|
n = [l + s, a + o];
|
|
2454
2449
|
}
|
|
2455
|
-
return await
|
|
2450
|
+
return await us(this.viewer, n, i, r);
|
|
2456
2451
|
}
|
|
2457
2452
|
async pickPosition(t) {
|
|
2458
2453
|
if (!this.viewer) return;
|
|
@@ -2461,20 +2456,20 @@ const K = class K extends Se {
|
|
|
2461
2456
|
const [r, n] = t, { x: s, y: o } = this.container.getBoundingClientRect();
|
|
2462
2457
|
i = [s + r, o + n];
|
|
2463
2458
|
}
|
|
2464
|
-
return await
|
|
2459
|
+
return await hs(this.viewer, i);
|
|
2465
2460
|
}
|
|
2466
2461
|
async quickPickPosition(t) {
|
|
2467
2462
|
return await this.pickPosition(t);
|
|
2468
2463
|
}
|
|
2469
2464
|
async flyIn(t, i = [0, 0, 0], r = 1, n = "default") {
|
|
2470
2465
|
if (!this.viewer) return;
|
|
2471
|
-
const s = await
|
|
2466
|
+
const s = await Re(this.viewer, void 0, t, i, r, n);
|
|
2472
2467
|
if (s)
|
|
2473
2468
|
return s.endType === 0 && console.warn(`flyTo:flyTo is end! endType:${s.endType}`), s.endType === 1 && console.warn(`flyTo:飞行中断! endType:${s.endType}`), s;
|
|
2474
2469
|
}
|
|
2475
2470
|
async flyTo(t, i, r = "default") {
|
|
2476
2471
|
if (!this.viewer) return;
|
|
2477
|
-
const n = await
|
|
2472
|
+
const n = await we(this.viewer, void 0, void 0, t, i, r);
|
|
2478
2473
|
if (n)
|
|
2479
2474
|
return n.endType === 0 && console.warn(`flyTo:flyTo is end! endType:${n.endType}`), n.endType === 1 && console.warn(`flyTo:飞行中断! endType:${n.endType}`), n;
|
|
2480
2475
|
}
|
|
@@ -2484,7 +2479,7 @@ const K = class K extends Se {
|
|
|
2484
2479
|
[t[0], t[3], 0],
|
|
2485
2480
|
[t[2], t[3], 0],
|
|
2486
2481
|
[t[2], t[1], 0]
|
|
2487
|
-
], s =
|
|
2482
|
+
], s = Dr(n);
|
|
2488
2483
|
if (!s) return;
|
|
2489
2484
|
const { center: o, radius: l } = s, a = {
|
|
2490
2485
|
distance: i ?? l,
|
|
@@ -2605,16 +2600,16 @@ const K = class K extends Se {
|
|
|
2605
2600
|
async getVersion() {
|
|
2606
2601
|
const t = window.g_XE3CopyRights ?? {};
|
|
2607
2602
|
if (!this.viewer) return t;
|
|
2608
|
-
const i = await
|
|
2603
|
+
const i = await Cs(this.viewer);
|
|
2609
2604
|
return t.esforue = i, t;
|
|
2610
2605
|
}
|
|
2611
2606
|
async getHeightByLonLat(t, i, r = "ECC_Visibility") {
|
|
2612
2607
|
if (!this.viewer) return null;
|
|
2613
|
-
const n = await
|
|
2608
|
+
const n = await ps(this.viewer, t, i, r);
|
|
2614
2609
|
return n && n.height !== void 0 ? n.height : null;
|
|
2615
2610
|
}
|
|
2616
2611
|
async getHeightsByLonLats(t, i = "ECC_Visibility") {
|
|
2617
|
-
return this.viewer ? await
|
|
2612
|
+
return this.viewer ? await vs(this.viewer, t, i) : void 0;
|
|
2618
2613
|
}
|
|
2619
2614
|
async capture(t = 64, i = 64) {
|
|
2620
2615
|
return this.viewer ? await fs(this.viewer, t, i) : void 0;
|
|
@@ -2624,56 +2619,51 @@ const K = class K extends Se {
|
|
|
2624
2619
|
console.warn("partialCapture:viewer is undefined");
|
|
2625
2620
|
return;
|
|
2626
2621
|
}
|
|
2627
|
-
return await
|
|
2622
|
+
return await gs(this.viewer, t, i);
|
|
2628
2623
|
}
|
|
2629
2624
|
async lonLatAltToScreenPosition(t) {
|
|
2630
2625
|
if (!this.viewer) return;
|
|
2631
|
-
const i = await
|
|
2626
|
+
const i = await ws(this.viewer, t);
|
|
2632
2627
|
return i && [i.X, i.Y];
|
|
2633
2628
|
}
|
|
2634
2629
|
//------------------------------抽象函数实现
|
|
2635
2630
|
async setGlobalProperty(t) {
|
|
2636
2631
|
if (this.viewer)
|
|
2637
|
-
return await
|
|
2632
|
+
return await ls(this.viewer, t);
|
|
2638
2633
|
}
|
|
2639
2634
|
async startEditing(t, i, r) {
|
|
2640
2635
|
r = Object.assign({ useKeyToSwitch: !0, callSource: "outer" }, r);
|
|
2641
|
-
const n = t.
|
|
2636
|
+
const n = t.mainClass;
|
|
2642
2637
|
if (!n || !this.viewer || i == null) return;
|
|
2643
2638
|
const s = Array.isArray(i) ? [...i] : [i];
|
|
2644
|
-
return n.editingID = `${r.callSource}_${B()}`, await
|
|
2639
|
+
return n.editingID = `${r.callSource}_${B()}`, await Gs(this.viewer, n.id, n.editingID, s, r.useKeyToSwitch);
|
|
2645
2640
|
}
|
|
2646
2641
|
async stopEditing() {
|
|
2647
2642
|
if (this.viewer)
|
|
2648
|
-
return await
|
|
2643
|
+
return await Ks(this.viewer);
|
|
2649
2644
|
}
|
|
2650
2645
|
async moveObjects(t) {
|
|
2651
2646
|
if (!this.viewer) return;
|
|
2652
2647
|
const i = [], r = B();
|
|
2653
2648
|
for (let n = 0; n < t.length; n++) {
|
|
2654
|
-
const
|
|
2649
|
+
const o = t[n].mainClass;
|
|
2655
2650
|
o.editingID = r, o && i.push(o.id);
|
|
2656
2651
|
}
|
|
2657
2652
|
if (i.length !== 0)
|
|
2658
|
-
return await
|
|
2659
|
-
}
|
|
2660
|
-
getProperties() {
|
|
2661
|
-
return [
|
|
2662
|
-
...super.getProperties()
|
|
2663
|
-
];
|
|
2653
|
+
return await Xs(this.viewer, i, r);
|
|
2664
2654
|
}
|
|
2665
2655
|
};
|
|
2666
|
-
p(K, "type", K.register("ESUeViewer", K)), p(K, "defaults", { ...
|
|
2656
|
+
p(K, "type", K.register("ESUeViewer", K)), p(K, "defaults", { ...qn });
|
|
2667
2657
|
let J = K;
|
|
2668
2658
|
((c) => {
|
|
2669
2659
|
c.createDefaultProps = () => ({
|
|
2670
|
-
...
|
|
2660
|
+
...Ee.createDefaultProps(),
|
|
2671
2661
|
/**
|
|
2672
2662
|
* 新增UE属性步骤!!
|
|
2673
2663
|
* 1. createReactProps 中定义属性
|
|
2674
2664
|
* 2. reactPropDefaults 中定义默认值
|
|
2675
2665
|
*/
|
|
2676
|
-
...
|
|
2666
|
+
...mr(),
|
|
2677
2667
|
//分辨率缩放比例
|
|
2678
2668
|
resolutionScale: 1,
|
|
2679
2669
|
autoReconnect: !1,
|
|
@@ -2684,12 +2674,12 @@ let J = K;
|
|
|
2684
2674
|
customMessageListening: void 0
|
|
2685
2675
|
});
|
|
2686
2676
|
})(J || (J = {}));
|
|
2687
|
-
|
|
2688
|
-
class
|
|
2677
|
+
Kn(J.prototype, J.createDefaultProps);
|
|
2678
|
+
class at extends b {
|
|
2689
2679
|
constructor(e, t) {
|
|
2690
2680
|
super(e, t);
|
|
2691
2681
|
const i = t.viewer;
|
|
2692
|
-
if (i && (e.
|
|
2682
|
+
if (i && (e.mainClass.typeName === e.typeName && this.d(this.createdEvent.don(() => {
|
|
2693
2683
|
const r = this.constructor.propValFuncs, n = e.defaultProps, s = Object.keys(n).filter((d) => r[d] !== null);
|
|
2694
2684
|
s.push(...this.constructor.forceUeUpdateProps);
|
|
2695
2685
|
const o = e.constructor.defaults, l = { val: {} }, a = [];
|
|
@@ -2710,7 +2700,7 @@ class dt extends b {
|
|
|
2710
2700
|
};
|
|
2711
2701
|
w(), this.d(u.don(w));
|
|
2712
2702
|
}
|
|
2713
|
-
const
|
|
2703
|
+
const f = () => {
|
|
2714
2704
|
i.callUeFunc({
|
|
2715
2705
|
f: "update",
|
|
2716
2706
|
p: {
|
|
@@ -2718,12 +2708,12 @@ class dt extends b {
|
|
|
2718
2708
|
...l.val
|
|
2719
2709
|
}
|
|
2720
2710
|
}), l.val = {};
|
|
2721
|
-
},
|
|
2722
|
-
this.d(
|
|
2723
|
-
})),
|
|
2711
|
+
}, v = this.dv(R(...a));
|
|
2712
|
+
this.d(v.don(f)), this.d(e.createdEvent.don(f)), this.d(e.flushEvent.don(() => v.flush()));
|
|
2713
|
+
})), e.mainClass.typeName === e.typeName)) {
|
|
2724
2714
|
let r = !1;
|
|
2725
2715
|
this.d(() => {
|
|
2726
|
-
r &&
|
|
2716
|
+
r && Cr(i, e.id);
|
|
2727
2717
|
}), i.callUeFunc({
|
|
2728
2718
|
f: "create",
|
|
2729
2719
|
p: {
|
|
@@ -2737,25 +2727,25 @@ class dt extends b {
|
|
|
2737
2727
|
}
|
|
2738
2728
|
}
|
|
2739
2729
|
// null 表示不设置,undefined表示不做任何转换
|
|
2740
|
-
p(
|
|
2730
|
+
p(at, "propValFuncs", {
|
|
2741
2731
|
ref: null,
|
|
2742
2732
|
devTags: null,
|
|
2743
2733
|
extras: null,
|
|
2744
2734
|
execOnceFuncStr: null,
|
|
2745
2735
|
updateFuncStr: null,
|
|
2746
2736
|
toDestroyFuncStr: null
|
|
2747
|
-
}), p(
|
|
2748
|
-
class _ extends
|
|
2737
|
+
}), p(at, "forceUeUpdateProps", []);
|
|
2738
|
+
class _ extends at {
|
|
2749
2739
|
constructor(e, t) {
|
|
2750
2740
|
super(e, t);
|
|
2751
2741
|
const i = t.viewer;
|
|
2752
2742
|
i && (this.d(e.flyToEvent.don((r) => {
|
|
2753
|
-
|
|
2743
|
+
we(i, e.id, r);
|
|
2754
2744
|
})), this.d(e.flyInEvent.don((r) => {
|
|
2755
2745
|
var n, s;
|
|
2756
|
-
|
|
2746
|
+
Re(i, e.id, (n = e.flyInParam) == null ? void 0 : n.position, (s = e.flyInParam) == null ? void 0 : s.rotation, r ?? 1);
|
|
2757
2747
|
})), this.d(e.calcFlyToParamEvent.don(() => {
|
|
2758
|
-
|
|
2748
|
+
dt(i, e.id);
|
|
2759
2749
|
})), this.d(e.calcFlyInParamEvent.don(() => {
|
|
2760
2750
|
const r = t.getCurrentCameraInfo();
|
|
2761
2751
|
if (!r) return;
|
|
@@ -2791,15 +2781,15 @@ class I extends _ {
|
|
|
2791
2781
|
this.d(n.don(() => {
|
|
2792
2782
|
setTimeout(r, 0);
|
|
2793
2783
|
})), this.d(e.smoothMoveEvent.don((l, a) => {
|
|
2794
|
-
|
|
2795
|
-
})), this.d(e.smoothMoveWithRotationEvent.don((l, a,
|
|
2796
|
-
|
|
2797
|
-
})), this.d(e.smoothMoveOnGroundEvent.don((l, a,
|
|
2798
|
-
ke(i, e.id, l, a,
|
|
2799
|
-
})), this.d(e.smoothMoveWithRotationOnGroundEvent.don((l, a,
|
|
2800
|
-
|
|
2784
|
+
De(i, e.id, l, a);
|
|
2785
|
+
})), this.d(e.smoothMoveWithRotationEvent.don((l, a, f) => {
|
|
2786
|
+
Le(i, e.id, l, a, f);
|
|
2787
|
+
})), this.d(e.smoothMoveOnGroundEvent.don((l, a, f, v) => {
|
|
2788
|
+
ke(i, e.id, l, a, v, f);
|
|
2789
|
+
})), this.d(e.smoothMoveWithRotationOnGroundEvent.don((l, a, f, v, d) => {
|
|
2790
|
+
Pe(i, e.id, l, a, f, v, d);
|
|
2801
2791
|
})), this.d(e.smoothMoveKeepPitchEvent.don(async (l, a) => {
|
|
2802
|
-
const
|
|
2792
|
+
const f = await i.callUeFunc({
|
|
2803
2793
|
f: "SmoothMoveKeepPitch",
|
|
2804
2794
|
p: {
|
|
2805
2795
|
id: e.id,
|
|
@@ -2807,14 +2797,14 @@ class I extends _ {
|
|
|
2807
2797
|
Time: a
|
|
2808
2798
|
}
|
|
2809
2799
|
});
|
|
2810
|
-
|
|
2800
|
+
f.error && console.error("SmoothMoveKeepPitch:", f.error);
|
|
2811
2801
|
})), this.d(e.automaticLandingEvent.don((l) => {
|
|
2812
2802
|
const a = [e.position[0], e.position[1]];
|
|
2813
|
-
t.getHeightByLonLat(e.position[0], e.position[1], "Visibility").then((
|
|
2814
|
-
|
|
2803
|
+
t.getHeightByLonLat(e.position[0], e.position[1], "Visibility").then((f) => {
|
|
2804
|
+
f !== null && (e.position = [...a, f], e.collision = l);
|
|
2815
2805
|
});
|
|
2816
2806
|
}));
|
|
2817
|
-
const s = async (l, a,
|
|
2807
|
+
const s = async (l, a, f, v) => {
|
|
2818
2808
|
const { viewer: d } = l;
|
|
2819
2809
|
if (!d) {
|
|
2820
2810
|
console.error("SmoothMoveRelatively: ueViewer.viewer is undefined");
|
|
@@ -2822,14 +2812,14 @@ class I extends _ {
|
|
|
2822
2812
|
}
|
|
2823
2813
|
const h = await d.callUeFunc({
|
|
2824
2814
|
f: "SmoothMoveRelatively",
|
|
2825
|
-
p: { id: a, RelativePosition:
|
|
2815
|
+
p: { id: a, RelativePosition: f, Time: v }
|
|
2826
2816
|
});
|
|
2827
2817
|
return h.error && console.error("SmoothMoveRelatively:", h.error), h;
|
|
2828
2818
|
};
|
|
2829
2819
|
this.d(e.smoothMoveRelativelyEvent.don((l, a) => {
|
|
2830
2820
|
s(t, e.id, l, a);
|
|
2831
2821
|
}));
|
|
2832
|
-
const o = async (l, a,
|
|
2822
|
+
const o = async (l, a, f, v, d) => {
|
|
2833
2823
|
const { viewer: h } = l;
|
|
2834
2824
|
if (!h) {
|
|
2835
2825
|
console.error("SmoothMoveRelativelyWithRotation: ueViewer.viewer is undefined");
|
|
@@ -2837,12 +2827,12 @@ class I extends _ {
|
|
|
2837
2827
|
}
|
|
2838
2828
|
const u = await h.callUeFunc({
|
|
2839
2829
|
f: "SmoothMoveRelativelyWithRotation",
|
|
2840
|
-
p: { id: a, RelativePosition:
|
|
2830
|
+
p: { id: a, RelativePosition: f, NewRotation: v, Time: d }
|
|
2841
2831
|
});
|
|
2842
2832
|
return u.error && console.error("SmoothMoveRelativelyWithRotation:", u.error), u;
|
|
2843
2833
|
};
|
|
2844
|
-
this.d(e.smoothMoveRelativelyWithRotationEvent.don((l, a,
|
|
2845
|
-
o(t, e.id, l, a,
|
|
2834
|
+
this.d(e.smoothMoveRelativelyWithRotationEvent.don((l, a, f) => {
|
|
2835
|
+
o(t, e.id, l, a, f);
|
|
2846
2836
|
}));
|
|
2847
2837
|
}
|
|
2848
2838
|
}
|
|
@@ -2892,12 +2882,12 @@ class N extends I {
|
|
|
2892
2882
|
}));
|
|
2893
2883
|
}
|
|
2894
2884
|
}
|
|
2895
|
-
class
|
|
2885
|
+
class Er extends I {
|
|
2896
2886
|
constructor(e, t) {
|
|
2897
2887
|
super(e, t), t.viewer;
|
|
2898
2888
|
}
|
|
2899
2889
|
}
|
|
2900
|
-
p(
|
|
2890
|
+
p(Er, "propValFuncs", {
|
|
2901
2891
|
...I.propValFuncs,
|
|
2902
2892
|
pointStyle: (e) => ({
|
|
2903
2893
|
...e,
|
|
@@ -2912,12 +2902,12 @@ p(Ir, "propValFuncs", {
|
|
|
2912
2902
|
materialParams: JSON.stringify(e.materialParams ?? {})
|
|
2913
2903
|
})
|
|
2914
2904
|
});
|
|
2915
|
-
class
|
|
2905
|
+
class Ke extends Er {
|
|
2916
2906
|
constructor(e, t) {
|
|
2917
2907
|
super(e, t), t.viewer;
|
|
2918
2908
|
}
|
|
2919
2909
|
}
|
|
2920
|
-
const
|
|
2910
|
+
const Ye = (c) => {
|
|
2921
2911
|
switch (c) {
|
|
2922
2912
|
case 0:
|
|
2923
2913
|
return "成功绑定";
|
|
@@ -2930,7 +2920,7 @@ const Xe = (c) => {
|
|
|
2930
2920
|
default:
|
|
2931
2921
|
return "未知错误";
|
|
2932
2922
|
}
|
|
2933
|
-
},
|
|
2923
|
+
}, ct = class ct extends b {
|
|
2934
2924
|
constructor(t, i) {
|
|
2935
2925
|
super(t, i);
|
|
2936
2926
|
p(this, "_styleColor", this.dv($([])));
|
|
@@ -2950,8 +2940,8 @@ const Xe = (c) => {
|
|
|
2950
2940
|
show: t.show,
|
|
2951
2941
|
collision: t.collision,
|
|
2952
2942
|
allowPicking: t.allowPicking,
|
|
2953
|
-
flyToParam: t.flyToParam ??
|
|
2954
|
-
flyInParam: t.flyInParam ??
|
|
2943
|
+
flyToParam: t.flyToParam ?? ze,
|
|
2944
|
+
flyInParam: t.flyInParam ?? Ne,
|
|
2955
2945
|
highlightID: t.highlightID,
|
|
2956
2946
|
highlightColor: t.highlightColor,
|
|
2957
2947
|
highlight: t.highlight,
|
|
@@ -2988,7 +2978,7 @@ const Xe = (c) => {
|
|
|
2988
2978
|
o(), this.d(l.don(o)), Reflect.has(t, "colorMode") && this.d(t.colorModeChanged.don(() => o()));
|
|
2989
2979
|
const a = this.dv($(void 0));
|
|
2990
2980
|
{
|
|
2991
|
-
const
|
|
2981
|
+
const v = this.dv(R(
|
|
2992
2982
|
t.actorTagChanged,
|
|
2993
2983
|
t.urlChanged
|
|
2994
2984
|
)), d = () => {
|
|
@@ -3000,14 +2990,14 @@ const Xe = (c) => {
|
|
|
3000
2990
|
url: t.url
|
|
3001
2991
|
} : a.value = void 0, t.editing = !1;
|
|
3002
2992
|
};
|
|
3003
|
-
d(), this.d(
|
|
2993
|
+
d(), this.d(v.don(d));
|
|
3004
2994
|
}
|
|
3005
|
-
const
|
|
3006
|
-
const { id:
|
|
2995
|
+
const f = async () => {
|
|
2996
|
+
const { id: v } = t;
|
|
3007
2997
|
if (n !== void 0) {
|
|
3008
2998
|
n = void 0;
|
|
3009
2999
|
try {
|
|
3010
|
-
const d = await i.unBind3DTilesetById(
|
|
3000
|
+
const d = await i.unBind3DTilesetById(v);
|
|
3011
3001
|
if (!d) return;
|
|
3012
3002
|
if (d.error !== "") {
|
|
3013
3003
|
console.warn(`UeES3DTileset UnBind3DTilesetById: ${d.error}`);
|
|
@@ -3021,7 +3011,7 @@ const Xe = (c) => {
|
|
|
3021
3011
|
if (s !== void 0) {
|
|
3022
3012
|
s = void 0;
|
|
3023
3013
|
try {
|
|
3024
|
-
const d = await r.callUeFunc({ f: "destroy", p: { id:
|
|
3014
|
+
const d = await r.callUeFunc({ f: "destroy", p: { id: v } });
|
|
3025
3015
|
if (!d) return;
|
|
3026
3016
|
if (d.error !== "") {
|
|
3027
3017
|
console.warn(`UeES3DTileset Destroy: ${d.error}`);
|
|
@@ -3034,17 +3024,17 @@ const Xe = (c) => {
|
|
|
3034
3024
|
}
|
|
3035
3025
|
};
|
|
3036
3026
|
this.d(() => {
|
|
3037
|
-
|
|
3027
|
+
f();
|
|
3038
3028
|
});
|
|
3039
3029
|
{
|
|
3040
|
-
const
|
|
3030
|
+
const v = this.dv(Te(async (h) => {
|
|
3041
3031
|
if (a.value === void 0) {
|
|
3042
|
-
await h.promise(
|
|
3032
|
+
await h.promise(f());
|
|
3043
3033
|
return;
|
|
3044
3034
|
}
|
|
3045
3035
|
if (a.value.type === "ActorTag") {
|
|
3046
3036
|
const { actorTag: u } = a.value;
|
|
3047
|
-
if (n !== u && await h.promise(
|
|
3037
|
+
if (n !== u && await h.promise(f()), n !== void 0 || u === void 0) return;
|
|
3048
3038
|
try {
|
|
3049
3039
|
n = u;
|
|
3050
3040
|
const g = await h.promise(i.bind3DTilesetByTag(t.id, u));
|
|
@@ -3055,9 +3045,9 @@ const Xe = (c) => {
|
|
|
3055
3045
|
}
|
|
3056
3046
|
if (g.re.type !== 0)
|
|
3057
3047
|
if (g.re.type === 1)
|
|
3058
|
-
console.warn(`UeES3DTileset Bind3DTilesetByTag: ${
|
|
3048
|
+
console.warn(`UeES3DTileset Bind3DTilesetByTag: ${Ye(g.re.type)}`);
|
|
3059
3049
|
else {
|
|
3060
|
-
console.warn(`UeES3DTileset Bind3DTilesetByTag: ${
|
|
3050
|
+
console.warn(`UeES3DTileset Bind3DTilesetByTag: ${Ye(g.re.type)}`);
|
|
3061
3051
|
return;
|
|
3062
3052
|
}
|
|
3063
3053
|
} catch (g) {
|
|
@@ -3066,7 +3056,7 @@ const Xe = (c) => {
|
|
|
3066
3056
|
}
|
|
3067
3057
|
} else if (a.value.type === "CreatedUrl") {
|
|
3068
3058
|
const { url: u } = a.value;
|
|
3069
|
-
if (u !== s && await
|
|
3059
|
+
if (u !== s && await f(), s !== void 0 || u === void 0) return;
|
|
3070
3060
|
try {
|
|
3071
3061
|
s = u;
|
|
3072
3062
|
const g = await h.promise(r.callUeFunc({
|
|
@@ -3088,35 +3078,35 @@ const Xe = (c) => {
|
|
|
3088
3078
|
}
|
|
3089
3079
|
await h.promise(o());
|
|
3090
3080
|
})), d = async () => {
|
|
3091
|
-
|
|
3081
|
+
v.restart();
|
|
3092
3082
|
};
|
|
3093
3083
|
d(), this.d(a.changed.don(d));
|
|
3094
3084
|
}
|
|
3095
3085
|
this.d(t.refreshTilesetEvent.don(() => {
|
|
3096
|
-
|
|
3097
|
-
})), this.d(t.flyToEvent.don(async (
|
|
3086
|
+
Qn(r, t.id);
|
|
3087
|
+
})), this.d(t.flyToEvent.don(async (v, d) => {
|
|
3098
3088
|
if (!n && !s) return;
|
|
3099
|
-
const h = await
|
|
3089
|
+
const h = await we(r, t.id, v);
|
|
3100
3090
|
let u = "over";
|
|
3101
3091
|
h === void 0 ? u = "error" : h.endType === 0 ? u = "over" : h.endType === 1 && (u = "cancelled"), t.flyOverEvent.emit(d, u, i);
|
|
3102
3092
|
})), this.d(t.calcFlyToParamEvent.don(() => {
|
|
3103
|
-
!n && !s ||
|
|
3093
|
+
!n && !s || dt(r, t.id);
|
|
3104
3094
|
})), this.d(t.calcFlyInParamEvent.don(async () => {
|
|
3105
3095
|
if (!n && !s || !i.actived) return;
|
|
3106
|
-
const
|
|
3107
|
-
if (!
|
|
3108
|
-
const { position: d, rotation: h } =
|
|
3096
|
+
const v = await i.getCurrentCameraInfo();
|
|
3097
|
+
if (!v) return;
|
|
3098
|
+
const { position: d, rotation: h } = v;
|
|
3109
3099
|
t.flyInParam = { position: d, rotation: h, flyDuration: 1 };
|
|
3110
|
-
})), this.d(i.propChanged.don((
|
|
3111
|
-
!n && !s ||
|
|
3112
|
-
const h =
|
|
3100
|
+
})), this.d(i.propChanged.don((v) => {
|
|
3101
|
+
!n && !s || v.objId === t.id && Object.keys(v.props).forEach((d) => {
|
|
3102
|
+
const h = v.props[d] === null ? void 0 : v.props[d];
|
|
3113
3103
|
t[d] = h;
|
|
3114
3104
|
});
|
|
3115
|
-
})), this.d(i.objectEvent.don((
|
|
3116
|
-
!n && !s ||
|
|
3105
|
+
})), this.d(i.objectEvent.don((v) => {
|
|
3106
|
+
!n && !s || v.id !== t.id || v.type !== "3DTilesetReady" || t.tilesetReady.emit(v.p);
|
|
3117
3107
|
}));
|
|
3118
3108
|
{
|
|
3119
|
-
const
|
|
3109
|
+
const v = async (g, w) => {
|
|
3120
3110
|
if (!n && !s) return;
|
|
3121
3111
|
const y = await r.callUeFunc({
|
|
3122
3112
|
f: "SetFeatureColor",
|
|
@@ -3159,7 +3149,7 @@ const Xe = (c) => {
|
|
|
3159
3149
|
};
|
|
3160
3150
|
this.d(t.setFeatureColorEvent.don((g, w) => {
|
|
3161
3151
|
const y = [...this.styleColor, ...w];
|
|
3162
|
-
this.styleColor = [...y],
|
|
3152
|
+
this.styleColor = [...y], v(g, y);
|
|
3163
3153
|
})), this.d(t.setFeatureVisableEvent.don((g, w) => {
|
|
3164
3154
|
const y = [...this.styleVisable, ...w];
|
|
3165
3155
|
this.styleVisable = [...y], d(g, y);
|
|
@@ -3170,7 +3160,7 @@ const Xe = (c) => {
|
|
|
3170
3160
|
}));
|
|
3171
3161
|
}
|
|
3172
3162
|
{
|
|
3173
|
-
const
|
|
3163
|
+
const v = async () => {
|
|
3174
3164
|
if (!n && !s) {
|
|
3175
3165
|
t._featureTableResultEvent.emit(void 0);
|
|
3176
3166
|
return;
|
|
@@ -3186,11 +3176,11 @@ const Xe = (c) => {
|
|
|
3186
3176
|
}
|
|
3187
3177
|
};
|
|
3188
3178
|
this.d(t.getFeatureTableEvent.don(() => {
|
|
3189
|
-
|
|
3179
|
+
v();
|
|
3190
3180
|
}));
|
|
3191
3181
|
}
|
|
3192
3182
|
{
|
|
3193
|
-
const
|
|
3183
|
+
const v = async () => {
|
|
3194
3184
|
if (!n && !s) {
|
|
3195
3185
|
t.getMaterialNameListEvent.emit(void 0);
|
|
3196
3186
|
return;
|
|
@@ -3206,7 +3196,7 @@ const Xe = (c) => {
|
|
|
3206
3196
|
}
|
|
3207
3197
|
};
|
|
3208
3198
|
this.ad(t.getMaterialNameListEvent.don((d) => {
|
|
3209
|
-
d == "start" &&
|
|
3199
|
+
d == "start" && v();
|
|
3210
3200
|
}));
|
|
3211
3201
|
}
|
|
3212
3202
|
}
|
|
@@ -3223,9 +3213,9 @@ const Xe = (c) => {
|
|
|
3223
3213
|
this._styleVisable.value = t;
|
|
3224
3214
|
}
|
|
3225
3215
|
};
|
|
3226
|
-
p(
|
|
3227
|
-
let
|
|
3228
|
-
const
|
|
3216
|
+
p(ct, "type", ct.register("ESUeViewer", ur.type, ct));
|
|
3217
|
+
let We = ct;
|
|
3218
|
+
const Ze = (c) => {
|
|
3229
3219
|
switch (c) {
|
|
3230
3220
|
case 0:
|
|
3231
3221
|
return "成功绑定";
|
|
@@ -3240,7 +3230,7 @@ const Ye = (c) => {
|
|
|
3240
3230
|
default:
|
|
3241
3231
|
return "未知错误";
|
|
3242
3232
|
}
|
|
3243
|
-
},
|
|
3233
|
+
}, ut = class ut extends b {
|
|
3244
3234
|
constructor(e, t) {
|
|
3245
3235
|
super(e, t);
|
|
3246
3236
|
const i = t.viewer;
|
|
@@ -3249,9 +3239,9 @@ const Ye = (c) => {
|
|
|
3249
3239
|
return;
|
|
3250
3240
|
}
|
|
3251
3241
|
let r, n;
|
|
3252
|
-
const s = this.dv($(void 0)), o = this.ad(
|
|
3242
|
+
const s = this.dv($(void 0)), o = this.ad(be(""));
|
|
3253
3243
|
{
|
|
3254
|
-
const
|
|
3244
|
+
const v = () => {
|
|
3255
3245
|
if (typeof e.url == "string")
|
|
3256
3246
|
o.value = E.context.getStrFromEnv(e.url);
|
|
3257
3247
|
else {
|
|
@@ -3259,14 +3249,14 @@ const Ye = (c) => {
|
|
|
3259
3249
|
d.url = E.context.getStrFromEnv(d.url), o.value = d;
|
|
3260
3250
|
}
|
|
3261
3251
|
};
|
|
3262
|
-
|
|
3252
|
+
v(), this.ad(e.urlChanged.don(v));
|
|
3263
3253
|
}
|
|
3264
3254
|
const l = async () => {
|
|
3265
3255
|
if (!r && !n) return;
|
|
3266
|
-
let
|
|
3267
|
-
if (
|
|
3268
|
-
const d = E.getSceneObject(
|
|
3269
|
-
|
|
3256
|
+
let v = e.targetID ?? G.defaults.targetID;
|
|
3257
|
+
if (v && v != "") {
|
|
3258
|
+
const d = E.getSceneObject(v);
|
|
3259
|
+
v = d ? d.mainClass.id : v;
|
|
3270
3260
|
}
|
|
3271
3261
|
await i.callUeFunc({
|
|
3272
3262
|
f: "update",
|
|
@@ -3276,14 +3266,14 @@ const Ye = (c) => {
|
|
|
3276
3266
|
rectangle: e.rectangle ?? [-180, -90, 180, 90],
|
|
3277
3267
|
collision: e.collision ?? !0,
|
|
3278
3268
|
allowPicking: e.allowPicking ?? !1,
|
|
3279
|
-
flyToParam: e.flyToParam ??
|
|
3280
|
-
flyInParam: e.flyInParam ??
|
|
3269
|
+
flyToParam: e.flyToParam ?? ze,
|
|
3270
|
+
flyInParam: e.flyInParam ?? Ne,
|
|
3281
3271
|
url: o.value ?? "",
|
|
3282
3272
|
zIndex: e.zIndex ?? 0,
|
|
3283
3273
|
maximumLevel: e.maximumLevel ?? G.defaults.maximumLevel,
|
|
3284
3274
|
minimumLevel: e.minimumLevel ?? G.defaults.minimumLevel,
|
|
3285
3275
|
options: e.options ?? G.defaults.options,
|
|
3286
|
-
targetID:
|
|
3276
|
+
targetID: v,
|
|
3287
3277
|
opacity: e.opacity ?? G.defaults.opacity,
|
|
3288
3278
|
splitDirection: e.splitDirection ?? G.defaults.splitDirection
|
|
3289
3279
|
}
|
|
@@ -3305,12 +3295,12 @@ const Ye = (c) => {
|
|
|
3305
3295
|
e.splitDirectionChanged
|
|
3306
3296
|
));
|
|
3307
3297
|
this.d(a.don(l));
|
|
3308
|
-
const
|
|
3309
|
-
const { id:
|
|
3298
|
+
const f = async () => {
|
|
3299
|
+
const { id: v } = e;
|
|
3310
3300
|
if (r !== void 0) {
|
|
3311
3301
|
r = void 0;
|
|
3312
3302
|
try {
|
|
3313
|
-
const d = await t.unBindImageryById(
|
|
3303
|
+
const d = await t.unBindImageryById(v);
|
|
3314
3304
|
if (!d) return;
|
|
3315
3305
|
if (d.error !== "") {
|
|
3316
3306
|
console.warn(`UeESImageryLayer UnImageryByID: ${d.error}`);
|
|
@@ -3324,7 +3314,7 @@ const Ye = (c) => {
|
|
|
3324
3314
|
if (n !== void 0) {
|
|
3325
3315
|
n = void 0;
|
|
3326
3316
|
try {
|
|
3327
|
-
const d = await i.callUeFunc({ f: "destroy", p: { id:
|
|
3317
|
+
const d = await i.callUeFunc({ f: "destroy", p: { id: v, test: "UeESImageryLayer" } });
|
|
3328
3318
|
if (!d) return;
|
|
3329
3319
|
if (d.error !== "") {
|
|
3330
3320
|
console.warn(`UeESImageryLayer Destroy: ${d.error}`);
|
|
@@ -3337,17 +3327,17 @@ const Ye = (c) => {
|
|
|
3337
3327
|
}
|
|
3338
3328
|
};
|
|
3339
3329
|
this.d(() => {
|
|
3340
|
-
|
|
3330
|
+
f();
|
|
3341
3331
|
});
|
|
3342
3332
|
{
|
|
3343
|
-
const
|
|
3333
|
+
const v = this.dv(Te(async (h) => {
|
|
3344
3334
|
if (s.value === void 0) {
|
|
3345
|
-
await h.promise(
|
|
3335
|
+
await h.promise(f());
|
|
3346
3336
|
return;
|
|
3347
3337
|
}
|
|
3348
3338
|
if (s.value.type === "ActorTag") {
|
|
3349
3339
|
const { actorTag: u, componentTag: g } = s.value;
|
|
3350
|
-
if (r !== u && await h.promise(
|
|
3340
|
+
if (r !== u && await h.promise(f()), r !== void 0 || u === void 0) return;
|
|
3351
3341
|
try {
|
|
3352
3342
|
r = u;
|
|
3353
3343
|
const w = await h.promise(t.bindImageryByTag(e.id, u, g));
|
|
@@ -3358,9 +3348,9 @@ const Ye = (c) => {
|
|
|
3358
3348
|
}
|
|
3359
3349
|
if (w.re.type !== 0)
|
|
3360
3350
|
if (w.re.type === 1)
|
|
3361
|
-
console.warn(`ESImageryLayer BindImageryByTag: ${
|
|
3351
|
+
console.warn(`ESImageryLayer BindImageryByTag: ${Ze(w.re.type)}`);
|
|
3362
3352
|
else {
|
|
3363
|
-
console.warn(`ESImageryLayer BindImageryByTag: ${
|
|
3353
|
+
console.warn(`ESImageryLayer BindImageryByTag: ${Ze(w.re.type)}`);
|
|
3364
3354
|
return;
|
|
3365
3355
|
}
|
|
3366
3356
|
} catch (w) {
|
|
@@ -3369,7 +3359,7 @@ const Ye = (c) => {
|
|
|
3369
3359
|
}
|
|
3370
3360
|
} else if (s.value.type === "CreatedUrl") {
|
|
3371
3361
|
const { url: u } = s.value;
|
|
3372
|
-
if (u !== n && await h.promise(
|
|
3362
|
+
if (u !== n && await h.promise(f()), n !== void 0 || u === void 0) return;
|
|
3373
3363
|
try {
|
|
3374
3364
|
n = u;
|
|
3375
3365
|
const g = await h.promise(i.callUeFunc({
|
|
@@ -3391,12 +3381,12 @@ const Ye = (c) => {
|
|
|
3391
3381
|
}
|
|
3392
3382
|
await h.promise(l());
|
|
3393
3383
|
})), d = async () => {
|
|
3394
|
-
|
|
3384
|
+
v.restart();
|
|
3395
3385
|
};
|
|
3396
3386
|
d(), this.d(s.changed.don(d));
|
|
3397
3387
|
}
|
|
3398
3388
|
{
|
|
3399
|
-
const
|
|
3389
|
+
const v = this.dv(R(
|
|
3400
3390
|
e.actorTagChanged,
|
|
3401
3391
|
o.changed,
|
|
3402
3392
|
e.componentTagChanged
|
|
@@ -3410,37 +3400,37 @@ const Ye = (c) => {
|
|
|
3410
3400
|
url: o.value
|
|
3411
3401
|
} : s.value = void 0;
|
|
3412
3402
|
};
|
|
3413
|
-
d(), this.d(
|
|
3403
|
+
d(), this.d(v.don(d));
|
|
3414
3404
|
}
|
|
3415
|
-
this.d(e.flyToEvent.don(async (
|
|
3405
|
+
this.d(e.flyToEvent.don(async (v, d) => {
|
|
3416
3406
|
if (!r && !n) return;
|
|
3417
|
-
const h = await
|
|
3407
|
+
const h = await we(i, e.id, v);
|
|
3418
3408
|
let u = "over";
|
|
3419
3409
|
h === void 0 ? u = "error" : h.endType === 0 ? u = "over" : h.endType === 1 && (u = "cancelled"), e.flyOverEvent.emit(d, u, t);
|
|
3420
|
-
})), this.d(e.flyInEvent.don(async (
|
|
3410
|
+
})), this.d(e.flyInEvent.don(async (v, d) => {
|
|
3421
3411
|
var g, w;
|
|
3422
3412
|
if (!r && !n) return;
|
|
3423
|
-
const h = await
|
|
3413
|
+
const h = await Re(i, e.id, (g = e.flyInParam) == null ? void 0 : g.position, (w = e.flyInParam) == null ? void 0 : w.rotation, v ?? 1);
|
|
3424
3414
|
let u = "over";
|
|
3425
3415
|
h === void 0 ? u = "error" : h.endType === 0 ? u = "over" : h.endType === 1 && (u = "cancelled"), e.flyOverEvent.emit(d, u, t);
|
|
3426
3416
|
})), this.d(e.calcFlyToParamEvent.don(() => {
|
|
3427
|
-
!r && !n ||
|
|
3417
|
+
!r && !n || dt(i, e.id);
|
|
3428
3418
|
})), this.d(e.calcFlyInParamEvent.don(async () => {
|
|
3429
3419
|
if (!t.actived) return;
|
|
3430
|
-
const
|
|
3431
|
-
if (!
|
|
3432
|
-
const { position: d, rotation: h } =
|
|
3420
|
+
const v = await t.getCurrentCameraInfo();
|
|
3421
|
+
if (!v) return;
|
|
3422
|
+
const { position: d, rotation: h } = v;
|
|
3433
3423
|
e.flyInParam = { position: d, rotation: h, flyDuration: 1 };
|
|
3434
|
-
})), this.d(t.propChanged.don((
|
|
3435
|
-
!r && !n ||
|
|
3436
|
-
const h =
|
|
3424
|
+
})), this.d(t.propChanged.don((v) => {
|
|
3425
|
+
!r && !n || v.objId === e.id && Object.keys(v.props).forEach((d) => {
|
|
3426
|
+
const h = v.props[d] === null ? void 0 : v.props[d];
|
|
3437
3427
|
e[d] = h;
|
|
3438
3428
|
});
|
|
3439
3429
|
}));
|
|
3440
3430
|
}
|
|
3441
3431
|
};
|
|
3442
|
-
p(
|
|
3443
|
-
let
|
|
3432
|
+
p(ut, "type", ut.register("ESUeViewer", G.type, ut));
|
|
3433
|
+
let qe = ut;
|
|
3444
3434
|
const X = class X extends _ {
|
|
3445
3435
|
constructor(e, t) {
|
|
3446
3436
|
if (super(e, t), !t.viewer) {
|
|
@@ -3449,7 +3439,7 @@ const X = class X extends _ {
|
|
|
3449
3439
|
}
|
|
3450
3440
|
}
|
|
3451
3441
|
};
|
|
3452
|
-
p(X, "type", X.register("ESUeViewer",
|
|
3442
|
+
p(X, "type", X.register("ESUeViewer", Br.type, X)), p(X, "forceUeUpdateProps", [
|
|
3453
3443
|
..._.forceUeUpdateProps,
|
|
3454
3444
|
"url"
|
|
3455
3445
|
]), p(X, "propValFuncs", {
|
|
@@ -3458,8 +3448,8 @@ p(X, "type", X.register("ESUeViewer", Dr.type, X)), p(X, "forceUeUpdateProps", [
|
|
|
3458
3448
|
czmMaxzoom: null,
|
|
3459
3449
|
czmMinzoom: null
|
|
3460
3450
|
});
|
|
3461
|
-
let
|
|
3462
|
-
const
|
|
3451
|
+
let Qe = X;
|
|
3452
|
+
const ht = class ht extends I {
|
|
3463
3453
|
constructor(e, t) {
|
|
3464
3454
|
if (super(e, t), !t.viewer) {
|
|
3465
3455
|
console.warn("viewer is undefined!");
|
|
@@ -3467,9 +3457,9 @@ const pt = class pt extends I {
|
|
|
3467
3457
|
}
|
|
3468
3458
|
}
|
|
3469
3459
|
};
|
|
3470
|
-
p(
|
|
3471
|
-
let
|
|
3472
|
-
const
|
|
3460
|
+
p(ht, "type", ht.register("ESUeViewer", _r.type, ht));
|
|
3461
|
+
let Ve = ht;
|
|
3462
|
+
const pt = class pt extends I {
|
|
3473
3463
|
constructor(e, t) {
|
|
3474
3464
|
if (super(e, t), !t.viewer) {
|
|
3475
3465
|
console.warn("viewer is undefined!");
|
|
@@ -3477,8 +3467,8 @@ const ft = class ft extends I {
|
|
|
3477
3467
|
}
|
|
3478
3468
|
}
|
|
3479
3469
|
};
|
|
3480
|
-
p(
|
|
3481
|
-
let
|
|
3470
|
+
p(pt, "type", pt.register("ESUeViewer", Mr.type, pt));
|
|
3471
|
+
let Oe = pt;
|
|
3482
3472
|
const vt = class vt extends D {
|
|
3483
3473
|
constructor(e, t) {
|
|
3484
3474
|
if (super(e, t), !t.viewer) {
|
|
@@ -3487,9 +3477,9 @@ const vt = class vt extends D {
|
|
|
3487
3477
|
}
|
|
3488
3478
|
}
|
|
3489
3479
|
};
|
|
3490
|
-
p(vt, "type", vt.register("ESUeViewer",
|
|
3480
|
+
p(vt, "type", vt.register("ESUeViewer", $r.type, vt));
|
|
3491
3481
|
let M = vt;
|
|
3492
|
-
const
|
|
3482
|
+
const ft = class ft extends M {
|
|
3493
3483
|
constructor(e, t) {
|
|
3494
3484
|
super(e, t);
|
|
3495
3485
|
const i = t.viewer;
|
|
@@ -3521,9 +3511,9 @@ const gt = class gt extends M {
|
|
|
3521
3511
|
this.d(n.don(r)), this.d(e.createdEvent.don(r));
|
|
3522
3512
|
}
|
|
3523
3513
|
};
|
|
3524
|
-
p(
|
|
3525
|
-
let
|
|
3526
|
-
const
|
|
3514
|
+
p(ft, "type", ft.register("ESUeViewer", O.type, ft));
|
|
3515
|
+
let je = ft;
|
|
3516
|
+
const gt = class gt extends I {
|
|
3527
3517
|
constructor(e, t) {
|
|
3528
3518
|
if (super(e, t), !t.viewer) {
|
|
3529
3519
|
console.warn("viewer is undefined!");
|
|
@@ -3531,8 +3521,8 @@ const wt = class wt extends I {
|
|
|
3531
3521
|
}
|
|
3532
3522
|
}
|
|
3533
3523
|
};
|
|
3534
|
-
p(
|
|
3535
|
-
let
|
|
3524
|
+
p(gt, "type", gt.register("ESUeViewer", Wr.type, gt));
|
|
3525
|
+
let ti = gt;
|
|
3536
3526
|
const tt = class tt extends I {
|
|
3537
3527
|
constructor(e, t) {
|
|
3538
3528
|
if (super(e, t), !t.viewer) {
|
|
@@ -3541,17 +3531,17 @@ const tt = class tt extends I {
|
|
|
3541
3531
|
}
|
|
3542
3532
|
}
|
|
3543
3533
|
};
|
|
3544
|
-
p(tt, "type", tt.register("ESUeViewer",
|
|
3534
|
+
p(tt, "type", tt.register("ESUeViewer", Ar.type, tt)), // null 表示不设置,undefined表示不做任何转换
|
|
3545
3535
|
p(tt, "propValFuncs", {
|
|
3546
3536
|
...I.propValFuncs,
|
|
3547
3537
|
targetID: (e) => {
|
|
3548
3538
|
if (!e) return "";
|
|
3549
3539
|
const t = E.getSceneObject(e);
|
|
3550
|
-
return t ? t.
|
|
3540
|
+
return t ? t.mainClass.id : e;
|
|
3551
3541
|
}
|
|
3552
3542
|
});
|
|
3553
|
-
let
|
|
3554
|
-
const
|
|
3543
|
+
let ei = tt;
|
|
3544
|
+
const wt = class wt extends I {
|
|
3555
3545
|
constructor(e, t) {
|
|
3556
3546
|
super(e, t);
|
|
3557
3547
|
const i = t.viewer;
|
|
@@ -3560,10 +3550,10 @@ const yt = class yt extends I {
|
|
|
3560
3550
|
return;
|
|
3561
3551
|
}
|
|
3562
3552
|
this.dispose(e.flyInEvent.don((r, n, s = "default") => {
|
|
3563
|
-
const { id: o, duration: l, position: a, rotation:
|
|
3564
|
-
|
|
3553
|
+
const { id: o, duration: l, position: a, rotation: f } = e;
|
|
3554
|
+
Re(i, o, a, f, l ?? r, s);
|
|
3565
3555
|
})), this.dispose(e.resetWithCurrentCameraEvent.don(() => {
|
|
3566
|
-
|
|
3556
|
+
Fr(i, e.id);
|
|
3567
3557
|
})), this.dispose(e.captureEvent.don((r, n) => {
|
|
3568
3558
|
t.capture(r, n).then((o) => {
|
|
3569
3559
|
o && (e.thumbnail = o);
|
|
@@ -3571,9 +3561,9 @@ const yt = class yt extends I {
|
|
|
3571
3561
|
}));
|
|
3572
3562
|
}
|
|
3573
3563
|
};
|
|
3574
|
-
p(
|
|
3575
|
-
let
|
|
3576
|
-
const
|
|
3564
|
+
p(wt, "type", wt.register("ESUeViewer", Ur.type, wt));
|
|
3565
|
+
let ii = wt;
|
|
3566
|
+
const yt = class yt extends I {
|
|
3577
3567
|
constructor(e, t) {
|
|
3578
3568
|
if (super(e, t), !t.viewer) {
|
|
3579
3569
|
console.warn("viewer is undefined!");
|
|
@@ -3581,9 +3571,9 @@ const mt = class mt extends I {
|
|
|
3581
3571
|
}
|
|
3582
3572
|
}
|
|
3583
3573
|
};
|
|
3584
|
-
p(
|
|
3585
|
-
let
|
|
3586
|
-
const
|
|
3574
|
+
p(yt, "type", yt.register("ESUeViewer", Nr.type, yt));
|
|
3575
|
+
let ri = yt;
|
|
3576
|
+
const mt = class mt extends I {
|
|
3587
3577
|
constructor(e, t) {
|
|
3588
3578
|
if (super(e, t), !t.viewer) {
|
|
3589
3579
|
console.warn("viewer is undefined!");
|
|
@@ -3591,9 +3581,9 @@ const Ct = class Ct extends I {
|
|
|
3591
3581
|
}
|
|
3592
3582
|
}
|
|
3593
3583
|
};
|
|
3594
|
-
p(
|
|
3595
|
-
let
|
|
3596
|
-
const
|
|
3584
|
+
p(mt, "type", mt.register("ESUeViewer", zr.type, mt));
|
|
3585
|
+
let ni = mt;
|
|
3586
|
+
const Ct = class Ct extends D {
|
|
3597
3587
|
constructor(e, t) {
|
|
3598
3588
|
super(e, t);
|
|
3599
3589
|
const i = t.viewer;
|
|
@@ -3602,17 +3592,17 @@ const Ft = class Ft extends D {
|
|
|
3602
3592
|
return;
|
|
3603
3593
|
}
|
|
3604
3594
|
const r = () => {
|
|
3605
|
-
let s =
|
|
3595
|
+
let s = lt.defaults.fillStyle;
|
|
3606
3596
|
try {
|
|
3607
|
-
s = { ...e.fillStyle ??
|
|
3597
|
+
s = { ...e.fillStyle ?? lt.defaults.fillStyle };
|
|
3608
3598
|
} catch (o) {
|
|
3609
|
-
console.error("ESClassification fillStyle 属性类型错误!", o), s = { ...
|
|
3599
|
+
console.error("ESClassification fillStyle 属性类型错误!", o), s = { ...lt.defaults.fillStyle };
|
|
3610
3600
|
}
|
|
3611
3601
|
s.materialParams = JSON.stringify(s.materialParams), i.callUeFunc({
|
|
3612
3602
|
f: "update",
|
|
3613
3603
|
p: {
|
|
3614
3604
|
id: e.id,
|
|
3615
|
-
filled: e.filled ??
|
|
3605
|
+
filled: e.filled ?? lt.defaults.filled,
|
|
3616
3606
|
fillStyle: s
|
|
3617
3607
|
}
|
|
3618
3608
|
});
|
|
@@ -3623,8 +3613,8 @@ const Ft = class Ft extends D {
|
|
|
3623
3613
|
this.d(n.don(r)), this.d(e.createdEvent.don(r));
|
|
3624
3614
|
}
|
|
3625
3615
|
};
|
|
3626
|
-
p(
|
|
3627
|
-
let
|
|
3616
|
+
p(Ct, "type", Ct.register("ESUeViewer", lt.type, Ct));
|
|
3617
|
+
let si = Ct;
|
|
3628
3618
|
const et = class et extends I {
|
|
3629
3619
|
constructor(e, t) {
|
|
3630
3620
|
if (super(e, t), !t.viewer) {
|
|
@@ -3633,17 +3623,17 @@ const et = class et extends I {
|
|
|
3633
3623
|
}
|
|
3634
3624
|
}
|
|
3635
3625
|
};
|
|
3636
|
-
p(et, "type", et.register("ESUeViewer",
|
|
3626
|
+
p(et, "type", et.register("ESUeViewer", Hr.type, et)), // null 表示不设置,undefined表示不做任何转换
|
|
3637
3627
|
p(et, "propValFuncs", {
|
|
3638
3628
|
...I.propValFuncs,
|
|
3639
3629
|
targetID: (e) => {
|
|
3640
3630
|
if (!e) return "";
|
|
3641
3631
|
const t = E.getSceneObject(e);
|
|
3642
|
-
return t ? t.
|
|
3632
|
+
return t ? t.mainClass.id : e;
|
|
3643
3633
|
}
|
|
3644
3634
|
});
|
|
3645
|
-
let
|
|
3646
|
-
const
|
|
3635
|
+
let oi = et;
|
|
3636
|
+
const Ft = class Ft extends I {
|
|
3647
3637
|
constructor(e, t) {
|
|
3648
3638
|
super(e, t);
|
|
3649
3639
|
const i = t.viewer;
|
|
@@ -3651,7 +3641,7 @@ const It = class It extends I {
|
|
|
3651
3641
|
console.warn("viewer is undefined!");
|
|
3652
3642
|
return;
|
|
3653
3643
|
}
|
|
3654
|
-
const r = this.ad(
|
|
3644
|
+
const r = this.ad(be(""));
|
|
3655
3645
|
{
|
|
3656
3646
|
const o = () => {
|
|
3657
3647
|
if (typeof e.url == "string")
|
|
@@ -3686,9 +3676,9 @@ const It = class It extends I {
|
|
|
3686
3676
|
this.d(s.don(n)), this.d(e.createdEvent.don(n));
|
|
3687
3677
|
}
|
|
3688
3678
|
};
|
|
3689
|
-
p(
|
|
3690
|
-
let
|
|
3691
|
-
const
|
|
3679
|
+
p(Ft, "type", Ft.register("ESUeViewer", z.type, Ft));
|
|
3680
|
+
let ai = Ft;
|
|
3681
|
+
const It = class It extends I {
|
|
3692
3682
|
constructor(e, t) {
|
|
3693
3683
|
if (super(e, t), !t.viewer) {
|
|
3694
3684
|
console.warn("viewer is undefined!");
|
|
@@ -3696,9 +3686,9 @@ const Et = class Et extends I {
|
|
|
3696
3686
|
}
|
|
3697
3687
|
}
|
|
3698
3688
|
};
|
|
3699
|
-
p(
|
|
3700
|
-
let
|
|
3701
|
-
const
|
|
3689
|
+
p(It, "type", It.register("ESUeViewer", Jr.type, It));
|
|
3690
|
+
let di = It;
|
|
3691
|
+
const Et = class Et extends D {
|
|
3702
3692
|
constructor(e, t) {
|
|
3703
3693
|
if (super(e, t), !t.viewer) {
|
|
3704
3694
|
console.warn("viewer is undefined!");
|
|
@@ -3706,9 +3696,9 @@ const St = class St extends D {
|
|
|
3706
3696
|
}
|
|
3707
3697
|
}
|
|
3708
3698
|
};
|
|
3709
|
-
p(
|
|
3710
|
-
let
|
|
3711
|
-
const
|
|
3699
|
+
p(Et, "type", Et.register("ESUeViewer", br.type, Et));
|
|
3700
|
+
let li = Et;
|
|
3701
|
+
const St = class St extends D {
|
|
3712
3702
|
constructor(e, t) {
|
|
3713
3703
|
super(e, t);
|
|
3714
3704
|
const i = t.viewer;
|
|
@@ -3719,9 +3709,9 @@ const Tt = class Tt extends D {
|
|
|
3719
3709
|
const r = () => {
|
|
3720
3710
|
let s;
|
|
3721
3711
|
try {
|
|
3722
|
-
s = { ...e.strokeStyle ??
|
|
3712
|
+
s = { ...e.strokeStyle ?? _e.defaults.strokeStyle };
|
|
3723
3713
|
} catch (o) {
|
|
3724
|
-
console.error("ESDistanceMeasurement strokeStyle 属性类型错误!", o), s = { ...
|
|
3714
|
+
console.error("ESDistanceMeasurement strokeStyle 属性类型错误!", o), s = { ..._e.defaults.strokeStyle };
|
|
3725
3715
|
}
|
|
3726
3716
|
i.callUeFunc({
|
|
3727
3717
|
f: "update",
|
|
@@ -3736,9 +3726,9 @@ const Tt = class Tt extends D {
|
|
|
3736
3726
|
this.d(n.don(r)), this.d(e.createdEvent.don(r));
|
|
3737
3727
|
}
|
|
3738
3728
|
};
|
|
3739
|
-
p(
|
|
3740
|
-
let
|
|
3741
|
-
const
|
|
3729
|
+
p(St, "type", St.register("ESUeViewer", _e.type, St));
|
|
3730
|
+
let ci = St;
|
|
3731
|
+
const Tt = class Tt extends Ke {
|
|
3742
3732
|
constructor(e, t) {
|
|
3743
3733
|
if (super(e, t), !t.viewer) {
|
|
3744
3734
|
console.warn("viewer is undefined!");
|
|
@@ -3746,9 +3736,9 @@ const xt = class xt extends Ge {
|
|
|
3746
3736
|
}
|
|
3747
3737
|
}
|
|
3748
3738
|
};
|
|
3749
|
-
p(
|
|
3750
|
-
let
|
|
3751
|
-
const
|
|
3739
|
+
p(Tt, "type", Tt.register("ESUeViewer", Gr.type, Tt));
|
|
3740
|
+
let Ae = Tt;
|
|
3741
|
+
const xt = class xt extends Ae {
|
|
3752
3742
|
constructor(e, t) {
|
|
3753
3743
|
if (super(e, t), !t.viewer) {
|
|
3754
3744
|
console.warn("viewer is undefined!");
|
|
@@ -3756,9 +3746,9 @@ const Rt = class Rt extends Ue {
|
|
|
3756
3746
|
}
|
|
3757
3747
|
}
|
|
3758
3748
|
};
|
|
3759
|
-
p(
|
|
3760
|
-
let
|
|
3761
|
-
const
|
|
3749
|
+
p(xt, "type", xt.register("ESUeViewer", Kr.type, xt));
|
|
3750
|
+
let ui = xt;
|
|
3751
|
+
const Rt = class Rt extends _ {
|
|
3762
3752
|
constructor(e, t) {
|
|
3763
3753
|
if (super(e, t), !t.viewer) {
|
|
3764
3754
|
console.warn("viewer is undefined!");
|
|
@@ -3771,8 +3761,8 @@ const Lt = class Lt extends _ {
|
|
|
3771
3761
|
}));
|
|
3772
3762
|
}
|
|
3773
3763
|
};
|
|
3774
|
-
p(
|
|
3775
|
-
let
|
|
3764
|
+
p(Rt, "type", Rt.register("ESUeViewer", Xr.type, Rt));
|
|
3765
|
+
let hi = Rt;
|
|
3776
3766
|
const it = class it extends M {
|
|
3777
3767
|
constructor(e, t) {
|
|
3778
3768
|
if (super(e, t), !t.viewer) {
|
|
@@ -3781,16 +3771,16 @@ const it = class it extends M {
|
|
|
3781
3771
|
}
|
|
3782
3772
|
}
|
|
3783
3773
|
};
|
|
3784
|
-
p(it, "type", it.register("ESUeViewer",
|
|
3774
|
+
p(it, "type", it.register("ESUeViewer", Yr.type, it)), p(it, "propValFuncs", {
|
|
3785
3775
|
...M.propValFuncs,
|
|
3786
3776
|
targetID: (e) => {
|
|
3787
3777
|
if (!e) return "";
|
|
3788
3778
|
const t = E.getSceneObject(e);
|
|
3789
|
-
return t ? t.
|
|
3779
|
+
return t ? t.mainClass.id : e;
|
|
3790
3780
|
}
|
|
3791
3781
|
});
|
|
3792
|
-
let
|
|
3793
|
-
const
|
|
3782
|
+
let pi = it;
|
|
3783
|
+
const Lt = class Lt extends I {
|
|
3794
3784
|
constructor(e, t) {
|
|
3795
3785
|
if (super(e, t), !t.viewer) {
|
|
3796
3786
|
console.warn("viewer is undefined!");
|
|
@@ -3798,8 +3788,8 @@ const Pt = class Pt extends I {
|
|
|
3798
3788
|
}
|
|
3799
3789
|
}
|
|
3800
3790
|
};
|
|
3801
|
-
p(
|
|
3802
|
-
let
|
|
3791
|
+
p(Lt, "type", Lt.register("ESUeViewer", Zr.type, Lt));
|
|
3792
|
+
let vi = Lt;
|
|
3803
3793
|
const kt = class kt extends _ {
|
|
3804
3794
|
constructor(e, t) {
|
|
3805
3795
|
super(e, t);
|
|
@@ -3808,7 +3798,7 @@ const kt = class kt extends _ {
|
|
|
3808
3798
|
console.warn("viewer is undefined!");
|
|
3809
3799
|
return;
|
|
3810
3800
|
}
|
|
3811
|
-
const r = this.ad(
|
|
3801
|
+
const r = this.ad(be(""));
|
|
3812
3802
|
{
|
|
3813
3803
|
const o = () => {
|
|
3814
3804
|
if (typeof e.url == "string")
|
|
@@ -3827,7 +3817,7 @@ const kt = class kt extends _ {
|
|
|
3827
3817
|
id: e.id,
|
|
3828
3818
|
url: r.value ?? U.defaults.url,
|
|
3829
3819
|
treeTypes: e.treeTypes ?? U.defaults.treeTypes,
|
|
3830
|
-
xiaoBanWidget: e.xiaoBanWidget ?? U.defaults.
|
|
3820
|
+
xiaoBanWidget: e.xiaoBanWidget ?? U.defaults.xiaoBanWidget,
|
|
3831
3821
|
youShiSZ: e.youShiSZ ?? U.defaults.youShiSZ,
|
|
3832
3822
|
diLei: e.diLei ?? U.defaults.diLei,
|
|
3833
3823
|
senLinLB: e.senLinLB ?? U.defaults.senLinLB,
|
|
@@ -3850,57 +3840,57 @@ const kt = class kt extends _ {
|
|
|
3850
3840
|
};
|
|
3851
3841
|
p(kt, "type", kt.register("ESUeViewer", U.type, kt));
|
|
3852
3842
|
let fi = kt;
|
|
3853
|
-
const
|
|
3843
|
+
const Pt = class Pt extends b {
|
|
3854
3844
|
constructor(e, t) {
|
|
3855
|
-
super(e, t), this.ad(new x(e.renderInUEChanged, () => e.renderInUE ? new
|
|
3845
|
+
super(e, t), this.ad(new x(e.renderInUEChanged, () => e.renderInUE ? new mo(e, t) : new yo(e, t)));
|
|
3856
3846
|
}
|
|
3857
3847
|
};
|
|
3858
|
-
p(
|
|
3859
|
-
let
|
|
3860
|
-
class
|
|
3848
|
+
p(Pt, "type", Pt.register("ESUeViewer", Ce.type, Pt));
|
|
3849
|
+
let gi = Pt;
|
|
3850
|
+
class yo extends m {
|
|
3861
3851
|
constructor(t, i) {
|
|
3862
3852
|
super();
|
|
3863
|
-
p(this, "_screenPosition", this.disposeVar(
|
|
3853
|
+
p(this, "_screenPosition", this.disposeVar(vr(void 0)));
|
|
3864
3854
|
const r = i.viewer;
|
|
3865
3855
|
if (!r) {
|
|
3866
3856
|
console.warn("viewer is undefined!");
|
|
3867
3857
|
return;
|
|
3868
3858
|
}
|
|
3869
|
-
const n = this.disposeVar(new
|
|
3859
|
+
const n = this.disposeVar(new hr());
|
|
3870
3860
|
n.parentID = t.id, t.mainClass = n, i.add(n), this.dispose(() => i.delete(n)), n.show = !1, this.dispose(L([n, "position"], [t, "position"])), this.dispose(L([n, "rotation"], [t, "rotation"])), this.dispose(L([n, "flyToParam"], [t, "flyToParam"])), this.dispose(L([n, "flyInParam"], [t, "flyInParam"])), this.dispose(t.calcFlyToParamEvent.disposableOn(() => {
|
|
3871
|
-
|
|
3861
|
+
dt(r, n.id);
|
|
3872
3862
|
})), this.dispose(t.calcFlyInParamEvent.disposableOn(async () => {
|
|
3873
3863
|
if (!i.actived) return;
|
|
3874
3864
|
const l = await i.getCurrentCameraInfo();
|
|
3875
3865
|
if (!l) return;
|
|
3876
|
-
const { position: a, rotation:
|
|
3877
|
-
t.flyInParam = { position: a, rotation:
|
|
3866
|
+
const { position: a, rotation: f } = l;
|
|
3867
|
+
t.flyInParam = { position: a, rotation: f, flyDuration: 1 };
|
|
3878
3868
|
})), this.dispose(t.smoothMoveEvent.disposableOn((l, a) => {
|
|
3879
|
-
|
|
3880
|
-
})), this.dispose(t.smoothMoveWithRotationEvent.disposableOn((l, a,
|
|
3881
|
-
|
|
3882
|
-
})), this.dispose(t.smoothMoveOnGroundEvent.disposableOn((l, a,
|
|
3883
|
-
ke(r, n.id, l, a,
|
|
3884
|
-
})), this.dispose(t.smoothMoveWithRotationOnGroundEvent.disposableOn((l, a,
|
|
3885
|
-
|
|
3869
|
+
De(r, n.id, l, a);
|
|
3870
|
+
})), this.dispose(t.smoothMoveWithRotationEvent.disposableOn((l, a, f) => {
|
|
3871
|
+
Le(r, n.id, l, a, f);
|
|
3872
|
+
})), this.dispose(t.smoothMoveOnGroundEvent.disposableOn((l, a, f, v) => {
|
|
3873
|
+
ke(r, n.id, l, a, v, f);
|
|
3874
|
+
})), this.dispose(t.smoothMoveWithRotationOnGroundEvent.disposableOn((l, a, f, v, d) => {
|
|
3875
|
+
Pe(r, n.id, l, a, f, v, d);
|
|
3886
3876
|
})), this.dispose(t.flyToEvent.disposableOn((l, a) => {
|
|
3887
3877
|
n.flyTo(l);
|
|
3888
3878
|
})), this.dispose(t.flyInEvent.don((l) => {
|
|
3889
3879
|
n.flyIn(l);
|
|
3890
3880
|
}));
|
|
3891
|
-
const s = this._screenPosition, o = this.disposeVar(new
|
|
3881
|
+
const s = this._screenPosition, o = this.disposeVar(new He());
|
|
3892
3882
|
o.parentID = t.id, i.add(o), this.dispose(() => i.delete(o)), this.dispose(L([o, "allowPicking"], [t, "allowPicking"]));
|
|
3893
3883
|
{
|
|
3894
|
-
const l = this.disposeVar(
|
|
3884
|
+
const l = this.disposeVar(Je()), a = () => {
|
|
3895
3885
|
t.show ? l.restart(void 0, async () => {
|
|
3896
3886
|
if (!t.position) return;
|
|
3897
|
-
const
|
|
3887
|
+
const f = await i.lonLatAltToScreenPosition(t.position);
|
|
3898
3888
|
if (!this.isDestroyed())
|
|
3899
|
-
if (!
|
|
3889
|
+
if (!f)
|
|
3900
3890
|
this._screenPosition.value = void 0;
|
|
3901
3891
|
else {
|
|
3902
|
-
const [
|
|
3903
|
-
|
|
3892
|
+
const [v, d] = f;
|
|
3893
|
+
v === -1 && d === -1 ? this._screenPosition.value = void 0 : this._screenPosition.value = [v, d];
|
|
3904
3894
|
}
|
|
3905
3895
|
}) : l.cancel();
|
|
3906
3896
|
};
|
|
@@ -3912,9 +3902,9 @@ class wo extends m {
|
|
|
3912
3902
|
if (super(), this._subContainer = d, !u) return;
|
|
3913
3903
|
if (!t.instanceClass)
|
|
3914
3904
|
throw new Error("!sceneObject.instanceClass");
|
|
3915
|
-
const g = new
|
|
3905
|
+
const g = new Xn(), w = g.element;
|
|
3916
3906
|
this._subContainer.appendChild(w), this.dispose(() => this._subContainer.removeChild(w)), w.onclick = (y) => {
|
|
3917
|
-
(t.allowPicking ?? !1) && t.pickedEvent.emit(new
|
|
3907
|
+
(t.allowPicking ?? !1) && t.pickedEvent.emit(new $e(
|
|
3918
3908
|
{ div: w, pointerEvent: y },
|
|
3919
3909
|
t,
|
|
3920
3910
|
void 0,
|
|
@@ -3943,14 +3933,14 @@ class wo extends m {
|
|
|
3943
3933
|
}
|
|
3944
3934
|
{
|
|
3945
3935
|
const y = () => {
|
|
3946
|
-
const [S, C] = t.anchor ??
|
|
3936
|
+
const [S, C] = t.anchor ?? Ce.defaults.anchor;
|
|
3947
3937
|
g.originRatioX = S, g.originRatioY = C;
|
|
3948
3938
|
};
|
|
3949
3939
|
y(), this.dispose(t.anchorChanged.disposableOn(y));
|
|
3950
3940
|
}
|
|
3951
3941
|
{
|
|
3952
3942
|
const y = () => {
|
|
3953
|
-
g.opacity = t.opacity ??
|
|
3943
|
+
g.opacity = t.opacity ?? Ce.defaults.opacity;
|
|
3954
3944
|
};
|
|
3955
3945
|
y(), this.dispose(t.opacityChanged.disposableOn(y));
|
|
3956
3946
|
}
|
|
@@ -3959,12 +3949,12 @@ class wo extends m {
|
|
|
3959
3949
|
}, a = () => {
|
|
3960
3950
|
try {
|
|
3961
3951
|
t.instanceClass ? o.instanceClass = l() : o.instanceClass = void 0;
|
|
3962
|
-
} catch (
|
|
3963
|
-
console.error(
|
|
3952
|
+
} catch (v) {
|
|
3953
|
+
console.error(v);
|
|
3964
3954
|
}
|
|
3965
3955
|
};
|
|
3966
3956
|
a();
|
|
3967
|
-
const
|
|
3957
|
+
const f = this.dv(R(
|
|
3968
3958
|
t.instanceClassChanged,
|
|
3969
3959
|
t.opacityChanged,
|
|
3970
3960
|
t.anchorChanged,
|
|
@@ -3972,7 +3962,7 @@ class wo extends m {
|
|
|
3972
3962
|
t.showChanged,
|
|
3973
3963
|
t.allowPickingChanged
|
|
3974
3964
|
));
|
|
3975
|
-
this.d(
|
|
3965
|
+
this.d(f.don(a));
|
|
3976
3966
|
}
|
|
3977
3967
|
}
|
|
3978
3968
|
get screenPosition() {
|
|
@@ -3985,12 +3975,12 @@ class wo extends m {
|
|
|
3985
3975
|
this._screenPosition.value = t;
|
|
3986
3976
|
}
|
|
3987
3977
|
}
|
|
3988
|
-
class
|
|
3978
|
+
class mo extends m {
|
|
3989
3979
|
constructor(t, i) {
|
|
3990
3980
|
super();
|
|
3991
3981
|
p(this, "_imageLabel");
|
|
3992
3982
|
p(this, "_hasClassDivAndPos", {});
|
|
3993
|
-
this._imageLabel = this.dv(new
|
|
3983
|
+
this._imageLabel = this.dv(new pr()), this._imageLabel.isHoverZoom = !1, this._imageLabel.parentID = t.id;
|
|
3994
3984
|
const r = i.viewer;
|
|
3995
3985
|
if (!r) {
|
|
3996
3986
|
console.warn("viewer is undefined!");
|
|
@@ -4004,32 +3994,32 @@ class yo extends m {
|
|
|
4004
3994
|
if (!r) return;
|
|
4005
3995
|
if (!t.instanceClass)
|
|
4006
3996
|
throw new Error("!sceneObject.instanceClass");
|
|
4007
|
-
const a = document.createElement("div"),
|
|
4008
|
-
if (
|
|
4009
|
-
document.body.appendChild(
|
|
4010
|
-
let d =
|
|
3997
|
+
const a = document.createElement("div"), f = this.dv(new t.instanceClass(a, t, i))._container;
|
|
3998
|
+
if (f.style.opacity = t.opacity.toString() ?? Ce.defaults.opacity, f.style.position = "fixed", f.style.zIndex = "-1", f.style.top = "0px", !document.body.contains(f)) {
|
|
3999
|
+
document.body.appendChild(f);
|
|
4000
|
+
let d = f ? f.querySelectorAll("*[class]") : [];
|
|
4011
4001
|
for (let h = 0; h < d.length; h++) {
|
|
4012
4002
|
const u = d[h];
|
|
4013
|
-
var
|
|
4003
|
+
var v = u.getBoundingClientRect();
|
|
4014
4004
|
this._hasClassDivAndPos[u.className] = [
|
|
4015
4005
|
u.offsetLeft,
|
|
4016
4006
|
u.offsetTop,
|
|
4017
|
-
u.offsetLeft +
|
|
4018
|
-
u.offsetTop +
|
|
4007
|
+
u.offsetLeft + v.width,
|
|
4008
|
+
u.offsetTop + v.height
|
|
4019
4009
|
];
|
|
4020
4010
|
}
|
|
4021
4011
|
}
|
|
4022
|
-
|
|
4012
|
+
Zn(f, {
|
|
4023
4013
|
backgroundColor: null,
|
|
4024
4014
|
allowTaint: !0,
|
|
4025
4015
|
useCORS: !0,
|
|
4026
|
-
width:
|
|
4027
|
-
height:
|
|
4016
|
+
width: f.offsetWidth,
|
|
4017
|
+
height: f.offsetHeight,
|
|
4028
4018
|
scale: 1
|
|
4029
4019
|
}).then((d) => {
|
|
4030
|
-
document.body.contains(
|
|
4020
|
+
document.body.contains(f) && document.body.removeChild(f), n.url = d.toDataURL(), n.show = t.show;
|
|
4031
4021
|
}).catch(() => {
|
|
4032
|
-
document.body.contains(
|
|
4022
|
+
document.body.contains(f) && document.body.removeChild(f);
|
|
4033
4023
|
});
|
|
4034
4024
|
}, o = () => {
|
|
4035
4025
|
try {
|
|
@@ -4057,9 +4047,9 @@ class yo extends m {
|
|
|
4057
4047
|
if (s.objId !== this._imageLabel.id) return;
|
|
4058
4048
|
const { type: o, add: l } = s;
|
|
4059
4049
|
if (o === "leftClick" && l) {
|
|
4060
|
-
const a = (l == null ? void 0 : l.classNames) ?? [],
|
|
4061
|
-
for (let
|
|
4062
|
-
const d = v
|
|
4050
|
+
const a = (l == null ? void 0 : l.classNames) ?? [], f = Object.keys(this._hasClassDivAndPos);
|
|
4051
|
+
for (let v = 0; v < f.length; v++) {
|
|
4052
|
+
const d = f[v];
|
|
4063
4053
|
let h = this._hasClassDivAndPos[d];
|
|
4064
4054
|
l && l.mouseRelativePos && l.mouseRelativePos[0] >= h[0] && l.mouseRelativePos[0] <= h[2] && l.mouseRelativePos[1] >= h[1] && l.mouseRelativePos[1] <= h[3] && a.push(d);
|
|
4065
4055
|
}
|
|
@@ -4067,20 +4057,20 @@ class yo extends m {
|
|
|
4067
4057
|
}
|
|
4068
4058
|
t.widgetEvent.emit({ type: o, add: l });
|
|
4069
4059
|
})), this.d(t.calcFlyToParamEvent.don(() => {
|
|
4070
|
-
|
|
4060
|
+
dt(r, n.id);
|
|
4071
4061
|
})), this.d(t.calcFlyInParamEvent.don(() => {
|
|
4072
4062
|
const s = i.getCurrentCameraInfo();
|
|
4073
4063
|
if (!s) return;
|
|
4074
4064
|
const { position: o, rotation: l } = s;
|
|
4075
4065
|
t.flyInParam = { position: o, rotation: l, flyDuration: 1 };
|
|
4076
4066
|
})), this.d(t.smoothMoveEvent.don((s, o) => {
|
|
4077
|
-
|
|
4067
|
+
De(r, n.id, s, o);
|
|
4078
4068
|
})), this.d(t.smoothMoveWithRotationEvent.don((s, o, l) => {
|
|
4079
|
-
|
|
4069
|
+
Le(r, n.id, s, o, l);
|
|
4080
4070
|
})), this.d(t.smoothMoveOnGroundEvent.don((s, o, l, a) => {
|
|
4081
4071
|
ke(r, n.id, s, o, a, l);
|
|
4082
|
-
})), this.d(t.smoothMoveWithRotationOnGroundEvent.don((s, o, l, a,
|
|
4083
|
-
|
|
4072
|
+
})), this.d(t.smoothMoveWithRotationOnGroundEvent.don((s, o, l, a, f) => {
|
|
4073
|
+
Pe(r, n.id, s, o, l, a, f);
|
|
4084
4074
|
})), this.d(t.flyToEvent.don((s, o) => {
|
|
4085
4075
|
n.flyTo(s);
|
|
4086
4076
|
})), this.d(t.flyInEvent.don((s) => {
|
|
@@ -4088,7 +4078,7 @@ class yo extends m {
|
|
|
4088
4078
|
}));
|
|
4089
4079
|
}
|
|
4090
4080
|
}
|
|
4091
|
-
const
|
|
4081
|
+
const Dt = class Dt extends _ {
|
|
4092
4082
|
constructor(e, t) {
|
|
4093
4083
|
super(e, t);
|
|
4094
4084
|
const i = t.viewer;
|
|
@@ -4118,9 +4108,9 @@ const Bt = class Bt extends _ {
|
|
|
4118
4108
|
}));
|
|
4119
4109
|
}
|
|
4120
4110
|
};
|
|
4121
|
-
p(
|
|
4122
|
-
let
|
|
4123
|
-
const
|
|
4111
|
+
p(Dt, "type", Dt.register("ESUeViewer", qr.type, Dt));
|
|
4112
|
+
let wi = Dt;
|
|
4113
|
+
const Bt = class Bt extends D {
|
|
4124
4114
|
constructor(e, t) {
|
|
4125
4115
|
if (super(e, t), !t.viewer) {
|
|
4126
4116
|
console.warn("viewer is undefined!");
|
|
@@ -4128,9 +4118,9 @@ const _t = class _t extends D {
|
|
|
4128
4118
|
}
|
|
4129
4119
|
}
|
|
4130
4120
|
};
|
|
4131
|
-
p(
|
|
4132
|
-
let
|
|
4133
|
-
const
|
|
4121
|
+
p(Bt, "type", Bt.register("ESUeViewer", Qr.type, Bt));
|
|
4122
|
+
let Ue = Bt;
|
|
4123
|
+
const _t = class _t extends D {
|
|
4134
4124
|
constructor(e, t) {
|
|
4135
4125
|
if (super(e, t), !t.viewer) {
|
|
4136
4126
|
console.warn("viewer is undefined!");
|
|
@@ -4138,9 +4128,9 @@ const Mt = class Mt extends D {
|
|
|
4138
4128
|
}
|
|
4139
4129
|
}
|
|
4140
4130
|
};
|
|
4141
|
-
p(
|
|
4142
|
-
let
|
|
4143
|
-
const
|
|
4131
|
+
p(_t, "type", _t.register("ESUeViewer", Vr.type, _t));
|
|
4132
|
+
let yi = _t;
|
|
4133
|
+
const Mt = class Mt extends M {
|
|
4144
4134
|
constructor(e, t) {
|
|
4145
4135
|
if (super(e, t), !t.viewer) {
|
|
4146
4136
|
console.warn("viewer is undefined!");
|
|
@@ -4148,8 +4138,8 @@ const $t = class $t extends M {
|
|
|
4148
4138
|
}
|
|
4149
4139
|
}
|
|
4150
4140
|
};
|
|
4151
|
-
p(
|
|
4152
|
-
let
|
|
4141
|
+
p(Mt, "type", Mt.register("ESUeViewer", Or.type, Mt));
|
|
4142
|
+
let mi = Mt;
|
|
4153
4143
|
const Y = class Y extends I {
|
|
4154
4144
|
constructor(e, t) {
|
|
4155
4145
|
super(e, t);
|
|
@@ -4159,11 +4149,11 @@ const Y = class Y extends I {
|
|
|
4159
4149
|
return;
|
|
4160
4150
|
}
|
|
4161
4151
|
this.d(e.setNodePositionEvent.don((r, n) => {
|
|
4162
|
-
ss(i, e.id, r, n);
|
|
4163
|
-
})), this.d(e.setNodeRotationEvent.don((r, n) => {
|
|
4164
4152
|
os(i, e.id, r, n);
|
|
4165
|
-
})), this.d(e.
|
|
4153
|
+
})), this.d(e.setNodeRotationEvent.don((r, n) => {
|
|
4166
4154
|
as(i, e.id, r, n);
|
|
4155
|
+
})), this.d(e.setNodeScaleEvent.don((r, n) => {
|
|
4156
|
+
ds(i, e.id, r, n);
|
|
4167
4157
|
}));
|
|
4168
4158
|
}
|
|
4169
4159
|
};
|
|
@@ -4172,14 +4162,14 @@ p(Y, "forceUeUpdateProps", [
|
|
|
4172
4162
|
"url"
|
|
4173
4163
|
]), p(Y, "propValFuncs", {
|
|
4174
4164
|
...I.propValFuncs,
|
|
4175
|
-
url: (e) => typeof e == "string" ? E.context.getStrFromEnv(
|
|
4165
|
+
url: (e) => typeof e == "string" ? E.context.getStrFromEnv(Fe(e)) : (e.url = E.context.getStrFromEnv(Fe(e.url)), e),
|
|
4176
4166
|
czmMaximumScale: null,
|
|
4177
4167
|
czmMinimumPixelSize: null,
|
|
4178
4168
|
czmNativeScale: null,
|
|
4179
4169
|
czmColor: null
|
|
4180
|
-
}), p(Y, "type", Y.register("ESUeViewer",
|
|
4181
|
-
let
|
|
4182
|
-
const
|
|
4170
|
+
}), p(Y, "type", Y.register("ESUeViewer", jr.type, Y));
|
|
4171
|
+
let Ci = Y;
|
|
4172
|
+
const $t = class $t extends D {
|
|
4183
4173
|
constructor(e, t) {
|
|
4184
4174
|
if (super(e, t), !t.viewer) {
|
|
4185
4175
|
console.warn("viewer is undefined!");
|
|
@@ -4187,25 +4177,25 @@ const Wt = class Wt extends D {
|
|
|
4187
4177
|
}
|
|
4188
4178
|
}
|
|
4189
4179
|
};
|
|
4190
|
-
p(
|
|
4191
|
-
let
|
|
4192
|
-
const
|
|
4180
|
+
p($t, "type", $t.register("ESUeViewer", tn.type, $t));
|
|
4181
|
+
let Fi = $t;
|
|
4182
|
+
const Wt = class Wt extends I {
|
|
4193
4183
|
constructor(e, t) {
|
|
4194
4184
|
if (super(e, t), !t.viewer) {
|
|
4195
4185
|
console.warn("viewer is undefined!");
|
|
4196
4186
|
return;
|
|
4197
4187
|
}
|
|
4198
4188
|
const r = async (s, o, l, a) => {
|
|
4199
|
-
const { viewer:
|
|
4200
|
-
if (!
|
|
4189
|
+
const { viewer: f } = s;
|
|
4190
|
+
if (!f) {
|
|
4201
4191
|
console.error("AIMoveTo: ueViewer.viewer is undefined");
|
|
4202
4192
|
return;
|
|
4203
4193
|
}
|
|
4204
|
-
const
|
|
4194
|
+
const v = await f.callUeFunc({
|
|
4205
4195
|
f: "AIMoveTo",
|
|
4206
4196
|
p: { id: o, Destination: l, Time: a }
|
|
4207
4197
|
});
|
|
4208
|
-
return
|
|
4198
|
+
return v.error && console.error("AIMoveTo:", v.error), v;
|
|
4209
4199
|
};
|
|
4210
4200
|
this.d(e.aiMoveToEvent.don((s, o) => {
|
|
4211
4201
|
r(t, e.id, s, o);
|
|
@@ -4227,8 +4217,8 @@ const At = class At extends I {
|
|
|
4227
4217
|
}));
|
|
4228
4218
|
}
|
|
4229
4219
|
};
|
|
4230
|
-
p(
|
|
4231
|
-
let
|
|
4220
|
+
p(Wt, "type", Wt.register("ESUeViewer", en.type, Wt));
|
|
4221
|
+
let Ii = Wt;
|
|
4232
4222
|
const Z = class Z extends N {
|
|
4233
4223
|
constructor(e, t) {
|
|
4234
4224
|
if (super(e, t), !t.viewer) {
|
|
@@ -4238,15 +4228,15 @@ const Z = class Z extends N {
|
|
|
4238
4228
|
e.anchor = [0.5, 1];
|
|
4239
4229
|
}
|
|
4240
4230
|
};
|
|
4241
|
-
p(Z, "type", Z.register("ESUeViewer",
|
|
4231
|
+
p(Z, "type", Z.register("ESUeViewer", pr.type, Z)), p(Z, "forceUeUpdateProps", [
|
|
4242
4232
|
...N.forceUeUpdateProps,
|
|
4243
4233
|
"url"
|
|
4244
4234
|
]), p(Z, "propValFuncs", {
|
|
4245
4235
|
...N.propValFuncs,
|
|
4246
|
-
url: (e) => typeof e == "string" ? E.context.getStrFromEnv(
|
|
4236
|
+
url: (e) => typeof e == "string" ? E.context.getStrFromEnv(Fe(e)) : (e.url = E.context.getStrFromEnv(Fe(e.url)), e)
|
|
4247
4237
|
});
|
|
4248
|
-
let
|
|
4249
|
-
const
|
|
4238
|
+
let Ei = Z;
|
|
4239
|
+
const At = class At extends I {
|
|
4250
4240
|
constructor(e, t) {
|
|
4251
4241
|
if (super(e, t), !t.viewer) {
|
|
4252
4242
|
console.warn("viewer is undefined!");
|
|
@@ -4254,9 +4244,9 @@ const Ut = class Ut extends I {
|
|
|
4254
4244
|
}
|
|
4255
4245
|
}
|
|
4256
4246
|
};
|
|
4257
|
-
p(
|
|
4258
|
-
let
|
|
4259
|
-
const
|
|
4247
|
+
p(At, "type", At.register("ESUeViewer", rn.type, At));
|
|
4248
|
+
let Si = At;
|
|
4249
|
+
const Ut = class Ut extends Ke {
|
|
4260
4250
|
constructor(e, t) {
|
|
4261
4251
|
if (super(e, t), !t.viewer) {
|
|
4262
4252
|
console.warn("viewer is undefined!");
|
|
@@ -4264,9 +4254,9 @@ const Nt = class Nt extends Ge {
|
|
|
4264
4254
|
}
|
|
4265
4255
|
}
|
|
4266
4256
|
};
|
|
4267
|
-
p(
|
|
4268
|
-
let
|
|
4269
|
-
const
|
|
4257
|
+
p(Ut, "type", Ut.register("ESUeViewer", nn.type, Ut));
|
|
4258
|
+
let Ti = Ut;
|
|
4259
|
+
const Nt = class Nt extends _ {
|
|
4270
4260
|
constructor(e, t) {
|
|
4271
4261
|
if (super(e, t), !t.viewer) {
|
|
4272
4262
|
console.warn("viewer is undefined!");
|
|
@@ -4274,9 +4264,9 @@ const zt = class zt extends _ {
|
|
|
4274
4264
|
}
|
|
4275
4265
|
}
|
|
4276
4266
|
};
|
|
4277
|
-
p(
|
|
4278
|
-
let
|
|
4279
|
-
const
|
|
4267
|
+
p(Nt, "type", Nt.register("ESUeViewer", sn.type, Nt));
|
|
4268
|
+
let xi = Nt;
|
|
4269
|
+
const zt = class zt extends Ke {
|
|
4280
4270
|
constructor(e, t) {
|
|
4281
4271
|
if (super(e, t), !t.viewer) {
|
|
4282
4272
|
console.warn("viewer is undefined!");
|
|
@@ -4284,9 +4274,9 @@ const Ht = class Ht extends Ge {
|
|
|
4284
4274
|
}
|
|
4285
4275
|
}
|
|
4286
4276
|
};
|
|
4287
|
-
p(
|
|
4288
|
-
let
|
|
4289
|
-
const
|
|
4277
|
+
p(zt, "type", zt.register("ESUeViewer", on.type, zt));
|
|
4278
|
+
let Ri = zt;
|
|
4279
|
+
const Ht = class Ht extends I {
|
|
4290
4280
|
constructor(e, t) {
|
|
4291
4281
|
if (super(e, t), !t.viewer) {
|
|
4292
4282
|
console.warn("viewer is undefined!");
|
|
@@ -4294,9 +4284,9 @@ const Jt = class Jt extends I {
|
|
|
4294
4284
|
}
|
|
4295
4285
|
}
|
|
4296
4286
|
};
|
|
4297
|
-
p(
|
|
4298
|
-
let
|
|
4299
|
-
const
|
|
4287
|
+
p(Ht, "type", Ht.register("ESUeViewer", an.type, Ht));
|
|
4288
|
+
let Li = Ht;
|
|
4289
|
+
const Jt = class Jt extends I {
|
|
4300
4290
|
constructor(e, t) {
|
|
4301
4291
|
if (super(e, t), !t.viewer) {
|
|
4302
4292
|
console.warn("viewer is undefined!");
|
|
@@ -4304,9 +4294,9 @@ const bt = class bt extends I {
|
|
|
4304
4294
|
}
|
|
4305
4295
|
}
|
|
4306
4296
|
};
|
|
4307
|
-
p(
|
|
4308
|
-
let
|
|
4309
|
-
const
|
|
4297
|
+
p(Jt, "type", Jt.register("ESUeViewer", dn.type, Jt));
|
|
4298
|
+
let ki = Jt;
|
|
4299
|
+
const bt = class bt extends D {
|
|
4310
4300
|
constructor(e, t) {
|
|
4311
4301
|
if (super(e, t), !t.viewer) {
|
|
4312
4302
|
console.warn("viewer is undefined!");
|
|
@@ -4314,9 +4304,9 @@ const Gt = class Gt extends D {
|
|
|
4314
4304
|
}
|
|
4315
4305
|
}
|
|
4316
4306
|
};
|
|
4317
|
-
p(
|
|
4318
|
-
let Pi =
|
|
4319
|
-
const
|
|
4307
|
+
p(bt, "type", bt.register("ESUeViewer", ln.type, bt));
|
|
4308
|
+
let Pi = bt;
|
|
4309
|
+
const Gt = class Gt extends Ue {
|
|
4320
4310
|
constructor(e, t) {
|
|
4321
4311
|
if (super(e, t), !t.viewer) {
|
|
4322
4312
|
console.warn("viewer is undefined!");
|
|
@@ -4324,9 +4314,9 @@ const Kt = class Kt extends Ne {
|
|
|
4324
4314
|
}
|
|
4325
4315
|
}
|
|
4326
4316
|
};
|
|
4327
|
-
p(
|
|
4328
|
-
let
|
|
4329
|
-
const
|
|
4317
|
+
p(Gt, "type", Gt.register("ESUeViewer", cn.type, Gt));
|
|
4318
|
+
let Di = Gt;
|
|
4319
|
+
const Kt = class Kt extends We {
|
|
4330
4320
|
constructor(e, t) {
|
|
4331
4321
|
super(e, t);
|
|
4332
4322
|
const i = t.viewer;
|
|
@@ -4336,22 +4326,22 @@ const Xt = class Xt extends Ae {
|
|
|
4336
4326
|
}
|
|
4337
4327
|
this.d(e.highlightFeatureEvent.don((r) => {
|
|
4338
4328
|
const n = typeof r == "number" ? r.toString() : r;
|
|
4339
|
-
|
|
4329
|
+
is(i, e.id, n);
|
|
4340
4330
|
})), this.d(e.highlightFeatureAndFlyToEvent.don((r, n, s, o) => {
|
|
4341
4331
|
const l = typeof r == "number" ? r.toString() : r;
|
|
4342
|
-
|
|
4332
|
+
rs(i, e.id, l, o ?? 1);
|
|
4343
4333
|
})), this.d(e.setLayerVisibleEvent.don((r, n) => {
|
|
4344
4334
|
let s = "";
|
|
4345
|
-
typeof n != "string" ? s = JSON.stringify(n) : s = n,
|
|
4335
|
+
typeof n != "string" ? s = JSON.stringify(n) : s = n, ns(i, e.id, s);
|
|
4346
4336
|
})), this.d(e.setLayerColorEvent.don((r, n) => {
|
|
4347
4337
|
let s = "";
|
|
4348
|
-
typeof n != "string" ? s = JSON.stringify(n) : s = n,
|
|
4338
|
+
typeof n != "string" ? s = JSON.stringify(n) : s = n, ss(i, e.id, s);
|
|
4349
4339
|
}));
|
|
4350
4340
|
}
|
|
4351
4341
|
};
|
|
4352
|
-
p(
|
|
4353
|
-
let
|
|
4354
|
-
const
|
|
4342
|
+
p(Kt, "type", Kt.register("ESUeViewer", un.type, Kt));
|
|
4343
|
+
let Bi = Kt;
|
|
4344
|
+
const Xt = class Xt extends M {
|
|
4355
4345
|
constructor(e, t) {
|
|
4356
4346
|
if (super(e, t), !t.viewer) {
|
|
4357
4347
|
console.warn("viewer is undefined!");
|
|
@@ -4359,9 +4349,9 @@ const Yt = class Yt extends M {
|
|
|
4359
4349
|
}
|
|
4360
4350
|
}
|
|
4361
4351
|
};
|
|
4362
|
-
p(
|
|
4363
|
-
let
|
|
4364
|
-
const
|
|
4352
|
+
p(Xt, "type", Xt.register("ESUeViewer", hn.type, Xt));
|
|
4353
|
+
let _i = Xt;
|
|
4354
|
+
const Yt = class Yt extends N {
|
|
4365
4355
|
constructor(e, t) {
|
|
4366
4356
|
super(e, t);
|
|
4367
4357
|
const i = t.viewer;
|
|
@@ -4382,9 +4372,9 @@ const Zt = class Zt extends N {
|
|
|
4382
4372
|
}));
|
|
4383
4373
|
}
|
|
4384
4374
|
};
|
|
4385
|
-
p(
|
|
4386
|
-
let
|
|
4387
|
-
const
|
|
4375
|
+
p(Yt, "type", Yt.register("ESUeViewer", pn.type, Yt));
|
|
4376
|
+
let Mi = Yt;
|
|
4377
|
+
const Zt = class Zt extends I {
|
|
4388
4378
|
constructor(e, t) {
|
|
4389
4379
|
if (super(e, t), !t.viewer) {
|
|
4390
4380
|
console.warn("viewer is undefined!");
|
|
@@ -4392,8 +4382,8 @@ const qt = class qt extends I {
|
|
|
4392
4382
|
}
|
|
4393
4383
|
}
|
|
4394
4384
|
};
|
|
4395
|
-
p(
|
|
4396
|
-
let
|
|
4385
|
+
p(Zt, "type", Zt.register("ESUeViewer", vn.type, Zt));
|
|
4386
|
+
let $i = Zt;
|
|
4397
4387
|
const q = class q extends _ {
|
|
4398
4388
|
constructor(e, t) {
|
|
4399
4389
|
if (super(e, t), !t.viewer) {
|
|
@@ -4409,8 +4399,8 @@ p(q, "type", q.register("ESUeViewer", fn.type, q)), p(q, "forceUeUpdateProps", [
|
|
|
4409
4399
|
..._.propValFuncs,
|
|
4410
4400
|
url: (e) => typeof e == "string" ? E.context.getStrFromEnv(e) : (e.url = E.context.getStrFromEnv(e.url), e)
|
|
4411
4401
|
});
|
|
4412
|
-
let
|
|
4413
|
-
const
|
|
4402
|
+
let Wi = q;
|
|
4403
|
+
const qt = class qt extends D {
|
|
4414
4404
|
constructor(e, t) {
|
|
4415
4405
|
if (super(e, t), !t.viewer) {
|
|
4416
4406
|
console.warn("viewer is undefined!");
|
|
@@ -4418,8 +4408,8 @@ const Qt = class Qt extends D {
|
|
|
4418
4408
|
}
|
|
4419
4409
|
}
|
|
4420
4410
|
};
|
|
4421
|
-
p(
|
|
4422
|
-
let
|
|
4411
|
+
p(qt, "type", qt.register("ESUeViewer", gn.type, qt));
|
|
4412
|
+
let Ai = qt;
|
|
4423
4413
|
const rt = class rt extends M {
|
|
4424
4414
|
constructor(e, t) {
|
|
4425
4415
|
if (super(e, t), !t.viewer) {
|
|
@@ -4428,17 +4418,17 @@ const rt = class rt extends M {
|
|
|
4428
4418
|
}
|
|
4429
4419
|
}
|
|
4430
4420
|
};
|
|
4431
|
-
p(rt, "type", rt.register("ESUeViewer",
|
|
4421
|
+
p(rt, "type", rt.register("ESUeViewer", wn.type, rt)), // null 表示不设置,undefined表示不做任何转换
|
|
4432
4422
|
p(rt, "propValFuncs", {
|
|
4433
4423
|
...M.propValFuncs,
|
|
4434
4424
|
targetID: (e) => {
|
|
4435
4425
|
if (!e) return "";
|
|
4436
4426
|
const t = E.getSceneObject(e);
|
|
4437
|
-
return t ? t.
|
|
4427
|
+
return t ? t.mainClass.id : e;
|
|
4438
4428
|
}
|
|
4439
4429
|
});
|
|
4440
|
-
let
|
|
4441
|
-
const
|
|
4430
|
+
let Ui = rt;
|
|
4431
|
+
const Qt = class Qt extends M {
|
|
4442
4432
|
constructor(e, t) {
|
|
4443
4433
|
if (super(e, t), !t.viewer) {
|
|
4444
4434
|
console.warn("viewer is undefined!");
|
|
@@ -4446,9 +4436,9 @@ const Vt = class Vt extends M {
|
|
|
4446
4436
|
}
|
|
4447
4437
|
}
|
|
4448
4438
|
};
|
|
4449
|
-
p(
|
|
4450
|
-
let
|
|
4451
|
-
const
|
|
4439
|
+
p(Qt, "type", Qt.register("ESUeViewer", yn.type, Qt));
|
|
4440
|
+
let Ni = Qt;
|
|
4441
|
+
const Vt = class Vt extends at {
|
|
4452
4442
|
constructor(e, t) {
|
|
4453
4443
|
if (super(e, t), !t.viewer) {
|
|
4454
4444
|
console.warn("viewer is undefined!");
|
|
@@ -4467,23 +4457,23 @@ const Ot = class Ot extends dt {
|
|
|
4467
4457
|
let l = [255, 255, 255, 1];
|
|
4468
4458
|
if (o.startsWith("#")) {
|
|
4469
4459
|
if (o.length === 4) {
|
|
4470
|
-
let a = parseInt(o[1] + o[1], 16),
|
|
4471
|
-
l = [a,
|
|
4460
|
+
let a = parseInt(o[1] + o[1], 16), f = parseInt(o[2] + o[2], 16), v = parseInt(o[3] + o[3], 16);
|
|
4461
|
+
l = [a, f, v, 1];
|
|
4472
4462
|
} else if (o.length === 7) {
|
|
4473
|
-
let a = parseInt(o.substring(1, 3), 16),
|
|
4474
|
-
l = [a,
|
|
4463
|
+
let a = parseInt(o.substring(1, 3), 16), f = parseInt(o.substring(3, 5), 16), v = parseInt(o.substring(5, 7), 16);
|
|
4464
|
+
l = [a, f, v, 1];
|
|
4475
4465
|
}
|
|
4476
4466
|
} else if (o.startsWith("rgba")) {
|
|
4477
4467
|
let a = o.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)$/);
|
|
4478
4468
|
if (a) {
|
|
4479
|
-
let
|
|
4480
|
-
l = [
|
|
4469
|
+
let f = parseInt(a[1]), v = parseInt(a[2]), d = parseInt(a[3]), h = parseFloat(a[4]);
|
|
4470
|
+
l = [f, v, d, h];
|
|
4481
4471
|
}
|
|
4482
4472
|
} else if (o.startsWith("rgb")) {
|
|
4483
4473
|
let a = o.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/);
|
|
4484
4474
|
if (a) {
|
|
4485
|
-
let
|
|
4486
|
-
l = [
|
|
4475
|
+
let f = parseInt(a[1]), v = parseInt(a[2]), d = parseInt(a[3]);
|
|
4476
|
+
l = [f, v, d, 1];
|
|
4487
4477
|
}
|
|
4488
4478
|
} else
|
|
4489
4479
|
console.error("color类型只能为#rrggbb、#rgb、rgba(r,g,b,a)、rgb(r,g,b)");
|
|
@@ -4493,7 +4483,7 @@ const Ot = class Ot extends dt {
|
|
|
4493
4483
|
if (!o) return;
|
|
4494
4484
|
const l = [];
|
|
4495
4485
|
o.forEach((a) => {
|
|
4496
|
-
o.filter((
|
|
4486
|
+
o.filter((v) => v.dataset == a.dataset).length == 1 ? l.push({
|
|
4497
4487
|
condition: [{
|
|
4498
4488
|
field: "dataset",
|
|
4499
4489
|
op: "==",
|
|
@@ -4527,30 +4517,30 @@ const Ot = class Ot extends dt {
|
|
|
4527
4517
|
}
|
|
4528
4518
|
}
|
|
4529
4519
|
};
|
|
4530
|
-
p(
|
|
4531
|
-
let
|
|
4532
|
-
const
|
|
4520
|
+
p(Vt, "type", Vt.register("ESUeViewer", mn.type, Vt));
|
|
4521
|
+
let zi = Vt;
|
|
4522
|
+
const Ot = class Ot extends _ {
|
|
4533
4523
|
constructor(e, t) {
|
|
4534
4524
|
if (super(e, t), !t.viewer) {
|
|
4535
4525
|
console.warn("viewer is undefined!");
|
|
4536
4526
|
return;
|
|
4537
4527
|
}
|
|
4538
4528
|
this.d(e.addTreesEvent.don((r) => {
|
|
4539
|
-
|
|
4529
|
+
Fn(t, e.id, r);
|
|
4540
4530
|
})), this.d(e.removeAllTreesEvent.don(() => {
|
|
4541
|
-
|
|
4531
|
+
In(t, e.id);
|
|
4542
4532
|
})), this.d(e.updateTreeParamsEvent.don((r) => {
|
|
4543
|
-
|
|
4533
|
+
En(t, e.id, r);
|
|
4544
4534
|
})), this.d(e.cutDownTreesEvent.don((r, n) => {
|
|
4545
|
-
|
|
4535
|
+
Sn(t, e.id, r, n);
|
|
4546
4536
|
})), this.d(e.growthSimulationEvent.don((r, n, s) => {
|
|
4547
|
-
|
|
4537
|
+
Tn(t, e.id, r, n, s);
|
|
4548
4538
|
}));
|
|
4549
4539
|
}
|
|
4550
4540
|
};
|
|
4551
|
-
p(
|
|
4552
|
-
let
|
|
4553
|
-
const
|
|
4541
|
+
p(Ot, "type", Ot.register("ESUeViewer", Cn.type, Ot));
|
|
4542
|
+
let Hi = Ot;
|
|
4543
|
+
const jt = class jt extends I {
|
|
4554
4544
|
constructor(e, t) {
|
|
4555
4545
|
if (super(e, t), !t.viewer) {
|
|
4556
4546
|
console.warn("viewer is undefined!");
|
|
@@ -4558,9 +4548,9 @@ const te = class te extends I {
|
|
|
4558
4548
|
}
|
|
4559
4549
|
}
|
|
4560
4550
|
};
|
|
4561
|
-
p(
|
|
4562
|
-
let
|
|
4563
|
-
const
|
|
4551
|
+
p(jt, "type", jt.register("ESUeViewer", xn.type, jt));
|
|
4552
|
+
let Ji = jt;
|
|
4553
|
+
const te = class te extends M {
|
|
4564
4554
|
constructor(e, t) {
|
|
4565
4555
|
super(e, t);
|
|
4566
4556
|
const i = t.viewer;
|
|
@@ -4585,9 +4575,9 @@ const ee = class ee extends M {
|
|
|
4585
4575
|
}));
|
|
4586
4576
|
}
|
|
4587
4577
|
};
|
|
4588
|
-
p(
|
|
4589
|
-
let
|
|
4590
|
-
const
|
|
4578
|
+
p(te, "type", te.register("ESUeViewer", Rn.type, te));
|
|
4579
|
+
let bi = te;
|
|
4580
|
+
const ee = class ee extends M {
|
|
4591
4581
|
constructor(e, t) {
|
|
4592
4582
|
super(e, t);
|
|
4593
4583
|
const i = t.viewer;
|
|
@@ -4605,9 +4595,9 @@ const ie = class ie extends M {
|
|
|
4605
4595
|
}));
|
|
4606
4596
|
}
|
|
4607
4597
|
};
|
|
4608
|
-
p(
|
|
4609
|
-
let
|
|
4610
|
-
const
|
|
4598
|
+
p(ee, "type", ee.register("ESUeViewer", Ln.type, ee));
|
|
4599
|
+
let Gi = ee;
|
|
4600
|
+
const ie = class ie extends N {
|
|
4611
4601
|
constructor(e, t) {
|
|
4612
4602
|
if (super(e, t), !t.viewer) {
|
|
4613
4603
|
console.warn("viewer is undefined!");
|
|
@@ -4615,8 +4605,8 @@ const re = class re extends N {
|
|
|
4615
4605
|
}
|
|
4616
4606
|
}
|
|
4617
4607
|
};
|
|
4618
|
-
p(
|
|
4619
|
-
let
|
|
4608
|
+
p(ie, "type", ie.register("ESUeViewer", hr.type, ie));
|
|
4609
|
+
let Ki = ie;
|
|
4620
4610
|
const nt = class nt extends N {
|
|
4621
4611
|
constructor(e, t) {
|
|
4622
4612
|
super(e, t);
|
|
@@ -4626,17 +4616,17 @@ const nt = class nt extends N {
|
|
|
4626
4616
|
return;
|
|
4627
4617
|
}
|
|
4628
4618
|
this.d(e.callFunctionEvent.don(async (r, n) => {
|
|
4629
|
-
const s = await
|
|
4619
|
+
const s = await Ir(i, e.id, r, n);
|
|
4630
4620
|
e.__callFunctionResultEvent.emit(s);
|
|
4631
4621
|
}));
|
|
4632
4622
|
}
|
|
4633
4623
|
};
|
|
4634
|
-
p(nt, "type", nt.register("ESUeViewer",
|
|
4624
|
+
p(nt, "type", nt.register("ESUeViewer", kn.type, nt)), p(nt, "propValFuncs", {
|
|
4635
4625
|
...N.propValFuncs,
|
|
4636
4626
|
info: (e) => JSON.stringify(e ?? {})
|
|
4637
4627
|
});
|
|
4638
|
-
let
|
|
4639
|
-
const
|
|
4628
|
+
let Xi = nt;
|
|
4629
|
+
const Yi = (c) => {
|
|
4640
4630
|
switch (c) {
|
|
4641
4631
|
case 0:
|
|
4642
4632
|
return "成功绑定";
|
|
@@ -4651,7 +4641,7 @@ const Xi = (c) => {
|
|
|
4651
4641
|
default:
|
|
4652
4642
|
return "未知错误";
|
|
4653
4643
|
}
|
|
4654
|
-
},
|
|
4644
|
+
}, Co = (c) => {
|
|
4655
4645
|
switch (c) {
|
|
4656
4646
|
case 0:
|
|
4657
4647
|
return "创建成功";
|
|
@@ -4662,7 +4652,7 @@ const Xi = (c) => {
|
|
|
4662
4652
|
default:
|
|
4663
4653
|
return "未知错误";
|
|
4664
4654
|
}
|
|
4665
|
-
},
|
|
4655
|
+
}, re = class re extends b {
|
|
4666
4656
|
constructor(e, t) {
|
|
4667
4657
|
super(e, t);
|
|
4668
4658
|
const i = t.viewer;
|
|
@@ -4671,7 +4661,7 @@ const Xi = (c) => {
|
|
|
4671
4661
|
return;
|
|
4672
4662
|
}
|
|
4673
4663
|
this.d(() => {
|
|
4674
|
-
|
|
4664
|
+
Cr(i, e.id);
|
|
4675
4665
|
});
|
|
4676
4666
|
const r = async () => {
|
|
4677
4667
|
a() || await i.callUeFunc({
|
|
@@ -4681,8 +4671,8 @@ const Xi = (c) => {
|
|
|
4681
4671
|
name: e.name,
|
|
4682
4672
|
show: e.show,
|
|
4683
4673
|
rotation: e.rotation,
|
|
4684
|
-
flyToParam: e.flyToParam ??
|
|
4685
|
-
flyInParam: e.flyInParam ??
|
|
4674
|
+
flyToParam: e.flyToParam ?? ze,
|
|
4675
|
+
flyInParam: e.flyInParam ?? Ne,
|
|
4686
4676
|
highlight: e.highlight,
|
|
4687
4677
|
collision: e.collision,
|
|
4688
4678
|
scale: e.scale,
|
|
@@ -4713,7 +4703,7 @@ const Xi = (c) => {
|
|
|
4713
4703
|
position: e.position
|
|
4714
4704
|
}
|
|
4715
4705
|
}), (t.debug ?? !1) && console.log(`updatePostion:${e.position},actorTag:${e.actorTag},actorClass:${e.actorClass}`));
|
|
4716
|
-
}, a = () => !s && !o ? (console.warn(`${e.id} 未绑定ActorTag或未创建ActorClass!`), !0) : !1,
|
|
4706
|
+
}, a = () => !s && !o ? (console.warn(`${e.id} 未绑定ActorTag或未创建ActorClass!`), !0) : !1, f = async () => {
|
|
4717
4707
|
const { id: d } = e, h = await t.unBindActorByID(d);
|
|
4718
4708
|
h && h.error !== "" && console.warn(`${e.id} UeESUnrealActor UnBindActorByID: ${h.error}`), s = void 0;
|
|
4719
4709
|
const u = await i.callUeFunc({ f: "destroy", p: { id: d } });
|
|
@@ -4722,7 +4712,7 @@ const Xi = (c) => {
|
|
|
4722
4712
|
return;
|
|
4723
4713
|
}
|
|
4724
4714
|
o = void 0;
|
|
4725
|
-
},
|
|
4715
|
+
}, v = this.dv($({
|
|
4726
4716
|
type: "ActorClass",
|
|
4727
4717
|
actorClass: "default"
|
|
4728
4718
|
}));
|
|
@@ -4732,11 +4722,11 @@ const Xi = (c) => {
|
|
|
4732
4722
|
e.actorTagChanged
|
|
4733
4723
|
// sceneObject.positionChanged,
|
|
4734
4724
|
)), h = async () => {
|
|
4735
|
-
e.actorTag !== "" ?
|
|
4725
|
+
e.actorTag !== "" ? v.value = {
|
|
4736
4726
|
type: "ActorTag",
|
|
4737
4727
|
actorTag: e.actorTag
|
|
4738
4728
|
// position: sceneObject.position,
|
|
4739
|
-
} :
|
|
4729
|
+
} : v.value = {
|
|
4740
4730
|
type: "ActorClass",
|
|
4741
4731
|
actorClass: e.actorClass === "" ? "default" : e.actorClass
|
|
4742
4732
|
// position: sceneObject.position,
|
|
@@ -4745,10 +4735,10 @@ const Xi = (c) => {
|
|
|
4745
4735
|
h(), this.d(d.don(h)), this.d(e.flushEvent.don(() => d.flush()));
|
|
4746
4736
|
}
|
|
4747
4737
|
{
|
|
4748
|
-
const d = this.dv(
|
|
4749
|
-
if (await u.promise(
|
|
4750
|
-
const { actorTag: g } =
|
|
4751
|
-
await u.promise(
|
|
4738
|
+
const d = this.dv(Te(async (u) => {
|
|
4739
|
+
if (await u.promise(f()), v.value.type === "ActorTag") {
|
|
4740
|
+
const { actorTag: g } = v.value;
|
|
4741
|
+
await u.promise(f());
|
|
4752
4742
|
try {
|
|
4753
4743
|
e.lastActorStatus = "null";
|
|
4754
4744
|
const w = await u.promise(t.bindActorByTag(e.id, g));
|
|
@@ -4760,17 +4750,17 @@ const Xi = (c) => {
|
|
|
4760
4750
|
if (w.re.type === 0)
|
|
4761
4751
|
e.lastActorStatus = "bound", s = g;
|
|
4762
4752
|
else if (w.re.type === 1)
|
|
4763
|
-
e.lastActorStatus = "bound", s = g, console.warn(`${e.id} UeESUnrealActor BindActorByTag:${g},${
|
|
4753
|
+
e.lastActorStatus = "bound", s = g, console.warn(`${e.id} UeESUnrealActor BindActorByTag:${g},${Yi(w.re.type)}`);
|
|
4764
4754
|
else {
|
|
4765
|
-
s = void 0, console.warn(`${e.id} UeESUnrealActor BindActorByTag error:${g}, ${
|
|
4755
|
+
s = void 0, console.warn(`${e.id} UeESUnrealActor BindActorByTag error:${g}, ${Yi(w.re.type)}`);
|
|
4766
4756
|
return;
|
|
4767
4757
|
}
|
|
4768
4758
|
} catch (w) {
|
|
4769
4759
|
console.warn(`${e.id} UeESUnrealActor BindActorByTag catch error:${g}, ${w}`);
|
|
4770
4760
|
return;
|
|
4771
4761
|
}
|
|
4772
|
-
} else if (
|
|
4773
|
-
const { actorClass: g } =
|
|
4762
|
+
} else if (v.value.type === "ActorClass") {
|
|
4763
|
+
const { actorClass: g } = v.value;
|
|
4774
4764
|
try {
|
|
4775
4765
|
const w = await u.promise(t.createActorByClass(e.id, g));
|
|
4776
4766
|
if (!w) return;
|
|
@@ -4781,7 +4771,7 @@ const Xi = (c) => {
|
|
|
4781
4771
|
if (w.re.type === 0)
|
|
4782
4772
|
e.lastActorStatus = "created", o = g;
|
|
4783
4773
|
else {
|
|
4784
|
-
console.warn(`${e.id} UeESUnrealActor CreateActorByClass error type :${g},${
|
|
4774
|
+
console.warn(`${e.id} UeESUnrealActor CreateActorByClass error type :${g},${Co(w.re.type)}`);
|
|
4785
4775
|
return;
|
|
4786
4776
|
}
|
|
4787
4777
|
} catch (w) {
|
|
@@ -4793,23 +4783,23 @@ const Xi = (c) => {
|
|
|
4793
4783
|
})), h = async () => {
|
|
4794
4784
|
d.restart();
|
|
4795
4785
|
};
|
|
4796
|
-
h(), this.d(
|
|
4786
|
+
h(), this.d(v.changed.don(h));
|
|
4797
4787
|
}
|
|
4798
4788
|
this.d(e.positionChanged.don(l)), this.d(e.callFunctionEvent.don(async (d, h) => {
|
|
4799
4789
|
if (a()) {
|
|
4800
4790
|
e.__callFunctionResultEvent.emit(void 0);
|
|
4801
4791
|
return;
|
|
4802
4792
|
}
|
|
4803
|
-
const u = await
|
|
4793
|
+
const u = await Ir(i, e.id, d, h);
|
|
4804
4794
|
e.__callFunctionResultEvent.emit(u);
|
|
4805
4795
|
})), this.d(e.smoothMoveEvent.don((d, h) => {
|
|
4806
|
-
a() ||
|
|
4796
|
+
a() || De(i, e.id, d, h);
|
|
4807
4797
|
})), this.d(e.smoothMoveWithRotationEvent.don((d, h, u) => {
|
|
4808
|
-
a() ||
|
|
4798
|
+
a() || Le(i, e.id, d, h, u);
|
|
4809
4799
|
})), this.d(e.smoothMoveOnGroundEvent.don((d, h, u, g) => {
|
|
4810
4800
|
a() || ke(i, e.id, d, h, g, u);
|
|
4811
4801
|
})), this.d(e.smoothMoveWithRotationOnGroundEvent.don((d, h, u, g, w) => {
|
|
4812
|
-
a() ||
|
|
4802
|
+
a() || Pe(i, e.id, d, h, u, g, w);
|
|
4813
4803
|
})), this.d(e.automaticLandingEvent.don((d) => {
|
|
4814
4804
|
if (a()) return;
|
|
4815
4805
|
const h = [e.position[0], e.position[1]];
|
|
@@ -4818,11 +4808,11 @@ const Xi = (c) => {
|
|
|
4818
4808
|
});
|
|
4819
4809
|
})), this.d(e.flyToEvent.don(async (d, h) => {
|
|
4820
4810
|
if (a()) return;
|
|
4821
|
-
const u = await
|
|
4811
|
+
const u = await we(i, e.id, d);
|
|
4822
4812
|
let g = "over";
|
|
4823
4813
|
u === void 0 ? g = "error" : u.endType === 0 ? g = "over" : u.endType === 1 && (g = "cancelled"), e.flyOverEvent.emit(h, g, t);
|
|
4824
4814
|
})), this.d(e.calcFlyToParamEvent.don(() => {
|
|
4825
|
-
a() ||
|
|
4815
|
+
a() || dt(i, e.id);
|
|
4826
4816
|
})), this.d(e.calcFlyInParamEvent.don(async () => {
|
|
4827
4817
|
if (!t.actived) return;
|
|
4828
4818
|
const d = await t.getCurrentCameraInfo();
|
|
@@ -4837,9 +4827,9 @@ const Xi = (c) => {
|
|
|
4837
4827
|
}));
|
|
4838
4828
|
}
|
|
4839
4829
|
};
|
|
4840
|
-
p(
|
|
4841
|
-
let
|
|
4842
|
-
const
|
|
4830
|
+
p(re, "type", re.register("ESUeViewer", Pn.type, re));
|
|
4831
|
+
let Zi = re;
|
|
4832
|
+
const ne = class ne extends I {
|
|
4843
4833
|
constructor(e, t) {
|
|
4844
4834
|
if (super(e, t), !t.viewer) {
|
|
4845
4835
|
console.warn("viewer is undefined!");
|
|
@@ -4847,9 +4837,9 @@ const se = class se extends I {
|
|
|
4847
4837
|
}
|
|
4848
4838
|
}
|
|
4849
4839
|
};
|
|
4850
|
-
p(
|
|
4851
|
-
let
|
|
4852
|
-
const
|
|
4840
|
+
p(ne, "type", ne.register("ESUeViewer", Dn.type, ne));
|
|
4841
|
+
let qi = ne;
|
|
4842
|
+
const se = class se extends I {
|
|
4853
4843
|
constructor(e, t) {
|
|
4854
4844
|
if (super(e, t), !t.viewer) {
|
|
4855
4845
|
console.warn("viewer is undefined!");
|
|
@@ -4857,9 +4847,9 @@ const oe = class oe extends I {
|
|
|
4857
4847
|
}
|
|
4858
4848
|
}
|
|
4859
4849
|
};
|
|
4860
|
-
p(
|
|
4861
|
-
let
|
|
4862
|
-
const
|
|
4850
|
+
p(se, "type", se.register("ESUeViewer", Bn.type, se));
|
|
4851
|
+
let Qi = se;
|
|
4852
|
+
const oe = class oe extends D {
|
|
4863
4853
|
constructor(e, t) {
|
|
4864
4854
|
if (super(e, t), !t.viewer) {
|
|
4865
4855
|
console.warn("viewer is underfined!");
|
|
@@ -4867,9 +4857,9 @@ const ae = class ae extends D {
|
|
|
4867
4857
|
}
|
|
4868
4858
|
}
|
|
4869
4859
|
};
|
|
4870
|
-
p(
|
|
4871
|
-
let
|
|
4872
|
-
const
|
|
4860
|
+
p(oe, "type", oe.register("ESUeViewer", _n.type, oe));
|
|
4861
|
+
let Vi = oe;
|
|
4862
|
+
const ae = class ae extends M {
|
|
4873
4863
|
constructor(e, t) {
|
|
4874
4864
|
super(e, t);
|
|
4875
4865
|
const i = t.viewer;
|
|
@@ -4894,8 +4884,8 @@ const de = class de extends M {
|
|
|
4894
4884
|
}));
|
|
4895
4885
|
}
|
|
4896
4886
|
};
|
|
4897
|
-
p(
|
|
4898
|
-
let
|
|
4887
|
+
p(ae, "type", ae.register("ESUeViewer", Mn.type, ae));
|
|
4888
|
+
let Oi = ae;
|
|
4899
4889
|
const st = class st extends N {
|
|
4900
4890
|
constructor(e, t) {
|
|
4901
4891
|
if (super(e, t), !t.viewer) {
|
|
@@ -4904,12 +4894,12 @@ const st = class st extends N {
|
|
|
4904
4894
|
}
|
|
4905
4895
|
}
|
|
4906
4896
|
};
|
|
4907
|
-
p(st, "type", st.register("ESUeViewer",
|
|
4897
|
+
p(st, "type", st.register("ESUeViewer", $n.type, st)), p(st, "propValFuncs", {
|
|
4908
4898
|
...N.propValFuncs,
|
|
4909
4899
|
info: (e) => JSON.stringify(e ?? {})
|
|
4910
4900
|
});
|
|
4911
|
-
let
|
|
4912
|
-
const
|
|
4901
|
+
let ji = st;
|
|
4902
|
+
const de = class de extends b {
|
|
4913
4903
|
constructor(e, t) {
|
|
4914
4904
|
if (super(e, t), !t.viewer) {
|
|
4915
4905
|
console.warn("viewer is undefined!");
|
|
@@ -4922,16 +4912,16 @@ const le = class le extends b {
|
|
|
4922
4912
|
});
|
|
4923
4913
|
}
|
|
4924
4914
|
};
|
|
4925
|
-
p(
|
|
4926
|
-
let
|
|
4915
|
+
p(de, "type", de.register("ESUeViewer", Wn.type, de));
|
|
4916
|
+
let tr = de;
|
|
4927
4917
|
E.context.getStrFromEnv(j.defaults.imgUrl);
|
|
4928
|
-
const
|
|
4918
|
+
const le = class le extends b {
|
|
4929
4919
|
constructor(e, t) {
|
|
4930
4920
|
if (super(e, t), !t.viewer) {
|
|
4931
4921
|
console.warn("viewer is undefined!");
|
|
4932
4922
|
return;
|
|
4933
4923
|
}
|
|
4934
|
-
const r = this.disposeVar(new
|
|
4924
|
+
const r = this.disposeVar(new He());
|
|
4935
4925
|
t.add(r), this.dispose(() => t.delete(r)), this.dispose(F([r, "show"], [e, "show"])), r.instanceClass = class extends m {
|
|
4936
4926
|
// subContainer是外部视口的div容器,可以在这里创建自己需要的DOM元素
|
|
4937
4927
|
// customDiv指向当前的CustomDiv场景对象
|
|
@@ -4961,18 +4951,18 @@ const ce = class ce extends b {
|
|
|
4961
4951
|
d(), e.dispose(e.cssPositionChanged.disposableOn(d));
|
|
4962
4952
|
}
|
|
4963
4953
|
a.style.transition = " right 0.4s linear", a.style.cursor = "pointer";
|
|
4964
|
-
const
|
|
4965
|
-
a.appendChild(
|
|
4966
|
-
const
|
|
4967
|
-
|
|
4954
|
+
const f = document.createElement("div");
|
|
4955
|
+
a.appendChild(f), this.dispose(() => a.removeChild(f)), f.style.width = "100%", f.style.height = "100%", f.style.position = "relative";
|
|
4956
|
+
const v = document.createElement("img");
|
|
4957
|
+
f.appendChild(v), this.dispose(() => f.removeChild(v)), v.style.width = "100%", v.style.height = "100%", v.style.border = "none";
|
|
4968
4958
|
{
|
|
4969
|
-
const d = () =>
|
|
4959
|
+
const d = () => v.src = e.imgUrl;
|
|
4970
4960
|
d(), e.dispose(e.imgUrlChanged.disposableOn(d));
|
|
4971
4961
|
}
|
|
4972
4962
|
{
|
|
4973
4963
|
const d = () => {
|
|
4974
4964
|
const w = -t.getCurrentCameraInfo().rotation[0];
|
|
4975
|
-
|
|
4965
|
+
v.style.transform = `rotate(${w}deg)`;
|
|
4976
4966
|
};
|
|
4977
4967
|
let h;
|
|
4978
4968
|
const u = async () => {
|
|
@@ -4982,13 +4972,13 @@ const ce = class ce extends b {
|
|
|
4982
4972
|
};
|
|
4983
4973
|
this.dispose(e.showChanged.disposableOn(u)), u(), this.dispose(() => clearInterval(h));
|
|
4984
4974
|
}
|
|
4985
|
-
|
|
4975
|
+
v.style.transformOrigin = "50% 50%";
|
|
4986
4976
|
}
|
|
4987
4977
|
};
|
|
4988
4978
|
}
|
|
4989
4979
|
};
|
|
4990
|
-
p(
|
|
4991
|
-
let
|
|
4980
|
+
p(le, "type", le.register("ESUeViewer", j.type, le));
|
|
4981
|
+
let er = le;
|
|
4992
4982
|
const Q = class Q extends D {
|
|
4993
4983
|
constructor(e, t) {
|
|
4994
4984
|
super(e, t);
|
|
@@ -5012,41 +5002,41 @@ const Q = class Q extends D {
|
|
|
5012
5002
|
}
|
|
5013
5003
|
}
|
|
5014
5004
|
};
|
|
5015
|
-
p(Q, "type", Q.register("ESUeViewer",
|
|
5005
|
+
p(Q, "type", Q.register("ESUeViewer", An.type, Q)), p(Q, "forceUeUpdateProps", [
|
|
5016
5006
|
...D.forceUeUpdateProps
|
|
5017
5007
|
]), p(Q, "propValFuncs", {
|
|
5018
5008
|
...D.propValFuncs,
|
|
5019
5009
|
materialMode: null
|
|
5020
5010
|
});
|
|
5021
|
-
let
|
|
5022
|
-
async function
|
|
5011
|
+
let ir = Q;
|
|
5012
|
+
async function Fo(c) {
|
|
5023
5013
|
navigator.clipboard.writeText(c).then(function() {
|
|
5024
5014
|
console.log("复制成功");
|
|
5025
5015
|
}, function(e) {
|
|
5026
5016
|
console.log("复制失败");
|
|
5027
5017
|
});
|
|
5028
5018
|
}
|
|
5029
|
-
const
|
|
5019
|
+
const ce = class ce extends b {
|
|
5030
5020
|
constructor(e, t) {
|
|
5031
5021
|
if (super(e, t), !t.viewer) {
|
|
5032
5022
|
console.warn("viewer is undefined!");
|
|
5033
5023
|
return;
|
|
5034
5024
|
}
|
|
5035
|
-
const r = this.disposeVar(new
|
|
5025
|
+
const r = this.disposeVar(new He());
|
|
5036
5026
|
t.add(r), this.dispose(() => t.delete(r)), r.instanceClass = class extends m {
|
|
5037
5027
|
constructor(s, o, l) {
|
|
5038
5028
|
if (super(), this._subContainer = s, !l || !(l instanceof J)) return;
|
|
5039
5029
|
const a = document.createElement("div");
|
|
5040
5030
|
this._subContainer.appendChild(a), this.dispose(() => this._subContainer.removeChild(a)), a.style.width = "100%", a.style.position = "absolute", a.style.height = `${W.defaults.height}px`, a.style.left = "0", a.style.bottom = "0", a.style.color = "#fff", a.style.padding = "0 20px 0 0", a.style.boxSizing = "border-box", a.style.lineHeight = `${W.defaults.height}px`, a.style.zIndex = "100", a.style.alignContent = "center", a.style.justifyContent = "space-between";
|
|
5041
|
-
const v = document.createElement("span");
|
|
5042
|
-
a.appendChild(v), this.dispose(() => a.removeChild(v));
|
|
5043
5031
|
const f = document.createElement("span");
|
|
5044
|
-
|
|
5032
|
+
a.appendChild(f), this.dispose(() => a.removeChild(f));
|
|
5033
|
+
const v = document.createElement("span");
|
|
5034
|
+
f.appendChild(v), this.dispose(() => f.removeChild(v));
|
|
5045
5035
|
const d = document.createElement("span");
|
|
5046
|
-
|
|
5036
|
+
f.appendChild(d), d.addEventListener("dblclick", function() {
|
|
5047
5037
|
let u = d.innerHTML;
|
|
5048
|
-
u.startsWith("鼠标位置") && (u = u.slice(5)),
|
|
5049
|
-
}), d.style.cursor = "pointer", this.dispose(() =>
|
|
5038
|
+
u.startsWith("鼠标位置") && (u = u.slice(5)), Fo(u);
|
|
5039
|
+
}), d.style.cursor = "pointer", this.dispose(() => f.removeChild(d));
|
|
5050
5040
|
const h = document.createElement("span");
|
|
5051
5041
|
a.appendChild(h), this.dispose(() => a.removeChild(h));
|
|
5052
5042
|
{
|
|
@@ -5075,20 +5065,20 @@ const ue = class ue extends b {
|
|
|
5075
5065
|
{
|
|
5076
5066
|
const u = () => {
|
|
5077
5067
|
let y = "", S = "";
|
|
5078
|
-
y += `帧率:${l.getFPS().toFixed(0)}FPS`,
|
|
5068
|
+
y += `帧率:${l.getFPS().toFixed(0)}FPS`, v.innerText = y;
|
|
5079
5069
|
const C = t.getCurrentCameraInfo();
|
|
5080
|
-
y += ` 经度: ${C.position[0].toFixed(5)}° 纬度: ${C.position[1].toFixed(5)}° 高度: ${C.position[2].toFixed(2)}米 偏航角: ${C.rotation[0].toFixed(2)}° 俯仰角: ${C.rotation[1].toFixed(2)}° 翻滚角:${C.rotation[2].toFixed(2)}° `,
|
|
5081
|
-
if (
|
|
5082
|
-
const { pickResult:
|
|
5083
|
-
if (
|
|
5084
|
-
const { position: A } =
|
|
5070
|
+
y += ` 经度: ${C.position[0].toFixed(5)}° 纬度: ${C.position[1].toFixed(5)}° 高度: ${C.position[2].toFixed(2)}米 偏航角: ${C.rotation[0].toFixed(2)}° 俯仰角: ${C.rotation[1].toFixed(2)}° 翻滚角:${C.rotation[2].toFixed(2)}° `, v.innerText = y, t.pick().then((P) => {
|
|
5071
|
+
if (P) {
|
|
5072
|
+
const { pickResult: k } = P;
|
|
5073
|
+
if (k && k.position) {
|
|
5074
|
+
const { position: A } = k;
|
|
5085
5075
|
S += `鼠标位置:${A[0].toFixed(5)}° ${A[1].toFixed(5)}° ${A[2].toFixed(2)}m`;
|
|
5086
5076
|
} else
|
|
5087
5077
|
S += "暂时无法获取鼠标位置...";
|
|
5088
5078
|
d.innerText = S;
|
|
5089
5079
|
}
|
|
5090
|
-
}).catch((
|
|
5091
|
-
console.log(
|
|
5080
|
+
}).catch((P) => {
|
|
5081
|
+
console.log(P);
|
|
5092
5082
|
});
|
|
5093
5083
|
};
|
|
5094
5084
|
let g;
|
|
@@ -5103,9 +5093,9 @@ const ue = class ue extends b {
|
|
|
5103
5093
|
};
|
|
5104
5094
|
}
|
|
5105
5095
|
};
|
|
5106
|
-
p(
|
|
5107
|
-
let
|
|
5108
|
-
const
|
|
5096
|
+
p(ce, "type", ce.register("ESUeViewer", W.type, ce));
|
|
5097
|
+
let rr = ce;
|
|
5098
|
+
const ue = class ue extends I {
|
|
5109
5099
|
constructor(e, t) {
|
|
5110
5100
|
if (super(e, t), !t.viewer) {
|
|
5111
5101
|
console.warn("viewer is undefined!");
|
|
@@ -5113,12 +5103,12 @@ const he = class he extends I {
|
|
|
5113
5103
|
}
|
|
5114
5104
|
}
|
|
5115
5105
|
};
|
|
5116
|
-
p(
|
|
5117
|
-
let
|
|
5118
|
-
const
|
|
5106
|
+
p(ue, "type", ue.register("ESUeViewer", Un.type, ue));
|
|
5107
|
+
let nr = ue;
|
|
5108
|
+
const he = class he extends at {
|
|
5119
5109
|
constructor(t, i) {
|
|
5120
5110
|
super(t, i);
|
|
5121
|
-
p(this, "_es3DTileset", this.dv(new
|
|
5111
|
+
p(this, "_es3DTileset", this.dv(new ur()));
|
|
5122
5112
|
if (!i.viewer) {
|
|
5123
5113
|
console.warn("viewer is undefined!");
|
|
5124
5114
|
return;
|
|
@@ -5173,9 +5163,9 @@ const pe = class pe extends dt {
|
|
|
5173
5163
|
return this._es3DTileset;
|
|
5174
5164
|
}
|
|
5175
5165
|
};
|
|
5176
|
-
p(
|
|
5177
|
-
let
|
|
5178
|
-
const
|
|
5166
|
+
p(he, "type", he.register("ESUeViewer", Nn.type, he));
|
|
5167
|
+
let sr = he;
|
|
5168
|
+
const pe = class pe extends at {
|
|
5179
5169
|
constructor(e, t) {
|
|
5180
5170
|
if (super(e, t), !t.viewer) {
|
|
5181
5171
|
console.warn("viewer is undefined!");
|
|
@@ -5183,8 +5173,8 @@ const fe = class fe extends dt {
|
|
|
5183
5173
|
}
|
|
5184
5174
|
}
|
|
5185
5175
|
};
|
|
5186
|
-
p(
|
|
5187
|
-
let
|
|
5176
|
+
p(pe, "type", pe.register("ESUeViewer", zn.type, pe));
|
|
5177
|
+
let or = pe;
|
|
5188
5178
|
const ve = class ve extends M {
|
|
5189
5179
|
constructor(e, t) {
|
|
5190
5180
|
super(e, t);
|
|
@@ -5198,9 +5188,9 @@ const ve = class ve extends M {
|
|
|
5198
5188
|
f: "update",
|
|
5199
5189
|
p: {
|
|
5200
5190
|
id: e.id,
|
|
5201
|
-
height: e.height ??
|
|
5202
|
-
extrudedHeight: e.extrudedHeight ??
|
|
5203
|
-
perPositionHeight: e.perPositionHeight ??
|
|
5191
|
+
height: e.height ?? me.defaults.height,
|
|
5192
|
+
extrudedHeight: e.extrudedHeight ?? me.defaults.extrudedHeight,
|
|
5193
|
+
perPositionHeight: e.perPositionHeight ?? me.defaults.perPositionHeight
|
|
5204
5194
|
}
|
|
5205
5195
|
});
|
|
5206
5196
|
}, n = this.disposeVar(R(
|
|
@@ -5211,9 +5201,9 @@ const ve = class ve extends M {
|
|
|
5211
5201
|
this.dispose(n.disposableOn(r)), this.dispose(e.createdEvent.disposableOn(r));
|
|
5212
5202
|
}
|
|
5213
5203
|
};
|
|
5214
|
-
p(ve, "type", ve.register("ESUeViewer",
|
|
5215
|
-
let
|
|
5216
|
-
const
|
|
5204
|
+
p(ve, "type", ve.register("ESUeViewer", me.type, ve));
|
|
5205
|
+
let ar = ve;
|
|
5206
|
+
const fe = class fe extends I {
|
|
5217
5207
|
constructor(e, t) {
|
|
5218
5208
|
if (super(e, t), !t.viewer) {
|
|
5219
5209
|
console.warn("viewer is undefined!");
|
|
@@ -5221,9 +5211,9 @@ const ge = class ge extends I {
|
|
|
5221
5211
|
}
|
|
5222
5212
|
}
|
|
5223
5213
|
};
|
|
5224
|
-
p(
|
|
5225
|
-
let
|
|
5226
|
-
const
|
|
5214
|
+
p(fe, "type", fe.register("ESUeViewer", Hn.type, fe));
|
|
5215
|
+
let dr = fe;
|
|
5216
|
+
const ge = class ge extends D {
|
|
5227
5217
|
constructor(e, t) {
|
|
5228
5218
|
super(e, t);
|
|
5229
5219
|
const i = t.viewer;
|
|
@@ -5248,14 +5238,14 @@ const we = class we extends D {
|
|
|
5248
5238
|
}));
|
|
5249
5239
|
}
|
|
5250
5240
|
};
|
|
5251
|
-
p(
|
|
5252
|
-
let
|
|
5241
|
+
p(ge, "type", ge.register("ESUeViewer", Jn.type, ge));
|
|
5242
|
+
let lr = ge, Me;
|
|
5253
5243
|
try {
|
|
5254
|
-
const c = "earthsdk3-ue", e = "3.4.0-beta.
|
|
5244
|
+
const c = "earthsdk3-ue", e = "3.4.0-beta.3", t = "2025-08-28T09:20:02.000Z", i = "北京西部世界科技有限公司", r = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", n = "27c0506b6271f81fa83b6f81a48f38960b6c87bc", o = ((Date.now() - 1756372802e3) / 36e5).toFixed(1), l = `%c🌏 ${c}%c ${e}.${n.slice(0, 8)}.${t} (距今${o}个小时)
|
|
5255
5245
|
%c${r ? r + `
|
|
5256
5246
|
` : ""}当前网站正在使用${c},此软件版权归${i}所有
|
|
5257
5247
|
`;
|
|
5258
|
-
|
|
5248
|
+
Me = Object.freeze({
|
|
5259
5249
|
// @ts-ignore
|
|
5260
5250
|
get owner() {
|
|
5261
5251
|
return "北京西部世界科技有限公司";
|
|
@@ -5265,7 +5255,7 @@ try {
|
|
|
5265
5255
|
},
|
|
5266
5256
|
// @ts-ignore
|
|
5267
5257
|
get gituri() {
|
|
5268
|
-
return GITURI_ && GITURI_.replace("${commitId}", "
|
|
5258
|
+
return GITURI_ && GITURI_.replace("${commitId}", "27c0506b6271f81fa83b6f81a48f38960b6c87bc");
|
|
5269
5259
|
},
|
|
5270
5260
|
// @ts-ignore
|
|
5271
5261
|
get info() {
|
|
@@ -5273,7 +5263,7 @@ try {
|
|
|
5273
5263
|
},
|
|
5274
5264
|
// @ts-ignore
|
|
5275
5265
|
get date() {
|
|
5276
|
-
return "2025-08-
|
|
5266
|
+
return "2025-08-28T09:20:02.000Z";
|
|
5277
5267
|
},
|
|
5278
5268
|
// @ts-ignore
|
|
5279
5269
|
get author() {
|
|
@@ -5281,7 +5271,7 @@ try {
|
|
|
5281
5271
|
},
|
|
5282
5272
|
// @ts-ignore
|
|
5283
5273
|
get version() {
|
|
5284
|
-
return "3.4.0-beta.
|
|
5274
|
+
return "3.4.0-beta.3";
|
|
5285
5275
|
},
|
|
5286
5276
|
// @ts-ignore
|
|
5287
5277
|
get name() {
|
|
@@ -5289,7 +5279,7 @@ try {
|
|
|
5289
5279
|
},
|
|
5290
5280
|
// @ts-ignore
|
|
5291
5281
|
get commitId() {
|
|
5292
|
-
return "
|
|
5282
|
+
return "27c0506b6271f81fa83b6f81a48f38960b6c87bc";
|
|
5293
5283
|
},
|
|
5294
5284
|
print(a = !1) {
|
|
5295
5285
|
!a && window._xe2_no_copy_print || console.info(
|
|
@@ -5316,155 +5306,155 @@ try {
|
|
|
5316
5306
|
`
|
|
5317
5307
|
);
|
|
5318
5308
|
}
|
|
5319
|
-
}), window.g_XE3CopyRights = window.g_XE3CopyRights || {}, window.g_XE3CopyRights[c] =
|
|
5309
|
+
}), window.g_XE3CopyRights = window.g_XE3CopyRights || {}, window.g_XE3CopyRights[c] = Me, window.g_earthsdk_copyright_print = window.g_earthsdk_copyright_print ?? !0, window.g_earthsdk_copyright_print && Me.print();
|
|
5320
5310
|
} catch {
|
|
5321
5311
|
}
|
|
5322
5312
|
export {
|
|
5323
5313
|
J as ESUeViewer,
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5314
|
+
mo as GeoDivFromESImageLabel,
|
|
5315
|
+
yo as GeoDivFromESTextLabel,
|
|
5316
|
+
rs as HighlightFeatureAndFlyToCallFunc,
|
|
5317
|
+
is as HighlightFeatureCallFunc,
|
|
5318
|
+
ss as SetLayerColorCallFunc,
|
|
5319
|
+
ns as SetLayerVisibleCallFunc,
|
|
5320
|
+
Be as UeCloudViewerBase,
|
|
5321
|
+
We as UeES3DTileset,
|
|
5322
|
+
Ve as UeESAlarm,
|
|
5323
|
+
Oe as UeESApertureEffect,
|
|
5324
|
+
je as UeESAreaMeasurement,
|
|
5325
|
+
ti as UeESBlastParticleSystem,
|
|
5326
|
+
ei as UeESBoxClipping,
|
|
5327
|
+
ii as UeESCameraView,
|
|
5328
|
+
ri as UeESCameraVisibleRange,
|
|
5329
|
+
ni as UeESCar,
|
|
5330
|
+
si as UeESClassification,
|
|
5331
|
+
oi as UeESClippingPlane,
|
|
5332
|
+
ai as UeESDataMesh,
|
|
5333
|
+
di as UeESDatasmithRuntimeModel,
|
|
5334
|
+
li as UeESDirectionMeasurement,
|
|
5335
|
+
ci as UeESDistanceMeasurement,
|
|
5336
|
+
ui as UeESDynamicWater,
|
|
5337
|
+
hi as UeESEntityCluster,
|
|
5338
|
+
pi as UeESExcavate,
|
|
5339
|
+
vi as UeESFireParticleSystem,
|
|
5350
5340
|
fi as UeESForestTileset,
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5341
|
+
nr as UeESGaussianSplatting,
|
|
5342
|
+
gi as UeESGeoDiv,
|
|
5343
|
+
ar as UeESGeoExtrudedPolygon,
|
|
5344
|
+
wi as UeESGeoJson,
|
|
5345
|
+
Ue as UeESGeoLineString,
|
|
5356
5346
|
M as UeESGeoPolygon,
|
|
5357
|
-
|
|
5347
|
+
yi as UeESGeoRectangle,
|
|
5358
5348
|
D as UeESGeoVector,
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5349
|
+
mi as UeESGeoWater,
|
|
5350
|
+
Ci as UeESGltfModel,
|
|
5351
|
+
Fi as UeESHeightMeasurement,
|
|
5352
|
+
Ii as UeESHuman,
|
|
5353
|
+
tr as UeESHumanPoi,
|
|
5354
|
+
Ei as UeESImageLabel,
|
|
5355
|
+
qe as UeESImageryLayer,
|
|
5366
5356
|
N as UeESLabel,
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5357
|
+
Si as UeESLevelRuntimeModel,
|
|
5358
|
+
Ti as UeESLocalCircle,
|
|
5359
|
+
Ae as UeESLocalPolygon,
|
|
5360
|
+
xi as UeESLocalPolygonZ,
|
|
5361
|
+
Ri as UeESLocalRectangle,
|
|
5362
|
+
Li as UeESLocalSkyBox,
|
|
5363
|
+
Er as UeESLocalVector,
|
|
5364
|
+
Ke as UeESLocalVector2D,
|
|
5365
|
+
ki as UeESLocationMeasurement,
|
|
5366
|
+
or as UeESMsTileset,
|
|
5367
|
+
er as UeESNavigator,
|
|
5378
5368
|
I as UeESObjectWithLocation,
|
|
5379
|
-
|
|
5369
|
+
ir as UeESPath,
|
|
5380
5370
|
Pi as UeESPipeFence,
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5371
|
+
Di as UeESPipeline,
|
|
5372
|
+
Bi as UeESPipeserTileset,
|
|
5373
|
+
_i as UeESPit,
|
|
5374
|
+
Mi as UeESPoi2D,
|
|
5375
|
+
$i as UeESPoi3D,
|
|
5376
|
+
Wi as UeESPoiTileset,
|
|
5377
|
+
Ai as UeESPolygonFence,
|
|
5378
|
+
Ui as UeESPolygonFlattenedPlane,
|
|
5379
|
+
Ni as UeESPolygonWithHole,
|
|
5380
|
+
sr as UeESRtsFeatureEditing,
|
|
5381
|
+
zi as UeESRtsTileset,
|
|
5382
|
+
at as UeESSceneObject,
|
|
5383
|
+
Hi as UeESSeparateFoliage,
|
|
5384
|
+
lr as UeESSkylineAnalysis,
|
|
5385
|
+
dr as UeESStaticMesh,
|
|
5386
|
+
Ji as UeESSubmergingAnalysis,
|
|
5387
|
+
bi as UeESSunshineAnalysis,
|
|
5388
|
+
Gi as UeESSurfaceAreaMeasurement,
|
|
5389
|
+
Qe as UeESTerrainLayer,
|
|
5390
|
+
Ki as UeESTextLabel,
|
|
5391
|
+
Xi as UeESUEWidget,
|
|
5392
|
+
Zi as UeESUnrealActor,
|
|
5393
|
+
qi as UeESVideoFusion,
|
|
5394
|
+
Qi as UeESViewShed,
|
|
5395
|
+
rr as UeESViewerStatusBar,
|
|
5396
|
+
Vi as UeESVisibilityAnalysis,
|
|
5407
5397
|
_ as UeESVisualObject,
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5398
|
+
Oi as UeESVolumeMeasurement,
|
|
5399
|
+
ji as UeESWidget,
|
|
5400
|
+
Bs as bind3DTilesetByTagCallFunc,
|
|
5401
|
+
Rs as bindActorByTagCallFunc,
|
|
5402
|
+
$s as bindImageryByTagCallFunc,
|
|
5403
|
+
dt as calcFlyToParamCallFunc,
|
|
5404
|
+
Ir as callFunctionCallFunc,
|
|
5415
5405
|
fs as captureCallFunc,
|
|
5416
5406
|
H as changeNavigationModeCallFunc,
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5407
|
+
Me as copyright,
|
|
5408
|
+
Ds as createActorByClassCallFunc,
|
|
5409
|
+
Cr as destroyCallFunc,
|
|
5410
|
+
Re as flyInCallFunc,
|
|
5411
|
+
Vn as flyInDefaultCameraCallFunc,
|
|
5412
|
+
we as flyToCallFunc,
|
|
5413
|
+
es as generateMemReportCallFunc,
|
|
5414
|
+
ms as getAllSocketNamesByActorTagCallFunc,
|
|
5415
|
+
Fs as getBoundSphereCallFunc,
|
|
5416
|
+
Is as getBoundSphereWithChildrenCallFunc,
|
|
5417
|
+
Ns as getCameraRelativeHeightCallFunc,
|
|
5418
|
+
Ss as getFillMaterialParamInfoCallFunc,
|
|
5419
|
+
Ts as getGlobalPropertyCallFunc,
|
|
5420
|
+
ps as getHeightByLonLatCallFunc,
|
|
5421
|
+
vs as getHeightByLonLatsCallFunc,
|
|
5422
|
+
Us as getIdByComponentNameAndHitItemCallFunc,
|
|
5423
|
+
ws as getLonLatAltToScreenPositionCallFunc,
|
|
5424
|
+
xs as getObjectByInfoCallFunc,
|
|
5425
|
+
bs as getStatusCallFunc,
|
|
5426
|
+
Es as getStrokeMaterialParamInfoCallFunc,
|
|
5427
|
+
Ys as getTilesetMaterialIDListCallFunc,
|
|
5428
|
+
Cs as getVersionCallFunc,
|
|
5429
|
+
Hs as highlightActorByTagCallFunc,
|
|
5430
|
+
ts as mountPakFiles,
|
|
5431
|
+
Xs as moveObjectsCallFunc,
|
|
5432
|
+
gs as partialCaptureCallFunc,
|
|
5433
|
+
us as pickCallFunc,
|
|
5434
|
+
hs as pickPositionCallFunc,
|
|
5435
|
+
cs as quitCallFunc,
|
|
5436
|
+
Qn as refreshTilesetCallFunc,
|
|
5437
|
+
Fr as resetWithCurrentCameraCallFunc,
|
|
5438
|
+
Ls as restoreOriginalSceneCallFunc,
|
|
5439
|
+
zs as saveStringToFileCallFunc,
|
|
5440
|
+
Js as sendCustomMessageCallFunc,
|
|
5441
|
+
ls as setGlobalPropertyCallFunc,
|
|
5442
|
+
os as setNodePositionCallFunc,
|
|
5443
|
+
as as setNodeRotationCallFunc,
|
|
5444
|
+
ds as setNodeScaleCallFunc,
|
|
5445
|
+
De as smoothMoveCallFunc,
|
|
5456
5446
|
ke as smoothMoveOnGroundCallFunc,
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5447
|
+
Le as smoothMoveWithRotationCallFunc,
|
|
5448
|
+
Pe as smoothMoveWithRotationOnGroundCallFunc,
|
|
5449
|
+
Gs as startEditingCallFunc,
|
|
5450
|
+
On as startVoiceCallFunc,
|
|
5451
|
+
Ks as stopEditingCallFunc,
|
|
5452
|
+
jn as stopVoiceCallFunc,
|
|
5453
|
+
ys as uePositionToLonLatAltCallFunc,
|
|
5454
|
+
Ms as unBind3DTilesetByIdCallFunc,
|
|
5455
|
+
_s as unBind3DTilesetByTagCallFunc,
|
|
5456
|
+
ks as unBindActorByIDCallFunc,
|
|
5467
5457
|
Ps as unBindActorByTagCallFunc,
|
|
5468
|
-
|
|
5469
|
-
|
|
5458
|
+
As as unBindImageryByIdCallFunc,
|
|
5459
|
+
Ws as unBindImageryByTagCallFunc
|
|
5470
5460
|
};
|