earthsdk3-ue 3.6.0 → 3.6.2
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 +2 -2
- package/dist/earthsdk3-ue.js +418 -418
- package/dist/earthsdk3-ue.umd.cjs +2 -2
- package/package.json +2 -2
package/dist/earthsdk3-ue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Br = Object.defineProperty;
|
|
2
2
|
var _r = (d, e, t) => e in d ? Br(d, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[e] = t;
|
|
3
|
-
var
|
|
4
|
-
import { ESViewer as Ee, reactArrayWithUndefined as pr, ESSceneObject as I, ESJPickedResult as Ae, Destroyable as C, HasOwner as Mr, createGuid as M, Event as x, createAnimateFrame as be, createInterval as Se, react as W, createNextAnimateFrameEvent as L, ViewerCustomInteraction as
|
|
3
|
+
var g = (d, e, t) => _r(d, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { ESViewer as Ee, reactArrayWithUndefined as pr, ESSceneObject as I, ESJPickedResult as Ae, Destroyable as C, HasOwner as Mr, createGuid as M, Event as x, createAnimateFrame as be, createInterval as Se, react as W, createNextAnimateFrameEvent as L, ViewerCustomInteraction as gr, ObjResettingWithEvent as P, createProcessingFromAsyncFunc as Te, sleep as $r, getGeoBoundingSphereFromPositions as Wr, extendClassProps as Ar, EngineObject as G, ES3DTileset as me, ESImageryLayer as U, reactJson as He, ESTerrainLayer as Ur, ESAlarm as Nr, ESApertureEffect as zr, ESGeoPolygon as br, ESAreaMeasurement as j, ESBlastParticleSystem as Hr, ESBoxClipping as Jr, ESCameraView as Gr, ESCameraVisibleRange as Kr, ESCar as Xr, ESClassification as ct, ESClippingPlane as Yr, ESDataMesh as b, ESDatasmithRuntimeModel as Zr, ESDirectionMeasurement as qr, ESDistanceMeasurement as Me, ESLocalPolygon as Qr, ESDynamicWater as Vr, ESEntityCluster as Or, ESExcavate as jr, ESFireParticleSystem as tn, ESForestTileset as N, ESGeoDiv as Ce, ESTextLabel as vr, bind as D, ESCustomDiv as Je, ESImageLabel as fr, track as F, PosFloatDiv as en, getDistancesFromPositions as rn, ESGeoJson as nn, ESGeoLineString as sn, ESGeoRectangle as on, ESGeoWater as an, rpToap as Fe, ESGltfModel as ln, ESHeightMeasurement as dn, ESHuman as cn, ESLevelRuntimeModel as un, ESLocalCircle as hn, ESLocalPolygonZ as pn, ESLocalRectangle as gn, ESLocalSkyBox as vn, ESLocationMeasurement as fn, ESPipeFence as wn, ESPipeline as yn, ESPipeserTileset as mn, ESPit as Cn, ESPoi2D as Fn, ESPoi3D as In, ESPoiTileset as En, ESPolygonFence as Sn, ESPolygonFlattenedPlane as Tn, ESPolygonWithHole as xn, ESRtsTileset as Rn, ESSeparateFoliage as Pn, addTreesCallFunc as Ln, removeAllTreesCallFunc as Dn, updateTreeParamsCallFunc as kn, cutDownTreesCallFunc as Bn, growthSimulationCallFunc as _n, ESSubmergingAnalysis as Mn, ESSunshineAnalysis as $n, ESSurfaceAreaMeasurement as Wn, ESUEWidget as An, ESUnrealActor as $e, ESVideoFusion as Un, ESViewShed as Nn, ESVisibilityAnalysis as zn, ESVolumeMeasurement as bn, ESWidget as Hn, ESHumanPoi as Jn, ESNavigator as tt, ESPath as Gn, ESViewerStatusBar as A, ESGaussianSplatting as Kn, ESRtsFeatureEditing as Xn, ESMsTileset as Yn, ESGeoExtrudedPolygon as ye, ESStaticMesh as Zn, ESSkylineAnalysis as qn } from "earthsdk3";
|
|
5
5
|
import { Logger as wr, Config as yr, TextParameters as Qn, Flags as at, NumericParameters as mr, PixelStreaming as Cr } from "@epicgames-ps/lib-pixelstreamingfrontend-ue5.2";
|
|
6
6
|
import Vn from "html2canvas";
|
|
7
7
|
var hr;
|
|
@@ -349,7 +349,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
349
349
|
return;
|
|
350
350
|
}
|
|
351
351
|
return e;
|
|
352
|
-
},
|
|
352
|
+
}, gs = async (d, e, t, i) => {
|
|
353
353
|
console.log("pickCallFunc", e, t, i);
|
|
354
354
|
const r = await d.callUeFunc({
|
|
355
355
|
f: "pick",
|
|
@@ -361,7 +361,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
361
361
|
}
|
|
362
362
|
let n = r.re.id, s, o = n ? I.getSceneObject(n) : void 0;
|
|
363
363
|
return o && o.parentID && (o = I.getSceneObject(o.parentID)), s = new Ae(r.re, o, r.re.features, r.re.add, t, e), o && Reflect.has(o, "allowPicking") && Reflect.has(o, "pickedEvent") && (o.allowPicking ?? !1) && o.pickedEvent.emit(s), o && Reflect.has(o, "allowPicking") && !o.allowPicking ? new Ae() : s;
|
|
364
|
-
},
|
|
364
|
+
}, vs = async (d, e) => {
|
|
365
365
|
const t = await d.callUeFunc({
|
|
366
366
|
f: "pickPosition",
|
|
367
367
|
p: { screenPosition: e }
|
|
@@ -372,7 +372,7 @@ const we = async (d, e, t, i, r, n = "default") => {
|
|
|
372
372
|
}
|
|
373
373
|
const { position: i } = t.re;
|
|
374
374
|
return i;
|
|
375
|
-
},
|
|
375
|
+
}, fs = async (d, e, t, i = "ECC_Visibility") => {
|
|
376
376
|
const r = await d.callUeFunc({
|
|
377
377
|
f: "GetHeightByLonLat",
|
|
378
378
|
p: { Lon: e, Lat: t, Channel: i }
|
|
@@ -670,8 +670,8 @@ const Vs = {
|
|
|
670
670
|
class Os extends Mr {
|
|
671
671
|
constructor(t, i) {
|
|
672
672
|
super(t);
|
|
673
|
-
|
|
674
|
-
|
|
673
|
+
g(this, "_processResponseFn", (t) => this.esUeViewer.processResponse(t));
|
|
674
|
+
g(this, "_inner");
|
|
675
675
|
this._uri = i, this._inner = new WebSocket(this._uri), this.d(() => {
|
|
676
676
|
this._inner.close();
|
|
677
677
|
}), this._innerInit();
|
|
@@ -699,10 +699,10 @@ class Os extends Mr {
|
|
|
699
699
|
let h = s[o / 4];
|
|
700
700
|
o += 4;
|
|
701
701
|
for (let a = 0; a < h; a++) {
|
|
702
|
-
let
|
|
702
|
+
let f = s[o / 4];
|
|
703
703
|
o += 4;
|
|
704
|
-
let p = new TextDecoder("utf-8").decode(n.slice(o, o +
|
|
705
|
-
o +=
|
|
704
|
+
let p = new TextDecoder("utf-8").decode(n.slice(o, o + f));
|
|
705
|
+
o += f, this._processResponseFn(p);
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
708
|
}, i.readAsArrayBuffer(t.data);
|
|
@@ -746,11 +746,11 @@ wr.SetLoggerVerbosity(1);
|
|
|
746
746
|
class to extends C {
|
|
747
747
|
constructor(t, i) {
|
|
748
748
|
super();
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
749
|
+
g(this, "_eventTarget", new EventTarget());
|
|
750
|
+
g(this, "debug", !1);
|
|
751
|
+
g(this, "uiInteractionCallbacks", /* @__PURE__ */ new Map());
|
|
752
|
+
g(this, "_pixelStream");
|
|
753
|
+
g(this, "_esMsgWsWrapper");
|
|
754
754
|
this._domOrDomId = t, this._options = i;
|
|
755
755
|
const r = typeof this._domOrDomId == "string" ? document.getElementById(this._domOrDomId) : this._domOrDomId;
|
|
756
756
|
if (!r) throw new Error(`ESUEViewer container${this._domOrDomId} error!`);
|
|
@@ -867,8 +867,8 @@ class to extends C {
|
|
|
867
867
|
return;
|
|
868
868
|
}
|
|
869
869
|
const h = Math.ceil(s / n) | 0;
|
|
870
|
-
[...new Array(h).keys()].map((
|
|
871
|
-
this.esMsgWsWrapper && this.esMsgWsWrapper.emitDescriptorWithString(Ie.UIInteraction, `${o}-${p}/${h}-` +
|
|
870
|
+
[...new Array(h).keys()].map((f) => r.slice(f * n, (f + 1) * n)).forEach((f, p) => {
|
|
871
|
+
this.esMsgWsWrapper && this.esMsgWsWrapper.emitDescriptorWithString(Ie.UIInteraction, `${o}-${p}/${h}-` + f);
|
|
872
872
|
});
|
|
873
873
|
}
|
|
874
874
|
}
|
|
@@ -899,8 +899,8 @@ class to extends C {
|
|
|
899
899
|
class eo extends C {
|
|
900
900
|
constructor(t, i, r) {
|
|
901
901
|
super();
|
|
902
|
-
|
|
903
|
-
|
|
902
|
+
g(this, "_instance");
|
|
903
|
+
g(this, "_event", this.dv(new x()));
|
|
904
904
|
this._container = t, this._wsuri = i, this._esmsgWsUri = r, this._instance = this.dv(new to(this._container, { url: this._wsuri, esmsgWsUri: this._esmsgWsUri })), this.instanceInit();
|
|
905
905
|
}
|
|
906
906
|
get webSocketReady() {
|
|
@@ -963,19 +963,19 @@ class eo extends C {
|
|
|
963
963
|
class io extends Be {
|
|
964
964
|
constructor(t, i, r, n) {
|
|
965
965
|
super();
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
966
|
+
g(this, "_esueViewerWrapper");
|
|
967
|
+
g(this, "_ueFuncResultWithIdsEvent", this.dv(new x()));
|
|
968
|
+
g(this, "_ueFuncWithIdAndResultCallbacks", []);
|
|
969
|
+
g(this, "_waitingUeFuncIdAndResultCallbacks", /* @__PURE__ */ new Map());
|
|
970
|
+
g(this, "_waitingUeCalls", /* @__PURE__ */ new Set());
|
|
971
|
+
g(this, "_ueEvent", this.dv(new x()));
|
|
972
|
+
g(this, "_errorEvent", this.dv(new x()));
|
|
973
973
|
// private _closeEvent = this.dv(new Event<[string]>());
|
|
974
974
|
// get closeEvent() { return this._closeEvent; }
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
975
|
+
g(this, "_readyEvent", this.dv(new x()));
|
|
976
|
+
g(this, "_esmsgwsopen", this.dv(W(!1)));
|
|
977
|
+
g(this, "_videoinited", this.dv(W(!1)));
|
|
978
|
+
g(this, "_webRtcConnected", this.dv(W(!1)));
|
|
979
979
|
this._ueViewer = n, console.log("CSTMPSViewer init ! 以官方像素流 + 独立通信的模式启动!");
|
|
980
980
|
const s = this._ueViewer;
|
|
981
981
|
this._esueViewerWrapper = this.dv(new eo(t, i, r));
|
|
@@ -991,8 +991,8 @@ class io extends Be {
|
|
|
991
991
|
const c = o.webSocketReady;
|
|
992
992
|
if (this.videoinited && this.webRtcConnected && c) {
|
|
993
993
|
console.log("%c[EarthSDK: esmsgWebSocket && videoinited && webRtcConnected]", "background: #a6ec99; color: black");
|
|
994
|
-
const
|
|
995
|
-
o.emitUIInteractionForBigData(
|
|
994
|
+
const v = { eventType: "init", params: {} };
|
|
995
|
+
o.emitUIInteractionForBigData(v), this._readyEvent.emit(), h = !0;
|
|
996
996
|
}
|
|
997
997
|
};
|
|
998
998
|
this.d(this.videoinitedChanged.don(() => {
|
|
@@ -1007,9 +1007,9 @@ class io extends Be {
|
|
|
1007
1007
|
if (u === "error")
|
|
1008
1008
|
this._errorEvent.emit(c);
|
|
1009
1009
|
else if (u === "ueevent") {
|
|
1010
|
-
const
|
|
1011
|
-
if (
|
|
1012
|
-
const w =
|
|
1010
|
+
const v = JSON.parse(c);
|
|
1011
|
+
if (v.t === "cr") {
|
|
1012
|
+
const w = v;
|
|
1013
1013
|
if (w.frs && this._ueFuncResultWithIdsEvent.emit(w.frs), w.ers)
|
|
1014
1014
|
for (let y of w.ers)
|
|
1015
1015
|
this._ueEvent.emit(y);
|
|
@@ -1018,25 +1018,25 @@ class io extends Be {
|
|
|
1018
1018
|
}));
|
|
1019
1019
|
{
|
|
1020
1020
|
const u = this.dv(be());
|
|
1021
|
-
let c,
|
|
1021
|
+
let c, v;
|
|
1022
1022
|
u.start(() => {
|
|
1023
|
-
if (c !== t.offsetWidth ||
|
|
1024
|
-
if (c = t.offsetWidth,
|
|
1025
|
-
console.warn(`lastWidth === undefined || lastHeight === undefined || !Number.isFinite(lastWidth) || !Number.isFinite(lastHeight) || lastWidth < 0 || lastHeight < 0 ${c} ${
|
|
1023
|
+
if (c !== t.offsetWidth || v !== t.offsetHeight) {
|
|
1024
|
+
if (c = t.offsetWidth, v = t.offsetHeight, c === void 0 || v === void 0 || !Number.isFinite(c) || !Number.isFinite(v) || c < 0 || v < 0) {
|
|
1025
|
+
console.warn(`lastWidth === undefined || lastHeight === undefined || !Number.isFinite(lastWidth) || !Number.isFinite(lastHeight) || lastWidth < 0 || lastHeight < 0 ${c} ${v}`);
|
|
1026
1026
|
return;
|
|
1027
1027
|
}
|
|
1028
|
-
o.resize(c,
|
|
1028
|
+
o.resize(c, v), console.log(`resize: ${c} ${v}`);
|
|
1029
1029
|
}
|
|
1030
1030
|
});
|
|
1031
1031
|
}
|
|
1032
1032
|
this.d(this._ueFuncResultWithIdsEvent.don((u) => {
|
|
1033
1033
|
for (const c of u) {
|
|
1034
|
-
const
|
|
1035
|
-
|
|
1034
|
+
const v = this._waitingUeFuncIdAndResultCallbacks.get(c.fid);
|
|
1035
|
+
v && (this._waitingUeFuncIdAndResultCallbacks.delete(c.fid), v.resultCallback(c.r));
|
|
1036
1036
|
}
|
|
1037
1037
|
}));
|
|
1038
1038
|
let a = 0;
|
|
1039
|
-
const
|
|
1039
|
+
const f = (u) => {
|
|
1040
1040
|
const c = {
|
|
1041
1041
|
n: a++,
|
|
1042
1042
|
tt: Date.now(),
|
|
@@ -1055,19 +1055,19 @@ class io extends Be {
|
|
|
1055
1055
|
}, p = () => {
|
|
1056
1056
|
if (!h || this._ueFuncWithIdAndResultCallbacks.length === 0) return;
|
|
1057
1057
|
const u = this._ueFuncWithIdAndResultCallbacks.map(([c]) => c);
|
|
1058
|
-
for (const [c,
|
|
1059
|
-
this._waitingUeFuncIdAndResultCallbacks.set(c.fid,
|
|
1058
|
+
for (const [c, v] of this._ueFuncWithIdAndResultCallbacks)
|
|
1059
|
+
this._waitingUeFuncIdAndResultCallbacks.set(c.fid, v);
|
|
1060
1060
|
this._ueFuncWithIdAndResultCallbacks.length = 0;
|
|
1061
1061
|
{
|
|
1062
|
-
const c = globalThis.g_emitDescriptor_maxBytes,
|
|
1063
|
-
let w =
|
|
1062
|
+
const c = globalThis.g_emitDescriptor_maxBytes, v = u.map((T) => ({ f: T, s: JSON.stringify(T).length }));
|
|
1063
|
+
let w = v.length, y = 0, R = 0, m = [];
|
|
1064
1064
|
do {
|
|
1065
1065
|
do {
|
|
1066
|
-
const { f: T, s: S } =
|
|
1066
|
+
const { f: T, s: S } = v[y];
|
|
1067
1067
|
if (m.push(T), ++y, R + S > c || m.length >= 20)
|
|
1068
1068
|
break;
|
|
1069
1069
|
} while (y < w);
|
|
1070
|
-
m.length > 0 && (s.debug && console.log(`传送${m.length}条消息...`),
|
|
1070
|
+
m.length > 0 && (s.debug && console.log(`传送${m.length}条消息...`), f([...m]), m.length = 0, R = 0);
|
|
1071
1071
|
} while (y < w);
|
|
1072
1072
|
}
|
|
1073
1073
|
};
|
|
@@ -1166,13 +1166,13 @@ wr.SetLoggerVerbosity(1);
|
|
|
1166
1166
|
class ao extends C {
|
|
1167
1167
|
constructor(t, i) {
|
|
1168
1168
|
super();
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1169
|
+
g(this, "debug", !1);
|
|
1170
|
+
g(this, "_error", this.dv(new x()));
|
|
1171
|
+
g(this, "_connected", this.dv(new x()));
|
|
1172
|
+
g(this, "_ueevent", this.dv(new x()));
|
|
1173
|
+
g(this, "_pixelStream");
|
|
1174
1174
|
//发送时记录消息,回调函数中对应消息后再删除
|
|
1175
|
-
|
|
1175
|
+
g(this, "uiInteractionCallbacks", /* @__PURE__ */ new Map());
|
|
1176
1176
|
this._container = t, this._option = i;
|
|
1177
1177
|
const r = new yr({
|
|
1178
1178
|
initialSettings: {
|
|
@@ -1199,8 +1199,8 @@ class ao extends C {
|
|
|
1199
1199
|
const n = (s) => {
|
|
1200
1200
|
const o = this._pixelStream._webRtcController.mouseController;
|
|
1201
1201
|
setTimeout(() => {
|
|
1202
|
-
const h = o.coordinateConverter.normalizeAndQuantizeUnsigned(s.offsetX, s.offsetY),
|
|
1203
|
-
|
|
1202
|
+
const h = o.coordinateConverter.normalizeAndQuantizeUnsigned(s.offsetX, s.offsetY), f = o.toStreamerMessagesProvider.toStreamerHandlers.get("MouseUp");
|
|
1203
|
+
f && f([s.button, h.x, h.y]), s.preventDefault();
|
|
1204
1204
|
});
|
|
1205
1205
|
};
|
|
1206
1206
|
this.container.addEventListener("dblclick", n), this.d(() => {
|
|
@@ -1267,17 +1267,17 @@ class ao extends C {
|
|
|
1267
1267
|
typeof i == "function" && (t.callid = M(), this.uiInteractionCallbacks.set(t.callid, i));
|
|
1268
1268
|
const r = JSON.stringify(t), n = globalThis.g_emitDescriptor_maxBytes ?? 3e4, s = r.length, o = ++oo;
|
|
1269
1269
|
if (s < n) {
|
|
1270
|
-
const
|
|
1270
|
+
const f = {
|
|
1271
1271
|
type: "earthsdk",
|
|
1272
1272
|
time: (/* @__PURE__ */ new Date()).getTime(),
|
|
1273
1273
|
params: `${o}-0/1-` + r
|
|
1274
1274
|
};
|
|
1275
|
-
this.sendData(JSON.stringify(
|
|
1275
|
+
this.sendData(JSON.stringify(f));
|
|
1276
1276
|
return;
|
|
1277
1277
|
}
|
|
1278
1278
|
const h = Math.ceil(s / n) | 0;
|
|
1279
|
-
[...new Array(h).keys()].map((
|
|
1280
|
-
const l = { type: "earthsdk", time: (/* @__PURE__ */ new Date()).getTime(), params: `${o}-${p}/${h}-` +
|
|
1279
|
+
[...new Array(h).keys()].map((f) => r.slice(f * n, (f + 1) * n)).forEach((f, p) => {
|
|
1280
|
+
const l = { type: "earthsdk", time: (/* @__PURE__ */ new Date()).getTime(), params: `${o}-${p}/${h}-` + f };
|
|
1281
1281
|
this.sendData(JSON.stringify(l));
|
|
1282
1282
|
});
|
|
1283
1283
|
}
|
|
@@ -1321,8 +1321,8 @@ class ao extends C {
|
|
|
1321
1321
|
class lo extends C {
|
|
1322
1322
|
constructor(t, i, r) {
|
|
1323
1323
|
super();
|
|
1324
|
-
|
|
1325
|
-
|
|
1324
|
+
g(this, "_instance");
|
|
1325
|
+
g(this, "_event", this.dv(new x()));
|
|
1326
1326
|
this._container = t, this._wsuri = i, this._esmsgWsUri = r, this._instance = this.dv(new ao(this._container, { ws: this._wsuri })), this.d(this._instance.connected.don((n) => {
|
|
1327
1327
|
this._event.emit(n, n), console.log(`%c[EarthSDK] ${n}`, "background: #a6ec99; color: black");
|
|
1328
1328
|
})), this.d(this._instance.error.don((n) => {
|
|
@@ -1365,17 +1365,17 @@ class lo extends C {
|
|
|
1365
1365
|
class co extends Be {
|
|
1366
1366
|
constructor(t, i, r, n) {
|
|
1367
1367
|
super();
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1368
|
+
g(this, "_videoInitialized", this.dv(W(!1)));
|
|
1369
|
+
g(this, "_webRtcConnected", this.dv(W(!1)));
|
|
1370
|
+
g(this, "_webSocketOpen", this.dv(W(!1)));
|
|
1371
|
+
g(this, "_ue5ViewerWrapper");
|
|
1372
|
+
g(this, "_ueFuncResultWithIdsEvent", this.dv(new x()));
|
|
1373
|
+
g(this, "_ueFuncWithIdAndResultCallbacks", []);
|
|
1374
|
+
g(this, "_waitingUeFuncIdAndResultCallbacks", /* @__PURE__ */ new Map());
|
|
1375
|
+
g(this, "_waitingUeCalls", /* @__PURE__ */ new Set());
|
|
1376
|
+
g(this, "_ueEvent", this.dv(new x()));
|
|
1377
|
+
g(this, "_errorEvent", this.dv(new x()));
|
|
1378
|
+
g(this, "_readyEvent", this.dv(new x()));
|
|
1379
1379
|
this._ueViewer = n, console.log("INNPSViewer init ! 以内置信令服务器模式启动!");
|
|
1380
1380
|
const s = this._ueViewer, o = this.dv(new lo(t, i, r));
|
|
1381
1381
|
this._ue5ViewerWrapper = o;
|
|
@@ -1395,8 +1395,8 @@ class co extends Be {
|
|
|
1395
1395
|
const c = this._ue5ViewerWrapper.instance.webSocketReady;
|
|
1396
1396
|
if (this.videoInitialized && this.webRtcConnected && c) {
|
|
1397
1397
|
this._ue5ViewerWrapper.instance.emitUIInteraction(), this._readyEvent.emit(), l = !0, console.log("%c[EarthSDK videoInitialized && webRtcConnected && webSocketReady]", "background: #a6ec99; color: black");
|
|
1398
|
-
const
|
|
1399
|
-
this._ue5ViewerWrapper.emitUIInteractionForBigData(
|
|
1398
|
+
const v = { eventType: "init", params: {} };
|
|
1399
|
+
this._ue5ViewerWrapper.emitUIInteractionForBigData(v);
|
|
1400
1400
|
} else
|
|
1401
1401
|
console.warn("webSocketReady", c), l = !1;
|
|
1402
1402
|
}));
|
|
@@ -1413,23 +1413,23 @@ class co extends Be {
|
|
|
1413
1413
|
else if (l === "ueevent") {
|
|
1414
1414
|
const c = JSON.parse(u);
|
|
1415
1415
|
if (c.t === "cr") {
|
|
1416
|
-
const
|
|
1417
|
-
if (
|
|
1418
|
-
for (let w of
|
|
1416
|
+
const v = c;
|
|
1417
|
+
if (v.frs && this._ueFuncResultWithIdsEvent.emit(v.frs), v.ers)
|
|
1418
|
+
for (let w of v.ers)
|
|
1419
1419
|
this._ueEvent.emit(w);
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
1422
1422
|
}));
|
|
1423
1423
|
{
|
|
1424
1424
|
const l = this.dv(be());
|
|
1425
|
-
let u, c,
|
|
1425
|
+
let u, c, v;
|
|
1426
1426
|
l.start(() => {
|
|
1427
|
-
if (u !== t.offsetWidth || c !== t.offsetHeight ||
|
|
1427
|
+
if (u !== t.offsetWidth || c !== t.offsetHeight || v !== s.resolutionScale) {
|
|
1428
1428
|
if (u = t.offsetWidth, c = t.offsetHeight, u === void 0 || c === void 0 || !Number.isFinite(u) || !Number.isFinite(c) || u < 0 || c < 0) {
|
|
1429
1429
|
console.warn(`lastWidth === undefined || lastHeight === undefined || !Number.isFinite(lastWidth) || !Number.isFinite(lastHeight) || lastWidth < 0 || lastHeight < 0 ${u} ${c}`);
|
|
1430
1430
|
return;
|
|
1431
1431
|
}
|
|
1432
|
-
|
|
1432
|
+
v = s.resolutionScale, o.resize(u / v, c / v);
|
|
1433
1433
|
}
|
|
1434
1434
|
});
|
|
1435
1435
|
}
|
|
@@ -1456,18 +1456,18 @@ class co extends Be {
|
|
|
1456
1456
|
), console.groupEnd()), this._ue5ViewerWrapper.emitUIInteractionForBigData(u, () => {
|
|
1457
1457
|
this._waitingUeCalls.delete(u);
|
|
1458
1458
|
});
|
|
1459
|
-
},
|
|
1459
|
+
}, f = () => {
|
|
1460
1460
|
if (!this._ue5ViewerWrapper.instance.webSocketReady || this._ueFuncWithIdAndResultCallbacks.length === 0) return;
|
|
1461
1461
|
const u = this._ueFuncWithIdAndResultCallbacks.map(([c]) => c);
|
|
1462
|
-
for (const [c,
|
|
1463
|
-
this._waitingUeFuncIdAndResultCallbacks.set(c.fid,
|
|
1462
|
+
for (const [c, v] of this._ueFuncWithIdAndResultCallbacks)
|
|
1463
|
+
this._waitingUeFuncIdAndResultCallbacks.set(c.fid, v);
|
|
1464
1464
|
this._ueFuncWithIdAndResultCallbacks.length = 0;
|
|
1465
1465
|
{
|
|
1466
|
-
const c = globalThis.g_emitDescriptor_maxBytes,
|
|
1467
|
-
let w =
|
|
1466
|
+
const c = globalThis.g_emitDescriptor_maxBytes, v = u.map((T) => ({ f: T, s: JSON.stringify(T).length }));
|
|
1467
|
+
let w = v.length, y = 0, R = 0, m = [];
|
|
1468
1468
|
do {
|
|
1469
1469
|
do {
|
|
1470
|
-
const { f: T, s: S } =
|
|
1470
|
+
const { f: T, s: S } = v[y];
|
|
1471
1471
|
if (m.push(T), ++y, R + S > c || m.length >= 20)
|
|
1472
1472
|
break;
|
|
1473
1473
|
} while (y < w);
|
|
@@ -1475,7 +1475,7 @@ class co extends Be {
|
|
|
1475
1475
|
} while (y < w);
|
|
1476
1476
|
}
|
|
1477
1477
|
};
|
|
1478
|
-
this.dv(Se()).start(
|
|
1478
|
+
this.dv(Se()).start(f, 50), this.d(() => console.log("UeCloudViewer正在销毁..."));
|
|
1479
1479
|
}
|
|
1480
1480
|
get videoInitialized() {
|
|
1481
1481
|
return this._videoInitialized.value;
|
|
@@ -1539,8 +1539,8 @@ class uo extends C {
|
|
|
1539
1539
|
*/
|
|
1540
1540
|
constructor(t, i, r, n) {
|
|
1541
1541
|
super();
|
|
1542
|
-
|
|
1543
|
-
|
|
1542
|
+
g(this, "_onRuntimeInitialized", this.dv(new x()));
|
|
1543
|
+
g(this, "_vIframe", null);
|
|
1544
1544
|
this._ueViewer = n;
|
|
1545
1545
|
const s = this._ueViewer;
|
|
1546
1546
|
{
|
|
@@ -1623,7 +1623,7 @@ class po extends C {
|
|
|
1623
1623
|
} catch (n) {
|
|
1624
1624
|
console.error("ueViewer propChanged:" + n);
|
|
1625
1625
|
}
|
|
1626
|
-
})), t.useCustomInteraction = !1, this.dv(new
|
|
1626
|
+
})), t.useCustomInteraction = !1, this.dv(new gr(t, e)), this.dv(new P(t.statusUpdateIntervalChanged, (r) => {
|
|
1627
1627
|
if ((t.statusUpdateInterval ?? 0.5) === 0) return;
|
|
1628
1628
|
const s = new C();
|
|
1629
1629
|
return s.d(i.disposableOnUeEvent("statusUpdate", (o) => {
|
|
@@ -1673,8 +1673,8 @@ class po extends C {
|
|
|
1673
1673
|
}));
|
|
1674
1674
|
}
|
|
1675
1675
|
}
|
|
1676
|
-
let
|
|
1677
|
-
class
|
|
1676
|
+
let go = -1;
|
|
1677
|
+
class vo extends Be {
|
|
1678
1678
|
/**
|
|
1679
1679
|
* Creates an instance of H5Viewer.
|
|
1680
1680
|
* @param {HTMLDivElement} container
|
|
@@ -1685,12 +1685,12 @@ class go extends Be {
|
|
|
1685
1685
|
*/
|
|
1686
1686
|
constructor(t, i, r = "${earthsdk3-ue-h5-assets-script-dir}", n) {
|
|
1687
1687
|
super();
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1688
|
+
g(this, "_ueFuncResultWithIdsEvent", this.dv(new x()));
|
|
1689
|
+
g(this, "_ueFuncWithIdAndResultCallbacks", []);
|
|
1690
|
+
g(this, "_waitingUeFuncIdAndResultCallbacks", /* @__PURE__ */ new Map());
|
|
1691
1691
|
//发送时记录消息,回调函数中对应消息后再删除
|
|
1692
|
-
|
|
1693
|
-
|
|
1692
|
+
g(this, "_waitingUeCalls", /* @__PURE__ */ new Map());
|
|
1693
|
+
g(this, "_ueEvent", this.dv(new x()));
|
|
1694
1694
|
this._ueViewer = n;
|
|
1695
1695
|
const s = this._ueViewer, o = this.dv(new uo(t, i, r, s));
|
|
1696
1696
|
let h = !1, a = null;
|
|
@@ -1706,7 +1706,7 @@ class go extends Be {
|
|
|
1706
1706
|
}
|
|
1707
1707
|
a.UE_JSHTML5Communication ? a.UE_JSHTML5Communication.UESendMessageToJS = (c) => {
|
|
1708
1708
|
try {
|
|
1709
|
-
const
|
|
1709
|
+
const v = ho(a.HEAPU8, c), w = JSON.parse(v);
|
|
1710
1710
|
if (s.debug && (console.group(
|
|
1711
1711
|
"%cUE => JS",
|
|
1712
1712
|
" background-color:#006EFF;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"
|
|
@@ -1720,20 +1720,20 @@ class go extends Be {
|
|
|
1720
1720
|
this._ueEvent.emit(R);
|
|
1721
1721
|
}
|
|
1722
1722
|
w.callid && this._waitingUeCalls.has(w.callid) && (this._waitingUeCalls.delete(w.callid), console.log(`waitingUeCalls.delete:${w.callid} end`));
|
|
1723
|
-
} catch (
|
|
1724
|
-
console.error("UE_JSHTML5Communication.UESendMessageToJS error:",
|
|
1723
|
+
} catch (v) {
|
|
1724
|
+
console.error("UE_JSHTML5Communication.UESendMessageToJS error:", v);
|
|
1725
1725
|
}
|
|
1726
1726
|
} : console.error("UE_JSHTML5Communication UESendMessageToJS not found");
|
|
1727
1727
|
})), this.dispose(this._ueFuncResultWithIdsEvent.disposableOn((u) => {
|
|
1728
1728
|
for (const c of u) {
|
|
1729
|
-
const
|
|
1730
|
-
|
|
1729
|
+
const v = this._waitingUeFuncIdAndResultCallbacks.get(c.fid);
|
|
1730
|
+
v && (this._waitingUeFuncIdAndResultCallbacks.delete(c.fid), v(c.r));
|
|
1731
1731
|
}
|
|
1732
1732
|
}));
|
|
1733
|
-
let
|
|
1733
|
+
let f = 0;
|
|
1734
1734
|
const p = () => {
|
|
1735
1735
|
if (!h || !a || !a.UE_JSHTML5Communication || !a.UE_JSHTML5Communication.JSSendMessageToUE || this._ueFuncWithIdAndResultCallbacks.length === 0) return;
|
|
1736
|
-
const u = this._ueFuncWithIdAndResultCallbacks.map(([S]) => S), c = { n:
|
|
1736
|
+
const u = this._ueFuncWithIdAndResultCallbacks.map(([S]) => S), c = { n: f++, tt: Date.now(), t: "c", fs: u, callid: M() };
|
|
1737
1737
|
for (const [S, _] of this._ueFuncWithIdAndResultCallbacks)
|
|
1738
1738
|
this._waitingUeFuncIdAndResultCallbacks.set(S.fid, _);
|
|
1739
1739
|
this._ueFuncWithIdAndResultCallbacks.length = 0, this._waitingUeCalls.set(c.callid, c), s.debug && (console.group(
|
|
@@ -1743,14 +1743,14 @@ class go extends Be {
|
|
|
1743
1743
|
`%c${JSON.stringify(c, void 0, "")}`,
|
|
1744
1744
|
" border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"
|
|
1745
1745
|
), console.groupEnd());
|
|
1746
|
-
const
|
|
1746
|
+
const v = JSON.stringify(c), w = globalThis.g_emitDescriptor_maxBytes ?? 3e4, y = v.length, R = ++go;
|
|
1747
1747
|
if (y < w) {
|
|
1748
|
-
const S = `${R}-0/1-` +
|
|
1748
|
+
const S = `${R}-0/1-` + v;
|
|
1749
1749
|
a.UE_JSHTML5Communication.JSSendMessageToUE(S);
|
|
1750
1750
|
return;
|
|
1751
1751
|
}
|
|
1752
1752
|
const m = Math.ceil(y / w) | 0;
|
|
1753
|
-
[...new Array(m).keys()].map((S) =>
|
|
1753
|
+
[...new Array(m).keys()].map((S) => v.slice(S * w, (S + 1) * w)).forEach((S, _) => {
|
|
1754
1754
|
const _e = `${R}-${_}/${m}-` + S;
|
|
1755
1755
|
a.UE_JSHTML5Communication.JSSendMessageToUE(_e);
|
|
1756
1756
|
});
|
|
@@ -1802,15 +1802,15 @@ class go extends Be {
|
|
|
1802
1802
|
};
|
|
1803
1803
|
}
|
|
1804
1804
|
}
|
|
1805
|
-
let
|
|
1805
|
+
let fo = -1;
|
|
1806
1806
|
class wo extends Be {
|
|
1807
1807
|
constructor(t, i) {
|
|
1808
1808
|
super();
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1809
|
+
g(this, "_ueFuncResultWithIdsEvent", this.dv(new x()));
|
|
1810
|
+
g(this, "_ueFuncWithIdAndResultCallbacks", []);
|
|
1811
|
+
g(this, "_waitingUeFuncIdAndResultCallbacks", /* @__PURE__ */ new Map());
|
|
1812
|
+
g(this, "_waitingUeCalls", /* @__PURE__ */ new Set());
|
|
1813
|
+
g(this, "_ueEvent", this.dv(new x()));
|
|
1814
1814
|
this._ueViewer = i;
|
|
1815
1815
|
const r = this._ueViewer;
|
|
1816
1816
|
let n = !1;
|
|
@@ -1818,8 +1818,8 @@ class wo extends Be {
|
|
|
1818
1818
|
eventType: "init",
|
|
1819
1819
|
params: {}
|
|
1820
1820
|
};
|
|
1821
|
-
globalThis.ue.es.oncommand(JSON.stringify(s)), n = !0, globalThis.calljs = (
|
|
1822
|
-
if (r.debug && console.log(`calljs eventName:${
|
|
1821
|
+
globalThis.ue.es.oncommand(JSON.stringify(s)), n = !0, globalThis.calljs = (f, p) => {
|
|
1822
|
+
if (r.debug && console.log(`calljs eventName:${f} eventDetailStr:${p}`), f === "ueevent" || f === "commanFinish")
|
|
1823
1823
|
try {
|
|
1824
1824
|
const l = JSON.parse(p);
|
|
1825
1825
|
if (l.t === "cr") {
|
|
@@ -1831,8 +1831,8 @@ class wo extends Be {
|
|
|
1831
1831
|
} catch (l) {
|
|
1832
1832
|
console.error(l);
|
|
1833
1833
|
}
|
|
1834
|
-
}, this.dispose(this._ueFuncResultWithIdsEvent.disposableOn((
|
|
1835
|
-
for (const p of
|
|
1834
|
+
}, this.dispose(this._ueFuncResultWithIdsEvent.disposableOn((f) => {
|
|
1835
|
+
for (const p of f) {
|
|
1836
1836
|
const l = this._waitingUeFuncIdAndResultCallbacks.get(p.fid);
|
|
1837
1837
|
l && (this._waitingUeFuncIdAndResultCallbacks.delete(p.fid), l(p.r));
|
|
1838
1838
|
}
|
|
@@ -1840,11 +1840,11 @@ class wo extends Be {
|
|
|
1840
1840
|
let o = 0;
|
|
1841
1841
|
const h = () => {
|
|
1842
1842
|
if (!n || this._ueFuncWithIdAndResultCallbacks.length === 0) return;
|
|
1843
|
-
const
|
|
1843
|
+
const f = this._ueFuncWithIdAndResultCallbacks.map(([u]) => u), p = {
|
|
1844
1844
|
n: o++,
|
|
1845
1845
|
tt: Date.now(),
|
|
1846
1846
|
t: "c",
|
|
1847
|
-
fs:
|
|
1847
|
+
fs: f
|
|
1848
1848
|
};
|
|
1849
1849
|
for (const [u, c] of this._ueFuncWithIdAndResultCallbacks)
|
|
1850
1850
|
this._waitingUeFuncIdAndResultCallbacks.set(u.fid, c);
|
|
@@ -1855,7 +1855,7 @@ class wo extends Be {
|
|
|
1855
1855
|
`%c${JSON.stringify(p, void 0, "")}`,
|
|
1856
1856
|
" border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"
|
|
1857
1857
|
), console.groupEnd());
|
|
1858
|
-
const l = ++
|
|
1858
|
+
const l = ++fo;
|
|
1859
1859
|
globalThis.ue.es.oncommand(`${l}-0/1-` + JSON.stringify(p)).then(() => {
|
|
1860
1860
|
this._waitingUeCalls.delete(p);
|
|
1861
1861
|
});
|
|
@@ -1980,8 +1980,8 @@ class mo extends C {
|
|
|
1980
1980
|
n();
|
|
1981
1981
|
const s = xe(), o = [];
|
|
1982
1982
|
s.forEach((a) => {
|
|
1983
|
-
const
|
|
1984
|
-
o.push(
|
|
1983
|
+
const f = t[a + "Changed"];
|
|
1984
|
+
o.push(f);
|
|
1985
1985
|
});
|
|
1986
1986
|
const h = this.dv(L(...o));
|
|
1987
1987
|
this.d(h.don(n));
|
|
@@ -2002,8 +2002,8 @@ class mo extends C {
|
|
|
2002
2002
|
r && e && e.removeChild(r);
|
|
2003
2003
|
});
|
|
2004
2004
|
{
|
|
2005
|
-
const n = (a,
|
|
2006
|
-
globalThis.ue.esinput.setinterceptevent(
|
|
2005
|
+
const n = (a, f) => {
|
|
2006
|
+
globalThis.ue.esinput.setinterceptevent(f), a.preventDefault();
|
|
2007
2007
|
}, s = (a) => {
|
|
2008
2008
|
n(a, !1);
|
|
2009
2009
|
}, o = (a) => {
|
|
@@ -2015,7 +2015,7 @@ class mo extends C {
|
|
|
2015
2015
|
r.removeEventListener("mouseenter", s), r.removeEventListener("mouseleave", o), r.removeEventListener("mousemove", h);
|
|
2016
2016
|
});
|
|
2017
2017
|
}
|
|
2018
|
-
t.useCustomInteraction = !1, this.dv(new
|
|
2018
|
+
t.useCustomInteraction = !1, this.dv(new gr(t, r)), this.dv(new P(t.statusUpdateIntervalChanged, (n) => {
|
|
2019
2019
|
if ((t.statusUpdateInterval ?? 0.5) === 0) return;
|
|
2020
2020
|
const o = new C();
|
|
2021
2021
|
return o.d(i.disposableOnUeEvent("statusUpdate", (h) => {
|
|
@@ -2068,13 +2068,13 @@ class mo extends C {
|
|
|
2068
2068
|
class Co extends C {
|
|
2069
2069
|
constructor(t, i, r) {
|
|
2070
2070
|
super();
|
|
2071
|
-
|
|
2071
|
+
g(this, "_reconnectEvent", this.dv(new x()));
|
|
2072
2072
|
const n = (p, l) => p.hasOwnProperty(l);
|
|
2073
2073
|
let s = 0, o;
|
|
2074
2074
|
this.d(() => {
|
|
2075
2075
|
o && clearTimeout(o);
|
|
2076
2076
|
});
|
|
2077
|
-
const a = new URLSearchParams(globalThis.location.search).get("eswebview") === "true",
|
|
2077
|
+
const a = new URLSearchParams(globalThis.location.search).get("eswebview") === "true", f = () => {
|
|
2078
2078
|
if (globalThis.ue.esinput) {
|
|
2079
2079
|
r.setStatus("Creating"), console.log("存在(window.ue && window.ue.es && window.ue.esinput 需要适配新版ESWebView 鼠标穿透), 开始创建UeFalseCloudViewer..."), r.setStatusLog("开始创建本地视口...");
|
|
2080
2080
|
const p = this.dv(new wo(t, r));
|
|
@@ -2083,10 +2083,10 @@ class Co extends C {
|
|
|
2083
2083
|
r.setStatus("Error"), r.setStatusLog("请升级 ESWebView !"), this.d(() => r.viewer = void 0), r.viewer = void 0;
|
|
2084
2084
|
};
|
|
2085
2085
|
if (globalThis.ue && globalThis.ue.es)
|
|
2086
|
-
|
|
2086
|
+
f();
|
|
2087
2087
|
else if (a) {
|
|
2088
2088
|
const p = setInterval(() => {
|
|
2089
|
-
globalThis.ue && globalThis.ue.es && (clearInterval(p),
|
|
2089
|
+
globalThis.ue && globalThis.ue.es && (clearInterval(p), f());
|
|
2090
2090
|
}, 200);
|
|
2091
2091
|
} else if (n(i.options, "ws") || n(i.options, "uri") && n(i.options, "app")) {
|
|
2092
2092
|
r.setStatus("Creating"), r.setStatusLog("开始创建云渲染视口...");
|
|
@@ -2096,10 +2096,10 @@ class Co extends C {
|
|
|
2096
2096
|
});
|
|
2097
2097
|
const l = this.dv(Te(async (u) => {
|
|
2098
2098
|
r.viewer && !r.viewer.isDestroyed() && r.viewer.destroy(), r.viewer = void 0, p && t.removeChild(p) && (p = void 0), p = document.createElement("div"), p.setAttribute("earthsdk3-ue", "earthsdk3-ue-videoContainer"), p.style.cssText = "position:relative; height: 100%;width:100%;", t.appendChild(p);
|
|
2099
|
-
let c,
|
|
2099
|
+
let c, v, w;
|
|
2100
2100
|
if (n(i.options, "ws")) {
|
|
2101
2101
|
const { ws: T, esmsg: S, uselnternalSignallingServer: _ } = i.options;
|
|
2102
|
-
c = T,
|
|
2102
|
+
c = T, v = S, w = _ ?? !1;
|
|
2103
2103
|
}
|
|
2104
2104
|
if (n(i.options, "uri") && n(i.options, "app")) {
|
|
2105
2105
|
const { offsetWidth: T, offsetHeight: S } = p;
|
|
@@ -2118,10 +2118,10 @@ class Co extends C {
|
|
|
2118
2118
|
r.setStatus("Error"), r.setStatusLog("检查信令服务器版本,返回数据错误! "), console.log("信令服务器返回数据错误!不包含instanceId!请升级到 ESSS V3.0+ 版本!"), this._reconnectEvent.emit(void 0);
|
|
2119
2119
|
return;
|
|
2120
2120
|
}
|
|
2121
|
-
c = Pr,
|
|
2121
|
+
c = Pr, v = Lr, w = kr ?? !1, r.esssResponse = O;
|
|
2122
2122
|
}
|
|
2123
2123
|
}
|
|
2124
|
-
const y = this.dv(w ? new co(p, c,
|
|
2124
|
+
const y = this.dv(w ? new co(p, c, v, r) : new io(p, c, v, r));
|
|
2125
2125
|
this.d(() => r.viewer = void 0), this.d(y.errorEvent.don((T) => {
|
|
2126
2126
|
const S = `[${T}]:像素流连接错误!`;
|
|
2127
2127
|
r.setStatus("Error"), r.setStatusLog(S), this._reconnectEvent.emit(y);
|
|
@@ -2139,7 +2139,7 @@ class Co extends C {
|
|
|
2139
2139
|
} else if (n(i.options, "project")) {
|
|
2140
2140
|
const p = i, l = p.options.project, u = p.options.baseUrl;
|
|
2141
2141
|
r.setStatus("Creating"), r.setStatusLog("下载编译中...");
|
|
2142
|
-
const c = this.dv(new
|
|
2142
|
+
const c = this.dv(new vo(t, l, u, r));
|
|
2143
2143
|
r.viewer = c, this.d(() => r.viewer = void 0);
|
|
2144
2144
|
} else
|
|
2145
2145
|
r.setStatus("Error"), r.setStatusLog("视口创建失败!"), console.warn("视口创建失败: 参数错误!");
|
|
@@ -2148,15 +2148,15 @@ class Co extends C {
|
|
|
2148
2148
|
const K = class K extends Ee {
|
|
2149
2149
|
constructor(t) {
|
|
2150
2150
|
super(t);
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2151
|
+
g(this, "_viewer", this.dv(W(void 0)));
|
|
2152
|
+
g(this, "_esssResponse");
|
|
2153
|
+
g(this, "_speechRecognition", this.dv(new x()));
|
|
2154
|
+
g(this, "_propChanged", this.dv(new x()));
|
|
2155
|
+
g(this, "_objectEvent", this.dv(new x()));
|
|
2156
|
+
g(this, "_widgetEvent", this.dv(new x()));
|
|
2157
|
+
g(this, "_customMessage", this.dv(new x()));
|
|
2158
|
+
g(this, "_statusUpdateEvent", this.dv(new x()));
|
|
2159
|
+
g(this, "_statusUpdateEventdon", (() => {
|
|
2160
2160
|
this.d(this.statusUpdateEvent.don((t) => {
|
|
2161
2161
|
this._statusInfo.fps = t.FPS ?? 0, this._statusInfo.length = t.length ?? 0, this._statusInfo.position = t.position ?? [0, 0, 0], this._statusInfo.rotation = t.rotation ?? [0, 0, 0];
|
|
2162
2162
|
}));
|
|
@@ -2466,7 +2466,7 @@ const K = class K extends Ee {
|
|
|
2466
2466
|
const [s, o] = t, { x: h, y: a } = this.container.getBoundingClientRect();
|
|
2467
2467
|
n = [h + s, a + o];
|
|
2468
2468
|
}
|
|
2469
|
-
return await
|
|
2469
|
+
return await gs(this.viewer, n, i, r);
|
|
2470
2470
|
}
|
|
2471
2471
|
async pickPosition(t) {
|
|
2472
2472
|
if (!this.viewer) return;
|
|
@@ -2475,7 +2475,7 @@ const K = class K extends Ee {
|
|
|
2475
2475
|
const [r, n] = t, { x: s, y: o } = this.container.getBoundingClientRect();
|
|
2476
2476
|
i = [s + r, o + n];
|
|
2477
2477
|
}
|
|
2478
|
-
return await
|
|
2478
|
+
return await vs(this.viewer, i);
|
|
2479
2479
|
}
|
|
2480
2480
|
async quickPickPosition(t) {
|
|
2481
2481
|
return await this.pickPosition(t);
|
|
@@ -2629,7 +2629,7 @@ const K = class K extends Ee {
|
|
|
2629
2629
|
}
|
|
2630
2630
|
async getHeightByLonLat(t, i, r = "ECC_Visibility") {
|
|
2631
2631
|
if (!this.viewer) return null;
|
|
2632
|
-
const n = await
|
|
2632
|
+
const n = await fs(this.viewer, t, i, r);
|
|
2633
2633
|
return n && n.height !== void 0 ? n.height : null;
|
|
2634
2634
|
}
|
|
2635
2635
|
async getHeightsByLonLats(t, i = "ECC_Visibility") {
|
|
@@ -2677,7 +2677,7 @@ const K = class K extends Ee {
|
|
|
2677
2677
|
return await qs(this.viewer, i, r);
|
|
2678
2678
|
}
|
|
2679
2679
|
};
|
|
2680
|
-
|
|
2680
|
+
g(K, "type", K.register("ESUeViewer", K)), g(K, "defaults", { ...On });
|
|
2681
2681
|
let J = K;
|
|
2682
2682
|
((d) => {
|
|
2683
2683
|
d.createDefaultProps = () => ({
|
|
@@ -2708,10 +2708,10 @@ class lt extends G {
|
|
|
2708
2708
|
e.components.main || this.d(this.createdEvent.don(() => {
|
|
2709
2709
|
const n = this.constructor.propValFuncs, s = e.defaultProps, o = Object.keys(s).filter((u) => n[u] !== null);
|
|
2710
2710
|
o.push(...this.constructor.forceUeUpdateProps);
|
|
2711
|
-
const h = e.constructor.defaults, a = { val: {} },
|
|
2711
|
+
const h = e.constructor.defaults, a = { val: {} }, f = [];
|
|
2712
2712
|
for (let u of o) {
|
|
2713
|
-
const c = u + "Changed",
|
|
2714
|
-
|
|
2713
|
+
const c = u + "Changed", v = e[c];
|
|
2714
|
+
f.push(v);
|
|
2715
2715
|
const w = n[u];
|
|
2716
2716
|
if (w === null)
|
|
2717
2717
|
throw console.error("vf === null error"), new Error("vf === null error");
|
|
@@ -2724,7 +2724,7 @@ class lt extends G {
|
|
|
2724
2724
|
}
|
|
2725
2725
|
a.val[u] = m;
|
|
2726
2726
|
};
|
|
2727
|
-
y(), this.d(
|
|
2727
|
+
y(), this.d(v.don(y));
|
|
2728
2728
|
}
|
|
2729
2729
|
const p = () => {
|
|
2730
2730
|
i.callUeFunc({
|
|
@@ -2734,7 +2734,7 @@ class lt extends G {
|
|
|
2734
2734
|
...a.val
|
|
2735
2735
|
}
|
|
2736
2736
|
}), a.val = {};
|
|
2737
|
-
}, l = this.dv(L(...
|
|
2737
|
+
}, l = this.dv(L(...f));
|
|
2738
2738
|
this.d(l.don(p)), this.d(r.changed.don(p)), this.d(e.flushEvent.don(() => l.flush()));
|
|
2739
2739
|
})), e.components.main || (this.d(() => {
|
|
2740
2740
|
r.value && Ir(i, e.id);
|
|
@@ -2750,14 +2750,14 @@ class lt extends G {
|
|
|
2750
2750
|
}
|
|
2751
2751
|
}
|
|
2752
2752
|
// null 表示不设置,undefined表示不做任何转换
|
|
2753
|
-
|
|
2753
|
+
g(lt, "propValFuncs", {
|
|
2754
2754
|
ref: null,
|
|
2755
2755
|
devTags: null,
|
|
2756
2756
|
extras: null,
|
|
2757
2757
|
execOnceFuncStr: null,
|
|
2758
2758
|
updateFuncStr: null,
|
|
2759
2759
|
toDestroyFuncStr: null
|
|
2760
|
-
}),
|
|
2760
|
+
}), g(lt, "forceUeUpdateProps", []);
|
|
2761
2761
|
class k extends lt {
|
|
2762
2762
|
constructor(e, t) {
|
|
2763
2763
|
super(e, t);
|
|
@@ -2805,14 +2805,14 @@ class E extends k {
|
|
|
2805
2805
|
setTimeout(r, 0);
|
|
2806
2806
|
})), this.d(e.smoothMoveEvent.don((h, a) => {
|
|
2807
2807
|
ke(i, e.id, h, a);
|
|
2808
|
-
})), this.d(e.smoothMoveWithRotationEvent.don((h, a,
|
|
2809
|
-
Pe(i, e.id, h, a,
|
|
2810
|
-
})), this.d(e.smoothMoveOnGroundEvent.don((h, a,
|
|
2811
|
-
Le(i, e.id, h, a, p,
|
|
2812
|
-
})), this.d(e.smoothMoveWithRotationOnGroundEvent.don((h, a,
|
|
2813
|
-
De(i, e.id, h, a,
|
|
2808
|
+
})), this.d(e.smoothMoveWithRotationEvent.don((h, a, f) => {
|
|
2809
|
+
Pe(i, e.id, h, a, f);
|
|
2810
|
+
})), this.d(e.smoothMoveOnGroundEvent.don((h, a, f, p) => {
|
|
2811
|
+
Le(i, e.id, h, a, p, f);
|
|
2812
|
+
})), this.d(e.smoothMoveWithRotationOnGroundEvent.don((h, a, f, p, l) => {
|
|
2813
|
+
De(i, e.id, h, a, f, p, l);
|
|
2814
2814
|
})), this.d(e.smoothMoveKeepPitchEvent.don(async (h, a) => {
|
|
2815
|
-
const
|
|
2815
|
+
const f = await i.callUeFunc({
|
|
2816
2816
|
f: "SmoothMoveKeepPitch",
|
|
2817
2817
|
p: {
|
|
2818
2818
|
id: e.id,
|
|
@@ -2820,14 +2820,14 @@ class E extends k {
|
|
|
2820
2820
|
Time: a
|
|
2821
2821
|
}
|
|
2822
2822
|
});
|
|
2823
|
-
|
|
2823
|
+
f.error && console.error("SmoothMoveKeepPitch:", f.error);
|
|
2824
2824
|
})), this.d(e.automaticLandingEvent.don((h) => {
|
|
2825
2825
|
const a = [e.position[0], e.position[1]];
|
|
2826
|
-
t.getHeightByLonLat(e.position[0], e.position[1], "Visibility").then((
|
|
2827
|
-
|
|
2826
|
+
t.getHeightByLonLat(e.position[0], e.position[1], "Visibility").then((f) => {
|
|
2827
|
+
f !== null && (e.position = [...a, f], e.collision = h);
|
|
2828
2828
|
});
|
|
2829
2829
|
}));
|
|
2830
|
-
const s = async (h, a,
|
|
2830
|
+
const s = async (h, a, f, p) => {
|
|
2831
2831
|
const { viewer: l } = h;
|
|
2832
2832
|
if (!l) {
|
|
2833
2833
|
console.error("SmoothMoveRelatively: ueViewer.viewer is undefined");
|
|
@@ -2835,14 +2835,14 @@ class E extends k {
|
|
|
2835
2835
|
}
|
|
2836
2836
|
const u = await l.callUeFunc({
|
|
2837
2837
|
f: "SmoothMoveRelatively",
|
|
2838
|
-
p: { id: a, RelativePosition:
|
|
2838
|
+
p: { id: a, RelativePosition: f, Time: p }
|
|
2839
2839
|
});
|
|
2840
2840
|
return u.error && console.error("SmoothMoveRelatively:", u.error), u;
|
|
2841
2841
|
};
|
|
2842
2842
|
this.d(e.smoothMoveRelativelyEvent.don((h, a) => {
|
|
2843
2843
|
s(t, e.id, h, a);
|
|
2844
2844
|
}));
|
|
2845
|
-
const o = async (h, a,
|
|
2845
|
+
const o = async (h, a, f, p, l) => {
|
|
2846
2846
|
const { viewer: u } = h;
|
|
2847
2847
|
if (!u) {
|
|
2848
2848
|
console.error("SmoothMoveRelativelyWithRotation: ueViewer.viewer is undefined");
|
|
@@ -2850,12 +2850,12 @@ class E extends k {
|
|
|
2850
2850
|
}
|
|
2851
2851
|
const c = await u.callUeFunc({
|
|
2852
2852
|
f: "SmoothMoveRelativelyWithRotation",
|
|
2853
|
-
p: { id: a, RelativePosition:
|
|
2853
|
+
p: { id: a, RelativePosition: f, NewRotation: p, Time: l }
|
|
2854
2854
|
});
|
|
2855
2855
|
return c.error && console.error("SmoothMoveRelativelyWithRotation:", c.error), c;
|
|
2856
2856
|
};
|
|
2857
|
-
this.d(e.smoothMoveRelativelyWithRotationEvent.don((h, a,
|
|
2858
|
-
o(t, e.id, h, a,
|
|
2857
|
+
this.d(e.smoothMoveRelativelyWithRotationEvent.don((h, a, f) => {
|
|
2858
|
+
o(t, e.id, h, a, f);
|
|
2859
2859
|
}));
|
|
2860
2860
|
}
|
|
2861
2861
|
}
|
|
@@ -2881,7 +2881,7 @@ class B extends k {
|
|
|
2881
2881
|
}));
|
|
2882
2882
|
}
|
|
2883
2883
|
}
|
|
2884
|
-
|
|
2884
|
+
g(B, "propValFuncs", {
|
|
2885
2885
|
...k.propValFuncs,
|
|
2886
2886
|
pointStyle: (e) => ({
|
|
2887
2887
|
...e,
|
|
@@ -2910,7 +2910,7 @@ class Tr extends E {
|
|
|
2910
2910
|
super(e, t), t.viewer;
|
|
2911
2911
|
}
|
|
2912
2912
|
}
|
|
2913
|
-
|
|
2913
|
+
g(Tr, "propValFuncs", {
|
|
2914
2914
|
...E.propValFuncs,
|
|
2915
2915
|
pointStyle: (e) => ({
|
|
2916
2916
|
...e,
|
|
@@ -2946,8 +2946,8 @@ const qe = (d) => {
|
|
|
2946
2946
|
}, ut = class ut extends G {
|
|
2947
2947
|
constructor(t, i) {
|
|
2948
2948
|
super(t, i);
|
|
2949
|
-
|
|
2950
|
-
|
|
2949
|
+
g(this, "_styleColor", this.dv(W([])));
|
|
2950
|
+
g(this, "_styleVisable", this.dv(W([])));
|
|
2951
2951
|
const r = i.viewer;
|
|
2952
2952
|
if (!r) {
|
|
2953
2953
|
console.warn("UeES3DTileset: viewer is undefined!");
|
|
@@ -3015,7 +3015,7 @@ const qe = (d) => {
|
|
|
3015
3015
|
};
|
|
3016
3016
|
l(), this.d(p.don(l));
|
|
3017
3017
|
}
|
|
3018
|
-
const
|
|
3018
|
+
const f = async () => {
|
|
3019
3019
|
const { id: p } = t;
|
|
3020
3020
|
if (n !== void 0) {
|
|
3021
3021
|
n = void 0;
|
|
@@ -3047,55 +3047,55 @@ const qe = (d) => {
|
|
|
3047
3047
|
}
|
|
3048
3048
|
};
|
|
3049
3049
|
this.d(() => {
|
|
3050
|
-
|
|
3050
|
+
f();
|
|
3051
3051
|
});
|
|
3052
3052
|
{
|
|
3053
3053
|
const p = this.dv(Te(async (u) => {
|
|
3054
3054
|
if (a.value === void 0) {
|
|
3055
|
-
await u.promise(
|
|
3055
|
+
await u.promise(f());
|
|
3056
3056
|
return;
|
|
3057
3057
|
}
|
|
3058
3058
|
if (a.value.type === "ActorTag") {
|
|
3059
3059
|
const { actorTag: c } = a.value;
|
|
3060
|
-
if (n !== c && await u.promise(
|
|
3060
|
+
if (n !== c && await u.promise(f()), n !== void 0 || c === void 0) return;
|
|
3061
3061
|
try {
|
|
3062
3062
|
n = c;
|
|
3063
|
-
const
|
|
3064
|
-
if (!
|
|
3065
|
-
if (
|
|
3066
|
-
console.warn(`UeES3DTileset Bind3DTilesetByTag: ${
|
|
3063
|
+
const v = await u.promise(i.bind3DTilesetByTag(t.id, c));
|
|
3064
|
+
if (!v) return;
|
|
3065
|
+
if (v.error !== "") {
|
|
3066
|
+
console.warn(`UeES3DTileset Bind3DTilesetByTag: ${v.error}`);
|
|
3067
3067
|
return;
|
|
3068
3068
|
}
|
|
3069
|
-
if (
|
|
3070
|
-
if (
|
|
3071
|
-
console.warn(`UeES3DTileset Bind3DTilesetByTag: ${qe(
|
|
3069
|
+
if (v.re.type !== 0)
|
|
3070
|
+
if (v.re.type === 1)
|
|
3071
|
+
console.warn(`UeES3DTileset Bind3DTilesetByTag: ${qe(v.re.type)}`);
|
|
3072
3072
|
else {
|
|
3073
|
-
console.warn(`UeES3DTileset Bind3DTilesetByTag: ${qe(
|
|
3073
|
+
console.warn(`UeES3DTileset Bind3DTilesetByTag: ${qe(v.re.type)}`);
|
|
3074
3074
|
return;
|
|
3075
3075
|
}
|
|
3076
|
-
} catch (
|
|
3077
|
-
console.warn(`UeES3DTileset Bind3DTilesetByTag: ${
|
|
3076
|
+
} catch (v) {
|
|
3077
|
+
console.warn(`UeES3DTileset Bind3DTilesetByTag: ${v}`);
|
|
3078
3078
|
return;
|
|
3079
3079
|
}
|
|
3080
3080
|
} else if (a.value.type === "CreatedUrl") {
|
|
3081
3081
|
const { url: c } = a.value;
|
|
3082
|
-
if (c !== s && await
|
|
3082
|
+
if (c !== s && await f(), s !== void 0 || c === void 0) return;
|
|
3083
3083
|
try {
|
|
3084
3084
|
s = c;
|
|
3085
|
-
const
|
|
3085
|
+
const v = await u.promise(r.callUeFunc({
|
|
3086
3086
|
f: "create",
|
|
3087
3087
|
p: {
|
|
3088
3088
|
type: t.typeName,
|
|
3089
3089
|
id: t.id
|
|
3090
3090
|
}
|
|
3091
3091
|
}));
|
|
3092
|
-
if (!
|
|
3093
|
-
if (
|
|
3094
|
-
console.warn(`UeES3DTileset create: ${
|
|
3092
|
+
if (!v) return;
|
|
3093
|
+
if (v.error !== "") {
|
|
3094
|
+
console.warn(`UeES3DTileset create: ${v.error}`);
|
|
3095
3095
|
return;
|
|
3096
3096
|
}
|
|
3097
|
-
} catch (
|
|
3098
|
-
console.warn(`UeES3DTileset create: ${
|
|
3097
|
+
} catch (v) {
|
|
3098
|
+
console.warn(`UeES3DTileset create: ${v}`);
|
|
3099
3099
|
return;
|
|
3100
3100
|
}
|
|
3101
3101
|
}
|
|
@@ -3129,21 +3129,21 @@ const qe = (d) => {
|
|
|
3129
3129
|
!n && !s || p.id !== t.id || p.type !== "3DTilesetReady" || t.tilesetReady.emit(p.p);
|
|
3130
3130
|
}));
|
|
3131
3131
|
{
|
|
3132
|
-
const p = async (
|
|
3132
|
+
const p = async (v, w) => {
|
|
3133
3133
|
if (!n && !s) return;
|
|
3134
3134
|
const y = await r.callUeFunc({
|
|
3135
3135
|
f: "SetFeatureColor",
|
|
3136
|
-
p: { id: t.id, featureName:
|
|
3136
|
+
p: { id: t.id, featureName: v, json: w }
|
|
3137
3137
|
});
|
|
3138
3138
|
if (y && y.error !== "") {
|
|
3139
3139
|
console.warn(`UeES3DTileset SetFeatureColor: ${y.error}`);
|
|
3140
3140
|
return;
|
|
3141
3141
|
}
|
|
3142
|
-
}, l = async (
|
|
3142
|
+
}, l = async (v, w) => {
|
|
3143
3143
|
if (!n && !s) return;
|
|
3144
3144
|
const y = await r.callUeFunc({
|
|
3145
3145
|
f: "SetFeatureVisable",
|
|
3146
|
-
p: { id: t.id, featureName:
|
|
3146
|
+
p: { id: t.id, featureName: v, json: w }
|
|
3147
3147
|
});
|
|
3148
3148
|
if (y && y.error !== "") {
|
|
3149
3149
|
console.warn(`UeES3DTileset SetFeatureVisable: ${y.error}`);
|
|
@@ -3151,35 +3151,35 @@ const qe = (d) => {
|
|
|
3151
3151
|
}
|
|
3152
3152
|
}, u = async () => {
|
|
3153
3153
|
if (!n && !s) return;
|
|
3154
|
-
const
|
|
3154
|
+
const v = await r.callUeFunc({
|
|
3155
3155
|
f: "ResetFeatureStyle",
|
|
3156
3156
|
p: { id: t.id }
|
|
3157
3157
|
});
|
|
3158
|
-
if (
|
|
3159
|
-
console.warn(`UeES3DTileset ResetFeatureStyle: ${
|
|
3158
|
+
if (v && v.error !== "") {
|
|
3159
|
+
console.warn(`UeES3DTileset ResetFeatureStyle: ${v.error}`);
|
|
3160
3160
|
return;
|
|
3161
3161
|
}
|
|
3162
|
-
}, c = async (
|
|
3162
|
+
}, c = async (v) => {
|
|
3163
3163
|
if (!n && !s) return;
|
|
3164
3164
|
const w = await r.callUeFunc({
|
|
3165
3165
|
f: "SetFeatureStyle",
|
|
3166
|
-
p: { id: t.id, json:
|
|
3166
|
+
p: { id: t.id, json: v }
|
|
3167
3167
|
});
|
|
3168
3168
|
if (w && w.error !== "") {
|
|
3169
3169
|
console.warn(`UeES3DTileset SetFeatureStyle: ${w.error}`);
|
|
3170
3170
|
return;
|
|
3171
3171
|
}
|
|
3172
3172
|
};
|
|
3173
|
-
this.d(t.setFeatureColorEvent.don((
|
|
3173
|
+
this.d(t.setFeatureColorEvent.don((v, w) => {
|
|
3174
3174
|
const y = [...this.styleColor, ...w];
|
|
3175
|
-
this.styleColor = [...y], p(
|
|
3176
|
-
})), this.d(t.setFeatureVisableEvent.don((
|
|
3175
|
+
this.styleColor = [...y], p(v, y);
|
|
3176
|
+
})), this.d(t.setFeatureVisableEvent.don((v, w) => {
|
|
3177
3177
|
const y = [...this.styleVisable, ...w];
|
|
3178
|
-
this.styleVisable = [...y], l(
|
|
3178
|
+
this.styleVisable = [...y], l(v, y);
|
|
3179
3179
|
})), this.d(t.resetFeatureStyleEvent.don(() => {
|
|
3180
3180
|
u(), this.styleColor = [], this.styleVisable = [];
|
|
3181
|
-
})), this.d(t.setFeatureStyleEvent.don((
|
|
3182
|
-
c(
|
|
3181
|
+
})), this.d(t.setFeatureStyleEvent.don((v) => {
|
|
3182
|
+
c(v);
|
|
3183
3183
|
}));
|
|
3184
3184
|
}
|
|
3185
3185
|
{
|
|
@@ -3236,7 +3236,7 @@ const qe = (d) => {
|
|
|
3236
3236
|
this._styleVisable.value = t;
|
|
3237
3237
|
}
|
|
3238
3238
|
};
|
|
3239
|
-
|
|
3239
|
+
g(ut, "type", ut.register("ESUeViewer", me.type, ut));
|
|
3240
3240
|
let Ue = ut;
|
|
3241
3241
|
const Qe = (d) => {
|
|
3242
3242
|
switch (d) {
|
|
@@ -3318,7 +3318,7 @@ const Qe = (d) => {
|
|
|
3318
3318
|
e.splitDirectionChanged
|
|
3319
3319
|
));
|
|
3320
3320
|
this.d(a.don(h));
|
|
3321
|
-
const
|
|
3321
|
+
const f = async () => {
|
|
3322
3322
|
const { id: p } = e;
|
|
3323
3323
|
if (r !== void 0) {
|
|
3324
3324
|
r = void 0;
|
|
@@ -3350,20 +3350,20 @@ const Qe = (d) => {
|
|
|
3350
3350
|
}
|
|
3351
3351
|
};
|
|
3352
3352
|
this.d(() => {
|
|
3353
|
-
|
|
3353
|
+
f();
|
|
3354
3354
|
});
|
|
3355
3355
|
{
|
|
3356
3356
|
const p = this.dv(Te(async (u) => {
|
|
3357
3357
|
if (s.value === void 0) {
|
|
3358
|
-
await u.promise(
|
|
3358
|
+
await u.promise(f());
|
|
3359
3359
|
return;
|
|
3360
3360
|
}
|
|
3361
3361
|
if (s.value.type === "ActorTag") {
|
|
3362
|
-
const { actorTag: c, componentTag:
|
|
3363
|
-
if (r !== c && await u.promise(
|
|
3362
|
+
const { actorTag: c, componentTag: v } = s.value;
|
|
3363
|
+
if (r !== c && await u.promise(f()), r !== void 0 || c === void 0) return;
|
|
3364
3364
|
try {
|
|
3365
3365
|
r = c;
|
|
3366
|
-
const w = await u.promise(t.bindImageryByTag(e.id, c,
|
|
3366
|
+
const w = await u.promise(t.bindImageryByTag(e.id, c, v));
|
|
3367
3367
|
if (!w) return;
|
|
3368
3368
|
if (w.error !== "") {
|
|
3369
3369
|
console.warn(`ESImageryLayer BindImageryByTag: ${w.error}`);
|
|
@@ -3382,19 +3382,19 @@ const Qe = (d) => {
|
|
|
3382
3382
|
}
|
|
3383
3383
|
} else if (s.value.type === "CreatedUrl") {
|
|
3384
3384
|
const { url: c } = s.value;
|
|
3385
|
-
if (c !== n && await u.promise(
|
|
3385
|
+
if (c !== n && await u.promise(f()), n !== void 0 || c === void 0) return;
|
|
3386
3386
|
try {
|
|
3387
3387
|
n = c;
|
|
3388
|
-
const
|
|
3388
|
+
const v = await u.promise(i.callUeFunc({
|
|
3389
3389
|
f: "create",
|
|
3390
3390
|
p: {
|
|
3391
3391
|
type: "ESImageryLayer",
|
|
3392
3392
|
id: e.id
|
|
3393
3393
|
}
|
|
3394
3394
|
}));
|
|
3395
|
-
if (!
|
|
3396
|
-
if (
|
|
3397
|
-
console.warn(`ESImageryLayer create: ${
|
|
3395
|
+
if (!v) return;
|
|
3396
|
+
if (v.error !== "") {
|
|
3397
|
+
console.warn(`ESImageryLayer create: ${v.error}`);
|
|
3398
3398
|
return;
|
|
3399
3399
|
}
|
|
3400
3400
|
} catch {
|
|
@@ -3431,9 +3431,9 @@ const Qe = (d) => {
|
|
|
3431
3431
|
let c = "over";
|
|
3432
3432
|
u === void 0 ? c = "error" : u.endType === 0 ? c = "over" : u.endType === 1 && (c = "cancelled"), e.flyOverEvent.emit(l, c, t);
|
|
3433
3433
|
})), this.d(e.flyInEvent.don(async (p, l) => {
|
|
3434
|
-
var
|
|
3434
|
+
var v, w;
|
|
3435
3435
|
if (!r && !n) return;
|
|
3436
|
-
const u = await Re(i, e.id, (
|
|
3436
|
+
const u = await Re(i, e.id, (v = e.flyInParam) == null ? void 0 : v.position, (w = e.flyInParam) == null ? void 0 : w.rotation, p ?? 1);
|
|
3437
3437
|
let c = "over";
|
|
3438
3438
|
u === void 0 ? c = "error" : u.endType === 0 ? c = "over" : u.endType === 1 && (c = "cancelled"), e.flyOverEvent.emit(l, c, t);
|
|
3439
3439
|
})), this.d(e.calcFlyToParamEvent.don(() => {
|
|
@@ -3452,7 +3452,7 @@ const Qe = (d) => {
|
|
|
3452
3452
|
}));
|
|
3453
3453
|
}
|
|
3454
3454
|
};
|
|
3455
|
-
|
|
3455
|
+
g(ht, "type", ht.register("ESUeViewer", U.type, ht));
|
|
3456
3456
|
let Ve = ht;
|
|
3457
3457
|
const X = class X extends k {
|
|
3458
3458
|
constructor(e, t) {
|
|
@@ -3462,10 +3462,10 @@ const X = class X extends k {
|
|
|
3462
3462
|
}
|
|
3463
3463
|
}
|
|
3464
3464
|
};
|
|
3465
|
-
|
|
3465
|
+
g(X, "type", X.register("ESUeViewer", Ur.type, X)), g(X, "forceUeUpdateProps", [
|
|
3466
3466
|
...k.forceUeUpdateProps,
|
|
3467
3467
|
"url"
|
|
3468
|
-
]),
|
|
3468
|
+
]), g(X, "propValFuncs", {
|
|
3469
3469
|
...k.propValFuncs,
|
|
3470
3470
|
url: (e) => typeof e == "string" ? I.context.getStrFromEnv(e) : (e.url = I.context.getStrFromEnv(e.url), e),
|
|
3471
3471
|
czmMaxzoom: null,
|
|
@@ -3480,9 +3480,9 @@ const pt = class pt extends E {
|
|
|
3480
3480
|
}
|
|
3481
3481
|
}
|
|
3482
3482
|
};
|
|
3483
|
-
|
|
3483
|
+
g(pt, "type", pt.register("ESUeViewer", Nr.type, pt));
|
|
3484
3484
|
let je = pt;
|
|
3485
|
-
const
|
|
3485
|
+
const gt = class gt extends E {
|
|
3486
3486
|
constructor(e, t) {
|
|
3487
3487
|
if (super(e, t), !t.viewer) {
|
|
3488
3488
|
console.warn("viewer is undefined!");
|
|
@@ -3490,9 +3490,9 @@ const ft = class ft extends E {
|
|
|
3490
3490
|
}
|
|
3491
3491
|
}
|
|
3492
3492
|
};
|
|
3493
|
-
|
|
3494
|
-
let ti =
|
|
3495
|
-
const
|
|
3493
|
+
g(gt, "type", gt.register("ESUeViewer", zr.type, gt));
|
|
3494
|
+
let ti = gt;
|
|
3495
|
+
const vt = class vt extends B {
|
|
3496
3496
|
constructor(e, t) {
|
|
3497
3497
|
if (super(e, t), !t.viewer) {
|
|
3498
3498
|
console.warn("viewer is undefined!");
|
|
@@ -3500,9 +3500,9 @@ const gt = class gt extends B {
|
|
|
3500
3500
|
}
|
|
3501
3501
|
}
|
|
3502
3502
|
};
|
|
3503
|
-
|
|
3504
|
-
let $ =
|
|
3505
|
-
const
|
|
3503
|
+
g(vt, "type", vt.register("ESUeViewer", br.type, vt));
|
|
3504
|
+
let $ = vt;
|
|
3505
|
+
const ft = class ft extends $ {
|
|
3506
3506
|
constructor(e, t) {
|
|
3507
3507
|
super(e, t);
|
|
3508
3508
|
const i = t.viewer;
|
|
@@ -3534,8 +3534,8 @@ const vt = class vt extends $ {
|
|
|
3534
3534
|
this.d(n.don(r)), this.d(e.createdEvent.don(r));
|
|
3535
3535
|
}
|
|
3536
3536
|
};
|
|
3537
|
-
|
|
3538
|
-
let ei =
|
|
3537
|
+
g(ft, "type", ft.register("ESUeViewer", j.type, ft));
|
|
3538
|
+
let ei = ft;
|
|
3539
3539
|
const wt = class wt extends E {
|
|
3540
3540
|
constructor(e, t) {
|
|
3541
3541
|
if (super(e, t), !t.viewer) {
|
|
@@ -3544,7 +3544,7 @@ const wt = class wt extends E {
|
|
|
3544
3544
|
}
|
|
3545
3545
|
}
|
|
3546
3546
|
};
|
|
3547
|
-
|
|
3547
|
+
g(wt, "type", wt.register("ESUeViewer", Hr.type, wt));
|
|
3548
3548
|
let ii = wt;
|
|
3549
3549
|
const et = class et extends E {
|
|
3550
3550
|
constructor(e, t) {
|
|
@@ -3554,8 +3554,8 @@ const et = class et extends E {
|
|
|
3554
3554
|
}
|
|
3555
3555
|
}
|
|
3556
3556
|
};
|
|
3557
|
-
|
|
3558
|
-
|
|
3557
|
+
g(et, "type", et.register("ESUeViewer", Jr.type, et)), // null 表示不设置,undefined表示不做任何转换
|
|
3558
|
+
g(et, "propValFuncs", {
|
|
3559
3559
|
...E.propValFuncs,
|
|
3560
3560
|
targetID: (e) => {
|
|
3561
3561
|
if (!e) return "";
|
|
@@ -3573,8 +3573,8 @@ const yt = class yt extends E {
|
|
|
3573
3573
|
return;
|
|
3574
3574
|
}
|
|
3575
3575
|
this.dispose(e.flyInEvent.don((r, n, s = "default") => {
|
|
3576
|
-
const { id: o, duration: h, position: a, rotation:
|
|
3577
|
-
Re(i, o, a,
|
|
3576
|
+
const { id: o, duration: h, position: a, rotation: f } = e;
|
|
3577
|
+
Re(i, o, a, f, h ?? r, s);
|
|
3578
3578
|
})), this.dispose(e.resetWithCurrentCameraEvent.don(() => {
|
|
3579
3579
|
Er(i, e.id);
|
|
3580
3580
|
})), this.dispose(e.captureEvent.don((r, n) => {
|
|
@@ -3584,7 +3584,7 @@ const yt = class yt extends E {
|
|
|
3584
3584
|
}));
|
|
3585
3585
|
}
|
|
3586
3586
|
};
|
|
3587
|
-
|
|
3587
|
+
g(yt, "type", yt.register("ESUeViewer", Gr.type, yt));
|
|
3588
3588
|
let ni = yt;
|
|
3589
3589
|
const mt = class mt extends E {
|
|
3590
3590
|
constructor(e, t) {
|
|
@@ -3594,7 +3594,7 @@ const mt = class mt extends E {
|
|
|
3594
3594
|
}
|
|
3595
3595
|
}
|
|
3596
3596
|
};
|
|
3597
|
-
|
|
3597
|
+
g(mt, "type", mt.register("ESUeViewer", Kr.type, mt));
|
|
3598
3598
|
let si = mt;
|
|
3599
3599
|
const Ct = class Ct extends E {
|
|
3600
3600
|
constructor(e, t) {
|
|
@@ -3604,7 +3604,7 @@ const Ct = class Ct extends E {
|
|
|
3604
3604
|
}
|
|
3605
3605
|
}
|
|
3606
3606
|
};
|
|
3607
|
-
|
|
3607
|
+
g(Ct, "type", Ct.register("ESUeViewer", Xr.type, Ct));
|
|
3608
3608
|
let oi = Ct;
|
|
3609
3609
|
const Ft = class Ft extends B {
|
|
3610
3610
|
constructor(e, t) {
|
|
@@ -3636,7 +3636,7 @@ const Ft = class Ft extends B {
|
|
|
3636
3636
|
this.d(n.don(r)), this.d(e.createdEvent.don(r));
|
|
3637
3637
|
}
|
|
3638
3638
|
};
|
|
3639
|
-
|
|
3639
|
+
g(Ft, "type", Ft.register("ESUeViewer", ct.type, Ft));
|
|
3640
3640
|
let ai = Ft;
|
|
3641
3641
|
const it = class it extends E {
|
|
3642
3642
|
constructor(e, t) {
|
|
@@ -3646,8 +3646,8 @@ const it = class it extends E {
|
|
|
3646
3646
|
}
|
|
3647
3647
|
}
|
|
3648
3648
|
};
|
|
3649
|
-
|
|
3650
|
-
|
|
3649
|
+
g(it, "type", it.register("ESUeViewer", Yr.type, it)), // null 表示不设置,undefined表示不做任何转换
|
|
3650
|
+
g(it, "propValFuncs", {
|
|
3651
3651
|
...E.propValFuncs,
|
|
3652
3652
|
targetID: (e) => {
|
|
3653
3653
|
if (!e) return "";
|
|
@@ -3699,7 +3699,7 @@ const It = class It extends E {
|
|
|
3699
3699
|
this.d(s.don(n)), this.d(e.createdEvent.don(n));
|
|
3700
3700
|
}
|
|
3701
3701
|
};
|
|
3702
|
-
|
|
3702
|
+
g(It, "type", It.register("ESUeViewer", b.type, It));
|
|
3703
3703
|
let di = It;
|
|
3704
3704
|
const Et = class Et extends E {
|
|
3705
3705
|
constructor(e, t) {
|
|
@@ -3709,7 +3709,7 @@ const Et = class Et extends E {
|
|
|
3709
3709
|
}
|
|
3710
3710
|
}
|
|
3711
3711
|
};
|
|
3712
|
-
|
|
3712
|
+
g(Et, "type", Et.register("ESUeViewer", Zr.type, Et));
|
|
3713
3713
|
let ci = Et;
|
|
3714
3714
|
const St = class St extends B {
|
|
3715
3715
|
constructor(e, t) {
|
|
@@ -3719,7 +3719,7 @@ const St = class St extends B {
|
|
|
3719
3719
|
}
|
|
3720
3720
|
}
|
|
3721
3721
|
};
|
|
3722
|
-
|
|
3722
|
+
g(St, "type", St.register("ESUeViewer", qr.type, St));
|
|
3723
3723
|
let ui = St;
|
|
3724
3724
|
const Tt = class Tt extends B {
|
|
3725
3725
|
constructor(e, t) {
|
|
@@ -3749,7 +3749,7 @@ const Tt = class Tt extends B {
|
|
|
3749
3749
|
this.d(n.don(r)), this.d(e.createdEvent.don(r));
|
|
3750
3750
|
}
|
|
3751
3751
|
};
|
|
3752
|
-
|
|
3752
|
+
g(Tt, "type", Tt.register("ESUeViewer", Me.type, Tt));
|
|
3753
3753
|
let hi = Tt;
|
|
3754
3754
|
const xt = class xt extends Ke {
|
|
3755
3755
|
constructor(e, t) {
|
|
@@ -3759,7 +3759,7 @@ const xt = class xt extends Ke {
|
|
|
3759
3759
|
}
|
|
3760
3760
|
}
|
|
3761
3761
|
};
|
|
3762
|
-
|
|
3762
|
+
g(xt, "type", xt.register("ESUeViewer", Qr.type, xt));
|
|
3763
3763
|
let Ne = xt;
|
|
3764
3764
|
const Rt = class Rt extends Ne {
|
|
3765
3765
|
constructor(e, t) {
|
|
@@ -3769,7 +3769,7 @@ const Rt = class Rt extends Ne {
|
|
|
3769
3769
|
}
|
|
3770
3770
|
}
|
|
3771
3771
|
};
|
|
3772
|
-
|
|
3772
|
+
g(Rt, "type", Rt.register("ESUeViewer", Vr.type, Rt));
|
|
3773
3773
|
let pi = Rt;
|
|
3774
3774
|
const Pt = class Pt extends k {
|
|
3775
3775
|
constructor(e, t) {
|
|
@@ -3784,8 +3784,8 @@ const Pt = class Pt extends k {
|
|
|
3784
3784
|
}));
|
|
3785
3785
|
}
|
|
3786
3786
|
};
|
|
3787
|
-
|
|
3788
|
-
let
|
|
3787
|
+
g(Pt, "type", Pt.register("ESUeViewer", Or.type, Pt));
|
|
3788
|
+
let gi = Pt;
|
|
3789
3789
|
const rt = class rt extends $ {
|
|
3790
3790
|
constructor(e, t) {
|
|
3791
3791
|
if (super(e, t), !t.viewer) {
|
|
@@ -3794,7 +3794,7 @@ const rt = class rt extends $ {
|
|
|
3794
3794
|
}
|
|
3795
3795
|
}
|
|
3796
3796
|
};
|
|
3797
|
-
|
|
3797
|
+
g(rt, "type", rt.register("ESUeViewer", jr.type, rt)), g(rt, "propValFuncs", {
|
|
3798
3798
|
...$.propValFuncs,
|
|
3799
3799
|
targetID: (e) => {
|
|
3800
3800
|
if (!e) return "";
|
|
@@ -3802,7 +3802,7 @@ f(rt, "type", rt.register("ESUeViewer", jr.type, rt)), f(rt, "propValFuncs", {
|
|
|
3802
3802
|
return t ? (t.components.main ?? t).id : e;
|
|
3803
3803
|
}
|
|
3804
3804
|
});
|
|
3805
|
-
let
|
|
3805
|
+
let vi = rt;
|
|
3806
3806
|
const Lt = class Lt extends E {
|
|
3807
3807
|
constructor(e, t) {
|
|
3808
3808
|
if (super(e, t), !t.viewer) {
|
|
@@ -3811,8 +3811,8 @@ const Lt = class Lt extends E {
|
|
|
3811
3811
|
}
|
|
3812
3812
|
}
|
|
3813
3813
|
};
|
|
3814
|
-
|
|
3815
|
-
let
|
|
3814
|
+
g(Lt, "type", Lt.register("ESUeViewer", tn.type, Lt));
|
|
3815
|
+
let fi = Lt;
|
|
3816
3816
|
const Dt = class Dt extends k {
|
|
3817
3817
|
constructor(e, t) {
|
|
3818
3818
|
super(e, t);
|
|
@@ -3861,41 +3861,41 @@ const Dt = class Dt extends k {
|
|
|
3861
3861
|
this.d(s.don(n)), this.d(e.createdEvent.don(n));
|
|
3862
3862
|
}
|
|
3863
3863
|
};
|
|
3864
|
-
|
|
3864
|
+
g(Dt, "type", Dt.register("ESUeViewer", N.type, Dt));
|
|
3865
3865
|
let wi = Dt;
|
|
3866
3866
|
const kt = class kt extends G {
|
|
3867
3867
|
constructor(e, t) {
|
|
3868
3868
|
super(e, t), this.ad(new P(e.renderInUEChanged, () => e.renderInUE ? new Io(e, t) : new Fo(e, t)));
|
|
3869
3869
|
}
|
|
3870
3870
|
};
|
|
3871
|
-
|
|
3871
|
+
g(kt, "type", kt.register("ESUeViewer", Ce.type, kt));
|
|
3872
3872
|
let yi = kt;
|
|
3873
3873
|
class Fo extends C {
|
|
3874
3874
|
constructor(t, i) {
|
|
3875
3875
|
super();
|
|
3876
|
-
|
|
3876
|
+
g(this, "_screenPosition", this.disposeVar(pr(void 0)));
|
|
3877
3877
|
const r = i.viewer;
|
|
3878
3878
|
if (!r) {
|
|
3879
3879
|
console.warn("viewer is undefined!");
|
|
3880
3880
|
return;
|
|
3881
3881
|
}
|
|
3882
|
-
const n = this.disposeVar(new
|
|
3882
|
+
const n = this.disposeVar(new vr());
|
|
3883
3883
|
n.parentID = t.id, this.ad(t.components.disposableAdd(n, !0)), n.show = !1, this.dispose(D([n, "position"], [t, "position"])), this.dispose(D([n, "rotation"], [t, "rotation"])), this.dispose(D([n, "flyToParam"], [t, "flyToParam"])), this.dispose(D([n, "flyInParam"], [t, "flyInParam"])), this.dispose(t.calcFlyToParamEvent.disposableOn(() => {
|
|
3884
3884
|
dt(r, n.id);
|
|
3885
3885
|
})), this.dispose(t.calcFlyInParamEvent.disposableOn(async () => {
|
|
3886
3886
|
if (!i.actived) return;
|
|
3887
3887
|
const h = await i.getCurrentCameraInfo();
|
|
3888
3888
|
if (!h) return;
|
|
3889
|
-
const { position: a, rotation:
|
|
3890
|
-
t.flyInParam = { position: a, rotation:
|
|
3889
|
+
const { position: a, rotation: f } = h;
|
|
3890
|
+
t.flyInParam = { position: a, rotation: f, flyDuration: 1 };
|
|
3891
3891
|
})), this.dispose(t.smoothMoveEvent.disposableOn((h, a) => {
|
|
3892
3892
|
ke(r, n.id, h, a);
|
|
3893
|
-
})), this.dispose(t.smoothMoveWithRotationEvent.disposableOn((h, a,
|
|
3894
|
-
Pe(r, n.id, h, a,
|
|
3895
|
-
})), this.dispose(t.smoothMoveOnGroundEvent.disposableOn((h, a,
|
|
3896
|
-
Le(r, n.id, h, a, p,
|
|
3897
|
-
})), this.dispose(t.smoothMoveWithRotationOnGroundEvent.disposableOn((h, a,
|
|
3898
|
-
De(r, n.id, h, a,
|
|
3893
|
+
})), this.dispose(t.smoothMoveWithRotationEvent.disposableOn((h, a, f) => {
|
|
3894
|
+
Pe(r, n.id, h, a, f);
|
|
3895
|
+
})), this.dispose(t.smoothMoveOnGroundEvent.disposableOn((h, a, f, p) => {
|
|
3896
|
+
Le(r, n.id, h, a, p, f);
|
|
3897
|
+
})), this.dispose(t.smoothMoveWithRotationOnGroundEvent.disposableOn((h, a, f, p, l) => {
|
|
3898
|
+
De(r, n.id, h, a, f, p, l);
|
|
3899
3899
|
})), this.dispose(t.flyToEvent.disposableOn((h, a) => {
|
|
3900
3900
|
n.flyTo(h);
|
|
3901
3901
|
})), this.dispose(t.flyInEvent.don((h) => {
|
|
@@ -3907,12 +3907,12 @@ class Fo extends C {
|
|
|
3907
3907
|
const h = this.disposeVar(be()), a = () => {
|
|
3908
3908
|
t.show ? h.restart(void 0, async () => {
|
|
3909
3909
|
if (!t.position) return;
|
|
3910
|
-
const
|
|
3910
|
+
const f = await i.lonLatAltToScreenPosition(t.position);
|
|
3911
3911
|
if (!this.isDestroyed())
|
|
3912
|
-
if (!
|
|
3912
|
+
if (!f)
|
|
3913
3913
|
this._screenPosition.value = void 0;
|
|
3914
3914
|
else {
|
|
3915
|
-
const [p, l] =
|
|
3915
|
+
const [p, l] = f;
|
|
3916
3916
|
p === -1 && l === -1 ? this._screenPosition.value = void 0 : this._screenPosition.value = [p, l];
|
|
3917
3917
|
}
|
|
3918
3918
|
}) : h.cancel();
|
|
@@ -3925,7 +3925,7 @@ class Fo extends C {
|
|
|
3925
3925
|
if (super(), this._subContainer = l, !c) return;
|
|
3926
3926
|
if (!t.instanceClass)
|
|
3927
3927
|
throw new Error("!sceneObject.instanceClass");
|
|
3928
|
-
const
|
|
3928
|
+
const v = new en(), w = v.element;
|
|
3929
3929
|
this._subContainer.appendChild(w), this.dispose(() => this._subContainer.removeChild(w)), w.onclick = (y) => {
|
|
3930
3930
|
(t.allowPicking ?? !1) && t.pickedEvent.emit(new Ae(
|
|
3931
3931
|
{ div: w, pointerEvent: y },
|
|
@@ -3946,10 +3946,10 @@ class Fo extends C {
|
|
|
3946
3946
|
const y = () => {
|
|
3947
3947
|
let m = t.show;
|
|
3948
3948
|
if (!m)
|
|
3949
|
-
|
|
3949
|
+
v.show = m, v.winPos = [0, 0];
|
|
3950
3950
|
else if (s.value) {
|
|
3951
3951
|
const T = i.getCurrentCameraInfo(), S = rn([t.position, T.position], "NONE")[0];
|
|
3952
|
-
t.minVisibleDistance < t.maxVisibleDistance ? m = t.minVisibleDistance < S && S < t.maxVisibleDistance : t.maxVisibleDistance == 0 && (m = S > t.minVisibleDistance),
|
|
3952
|
+
t.minVisibleDistance < t.maxVisibleDistance ? m = t.minVisibleDistance < S && S < t.maxVisibleDistance : t.maxVisibleDistance == 0 && (m = S > t.minVisibleDistance), v.show = m, v.winPos = [...s.value];
|
|
3953
3953
|
}
|
|
3954
3954
|
};
|
|
3955
3955
|
y();
|
|
@@ -3965,17 +3965,17 @@ class Fo extends C {
|
|
|
3965
3965
|
{
|
|
3966
3966
|
const y = () => {
|
|
3967
3967
|
const [R, m] = t.anchor ?? Ce.defaults.anchor;
|
|
3968
|
-
|
|
3968
|
+
v.originRatioX = R, v.originRatioY = m;
|
|
3969
3969
|
};
|
|
3970
3970
|
y(), this.dispose(t.anchorChanged.disposableOn(y));
|
|
3971
3971
|
}
|
|
3972
3972
|
{
|
|
3973
3973
|
const y = () => {
|
|
3974
|
-
|
|
3974
|
+
v.opacity = t.opacity ?? Ce.defaults.opacity;
|
|
3975
3975
|
};
|
|
3976
3976
|
y(), this.dispose(t.opacityChanged.disposableOn(y));
|
|
3977
3977
|
}
|
|
3978
|
-
this.disposeVar(new t.instanceClass(
|
|
3978
|
+
this.disposeVar(new t.instanceClass(v.contentDiv, t, c));
|
|
3979
3979
|
}
|
|
3980
3980
|
}, a = () => {
|
|
3981
3981
|
try {
|
|
@@ -3985,7 +3985,7 @@ class Fo extends C {
|
|
|
3985
3985
|
}
|
|
3986
3986
|
};
|
|
3987
3987
|
a();
|
|
3988
|
-
const
|
|
3988
|
+
const f = this.dv(L(
|
|
3989
3989
|
t.instanceClassChanged,
|
|
3990
3990
|
t.opacityChanged,
|
|
3991
3991
|
t.anchorChanged,
|
|
@@ -3993,7 +3993,7 @@ class Fo extends C {
|
|
|
3993
3993
|
t.showChanged,
|
|
3994
3994
|
t.allowPickingChanged
|
|
3995
3995
|
));
|
|
3996
|
-
this.d(
|
|
3996
|
+
this.d(f.don(a));
|
|
3997
3997
|
}
|
|
3998
3998
|
}
|
|
3999
3999
|
get screenPosition() {
|
|
@@ -4009,9 +4009,9 @@ class Fo extends C {
|
|
|
4009
4009
|
class Io extends C {
|
|
4010
4010
|
constructor(t, i) {
|
|
4011
4011
|
super();
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
this._imageLabel = this.dv(new
|
|
4012
|
+
g(this, "_imageLabel");
|
|
4013
|
+
g(this, "_hasClassDivAndPos", {});
|
|
4014
|
+
this._imageLabel = this.dv(new fr()), this._imageLabel.isHoverZoom = !1, this._imageLabel.parentID = t.id;
|
|
4015
4015
|
const r = i.viewer;
|
|
4016
4016
|
if (!r) {
|
|
4017
4017
|
console.warn("viewer is undefined!");
|
|
@@ -4024,10 +4024,10 @@ class Io extends C {
|
|
|
4024
4024
|
if (!r) return;
|
|
4025
4025
|
if (!t.instanceClass)
|
|
4026
4026
|
throw new Error("!sceneObject.instanceClass");
|
|
4027
|
-
const a = document.createElement("div"),
|
|
4028
|
-
if (
|
|
4029
|
-
document.body.appendChild(
|
|
4030
|
-
let l =
|
|
4027
|
+
const a = document.createElement("div"), f = this.dv(new t.instanceClass(a, t, i))._container;
|
|
4028
|
+
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)) {
|
|
4029
|
+
document.body.appendChild(f);
|
|
4030
|
+
let l = f ? f.querySelectorAll("*[class]") : [];
|
|
4031
4031
|
for (let u = 0; u < l.length; u++) {
|
|
4032
4032
|
const c = l[u];
|
|
4033
4033
|
var p = c.getBoundingClientRect();
|
|
@@ -4039,17 +4039,17 @@ class Io extends C {
|
|
|
4039
4039
|
];
|
|
4040
4040
|
}
|
|
4041
4041
|
}
|
|
4042
|
-
Vn(
|
|
4042
|
+
Vn(f, {
|
|
4043
4043
|
backgroundColor: null,
|
|
4044
4044
|
allowTaint: !0,
|
|
4045
4045
|
useCORS: !0,
|
|
4046
|
-
width:
|
|
4047
|
-
height:
|
|
4046
|
+
width: f.offsetWidth,
|
|
4047
|
+
height: f.offsetHeight,
|
|
4048
4048
|
scale: 1
|
|
4049
4049
|
}).then((l) => {
|
|
4050
|
-
document.body.contains(
|
|
4050
|
+
document.body.contains(f) && document.body.removeChild(f), n.url = l.toDataURL(), n.show = t.show;
|
|
4051
4051
|
}).catch(() => {
|
|
4052
|
-
document.body.contains(
|
|
4052
|
+
document.body.contains(f) && document.body.removeChild(f);
|
|
4053
4053
|
});
|
|
4054
4054
|
}, o = () => {
|
|
4055
4055
|
try {
|
|
@@ -4077,9 +4077,9 @@ class Io extends C {
|
|
|
4077
4077
|
if (s.objId !== this._imageLabel.id) return;
|
|
4078
4078
|
const { type: o, add: h } = s;
|
|
4079
4079
|
if (o === "leftClick" && h) {
|
|
4080
|
-
const a = (h == null ? void 0 : h.classNames) ?? [],
|
|
4081
|
-
for (let p = 0; p <
|
|
4082
|
-
const l =
|
|
4080
|
+
const a = (h == null ? void 0 : h.classNames) ?? [], f = Object.keys(this._hasClassDivAndPos);
|
|
4081
|
+
for (let p = 0; p < f.length; p++) {
|
|
4082
|
+
const l = f[p];
|
|
4083
4083
|
let u = this._hasClassDivAndPos[l];
|
|
4084
4084
|
h && h.mouseRelativePos && h.mouseRelativePos[0] >= u[0] && h.mouseRelativePos[0] <= u[2] && h.mouseRelativePos[1] >= u[1] && h.mouseRelativePos[1] <= u[3] && a.push(l);
|
|
4085
4085
|
}
|
|
@@ -4099,8 +4099,8 @@ class Io extends C {
|
|
|
4099
4099
|
Pe(r, n.id, s, o, h);
|
|
4100
4100
|
})), this.d(t.smoothMoveOnGroundEvent.don((s, o, h, a) => {
|
|
4101
4101
|
Le(r, n.id, s, o, a, h);
|
|
4102
|
-
})), this.d(t.smoothMoveWithRotationOnGroundEvent.don((s, o, h, a,
|
|
4103
|
-
De(r, n.id, s, o, h, a,
|
|
4102
|
+
})), this.d(t.smoothMoveWithRotationOnGroundEvent.don((s, o, h, a, f) => {
|
|
4103
|
+
De(r, n.id, s, o, h, a, f);
|
|
4104
4104
|
})), this.d(t.flyToEvent.don((s, o) => {
|
|
4105
4105
|
n.flyTo(s);
|
|
4106
4106
|
})), this.d(t.flyInEvent.don((s) => {
|
|
@@ -4138,10 +4138,10 @@ const Y = class Y extends k {
|
|
|
4138
4138
|
}));
|
|
4139
4139
|
}
|
|
4140
4140
|
};
|
|
4141
|
-
|
|
4141
|
+
g(Y, "type", Y.register("ESUeViewer", nn.type, Y)), g(Y, "forceUeUpdateProps", [
|
|
4142
4142
|
...k.forceUeUpdateProps,
|
|
4143
4143
|
"url"
|
|
4144
|
-
]),
|
|
4144
|
+
]), g(Y, "propValFuncs", {
|
|
4145
4145
|
...k.propValFuncs,
|
|
4146
4146
|
url: (e) => typeof e == "string" ? I.context.getStrFromEnv(e) : e
|
|
4147
4147
|
});
|
|
@@ -4154,7 +4154,7 @@ const Bt = class Bt extends B {
|
|
|
4154
4154
|
}
|
|
4155
4155
|
}
|
|
4156
4156
|
};
|
|
4157
|
-
|
|
4157
|
+
g(Bt, "type", Bt.register("ESUeViewer", sn.type, Bt));
|
|
4158
4158
|
let ze = Bt;
|
|
4159
4159
|
const _t = class _t extends B {
|
|
4160
4160
|
constructor(e, t) {
|
|
@@ -4164,7 +4164,7 @@ const _t = class _t extends B {
|
|
|
4164
4164
|
}
|
|
4165
4165
|
}
|
|
4166
4166
|
};
|
|
4167
|
-
|
|
4167
|
+
g(_t, "type", _t.register("ESUeViewer", on.type, _t));
|
|
4168
4168
|
let Ci = _t;
|
|
4169
4169
|
const Mt = class Mt extends $ {
|
|
4170
4170
|
constructor(e, t) {
|
|
@@ -4174,7 +4174,7 @@ const Mt = class Mt extends $ {
|
|
|
4174
4174
|
}
|
|
4175
4175
|
}
|
|
4176
4176
|
};
|
|
4177
|
-
|
|
4177
|
+
g(Mt, "type", Mt.register("ESUeViewer", an.type, Mt));
|
|
4178
4178
|
let Fi = Mt;
|
|
4179
4179
|
const Z = class Z extends E {
|
|
4180
4180
|
constructor(e, t) {
|
|
@@ -4193,17 +4193,17 @@ const Z = class Z extends E {
|
|
|
4193
4193
|
}));
|
|
4194
4194
|
}
|
|
4195
4195
|
};
|
|
4196
|
-
|
|
4196
|
+
g(Z, "forceUeUpdateProps", [
|
|
4197
4197
|
...E.forceUeUpdateProps,
|
|
4198
4198
|
"url"
|
|
4199
|
-
]),
|
|
4199
|
+
]), g(Z, "propValFuncs", {
|
|
4200
4200
|
...E.propValFuncs,
|
|
4201
4201
|
url: (e) => typeof e == "string" ? I.context.getStrFromEnv(Fe(e)) : (e.url = I.context.getStrFromEnv(Fe(e.url)), e),
|
|
4202
4202
|
czmMaximumScale: null,
|
|
4203
4203
|
czmMinimumPixelSize: null,
|
|
4204
4204
|
czmNativeScale: null,
|
|
4205
4205
|
czmColor: null
|
|
4206
|
-
}),
|
|
4206
|
+
}), g(Z, "type", Z.register("ESUeViewer", ln.type, Z));
|
|
4207
4207
|
let Ii = Z;
|
|
4208
4208
|
const $t = class $t extends B {
|
|
4209
4209
|
constructor(e, t) {
|
|
@@ -4213,7 +4213,7 @@ const $t = class $t extends B {
|
|
|
4213
4213
|
}
|
|
4214
4214
|
}
|
|
4215
4215
|
};
|
|
4216
|
-
|
|
4216
|
+
g($t, "type", $t.register("ESUeViewer", dn.type, $t));
|
|
4217
4217
|
let Ei = $t;
|
|
4218
4218
|
const Wt = class Wt extends E {
|
|
4219
4219
|
constructor(e, t) {
|
|
@@ -4222,12 +4222,12 @@ const Wt = class Wt extends E {
|
|
|
4222
4222
|
return;
|
|
4223
4223
|
}
|
|
4224
4224
|
const r = async (s, o, h, a) => {
|
|
4225
|
-
const { viewer:
|
|
4226
|
-
if (!
|
|
4225
|
+
const { viewer: f } = s;
|
|
4226
|
+
if (!f) {
|
|
4227
4227
|
console.error("AIMoveTo: ueViewer.viewer is undefined");
|
|
4228
4228
|
return;
|
|
4229
4229
|
}
|
|
4230
|
-
const p = await
|
|
4230
|
+
const p = await f.callUeFunc({
|
|
4231
4231
|
f: "AIMoveTo",
|
|
4232
4232
|
p: { id: o, Destination: h, Time: a }
|
|
4233
4233
|
});
|
|
@@ -4253,7 +4253,7 @@ const Wt = class Wt extends E {
|
|
|
4253
4253
|
}));
|
|
4254
4254
|
}
|
|
4255
4255
|
};
|
|
4256
|
-
|
|
4256
|
+
g(Wt, "type", Wt.register("ESUeViewer", cn.type, Wt));
|
|
4257
4257
|
let Si = Wt;
|
|
4258
4258
|
const q = class q extends z {
|
|
4259
4259
|
constructor(e, t) {
|
|
@@ -4264,10 +4264,10 @@ const q = class q extends z {
|
|
|
4264
4264
|
e.anchor = [0.5, 1];
|
|
4265
4265
|
}
|
|
4266
4266
|
};
|
|
4267
|
-
|
|
4267
|
+
g(q, "type", q.register("ESUeViewer", fr.type, q)), g(q, "forceUeUpdateProps", [
|
|
4268
4268
|
...z.forceUeUpdateProps,
|
|
4269
4269
|
"url"
|
|
4270
|
-
]),
|
|
4270
|
+
]), g(q, "propValFuncs", {
|
|
4271
4271
|
...z.propValFuncs,
|
|
4272
4272
|
url: (e) => typeof e == "string" ? I.context.getStrFromEnv(Fe(e)) : (e.url = I.context.getStrFromEnv(Fe(e.url)), e)
|
|
4273
4273
|
});
|
|
@@ -4280,7 +4280,7 @@ const At = class At extends E {
|
|
|
4280
4280
|
}
|
|
4281
4281
|
}
|
|
4282
4282
|
};
|
|
4283
|
-
|
|
4283
|
+
g(At, "type", At.register("ESUeViewer", un.type, At));
|
|
4284
4284
|
let xi = At;
|
|
4285
4285
|
const Ut = class Ut extends Ke {
|
|
4286
4286
|
constructor(e, t) {
|
|
@@ -4290,7 +4290,7 @@ const Ut = class Ut extends Ke {
|
|
|
4290
4290
|
}
|
|
4291
4291
|
}
|
|
4292
4292
|
};
|
|
4293
|
-
|
|
4293
|
+
g(Ut, "type", Ut.register("ESUeViewer", hn.type, Ut));
|
|
4294
4294
|
let Ri = Ut;
|
|
4295
4295
|
const Nt = class Nt extends k {
|
|
4296
4296
|
constructor(e, t) {
|
|
@@ -4300,7 +4300,7 @@ const Nt = class Nt extends k {
|
|
|
4300
4300
|
}
|
|
4301
4301
|
}
|
|
4302
4302
|
};
|
|
4303
|
-
|
|
4303
|
+
g(Nt, "type", Nt.register("ESUeViewer", pn.type, Nt));
|
|
4304
4304
|
let Pi = Nt;
|
|
4305
4305
|
const zt = class zt extends Ke {
|
|
4306
4306
|
constructor(e, t) {
|
|
@@ -4310,7 +4310,7 @@ const zt = class zt extends Ke {
|
|
|
4310
4310
|
}
|
|
4311
4311
|
}
|
|
4312
4312
|
};
|
|
4313
|
-
|
|
4313
|
+
g(zt, "type", zt.register("ESUeViewer", gn.type, zt));
|
|
4314
4314
|
let Li = zt;
|
|
4315
4315
|
const bt = class bt extends E {
|
|
4316
4316
|
constructor(e, t) {
|
|
@@ -4320,7 +4320,7 @@ const bt = class bt extends E {
|
|
|
4320
4320
|
}
|
|
4321
4321
|
}
|
|
4322
4322
|
};
|
|
4323
|
-
|
|
4323
|
+
g(bt, "type", bt.register("ESUeViewer", vn.type, bt));
|
|
4324
4324
|
let Di = bt;
|
|
4325
4325
|
const Ht = class Ht extends E {
|
|
4326
4326
|
constructor(e, t) {
|
|
@@ -4330,7 +4330,7 @@ const Ht = class Ht extends E {
|
|
|
4330
4330
|
}
|
|
4331
4331
|
}
|
|
4332
4332
|
};
|
|
4333
|
-
|
|
4333
|
+
g(Ht, "type", Ht.register("ESUeViewer", fn.type, Ht));
|
|
4334
4334
|
let ki = Ht;
|
|
4335
4335
|
const Jt = class Jt extends B {
|
|
4336
4336
|
constructor(e, t) {
|
|
@@ -4340,7 +4340,7 @@ const Jt = class Jt extends B {
|
|
|
4340
4340
|
}
|
|
4341
4341
|
}
|
|
4342
4342
|
};
|
|
4343
|
-
|
|
4343
|
+
g(Jt, "type", Jt.register("ESUeViewer", wn.type, Jt));
|
|
4344
4344
|
let Bi = Jt;
|
|
4345
4345
|
const Gt = class Gt extends ze {
|
|
4346
4346
|
constructor(e, t) {
|
|
@@ -4350,7 +4350,7 @@ const Gt = class Gt extends ze {
|
|
|
4350
4350
|
}
|
|
4351
4351
|
}
|
|
4352
4352
|
};
|
|
4353
|
-
|
|
4353
|
+
g(Gt, "type", Gt.register("ESUeViewer", yn.type, Gt));
|
|
4354
4354
|
let _i = Gt;
|
|
4355
4355
|
const Kt = class Kt extends Ue {
|
|
4356
4356
|
constructor(e, t) {
|
|
@@ -4375,7 +4375,7 @@ const Kt = class Kt extends Ue {
|
|
|
4375
4375
|
}));
|
|
4376
4376
|
}
|
|
4377
4377
|
};
|
|
4378
|
-
|
|
4378
|
+
g(Kt, "type", Kt.register("ESUeViewer", mn.type, Kt));
|
|
4379
4379
|
let Mi = Kt;
|
|
4380
4380
|
const Xt = class Xt extends $ {
|
|
4381
4381
|
constructor(e, t) {
|
|
@@ -4385,7 +4385,7 @@ const Xt = class Xt extends $ {
|
|
|
4385
4385
|
}
|
|
4386
4386
|
}
|
|
4387
4387
|
};
|
|
4388
|
-
|
|
4388
|
+
g(Xt, "type", Xt.register("ESUeViewer", Cn.type, Xt));
|
|
4389
4389
|
let $i = Xt;
|
|
4390
4390
|
const Yt = class Yt extends z {
|
|
4391
4391
|
constructor(e, t) {
|
|
@@ -4408,7 +4408,7 @@ const Yt = class Yt extends z {
|
|
|
4408
4408
|
}));
|
|
4409
4409
|
}
|
|
4410
4410
|
};
|
|
4411
|
-
|
|
4411
|
+
g(Yt, "type", Yt.register("ESUeViewer", Fn.type, Yt));
|
|
4412
4412
|
let Wi = Yt;
|
|
4413
4413
|
const Zt = class Zt extends E {
|
|
4414
4414
|
constructor(e, t) {
|
|
@@ -4418,7 +4418,7 @@ const Zt = class Zt extends E {
|
|
|
4418
4418
|
}
|
|
4419
4419
|
}
|
|
4420
4420
|
};
|
|
4421
|
-
|
|
4421
|
+
g(Zt, "type", Zt.register("ESUeViewer", In.type, Zt));
|
|
4422
4422
|
let Ai = Zt;
|
|
4423
4423
|
const Q = class Q extends k {
|
|
4424
4424
|
constructor(e, t) {
|
|
@@ -4428,10 +4428,10 @@ const Q = class Q extends k {
|
|
|
4428
4428
|
}
|
|
4429
4429
|
}
|
|
4430
4430
|
};
|
|
4431
|
-
|
|
4431
|
+
g(Q, "type", Q.register("ESUeViewer", En.type, Q)), g(Q, "forceUeUpdateProps", [
|
|
4432
4432
|
...k.forceUeUpdateProps,
|
|
4433
4433
|
"url"
|
|
4434
|
-
]),
|
|
4434
|
+
]), g(Q, "propValFuncs", {
|
|
4435
4435
|
...k.propValFuncs,
|
|
4436
4436
|
url: (e) => typeof e == "string" ? I.context.getStrFromEnv(e) : (e.url = I.context.getStrFromEnv(e.url), e)
|
|
4437
4437
|
});
|
|
@@ -4444,7 +4444,7 @@ const qt = class qt extends B {
|
|
|
4444
4444
|
}
|
|
4445
4445
|
}
|
|
4446
4446
|
};
|
|
4447
|
-
|
|
4447
|
+
g(qt, "type", qt.register("ESUeViewer", Sn.type, qt));
|
|
4448
4448
|
let Ni = qt;
|
|
4449
4449
|
const nt = class nt extends $ {
|
|
4450
4450
|
constructor(e, t) {
|
|
@@ -4454,8 +4454,8 @@ const nt = class nt extends $ {
|
|
|
4454
4454
|
}
|
|
4455
4455
|
}
|
|
4456
4456
|
};
|
|
4457
|
-
|
|
4458
|
-
|
|
4457
|
+
g(nt, "type", nt.register("ESUeViewer", Tn.type, nt)), // null 表示不设置,undefined表示不做任何转换
|
|
4458
|
+
g(nt, "propValFuncs", {
|
|
4459
4459
|
...$.propValFuncs,
|
|
4460
4460
|
targetID: (e) => {
|
|
4461
4461
|
if (!e) return "";
|
|
@@ -4472,7 +4472,7 @@ const Qt = class Qt extends $ {
|
|
|
4472
4472
|
}
|
|
4473
4473
|
}
|
|
4474
4474
|
};
|
|
4475
|
-
|
|
4475
|
+
g(Qt, "type", Qt.register("ESUeViewer", xn.type, Qt));
|
|
4476
4476
|
let bi = Qt;
|
|
4477
4477
|
const Vt = class Vt extends lt {
|
|
4478
4478
|
constructor(e, t) {
|
|
@@ -4493,23 +4493,23 @@ const Vt = class Vt extends lt {
|
|
|
4493
4493
|
let h = [255, 255, 255, 1];
|
|
4494
4494
|
if (o.startsWith("#")) {
|
|
4495
4495
|
if (o.length === 4) {
|
|
4496
|
-
let a = parseInt(o[1] + o[1], 16),
|
|
4497
|
-
h = [a,
|
|
4496
|
+
let a = parseInt(o[1] + o[1], 16), f = parseInt(o[2] + o[2], 16), p = parseInt(o[3] + o[3], 16);
|
|
4497
|
+
h = [a, f, p, 1];
|
|
4498
4498
|
} else if (o.length === 7) {
|
|
4499
|
-
let a = parseInt(o.substring(1, 3), 16),
|
|
4500
|
-
h = [a,
|
|
4499
|
+
let a = parseInt(o.substring(1, 3), 16), f = parseInt(o.substring(3, 5), 16), p = parseInt(o.substring(5, 7), 16);
|
|
4500
|
+
h = [a, f, p, 1];
|
|
4501
4501
|
}
|
|
4502
4502
|
} else if (o.startsWith("rgba")) {
|
|
4503
4503
|
let a = o.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)$/);
|
|
4504
4504
|
if (a) {
|
|
4505
|
-
let
|
|
4506
|
-
h = [
|
|
4505
|
+
let f = parseInt(a[1]), p = parseInt(a[2]), l = parseInt(a[3]), u = parseFloat(a[4]);
|
|
4506
|
+
h = [f, p, l, u];
|
|
4507
4507
|
}
|
|
4508
4508
|
} else if (o.startsWith("rgb")) {
|
|
4509
4509
|
let a = o.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/);
|
|
4510
4510
|
if (a) {
|
|
4511
|
-
let
|
|
4512
|
-
h = [
|
|
4511
|
+
let f = parseInt(a[1]), p = parseInt(a[2]), l = parseInt(a[3]);
|
|
4512
|
+
h = [f, p, l, 1];
|
|
4513
4513
|
}
|
|
4514
4514
|
} else
|
|
4515
4515
|
console.error("color类型只能为#rrggbb、#rgb、rgba(r,g,b,a)、rgb(r,g,b)");
|
|
@@ -4553,7 +4553,7 @@ const Vt = class Vt extends lt {
|
|
|
4553
4553
|
}
|
|
4554
4554
|
}
|
|
4555
4555
|
};
|
|
4556
|
-
|
|
4556
|
+
g(Vt, "type", Vt.register("ESUeViewer", Rn.type, Vt));
|
|
4557
4557
|
let Hi = Vt;
|
|
4558
4558
|
const Ot = class Ot extends k {
|
|
4559
4559
|
constructor(e, t) {
|
|
@@ -4574,7 +4574,7 @@ const Ot = class Ot extends k {
|
|
|
4574
4574
|
}));
|
|
4575
4575
|
}
|
|
4576
4576
|
};
|
|
4577
|
-
|
|
4577
|
+
g(Ot, "type", Ot.register("ESUeViewer", Pn.type, Ot));
|
|
4578
4578
|
let Ji = Ot;
|
|
4579
4579
|
const jt = class jt extends E {
|
|
4580
4580
|
constructor(e, t) {
|
|
@@ -4584,7 +4584,7 @@ const jt = class jt extends E {
|
|
|
4584
4584
|
}
|
|
4585
4585
|
}
|
|
4586
4586
|
};
|
|
4587
|
-
|
|
4587
|
+
g(jt, "type", jt.register("ESUeViewer", Mn.type, jt));
|
|
4588
4588
|
let Gi = jt;
|
|
4589
4589
|
const te = class te extends $ {
|
|
4590
4590
|
constructor(e, t) {
|
|
@@ -4611,7 +4611,7 @@ const te = class te extends $ {
|
|
|
4611
4611
|
}));
|
|
4612
4612
|
}
|
|
4613
4613
|
};
|
|
4614
|
-
|
|
4614
|
+
g(te, "type", te.register("ESUeViewer", $n.type, te));
|
|
4615
4615
|
let Ki = te;
|
|
4616
4616
|
const ee = class ee extends $ {
|
|
4617
4617
|
constructor(e, t) {
|
|
@@ -4631,7 +4631,7 @@ const ee = class ee extends $ {
|
|
|
4631
4631
|
}));
|
|
4632
4632
|
}
|
|
4633
4633
|
};
|
|
4634
|
-
|
|
4634
|
+
g(ee, "type", ee.register("ESUeViewer", Wn.type, ee));
|
|
4635
4635
|
let Xi = ee;
|
|
4636
4636
|
const ie = class ie extends z {
|
|
4637
4637
|
constructor(e, t) {
|
|
@@ -4641,7 +4641,7 @@ const ie = class ie extends z {
|
|
|
4641
4641
|
}
|
|
4642
4642
|
}
|
|
4643
4643
|
};
|
|
4644
|
-
|
|
4644
|
+
g(ie, "type", ie.register("ESUeViewer", vr.type, ie));
|
|
4645
4645
|
let Yi = ie;
|
|
4646
4646
|
const st = class st extends z {
|
|
4647
4647
|
constructor(e, t) {
|
|
@@ -4657,7 +4657,7 @@ const st = class st extends z {
|
|
|
4657
4657
|
}));
|
|
4658
4658
|
}
|
|
4659
4659
|
};
|
|
4660
|
-
|
|
4660
|
+
g(st, "type", st.register("ESUeViewer", An.type, st)), g(st, "propValFuncs", {
|
|
4661
4661
|
...z.propValFuncs,
|
|
4662
4662
|
info: (e) => JSON.stringify(e ?? {})
|
|
4663
4663
|
});
|
|
@@ -4739,7 +4739,7 @@ const qi = (d) => {
|
|
|
4739
4739
|
position: e.position
|
|
4740
4740
|
}
|
|
4741
4741
|
}), (t.debug ?? !1) && console.log(`updatePostion:${e.position},actorTag:${e.actorTag},actorClass:${e.actorClass}`));
|
|
4742
|
-
}, a = () => !s && !o ? (console.warn(`${e.id} 未绑定ActorTag或未创建ActorClass!`), !0) : !1,
|
|
4742
|
+
}, a = () => !s && !o ? (console.warn(`${e.id} 未绑定ActorTag或未创建ActorClass!`), !0) : !1, f = async () => {
|
|
4743
4743
|
const { id: l } = e, u = await t.unBindActorByID(l);
|
|
4744
4744
|
u && u.error !== "" && console.warn(`${e.id} UeESUnrealActor UnBindActorByID: ${u.error}`), s = void 0;
|
|
4745
4745
|
const c = await i.callUeFunc({ f: "destroy", p: { id: l } });
|
|
@@ -4772,44 +4772,44 @@ const qi = (d) => {
|
|
|
4772
4772
|
}
|
|
4773
4773
|
{
|
|
4774
4774
|
const l = this.dv(Te(async (c) => {
|
|
4775
|
-
if (await c.promise(
|
|
4776
|
-
const { actorTag:
|
|
4775
|
+
if (await c.promise(f()), e.lastActorStatus = "null", p.value.type === "ActorTag") {
|
|
4776
|
+
const { actorTag: v } = p.value;
|
|
4777
4777
|
try {
|
|
4778
|
-
const w = await c.promise(t.bindActorByTag(e.id,
|
|
4778
|
+
const w = await c.promise(t.bindActorByTag(e.id, v));
|
|
4779
4779
|
if (!w) return;
|
|
4780
4780
|
if (w.error !== "") {
|
|
4781
|
-
console.warn(`${e.id} UeESUnrealActor BindActorByTag:${
|
|
4781
|
+
console.warn(`${e.id} UeESUnrealActor BindActorByTag:${v},${w.error}`);
|
|
4782
4782
|
return;
|
|
4783
4783
|
}
|
|
4784
4784
|
if (w.re.type === 0)
|
|
4785
|
-
e.lastActorStatus = "bound", s =
|
|
4785
|
+
e.lastActorStatus = "bound", s = v;
|
|
4786
4786
|
else if (w.re.type === 1)
|
|
4787
|
-
e.lastActorStatus = "bound", s =
|
|
4787
|
+
e.lastActorStatus = "bound", s = v, console.warn(`${e.id} UeESUnrealActor BindActorByTag:${v},${qi(w.re.type)}`);
|
|
4788
4788
|
else {
|
|
4789
|
-
s = void 0, console.warn(`${e.id} UeESUnrealActor BindActorByTag error:${
|
|
4789
|
+
s = void 0, console.warn(`${e.id} UeESUnrealActor BindActorByTag error:${v}, ${qi(w.re.type)}`);
|
|
4790
4790
|
return;
|
|
4791
4791
|
}
|
|
4792
4792
|
} catch (w) {
|
|
4793
|
-
console.warn(`${e.id} UeESUnrealActor BindActorByTag catch error:${
|
|
4793
|
+
console.warn(`${e.id} UeESUnrealActor BindActorByTag catch error:${v}, ${w}`);
|
|
4794
4794
|
return;
|
|
4795
4795
|
}
|
|
4796
4796
|
} else if (p.value.type === "ActorClass") {
|
|
4797
|
-
const { actorClass:
|
|
4797
|
+
const { actorClass: v } = p.value;
|
|
4798
4798
|
try {
|
|
4799
|
-
const w = await c.promise(t.createActorByClass(e.id,
|
|
4799
|
+
const w = await c.promise(t.createActorByClass(e.id, v));
|
|
4800
4800
|
if (!w) return;
|
|
4801
4801
|
if (w.error !== "") {
|
|
4802
|
-
console.warn(`${e.id} UeESUnrealActor CreateActorByClass error :${
|
|
4802
|
+
console.warn(`${e.id} UeESUnrealActor CreateActorByClass error :${v}, ${w.error}`);
|
|
4803
4803
|
return;
|
|
4804
4804
|
}
|
|
4805
4805
|
if (w.re.type === 0)
|
|
4806
|
-
|
|
4806
|
+
v !== "default" && (e.lastActorStatus = "created"), o = v;
|
|
4807
4807
|
else {
|
|
4808
|
-
console.warn(`${e.id} UeESUnrealActor CreateActorByClass error type :${
|
|
4808
|
+
console.warn(`${e.id} UeESUnrealActor CreateActorByClass error type :${v},${Eo(w.re.type)}`);
|
|
4809
4809
|
return;
|
|
4810
4810
|
}
|
|
4811
4811
|
} catch (w) {
|
|
4812
|
-
console.warn(`${e.id} UeESUnrealActor CreateActorByClass error catch :${
|
|
4812
|
+
console.warn(`${e.id} UeESUnrealActor CreateActorByClass error catch :${v}, ${JSON.stringify(w)}`);
|
|
4813
4813
|
return;
|
|
4814
4814
|
}
|
|
4815
4815
|
}
|
|
@@ -4830,10 +4830,10 @@ const qi = (d) => {
|
|
|
4830
4830
|
a() || ke(i, e.id, l, u);
|
|
4831
4831
|
})), this.d(e.smoothMoveWithRotationEvent.don((l, u, c) => {
|
|
4832
4832
|
a() || Pe(i, e.id, l, u, c);
|
|
4833
|
-
})), this.d(e.smoothMoveOnGroundEvent.don((l, u, c,
|
|
4834
|
-
a() || Le(i, e.id, l, u,
|
|
4835
|
-
})), this.d(e.smoothMoveWithRotationOnGroundEvent.don((l, u, c,
|
|
4836
|
-
a() || De(i, e.id, l, u, c,
|
|
4833
|
+
})), this.d(e.smoothMoveOnGroundEvent.don((l, u, c, v) => {
|
|
4834
|
+
a() || Le(i, e.id, l, u, v, c);
|
|
4835
|
+
})), this.d(e.smoothMoveWithRotationOnGroundEvent.don((l, u, c, v, w) => {
|
|
4836
|
+
a() || De(i, e.id, l, u, c, v, w);
|
|
4837
4837
|
})), this.d(e.automaticLandingEvent.don((l) => {
|
|
4838
4838
|
if (a()) return;
|
|
4839
4839
|
const u = [e.position[0], e.position[1]];
|
|
@@ -4843,8 +4843,8 @@ const qi = (d) => {
|
|
|
4843
4843
|
})), this.d(e.flyToEvent.don(async (l, u) => {
|
|
4844
4844
|
if (a()) return;
|
|
4845
4845
|
const c = await we(i, e.id, l);
|
|
4846
|
-
let
|
|
4847
|
-
c === void 0 ?
|
|
4846
|
+
let v = "over";
|
|
4847
|
+
c === void 0 ? v = "error" : c.endType === 0 ? v = "over" : c.endType === 1 && (v = "cancelled"), e.flyOverEvent.emit(u, v, t);
|
|
4848
4848
|
})), this.d(e.calcFlyToParamEvent.don(() => {
|
|
4849
4849
|
a() || dt(i, e.id);
|
|
4850
4850
|
})), this.d(e.calcFlyInParamEvent.don(async () => {
|
|
@@ -4861,7 +4861,7 @@ const qi = (d) => {
|
|
|
4861
4861
|
}));
|
|
4862
4862
|
}
|
|
4863
4863
|
};
|
|
4864
|
-
|
|
4864
|
+
g(re, "type", re.register("ESUeViewer", $e.type, re));
|
|
4865
4865
|
let Qi = re;
|
|
4866
4866
|
const ne = class ne extends E {
|
|
4867
4867
|
constructor(e, t) {
|
|
@@ -4871,7 +4871,7 @@ const ne = class ne extends E {
|
|
|
4871
4871
|
}
|
|
4872
4872
|
}
|
|
4873
4873
|
};
|
|
4874
|
-
|
|
4874
|
+
g(ne, "type", ne.register("ESUeViewer", Un.type, ne));
|
|
4875
4875
|
let Vi = ne;
|
|
4876
4876
|
const se = class se extends E {
|
|
4877
4877
|
constructor(e, t) {
|
|
@@ -4881,7 +4881,7 @@ const se = class se extends E {
|
|
|
4881
4881
|
}
|
|
4882
4882
|
}
|
|
4883
4883
|
};
|
|
4884
|
-
|
|
4884
|
+
g(se, "type", se.register("ESUeViewer", Nn.type, se));
|
|
4885
4885
|
let Oi = se;
|
|
4886
4886
|
const oe = class oe extends B {
|
|
4887
4887
|
constructor(e, t) {
|
|
@@ -4891,7 +4891,7 @@ const oe = class oe extends B {
|
|
|
4891
4891
|
}
|
|
4892
4892
|
}
|
|
4893
4893
|
};
|
|
4894
|
-
|
|
4894
|
+
g(oe, "type", oe.register("ESUeViewer", zn.type, oe));
|
|
4895
4895
|
let ji = oe;
|
|
4896
4896
|
const ae = class ae extends $ {
|
|
4897
4897
|
constructor(e, t) {
|
|
@@ -4918,7 +4918,7 @@ const ae = class ae extends $ {
|
|
|
4918
4918
|
}));
|
|
4919
4919
|
}
|
|
4920
4920
|
};
|
|
4921
|
-
|
|
4921
|
+
g(ae, "type", ae.register("ESUeViewer", bn.type, ae));
|
|
4922
4922
|
let tr = ae;
|
|
4923
4923
|
const ot = class ot extends z {
|
|
4924
4924
|
constructor(e, t) {
|
|
@@ -4928,7 +4928,7 @@ const ot = class ot extends z {
|
|
|
4928
4928
|
}
|
|
4929
4929
|
}
|
|
4930
4930
|
};
|
|
4931
|
-
|
|
4931
|
+
g(ot, "type", ot.register("ESUeViewer", Hn.type, ot)), g(ot, "propValFuncs", {
|
|
4932
4932
|
...z.propValFuncs,
|
|
4933
4933
|
info: (e) => JSON.stringify(e ?? {})
|
|
4934
4934
|
});
|
|
@@ -4946,7 +4946,7 @@ const le = class le extends G {
|
|
|
4946
4946
|
});
|
|
4947
4947
|
}
|
|
4948
4948
|
};
|
|
4949
|
-
|
|
4949
|
+
g(le, "type", le.register("ESUeViewer", Jn.type, le));
|
|
4950
4950
|
let ir = le;
|
|
4951
4951
|
I.context.getStrFromEnv(tt.defaults.imgUrl);
|
|
4952
4952
|
const de = class de extends G {
|
|
@@ -4985,10 +4985,10 @@ const de = class de extends G {
|
|
|
4985
4985
|
l(), e.dispose(e.cssPositionChanged.disposableOn(l));
|
|
4986
4986
|
}
|
|
4987
4987
|
a.style.transition = " right 0.4s linear", a.style.cursor = "pointer";
|
|
4988
|
-
const
|
|
4989
|
-
a.appendChild(
|
|
4988
|
+
const f = document.createElement("div");
|
|
4989
|
+
a.appendChild(f), this.dispose(() => a.removeChild(f)), f.style.width = "100%", f.style.height = "100%", f.style.position = "relative";
|
|
4990
4990
|
const p = document.createElement("img");
|
|
4991
|
-
|
|
4991
|
+
f.appendChild(p), this.dispose(() => f.removeChild(p)), p.style.width = "100%", p.style.height = "100%", p.style.border = "none";
|
|
4992
4992
|
{
|
|
4993
4993
|
const l = () => p.src = e.imgUrl;
|
|
4994
4994
|
l(), e.dispose(e.imgUrlChanged.disposableOn(l));
|
|
@@ -5011,7 +5011,7 @@ const de = class de extends G {
|
|
|
5011
5011
|
};
|
|
5012
5012
|
}
|
|
5013
5013
|
};
|
|
5014
|
-
|
|
5014
|
+
g(de, "type", de.register("ESUeViewer", tt.type, de));
|
|
5015
5015
|
let rr = de;
|
|
5016
5016
|
const V = class V extends B {
|
|
5017
5017
|
constructor(e, t) {
|
|
@@ -5035,9 +5035,9 @@ const V = class V extends B {
|
|
|
5035
5035
|
}
|
|
5036
5036
|
}
|
|
5037
5037
|
};
|
|
5038
|
-
|
|
5038
|
+
g(V, "type", V.register("ESUeViewer", Gn.type, V)), g(V, "forceUeUpdateProps", [
|
|
5039
5039
|
...B.forceUeUpdateProps
|
|
5040
|
-
]),
|
|
5040
|
+
]), g(V, "propValFuncs", {
|
|
5041
5041
|
...B.propValFuncs
|
|
5042
5042
|
});
|
|
5043
5043
|
let nr = V;
|
|
@@ -5060,15 +5060,15 @@ const ce = class ce extends G {
|
|
|
5060
5060
|
if (super(), this._subContainer = s, !h || !(h instanceof J)) return;
|
|
5061
5061
|
const a = document.createElement("div");
|
|
5062
5062
|
this._subContainer.appendChild(a), this.dispose(() => this._subContainer.removeChild(a)), a.style.width = "100%", a.style.position = "absolute", a.style.height = `${A.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 = `${A.defaults.height}px`, a.style.zIndex = "100", a.style.alignContent = "center", a.style.justifyContent = "space-between";
|
|
5063
|
-
const
|
|
5064
|
-
a.appendChild(
|
|
5063
|
+
const f = document.createElement("span");
|
|
5064
|
+
a.appendChild(f), this.dispose(() => a.removeChild(f));
|
|
5065
5065
|
const p = document.createElement("span");
|
|
5066
|
-
|
|
5066
|
+
f.appendChild(p), this.dispose(() => f.removeChild(p));
|
|
5067
5067
|
const l = document.createElement("span");
|
|
5068
|
-
|
|
5068
|
+
f.appendChild(l), l.addEventListener("dblclick", function() {
|
|
5069
5069
|
let c = l.innerHTML;
|
|
5070
5070
|
c.startsWith("鼠标位置") && (c = c.slice(5)), So(c);
|
|
5071
|
-
}), l.style.cursor = "pointer", this.dispose(() =>
|
|
5071
|
+
}), l.style.cursor = "pointer", this.dispose(() => f.removeChild(l));
|
|
5072
5072
|
const u = document.createElement("span");
|
|
5073
5073
|
a.appendChild(u), this.dispose(() => a.removeChild(u));
|
|
5074
5074
|
{
|
|
@@ -5113,19 +5113,19 @@ const ce = class ce extends G {
|
|
|
5113
5113
|
console.log(T);
|
|
5114
5114
|
});
|
|
5115
5115
|
};
|
|
5116
|
-
let
|
|
5116
|
+
let v;
|
|
5117
5117
|
const w = async () => {
|
|
5118
|
-
c(), e.show ? (a.style.display = "flex",
|
|
5118
|
+
c(), e.show ? (a.style.display = "flex", v = setInterval(() => {
|
|
5119
5119
|
c();
|
|
5120
|
-
}, 1e3)) : (a.style.display = "none", clearInterval(
|
|
5120
|
+
}, 1e3)) : (a.style.display = "none", clearInterval(v));
|
|
5121
5121
|
};
|
|
5122
|
-
this.dispose(e.showChanged.disposableOn(w)), w(), this.dispose(() => clearInterval(
|
|
5122
|
+
this.dispose(e.showChanged.disposableOn(w)), w(), this.dispose(() => clearInterval(v));
|
|
5123
5123
|
}
|
|
5124
5124
|
}
|
|
5125
5125
|
};
|
|
5126
5126
|
}
|
|
5127
5127
|
};
|
|
5128
|
-
|
|
5128
|
+
g(ce, "type", ce.register("ESUeViewer", A.type, ce));
|
|
5129
5129
|
let sr = ce;
|
|
5130
5130
|
const ue = class ue extends E {
|
|
5131
5131
|
constructor(e, t) {
|
|
@@ -5135,12 +5135,12 @@ const ue = class ue extends E {
|
|
|
5135
5135
|
}
|
|
5136
5136
|
}
|
|
5137
5137
|
};
|
|
5138
|
-
|
|
5138
|
+
g(ue, "type", ue.register("ESUeViewer", Kn.type, ue));
|
|
5139
5139
|
let or = ue;
|
|
5140
5140
|
const he = class he extends lt {
|
|
5141
5141
|
constructor(t, i) {
|
|
5142
5142
|
super(t, i);
|
|
5143
|
-
|
|
5143
|
+
g(this, "_es3DTileset", this.dv(new me()));
|
|
5144
5144
|
if (!i.viewer) {
|
|
5145
5145
|
console.warn("viewer is undefined!");
|
|
5146
5146
|
return;
|
|
@@ -5195,7 +5195,7 @@ const he = class he extends lt {
|
|
|
5195
5195
|
return this._es3DTileset;
|
|
5196
5196
|
}
|
|
5197
5197
|
};
|
|
5198
|
-
|
|
5198
|
+
g(he, "type", he.register("ESUeViewer", Xn.type, he));
|
|
5199
5199
|
let ar = he;
|
|
5200
5200
|
const pe = class pe extends lt {
|
|
5201
5201
|
constructor(e, t) {
|
|
@@ -5205,9 +5205,9 @@ const pe = class pe extends lt {
|
|
|
5205
5205
|
}
|
|
5206
5206
|
}
|
|
5207
5207
|
};
|
|
5208
|
-
|
|
5208
|
+
g(pe, "type", pe.register("ESUeViewer", Yn.type, pe));
|
|
5209
5209
|
let lr = pe;
|
|
5210
|
-
const
|
|
5210
|
+
const ge = class ge extends $ {
|
|
5211
5211
|
constructor(e, t) {
|
|
5212
5212
|
super(e, t);
|
|
5213
5213
|
const i = t.viewer;
|
|
@@ -5233,9 +5233,9 @@ const fe = class fe extends $ {
|
|
|
5233
5233
|
this.dispose(n.disposableOn(r)), this.dispose(e.createdEvent.disposableOn(r));
|
|
5234
5234
|
}
|
|
5235
5235
|
};
|
|
5236
|
-
|
|
5237
|
-
let dr =
|
|
5238
|
-
const
|
|
5236
|
+
g(ge, "type", ge.register("ESUeViewer", ye.type, ge));
|
|
5237
|
+
let dr = ge;
|
|
5238
|
+
const ve = class ve extends E {
|
|
5239
5239
|
constructor(e, t) {
|
|
5240
5240
|
if (super(e, t), !t.viewer) {
|
|
5241
5241
|
console.warn("viewer is undefined!");
|
|
@@ -5243,9 +5243,9 @@ const ge = class ge extends E {
|
|
|
5243
5243
|
}
|
|
5244
5244
|
}
|
|
5245
5245
|
};
|
|
5246
|
-
|
|
5247
|
-
let cr =
|
|
5248
|
-
const
|
|
5246
|
+
g(ve, "type", ve.register("ESUeViewer", Zn.type, ve));
|
|
5247
|
+
let cr = ve;
|
|
5248
|
+
const fe = class fe extends B {
|
|
5249
5249
|
constructor(e, t) {
|
|
5250
5250
|
super(e, t);
|
|
5251
5251
|
const i = t.viewer;
|
|
@@ -5270,10 +5270,10 @@ const ve = class ve extends B {
|
|
|
5270
5270
|
}));
|
|
5271
5271
|
}
|
|
5272
5272
|
};
|
|
5273
|
-
|
|
5274
|
-
let ur =
|
|
5273
|
+
g(fe, "type", fe.register("ESUeViewer", qn.type, fe));
|
|
5274
|
+
let ur = fe, We;
|
|
5275
5275
|
try {
|
|
5276
|
-
const d = "earthsdk3-ue", e = "3.6.
|
|
5276
|
+
const d = "earthsdk3-ue", e = "3.6.2", t = "2025-12-04T02:08:23.000Z", i = "北京西部世界科技有限公司", r = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", n = "b951704c9cc2a53b6d53468e08f41aec0794d4c0", o = ((Date.now() - 1764814103e3) / 36e5).toFixed(1), h = `%c🌏 ${d}%c ${e}.${n.slice(0, 8)}.${t} (距今${o}个小时)
|
|
5277
5277
|
%c${r ? r + `
|
|
5278
5278
|
` : ""}当前网站正在使用${d},此软件版权归${i}所有
|
|
5279
5279
|
`;
|
|
@@ -5287,7 +5287,7 @@ try {
|
|
|
5287
5287
|
},
|
|
5288
5288
|
// @ts-ignore
|
|
5289
5289
|
get gituri() {
|
|
5290
|
-
return GITURI_ && GITURI_.replace("${commitId}", "
|
|
5290
|
+
return GITURI_ && GITURI_.replace("${commitId}", "b951704c9cc2a53b6d53468e08f41aec0794d4c0");
|
|
5291
5291
|
},
|
|
5292
5292
|
// @ts-ignore
|
|
5293
5293
|
get info() {
|
|
@@ -5295,7 +5295,7 @@ try {
|
|
|
5295
5295
|
},
|
|
5296
5296
|
// @ts-ignore
|
|
5297
5297
|
get date() {
|
|
5298
|
-
return "2025-12-
|
|
5298
|
+
return "2025-12-04T02:08:23.000Z";
|
|
5299
5299
|
},
|
|
5300
5300
|
// @ts-ignore
|
|
5301
5301
|
get author() {
|
|
@@ -5303,7 +5303,7 @@ try {
|
|
|
5303
5303
|
},
|
|
5304
5304
|
// @ts-ignore
|
|
5305
5305
|
get version() {
|
|
5306
|
-
return "3.6.
|
|
5306
|
+
return "3.6.2";
|
|
5307
5307
|
},
|
|
5308
5308
|
// @ts-ignore
|
|
5309
5309
|
get name() {
|
|
@@ -5311,7 +5311,7 @@ try {
|
|
|
5311
5311
|
},
|
|
5312
5312
|
// @ts-ignore
|
|
5313
5313
|
get commitId() {
|
|
5314
|
-
return "
|
|
5314
|
+
return "b951704c9cc2a53b6d53468e08f41aec0794d4c0";
|
|
5315
5315
|
},
|
|
5316
5316
|
print(a = !1) {
|
|
5317
5317
|
!a && globalThis._xe2_no_copy_print || console.info(
|
|
@@ -5366,9 +5366,9 @@ export {
|
|
|
5366
5366
|
ui as UeESDirectionMeasurement,
|
|
5367
5367
|
hi as UeESDistanceMeasurement,
|
|
5368
5368
|
pi as UeESDynamicWater,
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5369
|
+
gi as UeESEntityCluster,
|
|
5370
|
+
vi as UeESExcavate,
|
|
5371
|
+
fi as UeESFireParticleSystem,
|
|
5372
5372
|
wi as UeESForestTileset,
|
|
5373
5373
|
or as UeESGaussianSplatting,
|
|
5374
5374
|
yi as UeESGeoDiv,
|
|
@@ -5449,7 +5449,7 @@ export {
|
|
|
5449
5449
|
Hs as getCameraRelativeHeightCallFunc,
|
|
5450
5450
|
Rs as getFillMaterialParamInfoCallFunc,
|
|
5451
5451
|
Ps as getGlobalPropertyCallFunc,
|
|
5452
|
-
|
|
5452
|
+
fs as getHeightByLonLatCallFunc,
|
|
5453
5453
|
ws as getHeightByLonLatsCallFunc,
|
|
5454
5454
|
bs as getIdByComponentNameAndHitItemCallFunc,
|
|
5455
5455
|
Cs as getLonLatAltToScreenPositionCallFunc,
|
|
@@ -5462,8 +5462,8 @@ export {
|
|
|
5462
5462
|
rs as mountPakFiles,
|
|
5463
5463
|
qs as moveObjectsCallFunc,
|
|
5464
5464
|
ms as partialCaptureCallFunc,
|
|
5465
|
-
|
|
5466
|
-
|
|
5465
|
+
gs as pickCallFunc,
|
|
5466
|
+
vs as pickPositionCallFunc,
|
|
5467
5467
|
ps as quitCallFunc,
|
|
5468
5468
|
jn as refreshTilesetCallFunc,
|
|
5469
5469
|
Er as resetWithCurrentCameraCallFunc,
|