@zhangdali1996/lr-map-viewer 0.0.127 → 0.0.129
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/lr-map-viewer.css +1 -1
- package/dist/lr-map-viewer.js +516 -503
- package/package.json +1 -1
package/dist/lr-map-viewer.js
CHANGED
|
@@ -21,7 +21,7 @@ var oe = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDe
|
|
|
21
21
|
}) : n, e)), he = {
|
|
22
22
|
name: "@zhangdali1996/lr-map-viewer",
|
|
23
23
|
private: !1,
|
|
24
|
-
version: "0.0.
|
|
24
|
+
version: "0.0.128",
|
|
25
25
|
type: "module",
|
|
26
26
|
files: ["dist"],
|
|
27
27
|
main: "./dist/lr-map-viewer.js",
|
|
@@ -68583,7 +68583,8 @@ function Hq(e = {}) {
|
|
|
68583
68583
|
return f.value.isFollowing === !0 && O === !0;
|
|
68584
68584
|
}
|
|
68585
68585
|
function Vt(e, t, n, r = Vq) {
|
|
68586
|
-
|
|
68586
|
+
let i = new e.Vector3(Number(t.x) - Number(n.x ?? 0), Number(t.y) - Number(n.y ?? 0), Number(t.z) - Number(n.z ?? 0)), a = Number.isFinite(Number(r)) ? Number(r) : Vq;
|
|
68587
|
+
return i.multiplyScalar(a);
|
|
68587
68588
|
}
|
|
68588
68589
|
function Ht(t, n = {}) {
|
|
68589
68590
|
let r = e.getThreeGlobal?.(), i = Sj(), a = e.resolveLr3dControls?.(), o = Ft(t, r);
|
|
@@ -69062,13 +69063,13 @@ function Hq(e = {}) {
|
|
|
69062
69063
|
te.delete(n);
|
|
69063
69064
|
return;
|
|
69064
69065
|
}
|
|
69065
|
-
let i = Math.min(1, Math.max(0, (e - t.startedAt) / t.moveDuration));
|
|
69066
|
-
Xn(r,
|
|
69066
|
+
let i = Math.min(1, Math.max(0, (e - t.startedAt) / t.moveDuration)), a = wq(t.pathPoints, t.totalLength, t.accumulatedLengths, i) ?? t.targetPoint;
|
|
69067
|
+
Xn(r, a, {
|
|
69067
69068
|
pointIndex: i >= 1 && r.pointsHistory.length > 1 ? r.pointsHistory.length - 1 : r.currentPointIndex,
|
|
69068
69069
|
timeLabel: i >= 1 ? r.targetTimeLabel : r.currentTimeLabel,
|
|
69069
69070
|
isMoving: i < 1,
|
|
69070
69071
|
status: i >= 1 ? `移动完成:${r.targetTimeLabel}` : `定位移动中:${r.targetTimeLabel}`
|
|
69071
|
-
}), i >= 1 && te.delete(n);
|
|
69072
|
+
}), Wt(n) && Ut(a, r.name), i >= 1 && te.delete(n);
|
|
69072
69073
|
}), te.size > 0 && Pn();
|
|
69073
69074
|
}
|
|
69074
69075
|
function In(e, t = [], n = {}) {
|
|
@@ -74377,7 +74378,7 @@ var iY = {
|
|
|
74377
74378
|
let t = typeof e == "string" ? e.trim() : "";
|
|
74378
74379
|
return N.includes(t);
|
|
74379
74380
|
}
|
|
74380
|
-
let U = e, oe = pV(qz()), se = r(() => (Array.isArray(oe.sceneViewPointItems) ? oe.sceneViewPointItems : []).map((e, t) => ve(e, t)).filter(Boolean)), ce = r(() => se.value.filter((e) => e.name !== "事故点")), W = r(() => se.value.find((e) => e.name === "事故点") ?? null), le = A(
|
|
74381
|
+
let U = e, oe = pV(qz()), se = r(() => (Array.isArray(oe.sceneViewPointItems) ? oe.sceneViewPointItems : []).map((e, t) => ve(e, t)).filter(Boolean)), ce = r(() => se.value.filter((e) => e.name !== "事故点")), W = r(() => se.value.find((e) => e.name === "事故点") ?? null), le = A(gf()), ue = r(() => {
|
|
74381
74382
|
let e = le.value?.business;
|
|
74382
74383
|
return e && typeof e == "object" && !Array.isArray(e) ? e : {};
|
|
74383
74384
|
}), de = r(() => le.value.scene.containerId), fe = A(null), pe = A("eval_route_gene"), me = A("#041D4B"), he = A(""), G = A(""), K = A(!1);
|
|
@@ -74570,7 +74571,7 @@ var iY = {
|
|
|
74570
74571
|
return String(U.mineId || "").trim() === SM.CAOJIATAN ? null : tn();
|
|
74571
74572
|
}
|
|
74572
74573
|
function rn() {
|
|
74573
|
-
return String(U.mineId || "").trim() === SM.CAOJIATAN ?
|
|
74574
|
+
return String(U.mineId || "").trim() === SM.CAOJIATAN ? Zm() : !1;
|
|
74574
74575
|
}
|
|
74575
74576
|
function an() {
|
|
74576
74577
|
return Kt(ue.value.waterSimulationKeyLocationAbsolutePosition);
|
|
@@ -74845,7 +74846,7 @@ var iY = {
|
|
|
74845
74846
|
let ir = r(() => er().some((e) => e.visible !== !1));
|
|
74846
74847
|
function ar() {
|
|
74847
74848
|
let e = jr("juejin-model");
|
|
74848
|
-
return !e ||
|
|
74849
|
+
return !e || !em(e?.absolutePosition?.x) || !em(e?.absolutePosition?.y) || !em(e?.absolutePosition?.z) ? null : {
|
|
74849
74850
|
x: Number(e.absolutePosition.x),
|
|
74850
74851
|
y: Number(e.absolutePosition.y),
|
|
74851
74852
|
z: Number(e.absolutePosition.z)
|
|
@@ -74857,13 +74858,13 @@ var iY = {
|
|
|
74857
74858
|
}
|
|
74858
74859
|
let sr = r(() => (Ce.value, Un().map((e) => {
|
|
74859
74860
|
let t = typeof e?.holeNo == "string" && e.holeNo.trim() ? e.holeNo.trim() : typeof e?.name == "string" ? e.name.trim() : "", n = Wn(t), r = mt[n] ?? null, i = typeof e?.modelUrl == "string" && e.modelUrl.trim() ? r ? "loaded" : "loading" : "missing", a = e?.absolutePosition;
|
|
74860
|
-
return
|
|
74861
|
+
return !em(a?.x) || !em(a?.y) || !em(a?.z) ? null : {
|
|
74861
74862
|
key: n,
|
|
74862
74863
|
name: typeof e?.name == "string" && e.name.trim() ? e.name.trim() : t,
|
|
74863
74864
|
holeNo: t,
|
|
74864
74865
|
holeDepthText: or(e?.holeDepth, "m"),
|
|
74865
74866
|
staticWaterLevelElevationText: or(e?.staticWaterLevelElevation, "m"),
|
|
74866
|
-
observationDateText:
|
|
74867
|
+
observationDateText: zf(e?.observationDate),
|
|
74867
74868
|
loadStatus: i,
|
|
74868
74869
|
loadStatusText: i === "loaded" ? "已加载" : i === "loading" ? "加载中" : "缺少模型",
|
|
74869
74870
|
absolutePosition: {
|
|
@@ -74983,7 +74984,7 @@ var iY = {
|
|
|
74983
74984
|
let t = $n(), n = rr.value;
|
|
74984
74985
|
return t.length === 0 ? (ui("救援孔模型显隐切换失败:当前矿井未配置救援孔模型"), !1) : (e || Ld(), t.forEach((t) => {
|
|
74985
74986
|
t.visible = e;
|
|
74986
|
-
}), Z = !0,
|
|
74987
|
+
}), Z = !0, nm(e), ui(`救援孔模型已${e ? "显示" : "隐藏"}:${t.map((e) => e.key).join(",")}`), e && !n && x(() => {
|
|
74987
74988
|
Ir();
|
|
74988
74989
|
}), !0);
|
|
74989
74990
|
}
|
|
@@ -74991,7 +74992,7 @@ var iY = {
|
|
|
74991
74992
|
if (e?.loadStatus === "missing") return ae.warning("当前钻孔缺少模型文件,暂时无法定位"), !1;
|
|
74992
74993
|
if (e?.loadStatus === "loading") return ae.info("当前钻孔模型仍在加载,请稍后再试"), !1;
|
|
74993
74994
|
let t = e?.absolutePosition;
|
|
74994
|
-
return
|
|
74995
|
+
return !em(t?.x) || !em(t?.y) || !em(t?.z) ? (ui("钻孔定位失败:缺少有效坐标"), !1) : Ii(t, e?.name || "钻孔", { silent: !1 });
|
|
74995
74996
|
}
|
|
74996
74997
|
function jr(e) {
|
|
74997
74998
|
let t = typeof e == "string" ? e.trim() : "";
|
|
@@ -75061,7 +75062,7 @@ var iY = {
|
|
|
75061
75062
|
if (ye.value) return !1;
|
|
75062
75063
|
if (!rr.value) return ui("钻孔救援演示启动失败:请先显示救援孔模型"), !1;
|
|
75063
75064
|
let n = jr("juejin-model"), r = mt["juejin-model"] ?? null;
|
|
75064
|
-
if (!n || !r ||
|
|
75065
|
+
if (!n || !r || !em(n?.absolutePosition?.x) || !em(n?.absolutePosition?.y) || !em(n?.absolutePosition?.z)) return ui("钻孔救援演示启动失败:当前未找到掘进模型"), !1;
|
|
75065
75066
|
Mr(), ye.value = !0, be.value = !1, xe.value = !0, q.value = !1;
|
|
75066
75067
|
let i = () => {
|
|
75067
75068
|
let e = typeof performance < "u" ? performance.now() : Date.now(), n = ar(), a = cr(we.value, re), o = cr(Ee.value, n6), s = cr(De.value, r6);
|
|
@@ -75236,27 +75237,27 @@ var iY = {
|
|
|
75236
75237
|
useInitialRange: !1
|
|
75237
75238
|
});
|
|
75238
75239
|
} catch (e) {
|
|
75239
|
-
St = !1, di(`三维加载完成后监测点初始化失败:${
|
|
75240
|
+
St = !1, di(`三维加载完成后监测点初始化失败:${Gp(e)}`);
|
|
75240
75241
|
}
|
|
75241
75242
|
}
|
|
75242
75243
|
}
|
|
75243
75244
|
let { initState: ci, debugActionLog: li, setDebugLog: ui, appendDebugLog: di, initializeScene: fi, applySceneRuntimeResize: pi, destroySceneRuntime: mi } = iq({
|
|
75244
75245
|
viewerHost: fe,
|
|
75245
75246
|
containerId: de,
|
|
75246
|
-
resolveErrorMessage:
|
|
75247
|
+
resolveErrorMessage: Gp,
|
|
75247
75248
|
onSceneCreated: () => {
|
|
75248
|
-
|
|
75249
|
+
um(), Hm(), Vu(!1), St = !1;
|
|
75249
75250
|
},
|
|
75250
75251
|
onSceneReady: async () => {
|
|
75251
|
-
if ($r(),
|
|
75252
|
+
if ($r(), lh(), Rp.value) {
|
|
75252
75253
|
let e = Sj(), t = e?.moduleLoaders?.waterSimulation;
|
|
75253
75254
|
if (typeof t == "function") try {
|
|
75254
75255
|
await t.call(e.moduleLoaders);
|
|
75255
75256
|
} catch (e) {
|
|
75256
|
-
di(`水漫延模块预加载失败:${
|
|
75257
|
+
di(`水漫延模块预加载失败:${Gp(e)}`);
|
|
75257
75258
|
}
|
|
75258
75259
|
}
|
|
75259
|
-
let e =
|
|
75260
|
+
let e = dm(), t = Object.fromEntries([
|
|
75260
75261
|
"ambLight",
|
|
75261
75262
|
"directLight1",
|
|
75262
75263
|
"directLight2",
|
|
@@ -75270,22 +75271,22 @@ var iY = {
|
|
|
75270
75271
|
}));
|
|
75271
75272
|
console.log("[lr3d] 当前灯光强度", t);
|
|
75272
75273
|
let n = null;
|
|
75273
|
-
if (
|
|
75274
|
-
n = await
|
|
75274
|
+
if (jp.value) try {
|
|
75275
|
+
n = await ih({ trigger: "auto" });
|
|
75275
75276
|
} catch (e) {
|
|
75276
|
-
ui(`场景初始化成功,自动加载失败:${
|
|
75277
|
+
ui(`场景初始化成功,自动加载失败:${Gp(e)}`);
|
|
75277
75278
|
}
|
|
75278
75279
|
else ui("场景初始化成功,未开启自动云数据加载");
|
|
75279
75280
|
try {
|
|
75280
|
-
let e = await
|
|
75281
|
+
let e = await om();
|
|
75281
75282
|
e > 0 && di(`自定义模型加载完成:${e} 个`);
|
|
75282
75283
|
} catch (e) {
|
|
75283
|
-
di(`自定义模型加载失败:${
|
|
75284
|
+
di(`自定义模型加载失败:${Gp(e)}`);
|
|
75284
75285
|
}
|
|
75285
75286
|
await oi(n), Mi(), await si();
|
|
75286
75287
|
},
|
|
75287
75288
|
onSceneError: () => {
|
|
75288
|
-
Vu(!1), Ss([]), Cs([]), Ds(),
|
|
75289
|
+
Vu(!1), Ss([]), Cs([]), Ds(), am();
|
|
75289
75290
|
}
|
|
75290
75291
|
}), { activeViewPointKey: hi, overviewViewPoint: gi, panelViewPoints: _i, activeViewPointName: vi, stopViewRestoreAnimation: yi, applyViewRestoreFrame: bi, animateRestoreView: xi, resolveLr3dCamera: Si, resolveLr3dControls: Ci, getThreeGlobal: wi, isVectorLike: Ti, toAbsolutePosition: Ei, toRelativePosition: Di, resolvePositionWithLaneTopoZ: Oi, getViewPointList: ki, getCurrentViewInfo: Ai, applyViewInfo: ji, applyDefaultInitialViewPoint: Mi, switchToViewPoint: Ni, switchToOverviewViewPoint: Pi, applyTrackPlaybackOverviewViewPoint: Fi, focusAbsolutePoint: Ii, moveView: Li } = Jq({
|
|
75291
75292
|
viewPointOptions: ce,
|
|
@@ -75295,8 +75296,8 @@ var iY = {
|
|
|
75295
75296
|
monitorPointFocusDistance: d4,
|
|
75296
75297
|
viewRestoreTransitionDurationMs: m4,
|
|
75297
75298
|
viewRestoreMinDistance: h4,
|
|
75298
|
-
normalizeToken:
|
|
75299
|
-
resolveErrorMessage:
|
|
75299
|
+
normalizeToken: lm,
|
|
75300
|
+
resolveErrorMessage: Gp,
|
|
75300
75301
|
setDebugLog: ui,
|
|
75301
75302
|
appendDebugLog: di,
|
|
75302
75303
|
workfacePanelStatus: X
|
|
@@ -75380,9 +75381,9 @@ var iY = {
|
|
|
75380
75381
|
function Ki(e) {
|
|
75381
75382
|
if (!Array.isArray(e?.activeLegendTypes)) return;
|
|
75382
75383
|
let t = new Set(e.activeLegendTypes);
|
|
75383
|
-
|
|
75384
|
+
Sf().forEach((e) => {
|
|
75384
75385
|
let n = t.has(e.type) || t.has(e.label);
|
|
75385
|
-
|
|
75386
|
+
wf(e.type, n);
|
|
75386
75387
|
});
|
|
75387
75388
|
}
|
|
75388
75389
|
async function qi(e, t) {
|
|
@@ -75390,7 +75391,7 @@ var iY = {
|
|
|
75390
75391
|
let n = typeof e?.sceneAction == "string" ? e.sceneAction.trim() : "";
|
|
75391
75392
|
if (!n) return !0;
|
|
75392
75393
|
if (n === f.TRIGGER_ACCIDENT_VIEW) {
|
|
75393
|
-
if (
|
|
75394
|
+
if (!eh()) throw Error(`场景 ${e.id} 事故点按钮触发失败`);
|
|
75394
75395
|
return Ie === t;
|
|
75395
75396
|
}
|
|
75396
75397
|
throw Error(`场景 ${e.id} 配置了不支持的场景动作:${n}`);
|
|
@@ -75422,7 +75423,7 @@ var iY = {
|
|
|
75422
75423
|
}
|
|
75423
75424
|
})), t.id === b4 && Hr(!1), !0);
|
|
75424
75425
|
} catch (e) {
|
|
75425
|
-
return Ie === n ? (Fe.value = `场景进入失败:${
|
|
75426
|
+
return Ie === n ? (Fe.value = `场景进入失败:${Gp(e)}`, X.value = Fe.value, ui(Fe.value), !1) : !1;
|
|
75426
75427
|
}
|
|
75427
75428
|
}
|
|
75428
75429
|
function Yi(e) {
|
|
@@ -75430,7 +75431,7 @@ var iY = {
|
|
|
75430
75431
|
return t ? (Me.value = t.id, Fe.value = `已选择场景:${t.id}`, !0) : !1;
|
|
75431
75432
|
}
|
|
75432
75433
|
function Xi() {
|
|
75433
|
-
return
|
|
75434
|
+
return Pp.value ? (je.value = !je.value, je.value && (qe.value = !1, Je.value = !1), X.value = je.value ? "场景调试面板已显示" : "场景调试面板已隐藏", ui(X.value), !0) : !1;
|
|
75434
75435
|
}
|
|
75435
75436
|
function Zi(e) {
|
|
75436
75437
|
Ji(e);
|
|
@@ -75460,8 +75461,8 @@ var iY = {
|
|
|
75460
75461
|
stopViewRestoreAnimation: yi,
|
|
75461
75462
|
applyViewRestoreFrame: bi,
|
|
75462
75463
|
applyTrackPlaybackOverviewViewPoint: Fi,
|
|
75463
|
-
normalizeToken:
|
|
75464
|
-
resolveErrorMessage:
|
|
75464
|
+
normalizeToken: lm,
|
|
75465
|
+
resolveErrorMessage: Gp,
|
|
75465
75466
|
setDebugLog: ui,
|
|
75466
75467
|
appendDebugLog: di,
|
|
75467
75468
|
appendHiddenVehicleLog: Wt
|
|
@@ -75474,12 +75475,12 @@ var iY = {
|
|
|
75474
75475
|
toRelativePosition: Di,
|
|
75475
75476
|
resolveLr3dCamera: Si,
|
|
75476
75477
|
getThreeGlobal: wi,
|
|
75477
|
-
resolveModelInfoPayload:
|
|
75478
|
+
resolveModelInfoPayload: xm,
|
|
75478
75479
|
syncHighlightedLaneNameMarkers: () => lt?.(),
|
|
75479
75480
|
warningPositionImageUrl: VJ,
|
|
75480
75481
|
setDebugLog: ui,
|
|
75481
75482
|
appendDebugLog: di,
|
|
75482
|
-
resolveErrorMessage:
|
|
75483
|
+
resolveErrorMessage: Gp,
|
|
75483
75484
|
defaultRadius: D4,
|
|
75484
75485
|
minRadius: O4,
|
|
75485
75486
|
maxRadius: k4,
|
|
@@ -75504,16 +75505,16 @@ var iY = {
|
|
|
75504
75505
|
isVectorLike: Ti,
|
|
75505
75506
|
toRelativePosition: Di,
|
|
75506
75507
|
getThreeGlobal: wi,
|
|
75507
|
-
normalizeToken:
|
|
75508
|
-
resolveNonEmptyValue:
|
|
75509
|
-
resolveRangeSelectionScene:
|
|
75510
|
-
disposeThreeObject:
|
|
75508
|
+
normalizeToken: lm,
|
|
75509
|
+
resolveNonEmptyValue: ym,
|
|
75510
|
+
resolveRangeSelectionScene: dm,
|
|
75511
|
+
disposeThreeObject: fm,
|
|
75511
75512
|
rangeSelectionPickObject: Co,
|
|
75512
75513
|
accidentRangeSelectionPickObject: Ao,
|
|
75513
75514
|
rangeSelectionLaneInfo: xo,
|
|
75514
75515
|
accidentRangeSelectionLaneInfo: Oo,
|
|
75515
75516
|
setDebugLog: ui,
|
|
75516
|
-
resolveErrorMessage:
|
|
75517
|
+
resolveErrorMessage: Gp,
|
|
75517
75518
|
workfacePanelStatus: X,
|
|
75518
75519
|
regionTypeOrder: st,
|
|
75519
75520
|
regionTypeLabelMap: ct,
|
|
@@ -75544,7 +75545,7 @@ var iY = {
|
|
|
75544
75545
|
let { isWaterSimulationPanelVisible: Ls, isWaterSimulationStarted: Rs, isWaterSimulationPaused: zs, waterSimulationFlowRate: Bs, waterSimulationDrainageRate: Vs, waterSimulationPlaybackMultiplier: Hs, waterSimulationDurationText: Us, waterSimulationDisplayDurationText: Ws, waterSimulationAnalysisButtonText: Gs, waterSimulationControlButtonText: Ks, isWaterSimulationControlButtonDisabled: qs, waterSimulationPredictionRenderItems: Js, waterSimulationAnalysisSelectedPresetMinutes: Ys, waterSimulationAnalysisHour: Xs, waterSimulationAnalysisMinute: Zs, waterSimulationAnalysisLocationCount: Qs, isWaterSimulationAnalysisLocationPicking: $s, isWaterSimulationTunnelInfoPicking: ec, isWaterSimulationAnalysisLoading: tc, waterSimulationAnalysisResult: nc, isWaterSimulationAnalysisPanelVisible: rc, isWaterSimulationAnalysisPanelCollapsed: ic, waterSimulationAnalysisSummaryParagraphs: ac, waterSimulationAnalysisSummaryLines: oc, waterSimulationAnalysisSummaryItems: sc, clearWaterSimulationAnalysisLocationPick: cc, clearWaterSimulationAnalysisLocations: lc, clearWaterSimulationAnalysisLoading: uc, removeWaterSimulationAnalysisLocationMarker: dc, resetWaterSimulationRuntimeState: fc, toggleWaterSimulationAnalysisRenderItem: pc, removeWaterSimulationAnalysisRenderItem: mc, updateWaterSimulationPredictionRenderStyles: hc, toggleWaterSimulationPanel: gc, showWaterSimulationPanel: _c, hideWaterSimulationPanel: vc, handleWaterSimulationParameterInput: yc, handleWaterSimulationParameterChange: bc, handleWaterSimulationAnalysisTimeInput: xc, setWaterSimulationAnalysisPreset: Sc, handleWaterSimulationAnalysisHourInput: Cc, startWaterSimulationAnalysisLocationPick: wc, startWaterSimulationTunnelInfoPick: Tc, focusWaterSimulationKeyLocation: Ec, focusWaterSimulationAnalysisSummaryItem: Dc, handleWaterSimulationAnalysisSubmit: Oc, setWaterSimulationParameters: kc, runWaterSimulationTimeAnalysis: Ac, startWaterSimulationAnalysis: jc, toggleWaterSimulationLocationAnalysisPick: Mc, toggleWaterSimulationAnalysisPanelCollapsed: Nc, handleWaterSimulationPrimaryAction: Pc, handleWaterSimulationCancel: Fc, startWaterSimulationSelect: Ic, endWaterSimulationSelect: Lc, startWaterSimulation: Rc, clearWaterSimulation: zc } = Xq({
|
|
75545
75546
|
initState: ci,
|
|
75546
75547
|
workfacePanelStatus: X,
|
|
75547
|
-
isWaterToolEnabled: () =>
|
|
75548
|
+
isWaterToolEnabled: () => Rp.value,
|
|
75548
75549
|
rangeSelectionState: go,
|
|
75549
75550
|
activeRangeSelectionType: vo,
|
|
75550
75551
|
rangeSelectionPickMode: _o,
|
|
@@ -75568,16 +75569,16 @@ var iY = {
|
|
|
75568
75569
|
getThreeGlobal: wi,
|
|
75569
75570
|
animateRestoreView: xi,
|
|
75570
75571
|
focusAbsolutePoint: Ii,
|
|
75571
|
-
focusWaterSimulationAccidentPointView:
|
|
75572
|
+
focusWaterSimulationAccidentPointView: Zm,
|
|
75572
75573
|
updateAccidentRangeSelectionMarkerSize: fs,
|
|
75573
|
-
addLr3dTextMarker:
|
|
75574
|
-
clearLr3dTextMarkers:
|
|
75574
|
+
addLr3dTextMarker: Hp,
|
|
75575
|
+
clearLr3dTextMarkers: Up,
|
|
75575
75576
|
laneItems: r(() => hs.value),
|
|
75576
|
-
disposeThreeObject:
|
|
75577
|
-
resolveOverlayScreenStyle:
|
|
75577
|
+
disposeThreeObject: fm,
|
|
75578
|
+
resolveOverlayScreenStyle: cm,
|
|
75578
75579
|
setDebugLog: ui,
|
|
75579
75580
|
appendDebugLog: di,
|
|
75580
|
-
resolveErrorMessage:
|
|
75581
|
+
resolveErrorMessage: Gp,
|
|
75581
75582
|
modulePath: $4,
|
|
75582
75583
|
defaultFlowRate: e3,
|
|
75583
75584
|
defaultDrainageRate: t3,
|
|
@@ -75686,27 +75687,27 @@ var iY = {
|
|
|
75686
75687
|
let { isExitPathPanelVisible: rl, isExitPathComputing: il, isExitPathGenerated: al, isExitPathObstaclePicking: ol, exitPathObstaclePickPromptText: sl, showExitPathPanel: cl, hideExitPathPanel: ll, toggleExitPathPanel: ul, startExitPathRoutePick: dl, startExitPathObstaclePick: fl, cancelExitPathObstaclePick: pl, computeExitPath: ml, computeExitPathByCoordinates: hl, showAllExitPathRoutes: gl, pauseExitPath: _l, resumeExitPath: vl, clearExitPath: yl, handleExitPathGenerateByAccident: bl, getExitPathPickInterferenceObjects: xl, isExitPathPickInterferenceObject: Sl, cleanupExitPathRuntime: Cl } = Eq({
|
|
75687
75688
|
workfacePanelStatus: X,
|
|
75688
75689
|
mineId: r(() => U.mineId),
|
|
75689
|
-
isExitPathToolEnabled: () =>
|
|
75690
|
+
isExitPathToolEnabled: () => zp.value,
|
|
75690
75691
|
accidentRangeSelectionCenterRelative: Do,
|
|
75691
75692
|
isVectorLike: Ti,
|
|
75692
75693
|
toAbsolutePosition: Ei,
|
|
75693
75694
|
toRelativePosition: Di,
|
|
75694
75695
|
applyViewInfo: ji,
|
|
75695
75696
|
getThreeGlobal: wi,
|
|
75696
|
-
addLr3dTextMarker:
|
|
75697
|
-
clearLr3dTextMarkers:
|
|
75698
|
-
resolveRangeSelectionScene:
|
|
75697
|
+
addLr3dTextMarker: Hp,
|
|
75698
|
+
clearLr3dTextMarkers: Up,
|
|
75699
|
+
resolveRangeSelectionScene: dm,
|
|
75699
75700
|
laneItems: r(() => hs.value),
|
|
75700
75701
|
viewerHost: fe,
|
|
75701
|
-
disposeThreeObject:
|
|
75702
|
-
parseCoordinateText:
|
|
75703
|
-
resolveSceneIntersection:
|
|
75704
|
-
resolveScenePickObjectByPosition:
|
|
75705
|
-
isLaneScenePickObject:
|
|
75706
|
-
formatRangeSelectionPosition:
|
|
75702
|
+
disposeThreeObject: fm,
|
|
75703
|
+
parseCoordinateText: vf,
|
|
75704
|
+
resolveSceneIntersection: _m,
|
|
75705
|
+
resolveScenePickObjectByPosition: vm,
|
|
75706
|
+
isLaneScenePickObject: gm,
|
|
75707
|
+
formatRangeSelectionPosition: qp,
|
|
75707
75708
|
setDebugLog: ui,
|
|
75708
75709
|
appendDebugLog: di,
|
|
75709
|
-
resolveErrorMessage:
|
|
75710
|
+
resolveErrorMessage: Gp,
|
|
75710
75711
|
modulePath: m3,
|
|
75711
75712
|
defaultTolerance: 16,
|
|
75712
75713
|
defaultAccidentPointAbsolutePosition: () => Jt(),
|
|
@@ -75722,7 +75723,7 @@ var iY = {
|
|
|
75722
75723
|
resolveRangeMonitorQueryParams: () => Zt(),
|
|
75723
75724
|
resolveInitialRangeMonitorQueryParams: () => Zt() ?? Qt(),
|
|
75724
75725
|
show3dMarkerPopup: r(() => U.show3dMarkerPopup),
|
|
75725
|
-
isMonitorToolEnabled: () =>
|
|
75726
|
+
isMonitorToolEnabled: () => Ip.value,
|
|
75726
75727
|
initState: ci,
|
|
75727
75728
|
viewerHost: fe,
|
|
75728
75729
|
workfacePanelStatus: X,
|
|
@@ -75748,17 +75749,17 @@ var iY = {
|
|
|
75748
75749
|
focusAbsolutePoint: Ii,
|
|
75749
75750
|
resolveLr3dCamera: Si,
|
|
75750
75751
|
getThreeGlobal: wi,
|
|
75751
|
-
normalizeToken:
|
|
75752
|
-
resolveErrorMessage:
|
|
75752
|
+
normalizeToken: lm,
|
|
75753
|
+
resolveErrorMessage: Gp,
|
|
75753
75754
|
setDebugLog: ui,
|
|
75754
75755
|
appendDebugLog: di,
|
|
75755
75756
|
appendHiddenVehicleLog: Wt,
|
|
75756
|
-
dispatchPointClick:
|
|
75757
|
-
dispatchVideoMonitorClick:
|
|
75758
|
-
resolveModelInfoPayload:
|
|
75759
|
-
resolvePlayingPersonTrackMonitorPointViewId: () =>
|
|
75760
|
-
resolvePlayingCarTrackMonitorPointViewId: () =>
|
|
75761
|
-
resolveSceneIntersection:
|
|
75757
|
+
dispatchPointClick: zm,
|
|
75758
|
+
dispatchVideoMonitorClick: Bm,
|
|
75759
|
+
resolveModelInfoPayload: xm,
|
|
75760
|
+
resolvePlayingPersonTrackMonitorPointViewId: () => Gf(),
|
|
75761
|
+
resolvePlayingCarTrackMonitorPointViewId: () => qf(),
|
|
75762
|
+
resolveSceneIntersection: _m,
|
|
75762
75763
|
closePersonTrackPanel: Ia,
|
|
75763
75764
|
closeCarTrackPanel: Ka,
|
|
75764
75765
|
correctPersonPositionItemsOnce: Ea,
|
|
@@ -75824,7 +75825,7 @@ var iY = {
|
|
|
75824
75825
|
Qu.value = null;
|
|
75825
75826
|
return;
|
|
75826
75827
|
}
|
|
75827
|
-
let e =
|
|
75828
|
+
let e = cm(Po.value, { enableScale: !1 });
|
|
75828
75829
|
Qu.value = e ? {
|
|
75829
75830
|
...e,
|
|
75830
75831
|
transform: String(e.transform || "").replace("translate(-50%, -100%)", "translate(-50%, -50%)")
|
|
@@ -75912,7 +75913,7 @@ var iY = {
|
|
|
75912
75913
|
}, n.add(o), ht[t.key] = o, o) : null;
|
|
75913
75914
|
}
|
|
75914
75915
|
function Ld() {
|
|
75915
|
-
bt &&= (bt.parent?.remove?.(bt), bt.material?.map?.dispose?.(),
|
|
75916
|
+
bt &&= (bt.parent?.remove?.(bt), bt.material?.map?.dispose?.(), fm(bt), null);
|
|
75916
75917
|
}
|
|
75917
75918
|
function Rd() {
|
|
75918
75919
|
return Ld(), !0;
|
|
@@ -75924,7 +75925,7 @@ var iY = {
|
|
|
75924
75925
|
}
|
|
75925
75926
|
let e = [];
|
|
75926
75927
|
cn().forEach((t) => {
|
|
75927
|
-
let n =
|
|
75928
|
+
let n = cm(t.position, { enableScale: !1 });
|
|
75928
75929
|
if (!n) return;
|
|
75929
75930
|
let r = t.direction === "down" ? {
|
|
75930
75931
|
...n,
|
|
@@ -75945,7 +75946,7 @@ var iY = {
|
|
|
75945
75946
|
}
|
|
75946
75947
|
let e = [];
|
|
75947
75948
|
ln().forEach((t) => {
|
|
75948
|
-
let n =
|
|
75949
|
+
let n = cm(t.position, { enableScale: !1 });
|
|
75949
75950
|
n && e.push({
|
|
75950
75951
|
key: t.key,
|
|
75951
75952
|
label: t.label,
|
|
@@ -76027,10 +76028,20 @@ var iY = {
|
|
|
76027
76028
|
function af() {
|
|
76028
76029
|
return $a();
|
|
76029
76030
|
}
|
|
76030
|
-
function of() {
|
|
76031
|
+
function of(e) {
|
|
76032
|
+
if (!e || typeof e != "object") return null;
|
|
76033
|
+
let t = String(e.carSceneId ?? e.sceneId ?? e.id ?? "").trim();
|
|
76034
|
+
if (t) {
|
|
76035
|
+
let e = da.value.find((e) => String(e.sceneId ?? e.key ?? "").trim() === t) ?? null;
|
|
76036
|
+
if (e) return e;
|
|
76037
|
+
}
|
|
76038
|
+
let n = String(e.personCard ?? e.person_card ?? "").trim();
|
|
76039
|
+
return n ? da.value.find((e) => String(e.personCard ?? e.person_card ?? "").trim() === n) ?? null : null;
|
|
76040
|
+
}
|
|
76041
|
+
function sf() {
|
|
76031
76042
|
return $d(), Cd();
|
|
76032
76043
|
}
|
|
76033
|
-
function
|
|
76044
|
+
function cf(e) {
|
|
76034
76045
|
return e.button === 2 ? (hd = {
|
|
76035
76046
|
active: !0,
|
|
76036
76047
|
pointerId: e.pointerId ?? null,
|
|
@@ -76039,15 +76050,15 @@ var iY = {
|
|
|
76039
76050
|
didDrag: !1
|
|
76040
76051
|
}, !0) : (e.button === 0 && $d(), !1);
|
|
76041
76052
|
}
|
|
76042
|
-
function
|
|
76053
|
+
function lf(e) {
|
|
76043
76054
|
if (!hd.active || hd.pointerId !== null && e.pointerId !== void 0 && hd.pointerId !== e.pointerId) return !1;
|
|
76044
76055
|
let t = (Number(e.clientX) || 0) - hd.startX, n = (Number(e.clientY) || 0) - hd.startY;
|
|
76045
76056
|
return Math.sqrt(t * t + n * n) >= W4 && (hd.didDrag = !0), hd.didDrag;
|
|
76046
76057
|
}
|
|
76047
|
-
function
|
|
76058
|
+
function uf() {
|
|
76048
76059
|
return ef(), !0;
|
|
76049
76060
|
}
|
|
76050
|
-
function
|
|
76061
|
+
function df(e) {
|
|
76051
76062
|
if (!fe.value) return !1;
|
|
76052
76063
|
e.preventDefault?.();
|
|
76053
76064
|
let t = !hd.didDrag && !yd.value;
|
|
@@ -76058,20 +76069,20 @@ var iY = {
|
|
|
76058
76069
|
y: Math.max(8, Math.min(n.height - 8, Number(e.clientY) - n.top))
|
|
76059
76070
|
}, fd.value = !0, !0;
|
|
76060
76071
|
}
|
|
76061
|
-
function
|
|
76072
|
+
function ff(e) {
|
|
76062
76073
|
return !fd.value || dd.value?.contains?.(e.target) ? !1 : ($d(), !0);
|
|
76063
76074
|
}
|
|
76064
|
-
function
|
|
76075
|
+
function pf() {
|
|
76065
76076
|
x(() => {
|
|
76066
76077
|
Qd();
|
|
76067
76078
|
});
|
|
76068
76079
|
}
|
|
76069
|
-
function
|
|
76080
|
+
function mf() {
|
|
76070
76081
|
gd?.disconnect?.(), gd = null, !(typeof ResizeObserver > "u" || !qu.value) && (gd = new ResizeObserver(() => {
|
|
76071
76082
|
Qd();
|
|
76072
76083
|
}), gd.observe(qu.value));
|
|
76073
76084
|
}
|
|
76074
|
-
function
|
|
76085
|
+
function hf() {
|
|
76075
76086
|
return Yu.value ? (Ju.value = !Ju.value, !0) : !1;
|
|
76076
76087
|
}
|
|
76077
76088
|
Object.freeze([
|
|
@@ -76081,7 +76092,7 @@ var iY = {
|
|
|
76081
76092
|
j6,
|
|
76082
76093
|
N6
|
|
76083
76094
|
]);
|
|
76084
|
-
function
|
|
76095
|
+
function gf(e = U.config) {
|
|
76085
76096
|
let t = Ht();
|
|
76086
76097
|
return zT({
|
|
76087
76098
|
...Ut(e ?? {}, t),
|
|
@@ -76089,7 +76100,7 @@ var iY = {
|
|
|
76089
76100
|
});
|
|
76090
76101
|
}
|
|
76091
76102
|
B(() => [U.config, U.resourcePrefix], ([e]) => {
|
|
76092
|
-
le.value =
|
|
76103
|
+
le.value = gf(e ?? {}), LT(le.value);
|
|
76093
76104
|
}, {
|
|
76094
76105
|
deep: !0,
|
|
76095
76106
|
immediate: !0
|
|
@@ -76098,12 +76109,12 @@ var iY = {
|
|
|
76098
76109
|
}, { immediate: !0 }), B(() => U.mineId, (e, t) => {
|
|
76099
76110
|
let n = e !== t;
|
|
76100
76111
|
n && Ds(), !(!n && (ca.value.length || da.value.length)) && (hi.value = "", ho({ clearItems: !0 }), Rn({ silent: !0 }).catch((e) => {
|
|
76101
|
-
di(`视角列表刷新失败:${
|
|
76112
|
+
di(`视角列表刷新失败:${Gp(e)}`);
|
|
76102
76113
|
}), ci.value === "ready" && (Fu(), Tl.value = "idle", El.value = "", Iu({
|
|
76103
76114
|
forceReload: !0,
|
|
76104
76115
|
useInitialRange: !1
|
|
76105
|
-
}), ui(`已切换 mineId=${String(e || "").trim()} 的接口数据`),
|
|
76106
|
-
di(`强排泵调试数据刷新失败:${
|
|
76116
|
+
}), ui(`已切换 mineId=${String(e || "").trim()} 的接口数据`), Pp.value && Je.value && Ln({ silent: !0 }).catch((e) => {
|
|
76117
|
+
di(`强排泵调试数据刷新失败:${Gp(e)}`);
|
|
76107
76118
|
})));
|
|
76108
76119
|
}, { immediate: !0 }), B(() => ue.value.customModelItems, async () => {
|
|
76109
76120
|
if (ci.value === "ready") {
|
|
@@ -76112,9 +76123,9 @@ var iY = {
|
|
|
76112
76123
|
return;
|
|
76113
76124
|
}
|
|
76114
76125
|
try {
|
|
76115
|
-
await
|
|
76126
|
+
await om();
|
|
76116
76127
|
} catch (e) {
|
|
76117
|
-
di(`自定义模型刷新失败:${
|
|
76128
|
+
di(`自定义模型刷新失败:${Gp(e)}`);
|
|
76118
76129
|
}
|
|
76119
76130
|
}
|
|
76120
76131
|
}, { deep: !0 }), B(rr, (e) => {
|
|
@@ -76124,7 +76135,7 @@ var iY = {
|
|
|
76124
76135
|
}), B(() => ue.value.rescueHoleParameterPanelPosition, () => {
|
|
76125
76136
|
ci.value === "ready" && Rd();
|
|
76126
76137
|
}, { deep: !0 }), B(() => qu.value, () => {
|
|
76127
|
-
|
|
76138
|
+
mf(), pf();
|
|
76128
76139
|
}), B(() => yd.value, (e, t) => {
|
|
76129
76140
|
if (e) {
|
|
76130
76141
|
$d(), Sd();
|
|
@@ -76151,12 +76162,12 @@ var iY = {
|
|
|
76151
76162
|
jl.value,
|
|
76152
76163
|
Vl.value.length
|
|
76153
76164
|
], () => {
|
|
76154
|
-
Ju.value = !1,
|
|
76165
|
+
Ju.value = !1, pf();
|
|
76155
76166
|
});
|
|
76156
|
-
function
|
|
76167
|
+
function _f() {
|
|
76157
76168
|
Qd();
|
|
76158
76169
|
}
|
|
76159
|
-
function
|
|
76170
|
+
function vf(e) {
|
|
76160
76171
|
return Array.isArray(e) ? e.map((e) => {
|
|
76161
76172
|
let t = String(e ?? "").trim();
|
|
76162
76173
|
return t ? Number(t) : NaN;
|
|
@@ -76172,42 +76183,42 @@ var iY = {
|
|
|
76172
76183
|
return t ? Number(t) : NaN;
|
|
76173
76184
|
});
|
|
76174
76185
|
}
|
|
76175
|
-
function
|
|
76186
|
+
function yf(e) {
|
|
76176
76187
|
return typeof e?.type == "string" && e.type.trim() ? e.type.trim() : "监测点";
|
|
76177
76188
|
}
|
|
76178
|
-
function
|
|
76189
|
+
function bf(e) {
|
|
76179
76190
|
let t = typeof e == "string" ? e.trim() : "";
|
|
76180
76191
|
return t ? Ze.value[t] === !0 : !1;
|
|
76181
76192
|
}
|
|
76182
|
-
function
|
|
76193
|
+
function xf(e) {
|
|
76183
76194
|
let t = typeof e == "string" ? e.trim() : "";
|
|
76184
76195
|
t && (Ze.value = {
|
|
76185
76196
|
...Ze.value,
|
|
76186
|
-
[t]: !
|
|
76197
|
+
[t]: !bf(t)
|
|
76187
76198
|
});
|
|
76188
76199
|
}
|
|
76189
|
-
function
|
|
76200
|
+
function Sf() {
|
|
76190
76201
|
return lu.value.map((e) => ({
|
|
76191
76202
|
type: e.type,
|
|
76192
76203
|
label: e.label,
|
|
76193
76204
|
visible: e.visible === !0,
|
|
76194
|
-
nameVisible:
|
|
76205
|
+
nameVisible: bf(e.type)
|
|
76195
76206
|
}));
|
|
76196
76207
|
}
|
|
76197
|
-
function
|
|
76208
|
+
function Cf(e) {
|
|
76198
76209
|
return typeof e == "boolean" ? (cu.value === e || yu(), !0) : !1;
|
|
76199
76210
|
}
|
|
76200
|
-
function
|
|
76211
|
+
function wf(e, t) {
|
|
76201
76212
|
let n = typeof e == "string" ? e.trim() : "";
|
|
76202
76213
|
if (!n || typeof t != "boolean") return !1;
|
|
76203
76214
|
let r = lu.value.find((e) => e.type === n);
|
|
76204
76215
|
return r ? (r.visible === t || bu(n), !0) : !1;
|
|
76205
76216
|
}
|
|
76206
|
-
function
|
|
76217
|
+
function Tf(e, t) {
|
|
76207
76218
|
let n = typeof e == "string" ? e.trim() : "";
|
|
76208
|
-
return !n || typeof t != "boolean" || !lu.value.find((e) => e.type === n) ? !1 : (
|
|
76219
|
+
return !n || typeof t != "boolean" || !lu.value.find((e) => e.type === n) ? !1 : (bf(n) === t || xf(n), !0);
|
|
76209
76220
|
}
|
|
76210
|
-
function
|
|
76221
|
+
function Ef(e = {}) {
|
|
76211
76222
|
if (e.isAll === !0) return {
|
|
76212
76223
|
buttonType: "all",
|
|
76213
76224
|
type: "all",
|
|
@@ -76223,74 +76234,74 @@ var iY = {
|
|
|
76223
76234
|
label: n?.label ?? t,
|
|
76224
76235
|
isAll: !1,
|
|
76225
76236
|
visible: n?.visible === !0,
|
|
76226
|
-
nameVisible:
|
|
76237
|
+
nameVisible: bf(t)
|
|
76227
76238
|
};
|
|
76228
76239
|
}
|
|
76229
|
-
function
|
|
76240
|
+
function Df(e) {
|
|
76230
76241
|
let t = ze.value;
|
|
76231
76242
|
if (typeof t != "function" || !e) return !1;
|
|
76232
76243
|
try {
|
|
76233
76244
|
return t(e), !0;
|
|
76234
76245
|
} catch (e) {
|
|
76235
|
-
return di(`图例点击回调执行失败:${
|
|
76246
|
+
return di(`图例点击回调执行失败:${Gp(e)}`), !1;
|
|
76236
76247
|
}
|
|
76237
76248
|
}
|
|
76238
|
-
function
|
|
76249
|
+
function Of(e) {
|
|
76239
76250
|
if (e != null && typeof e != "function") throw Error("图例点击回调必须是函数");
|
|
76240
76251
|
return ze.value = typeof e == "function" ? e : null, ze.value !== null;
|
|
76241
76252
|
}
|
|
76242
|
-
function
|
|
76243
|
-
yu(), Ef(
|
|
76253
|
+
function kf() {
|
|
76254
|
+
yu(), Df(Ef({ isAll: !0 }));
|
|
76244
76255
|
}
|
|
76245
|
-
function
|
|
76256
|
+
function Af(e, t) {
|
|
76246
76257
|
let n = e?.target;
|
|
76247
76258
|
if (n instanceof Element && n.closest("[data-monitor-name-toggle=\"true\"]")) {
|
|
76248
|
-
|
|
76259
|
+
xf(t), Df(Ef({
|
|
76249
76260
|
buttonType: "name-toggle",
|
|
76250
76261
|
type: t
|
|
76251
76262
|
}));
|
|
76252
76263
|
return;
|
|
76253
76264
|
}
|
|
76254
|
-
bu(t), Ef(
|
|
76265
|
+
bu(t), Df(Ef({
|
|
76255
76266
|
buttonType: "item",
|
|
76256
76267
|
type: t
|
|
76257
76268
|
}));
|
|
76258
76269
|
}
|
|
76259
|
-
function Af(e) {
|
|
76260
|
-
return e?.name ? e.isActive || e.isFocusedHighlight || e.isPersistentFocus || Gf(e) || qf(e) ? !0 : yf(typeof e?.legendType == "string" && e.legendType.trim() ? e.legendType.trim() : vf(e)) : !1;
|
|
76261
|
-
}
|
|
76262
76270
|
function Mf(e) {
|
|
76263
|
-
return
|
|
76271
|
+
return e?.name ? e.isActive || e.isFocusedHighlight || e.isPersistentFocus || Kf(e) || Jf(e) ? !0 : bf(typeof e?.legendType == "string" && e.legendType.trim() ? e.legendType.trim() : yf(e)) : !1;
|
|
76264
76272
|
}
|
|
76265
76273
|
function Nf(e) {
|
|
76274
|
+
return [["设备编号", zf(e?.sb_code)]];
|
|
76275
|
+
}
|
|
76276
|
+
function Pf(e) {
|
|
76266
76277
|
if (Ti(e?.position)) return {
|
|
76267
76278
|
x: Number(e.position.x),
|
|
76268
76279
|
y: Number(e.position.y),
|
|
76269
76280
|
z: Number(e.position.z)
|
|
76270
76281
|
};
|
|
76271
76282
|
let t = e?.x ?? e?.X, n = e?.y ?? e?.Y, r = e?.z ?? e?.Z ?? e?.altitude;
|
|
76272
|
-
if (!
|
|
76283
|
+
if (!Rf(t) && !Rf(n) && Number.isFinite(Number(t)) && Number.isFinite(Number(n))) return {
|
|
76273
76284
|
x: Number(t),
|
|
76274
76285
|
y: Number(n),
|
|
76275
76286
|
z: Number.isFinite(Number(r)) ? Number(r) : 0
|
|
76276
76287
|
};
|
|
76277
|
-
let [i, a, o] =
|
|
76288
|
+
let [i, a, o] = vf(e?.coordinates);
|
|
76278
76289
|
return !Number.isFinite(i) || !Number.isFinite(a) ? null : {
|
|
76279
76290
|
x: i,
|
|
76280
76291
|
y: a,
|
|
76281
76292
|
z: Number.isFinite(o) ? o : 0
|
|
76282
76293
|
};
|
|
76283
76294
|
}
|
|
76284
|
-
function
|
|
76285
|
-
let t =
|
|
76295
|
+
function Ff(e) {
|
|
76296
|
+
let t = Pf(e);
|
|
76286
76297
|
if (!Ti(t)) return !1;
|
|
76287
76298
|
let n = Number(t.x), r = Number(t.y), i = Number(t.z);
|
|
76288
76299
|
return Number.isFinite(n) && Number.isFinite(r) && Number.isFinite(i) && n !== 0 && r !== 0 && i !== 0;
|
|
76289
76300
|
}
|
|
76290
|
-
function
|
|
76301
|
+
function If(e) {
|
|
76291
76302
|
let t = Su(e);
|
|
76292
76303
|
if (go.value === "picking") return t;
|
|
76293
|
-
if (
|
|
76304
|
+
if (Uf(e)) {
|
|
76294
76305
|
$a();
|
|
76295
76306
|
let n = Ha(e, {
|
|
76296
76307
|
lockViewCenter: !0,
|
|
@@ -76298,41 +76309,43 @@ var iY = {
|
|
|
76298
76309
|
});
|
|
76299
76310
|
return t || n;
|
|
76300
76311
|
}
|
|
76301
|
-
if (
|
|
76312
|
+
if (rp(e)) {
|
|
76313
|
+
let n = of(e);
|
|
76314
|
+
if (!n) return t;
|
|
76302
76315
|
Ua();
|
|
76303
|
-
let
|
|
76316
|
+
let r = Qa(n, {
|
|
76304
76317
|
lockViewCenter: !0,
|
|
76305
76318
|
lockedCameraDistanceScale: .2
|
|
76306
76319
|
});
|
|
76307
|
-
return t ||
|
|
76320
|
+
return t || r;
|
|
76308
76321
|
}
|
|
76309
76322
|
return t;
|
|
76310
76323
|
}
|
|
76311
|
-
function If(e) {
|
|
76312
|
-
return e == null ? "" : typeof e == "object" ? JSON.stringify(e) : String(e);
|
|
76313
|
-
}
|
|
76314
76324
|
function Lf(e) {
|
|
76315
|
-
return e == null
|
|
76325
|
+
return e == null ? "" : typeof e == "object" ? JSON.stringify(e) : String(e);
|
|
76316
76326
|
}
|
|
76317
76327
|
function Rf(e) {
|
|
76318
|
-
return
|
|
76328
|
+
return e == null || String(e).trim() === "";
|
|
76319
76329
|
}
|
|
76320
76330
|
function zf(e) {
|
|
76321
|
-
return
|
|
76331
|
+
return Rf(e) ? "--" : String(e).trim();
|
|
76322
76332
|
}
|
|
76323
76333
|
function Bf(e) {
|
|
76324
|
-
return
|
|
76334
|
+
return yf(e) === T6;
|
|
76325
76335
|
}
|
|
76326
76336
|
function Vf(e) {
|
|
76327
|
-
return
|
|
76337
|
+
return yf(e) === E6;
|
|
76328
76338
|
}
|
|
76329
76339
|
function Hf(e) {
|
|
76330
|
-
return
|
|
76340
|
+
return yf(e) === D6;
|
|
76331
76341
|
}
|
|
76332
76342
|
function Uf(e) {
|
|
76333
|
-
return
|
|
76343
|
+
return yf(e) === O6;
|
|
76334
76344
|
}
|
|
76335
|
-
function Wf() {
|
|
76345
|
+
function Wf(e) {
|
|
76346
|
+
return yf(e) === k6;
|
|
76347
|
+
}
|
|
76348
|
+
function Gf() {
|
|
76336
76349
|
let e = ua.value;
|
|
76337
76350
|
return !e.visible || !e.sceneId || ![
|
|
76338
76351
|
"playing",
|
|
@@ -76340,10 +76353,10 @@ var iY = {
|
|
|
76340
76353
|
"completed"
|
|
76341
76354
|
].includes(e.playState) ? "" : `${O6}-${String(e.sceneId)}`;
|
|
76342
76355
|
}
|
|
76343
|
-
function
|
|
76344
|
-
return
|
|
76356
|
+
function Kf(e) {
|
|
76357
|
+
return yf(e) === O6 && String(e?.viewId ?? "") === Gf();
|
|
76345
76358
|
}
|
|
76346
|
-
function
|
|
76359
|
+
function qf() {
|
|
76347
76360
|
let e = pa.value;
|
|
76348
76361
|
return !e.visible || !e.sceneId || ![
|
|
76349
76362
|
"playing",
|
|
@@ -76351,28 +76364,28 @@ var iY = {
|
|
|
76351
76364
|
"completed"
|
|
76352
76365
|
].includes(e.playState) ? "" : `${j6}-${String(e.sceneId)}`;
|
|
76353
76366
|
}
|
|
76354
|
-
function
|
|
76355
|
-
return
|
|
76367
|
+
function Jf(e) {
|
|
76368
|
+
return yf(e) === j6 && String(e?.viewId ?? "") === qf();
|
|
76356
76369
|
}
|
|
76357
|
-
let
|
|
76370
|
+
let Yf = r(() => {
|
|
76358
76371
|
let e = ua.value;
|
|
76359
76372
|
return e.visible && !!e.sceneId && ["playing", "paused"].includes(e.playState);
|
|
76360
|
-
}),
|
|
76373
|
+
}), Xf = r(() => {
|
|
76361
76374
|
let e = pa.value;
|
|
76362
76375
|
return e.visible && !!e.sceneId && ["playing", "paused"].includes(e.playState);
|
|
76363
|
-
}),
|
|
76364
|
-
if (
|
|
76376
|
+
}), Zf = r(() => {
|
|
76377
|
+
if (Yf.value) {
|
|
76365
76378
|
let e = `${O6}-${String(ua.value.sceneId)}`;
|
|
76366
76379
|
return uu.value.filter((t) => String(t?.viewId ?? "") === e);
|
|
76367
76380
|
}
|
|
76368
|
-
if (
|
|
76381
|
+
if (Xf.value) {
|
|
76369
76382
|
let e = `${j6}-${String(pa.value.sceneId)}`;
|
|
76370
76383
|
return uu.value.filter((t) => String(t?.viewId ?? "") === e);
|
|
76371
76384
|
}
|
|
76372
76385
|
return uu.value;
|
|
76373
76386
|
});
|
|
76374
|
-
function
|
|
76375
|
-
let t =
|
|
76387
|
+
function Qf(e) {
|
|
76388
|
+
let t = yf(e);
|
|
76376
76389
|
return [
|
|
76377
76390
|
T6,
|
|
76378
76391
|
E6,
|
|
@@ -76385,79 +76398,79 @@ var iY = {
|
|
|
76385
76398
|
M6
|
|
76386
76399
|
].includes(t);
|
|
76387
76400
|
}
|
|
76388
|
-
function Qf(e) {
|
|
76389
|
-
let t = vf(e), n = e?.rawData && typeof e.rawData == "object" ? e.rawData : e;
|
|
76390
|
-
return t === T6 ? Lf(n?.mine_id) || Lf(n?.sensor_id) ? "缺少 mine_id 或 sensor_id" : "" : t === D6 || t === E6 ? Lf(n?.id) ? "缺少 id" : "" : t === A6 ? Lf(n?.mine_id) || Lf(n?.sensor_id) ? "缺少 mine_id 或 sensor_id" : "" : t === O6 || t === k6 ? Lf(n?.id) ? "缺少 id" : "" : t === j6 ? Lf(n?.mine_id) || Lf(n?.person_card) ? "缺少 mine_id 或 person_card" : "" : t === N6 ? Lf(n?.mine_id) || Lf(n?.sb_code) ? "缺少 mine_id 或 sb_code" : "" : t === M6 ? Lf(n?.mine_id) || Lf(n?.v_code) ? "缺少 mine_id 或 v_code" : "" : "当前业务类型不支持布点";
|
|
76391
|
-
}
|
|
76392
76401
|
function $f(e) {
|
|
76393
|
-
|
|
76402
|
+
let t = yf(e), n = e?.rawData && typeof e.rawData == "object" ? e.rawData : e;
|
|
76403
|
+
return t === T6 ? Rf(n?.mine_id) || Rf(n?.sensor_id) ? "缺少 mine_id 或 sensor_id" : "" : t === D6 || t === E6 ? Rf(n?.id) ? "缺少 id" : "" : t === A6 ? Rf(n?.mine_id) || Rf(n?.sensor_id) ? "缺少 mine_id 或 sensor_id" : "" : t === O6 || t === k6 ? Rf(n?.id) ? "缺少 id" : "" : t === j6 ? Rf(n?.mine_id) || Rf(n?.person_card) ? "缺少 mine_id 或 person_card" : "" : t === N6 ? Rf(n?.mine_id) || Rf(n?.sb_code) ? "缺少 mine_id 或 sb_code" : "" : t === M6 ? Rf(n?.mine_id) || Rf(n?.v_code) ? "缺少 mine_id 或 v_code" : "" : "当前业务类型不支持布点";
|
|
76394
76404
|
}
|
|
76395
76405
|
function ep(e) {
|
|
76396
|
-
return
|
|
76406
|
+
return Qf(e) && !$f(e);
|
|
76397
76407
|
}
|
|
76398
76408
|
function tp(e) {
|
|
76399
|
-
return
|
|
76409
|
+
return Bf(e) || Vf(e) || Hf(e) || np(e) || Uf(e) || Wf(e) || rp(e) || ap(e) || ip(e);
|
|
76400
76410
|
}
|
|
76401
76411
|
function np(e) {
|
|
76402
|
-
return
|
|
76412
|
+
return yf(e) === A6;
|
|
76403
76413
|
}
|
|
76404
76414
|
function rp(e) {
|
|
76405
|
-
return
|
|
76415
|
+
return yf(e) === j6;
|
|
76406
76416
|
}
|
|
76407
76417
|
function ip(e) {
|
|
76408
|
-
return
|
|
76418
|
+
return yf(e) === M6;
|
|
76409
76419
|
}
|
|
76410
76420
|
function ap(e) {
|
|
76421
|
+
return yf(e) === N6;
|
|
76422
|
+
}
|
|
76423
|
+
function op(e) {
|
|
76411
76424
|
let t = e?.id;
|
|
76412
76425
|
return t == null ? "" : String(t).trim();
|
|
76413
76426
|
}
|
|
76414
|
-
function
|
|
76415
|
-
if (
|
|
76416
|
-
if (
|
|
76417
|
-
if (
|
|
76418
|
-
if (
|
|
76419
|
-
if (
|
|
76420
|
-
let t =
|
|
76427
|
+
function sp(e) {
|
|
76428
|
+
if (Bf(e) && !Rf(e?.v_value_at_dict_sensor_type)) return String(e.v_value_at_dict_sensor_type).trim();
|
|
76429
|
+
if (Vf(e) && !Rf(e?.zd1xmc)) return String(e.zd1xmc).trim();
|
|
76430
|
+
if (Vf(e) && !Rf(e?.zdlxmc)) return String(e.zdlxmc).trim();
|
|
76431
|
+
if (Hf(e) && !Rf(e?.v_value_at_dict_sensor_type)) return String(e.v_value_at_dict_sensor_type).trim();
|
|
76432
|
+
if (np(e)) {
|
|
76433
|
+
let t = Rf(e?.location) ? "" : String(e.location).trim(), n = Rf(e?.sensor_type_name) ? "" : String(e.sensor_type_name).trim();
|
|
76421
76434
|
if (t && n) return `${t} ${n}`;
|
|
76422
76435
|
if (t) return t;
|
|
76423
76436
|
if (n) return n;
|
|
76424
|
-
if (!
|
|
76437
|
+
if (!Rf(e?.v_value_at_dict_sensor_type ?? e?.dict_pressure_type ?? e?.sensor_type)) return String(e?.v_value_at_dict_sensor_type ?? e?.dict_pressure_type ?? e?.sensor_type).trim();
|
|
76425
76438
|
}
|
|
76426
|
-
return
|
|
76427
|
-
}
|
|
76428
|
-
function sp(e) {
|
|
76429
|
-
return Hf(e) ? "" : op(e);
|
|
76439
|
+
return rp(e) && !Rf(e?.device_type) ? String(e.device_type).trim() : ap(e) && !Rf(e?.v_server_name ?? e?.v_server_type) ? String(e.v_server_name ?? e.v_server_type).trim() : yf(e);
|
|
76430
76440
|
}
|
|
76431
76441
|
function cp(e) {
|
|
76432
|
-
|
|
76433
|
-
return t === "--" ? t : n ? `${t}${n}` : t;
|
|
76442
|
+
return Uf(e) ? "" : sp(e);
|
|
76434
76443
|
}
|
|
76435
76444
|
function lp(e) {
|
|
76436
|
-
|
|
76445
|
+
let t = zf(e?.val), n = Rf(e?.unit) ? "" : String(e.unit).trim();
|
|
76446
|
+
return t === "--" ? t : n ? `${t}${n}` : t;
|
|
76437
76447
|
}
|
|
76438
76448
|
function up(e) {
|
|
76439
|
-
|
|
76440
|
-
return t === "--" ? t : n ? `${t}${n}` : t;
|
|
76449
|
+
return [["测点值", lp(e)], ["数据更新时间", zf(e?.data_time)]];
|
|
76441
76450
|
}
|
|
76442
76451
|
function dp(e) {
|
|
76452
|
+
let t = zf(e?.val ?? e?.jcvl), n = Rf(e?.dw) ? "" : String(e.dw).trim();
|
|
76453
|
+
return t === "--" ? t : n ? `${t}${n}` : t;
|
|
76454
|
+
}
|
|
76455
|
+
function fp(e) {
|
|
76443
76456
|
return [
|
|
76444
|
-
["监测值",
|
|
76445
|
-
["数据时间",
|
|
76446
|
-
["状态",
|
|
76457
|
+
["监测值", dp(e)],
|
|
76458
|
+
["数据时间", zf(e?.data_time ?? e?.sj)],
|
|
76459
|
+
["状态", zf(e?.state)]
|
|
76447
76460
|
];
|
|
76448
76461
|
}
|
|
76449
|
-
function
|
|
76450
|
-
let t =
|
|
76462
|
+
function pp(e) {
|
|
76463
|
+
let t = zf(e?.val ?? e?.jcvl ?? e?.value), n = Rf(e?.unit ?? e?.dw) ? "" : String(e?.unit ?? e?.dw).trim();
|
|
76451
76464
|
return t === "--" ? t : n ? `${t}${n}` : t;
|
|
76452
76465
|
}
|
|
76453
|
-
function
|
|
76466
|
+
function mp(e) {
|
|
76454
76467
|
return [
|
|
76455
|
-
["监测值",
|
|
76456
|
-
["数据时间",
|
|
76457
|
-
["状态",
|
|
76468
|
+
["监测值", pp(e)],
|
|
76469
|
+
["数据时间", zf(e?.data_time ?? e?.sj ?? e?.time)],
|
|
76470
|
+
["状态", zf(e?.state ?? e?.status)]
|
|
76458
76471
|
];
|
|
76459
76472
|
}
|
|
76460
|
-
function
|
|
76473
|
+
function hp(e) {
|
|
76461
76474
|
return [
|
|
76462
76475
|
["位置", "location"],
|
|
76463
76476
|
["数据时间", "data_time"],
|
|
@@ -76470,131 +76483,131 @@ var iY = {
|
|
|
76470
76483
|
["乙烯", "c2h4_val"],
|
|
76471
76484
|
["乙烷", "c2h6_val"],
|
|
76472
76485
|
["丙烷", "c3h8_val"]
|
|
76473
|
-
].map(([t, n]) => [t,
|
|
76474
|
-
}
|
|
76475
|
-
function hp(e) {
|
|
76476
|
-
return mp(e).slice(1, 2);
|
|
76486
|
+
].map(([t, n]) => [t, zf(e?.[n])]);
|
|
76477
76487
|
}
|
|
76478
76488
|
function gp(e) {
|
|
76479
|
-
return
|
|
76489
|
+
return hp(e).slice(1, 2);
|
|
76480
76490
|
}
|
|
76481
76491
|
function _p(e) {
|
|
76492
|
+
return hp(e).slice(2);
|
|
76493
|
+
}
|
|
76494
|
+
function vp(e) {
|
|
76482
76495
|
return [
|
|
76483
|
-
["姓名",
|
|
76484
|
-
["部门",
|
|
76485
|
-
["职务",
|
|
76486
|
-
["分站名称",
|
|
76487
|
-
["入井时间",
|
|
76488
|
-
["是否领导",
|
|
76496
|
+
["姓名", zf(e?.person_name ?? e?.name)],
|
|
76497
|
+
["部门", zf(e?.dept)],
|
|
76498
|
+
["职务", zf(e?.duty)],
|
|
76499
|
+
["分站名称", zf(e?.station_name)],
|
|
76500
|
+
["入井时间", zf(e?.time_in_well)],
|
|
76501
|
+
["是否领导", zf(e?.is_leader)]
|
|
76489
76502
|
];
|
|
76490
76503
|
}
|
|
76491
|
-
function
|
|
76492
|
-
let t =
|
|
76504
|
+
function yp(e) {
|
|
76505
|
+
let t = zf(e?.person_name ?? e?.name), n = zf(e?.duty);
|
|
76493
76506
|
return t === "--" && n === "--" ? "未命名人员" : t === "--" ? `-- / ${n}` : n === "--" ? `${t} / --` : `${t} / ${n}`;
|
|
76494
76507
|
}
|
|
76495
|
-
function
|
|
76508
|
+
function bp(e) {
|
|
76496
76509
|
return [
|
|
76497
|
-
["部门",
|
|
76498
|
-
["分站名称",
|
|
76499
|
-
["入井时间",
|
|
76500
|
-
["是否领导",
|
|
76510
|
+
["部门", zf(e?.dept)],
|
|
76511
|
+
["分站名称", zf(e?.station_name)],
|
|
76512
|
+
["入井时间", zf(e?.time_in_well)],
|
|
76513
|
+
["是否领导", zf(e?.is_leader)]
|
|
76501
76514
|
];
|
|
76502
76515
|
}
|
|
76503
|
-
function bp(e) {
|
|
76504
|
-
return [["位置", Rf(e?.location)], ["数据时间", Rf(e?.data_time)]];
|
|
76505
|
-
}
|
|
76506
76516
|
function xp(e) {
|
|
76507
|
-
|
|
76508
|
-
return t === "--" ? t : n ? `${t}${n}` : t;
|
|
76517
|
+
return [["位置", zf(e?.location)], ["数据时间", zf(e?.data_time)]];
|
|
76509
76518
|
}
|
|
76510
76519
|
function Sp(e) {
|
|
76511
|
-
|
|
76512
|
-
|
|
76513
|
-
["数据时间", Rf(e?.data_time ?? e?.sj ?? e?.time)],
|
|
76514
|
-
["状态", Rf(e?.state ?? e?.status)]
|
|
76515
|
-
];
|
|
76520
|
+
let t = zf(e?.monitor_val ?? e?.val ?? e?.jcvl ?? e?.value ?? e?.pressure_value), n = Rf(e?.unit ?? e?.dw) ? "" : String(e?.unit ?? e?.dw).trim();
|
|
76521
|
+
return t === "--" ? t : n ? `${t}${n}` : t;
|
|
76516
76522
|
}
|
|
76517
76523
|
function Cp(e) {
|
|
76518
76524
|
return [
|
|
76519
|
-
["
|
|
76520
|
-
["
|
|
76521
|
-
["
|
|
76522
|
-
["班次", Rf(e?.class_code)],
|
|
76523
|
-
["站点名称", Rf(e?.station_name)],
|
|
76524
|
-
["站点编码", Rf(e?.station_code)],
|
|
76525
|
-
["区域名称", Rf(e?.area_name)],
|
|
76526
|
-
["区域进入时间", Rf(e?.area_entertime)],
|
|
76527
|
-
["站点进入时间", Rf(e?.station_entertime)],
|
|
76528
|
-
["入井时间", Rf(e?.mine_entertime)],
|
|
76529
|
-
["数据时间", Rf(e?.data_time)]
|
|
76525
|
+
["监测值", Sp(e)],
|
|
76526
|
+
["数据时间", zf(e?.data_time ?? e?.sj ?? e?.time)],
|
|
76527
|
+
["状态", zf(e?.state ?? e?.status)]
|
|
76530
76528
|
];
|
|
76531
76529
|
}
|
|
76532
76530
|
function wp(e) {
|
|
76533
76531
|
return [
|
|
76534
|
-
["
|
|
76535
|
-
["
|
|
76536
|
-
["出入井状态",
|
|
76537
|
-
["
|
|
76538
|
-
["
|
|
76539
|
-
["
|
|
76540
|
-
["
|
|
76541
|
-
["
|
|
76542
|
-
["
|
|
76543
|
-
["
|
|
76532
|
+
["定位卡号", zf(e?.person_card)],
|
|
76533
|
+
["车辆类型", zf(e?.typem_name)],
|
|
76534
|
+
["出入井状态", zf(e?.enter_flag_name)],
|
|
76535
|
+
["班次", zf(e?.class_code)],
|
|
76536
|
+
["站点名称", zf(e?.station_name)],
|
|
76537
|
+
["站点编码", zf(e?.station_code)],
|
|
76538
|
+
["区域名称", zf(e?.area_name)],
|
|
76539
|
+
["区域进入时间", zf(e?.area_entertime)],
|
|
76540
|
+
["站点进入时间", zf(e?.station_entertime)],
|
|
76541
|
+
["入井时间", zf(e?.mine_entertime)],
|
|
76542
|
+
["数据时间", zf(e?.data_time)]
|
|
76544
76543
|
];
|
|
76545
76544
|
}
|
|
76546
76545
|
function Tp(e) {
|
|
76547
76546
|
return [
|
|
76548
|
-
["
|
|
76549
|
-
["
|
|
76550
|
-
["
|
|
76551
|
-
["
|
|
76547
|
+
["车辆类型", zf(e?.typem_name)],
|
|
76548
|
+
["班次", zf(e?.class_code)],
|
|
76549
|
+
["出入井状态", zf(e?.enter_flag_name)],
|
|
76550
|
+
["站点名称", zf(e?.station_name)],
|
|
76551
|
+
["站点编码", zf(e?.station_code)],
|
|
76552
|
+
["区域名称", zf(e?.area_name)],
|
|
76553
|
+
["区域进入时间", zf(e?.area_entertime)],
|
|
76554
|
+
["站点进入时间", zf(e?.station_entertime)],
|
|
76555
|
+
["入井时间", zf(e?.mine_entertime)],
|
|
76556
|
+
["数据时间", zf(e?.data_time)]
|
|
76552
76557
|
];
|
|
76553
76558
|
}
|
|
76554
76559
|
function Ep(e) {
|
|
76555
76560
|
return [
|
|
76556
|
-
["
|
|
76557
|
-
["
|
|
76558
|
-
["
|
|
76559
|
-
["
|
|
76560
|
-
["所属系统", Rf(e?.system_name)],
|
|
76561
|
-
["经纬度", Rf(e?.lat_lng)],
|
|
76562
|
-
["三维坐标", Rf(e?.coordinates)]
|
|
76561
|
+
["视频编码", zf(e?.v_camera_indexcode ?? e?.indexcode)],
|
|
76562
|
+
["视频名称", zf(e?.v_camera_name ?? e?.name)],
|
|
76563
|
+
["视频平台", zf(e?.v_server_name)],
|
|
76564
|
+
["在线状态", zf(e?.online)]
|
|
76563
76565
|
];
|
|
76564
76566
|
}
|
|
76565
76567
|
function Dp(e) {
|
|
76566
|
-
return [
|
|
76568
|
+
return [
|
|
76569
|
+
["广播名称", zf(e?.v_name ?? e?.name)],
|
|
76570
|
+
["广播编码", zf(e?.v_code)],
|
|
76571
|
+
["矿井名称", zf(e?.mine_name)],
|
|
76572
|
+
["所属区域", zf(e?.v_area_name)],
|
|
76573
|
+
["所属系统", zf(e?.system_name)],
|
|
76574
|
+
["经纬度", zf(e?.lat_lng)],
|
|
76575
|
+
["三维坐标", zf(e?.coordinates)]
|
|
76576
|
+
];
|
|
76567
76577
|
}
|
|
76568
76578
|
function Op(e) {
|
|
76569
|
-
return [["
|
|
76579
|
+
return [["广播编码", zf(e?.v_code)]];
|
|
76570
76580
|
}
|
|
76571
76581
|
function kp(e) {
|
|
76582
|
+
return [["所属区域", zf(e?.v_area_name)], ["所属系统", zf(e?.system_name)]];
|
|
76583
|
+
}
|
|
76584
|
+
function Ap(e) {
|
|
76572
76585
|
return e?.data && typeof e.data == "object" && !Array.isArray(e.data) ? e.data : e && typeof e == "object" ? e : {};
|
|
76573
76586
|
}
|
|
76574
|
-
let
|
|
76587
|
+
let jp = r(() => le.value?.dataSource?.type === "cloud" && le.value?.dataSource?.autoLoad === !0), Mp = r(() => {
|
|
76575
76588
|
let e = {};
|
|
76576
76589
|
return (Array.isArray(U.toolbarTools) ? U.toolbarTools : []).forEach((t) => {
|
|
76577
76590
|
let n = typeof t == "string" ? t.trim() : "";
|
|
76578
76591
|
n && (e[n] = !0);
|
|
76579
76592
|
}), e;
|
|
76580
76593
|
});
|
|
76581
|
-
function
|
|
76582
|
-
return !!
|
|
76594
|
+
function Np(e) {
|
|
76595
|
+
return !!Mp.value[e];
|
|
76583
76596
|
}
|
|
76584
|
-
let
|
|
76597
|
+
let Pp = r(() => Np(ee.DEBUG)), Fp = r(() => Np(ee.SCENE)), Ip = r(() => Np(ee.MONITOR)), Lp = r(() => Np(ee.RANGE)), Rp = r(() => Np(ee.WATER)), zp = r(() => Np(ee.EXIT_PATH)), Bp = r(() => Np(ee.VIEW)), Vp = r(() => Np(ee.REGION));
|
|
76585
76598
|
B(() => ({
|
|
76586
|
-
debug:
|
|
76587
|
-
scene:
|
|
76588
|
-
monitor:
|
|
76589
|
-
range:
|
|
76590
|
-
water:
|
|
76591
|
-
exitPath:
|
|
76592
|
-
view:
|
|
76593
|
-
region:
|
|
76599
|
+
debug: Pp.value,
|
|
76600
|
+
scene: Fp.value,
|
|
76601
|
+
monitor: Ip.value,
|
|
76602
|
+
range: Lp.value,
|
|
76603
|
+
water: Rp.value,
|
|
76604
|
+
exitPath: zp.value,
|
|
76605
|
+
view: Bp.value,
|
|
76606
|
+
region: Vp.value
|
|
76594
76607
|
}), (e) => {
|
|
76595
76608
|
e.debug || (qe.value = !1, Je.value = !1), e.scene || (je.value = !1), e.monitor || (Fl.value = !1), e.range || go.value === "picking" && Uo(), e.water || (Ls.value = !1), e.exitPath || (rl.value = !1), e.view || (Ye.value = !1), e.region || (Y.value = !1);
|
|
76596
76609
|
}, { immediate: !0 });
|
|
76597
|
-
function
|
|
76610
|
+
function Hp(e) {
|
|
76598
76611
|
let { text: t, position: n, height: r = h3, scale: i = g3 } = e ?? {};
|
|
76599
76612
|
if (!n || !Number.isFinite(n.x) || !Number.isFinite(n.y) || !Number.isFinite(n.z)) return null;
|
|
76600
76613
|
let a = window.lr3dapp?.editor?.manager?.modules?.marker;
|
|
@@ -76612,36 +76625,36 @@ var iY = {
|
|
|
76612
76625
|
});
|
|
76613
76626
|
return o?.scale?.multiplyScalar(i), o;
|
|
76614
76627
|
}
|
|
76615
|
-
function
|
|
76628
|
+
function Up() {
|
|
76616
76629
|
let e = window.lr3dapp?.editor?.manager?.modules?.marker;
|
|
76617
76630
|
return !e || typeof e.removeAllTextSprite != "function" ? !1 : (e.removeAllTextSprite(), !0);
|
|
76618
76631
|
}
|
|
76619
|
-
function
|
|
76632
|
+
function Wp() {
|
|
76620
76633
|
try {
|
|
76621
|
-
|
|
76634
|
+
um(me.value), ui(`背景颜色已更新:${me.value}`);
|
|
76622
76635
|
} catch (e) {
|
|
76623
|
-
ui(`背景颜色更新失败:${
|
|
76636
|
+
ui(`背景颜色更新失败:${Gp(e)}`);
|
|
76624
76637
|
}
|
|
76625
76638
|
}
|
|
76626
|
-
function
|
|
76639
|
+
function Gp(e) {
|
|
76627
76640
|
return e instanceof Error ? e.message : "未知错误";
|
|
76628
76641
|
}
|
|
76629
|
-
function
|
|
76642
|
+
function Kp(e) {
|
|
76630
76643
|
return e ? `X ${Number(e.x).toFixed(2)} / Y ${Number(e.y).toFixed(2)} / Z ${Number(e.z).toFixed(2)}` : "--";
|
|
76631
76644
|
}
|
|
76632
|
-
function
|
|
76645
|
+
function qp(e) {
|
|
76633
76646
|
return e ? `X ${Number(e.x).toFixed(2)} / Y ${Number(e.y).toFixed(2)} / Z ${Number(e.z).toFixed(2)}` : "--";
|
|
76634
76647
|
}
|
|
76635
|
-
function
|
|
76648
|
+
function Jp() {
|
|
76636
76649
|
typeof Rt == "function" && Rt(), Rt = null;
|
|
76637
76650
|
}
|
|
76638
|
-
function
|
|
76639
|
-
zt && (zt.parent?.remove?.(zt),
|
|
76651
|
+
function Yp() {
|
|
76652
|
+
zt && (zt.parent?.remove?.(zt), fm(zt), zt = null, Ej());
|
|
76640
76653
|
}
|
|
76641
|
-
function
|
|
76642
|
-
let t =
|
|
76654
|
+
function Xp(e) {
|
|
76655
|
+
let t = dm();
|
|
76643
76656
|
if (!t || !e) return;
|
|
76644
|
-
|
|
76657
|
+
Yp();
|
|
76645
76658
|
let n = wi(), r = new n.Group();
|
|
76646
76659
|
r.name = "debug-coordinate-pick-marker";
|
|
76647
76660
|
let i = new n.Vector3(Number(e.x), Number(e.y), Number(e.z) + J4), a = new n.SphereGeometry(Y4, 24, 20), o = new n.MeshBasicMaterial({
|
|
@@ -76662,33 +76675,33 @@ var iY = {
|
|
|
76662
76675
|
}), u = new n.Mesh(c, l);
|
|
76663
76676
|
u.position.copy(i), u.renderOrder = 998, r.add(u), r.add(s), t.add(r), zt = r, Ej();
|
|
76664
76677
|
}
|
|
76665
|
-
function
|
|
76666
|
-
if (
|
|
76678
|
+
function Zp() {
|
|
76679
|
+
if (Jp(), !fe.value || !K.value) return;
|
|
76667
76680
|
let e = (e) => {
|
|
76668
76681
|
if (go.value === "picking" || Rl.value.status === "picking") return;
|
|
76669
|
-
let t =
|
|
76670
|
-
if (!t?.point || !
|
|
76682
|
+
let t = _m(e, { ignoreExitPathInterference: !0 });
|
|
76683
|
+
if (!t?.point || !gm(t.object)) return;
|
|
76671
76684
|
let n = Ei(t.point);
|
|
76672
|
-
n && (
|
|
76685
|
+
n && (Xp(t.point), console.log(`[lr3d-debug-coordinate-pick] x: ${Number(n.x)},y: ${Number(n.y)},z: ${Number(n.z)}`));
|
|
76673
76686
|
};
|
|
76674
76687
|
fe.value.addEventListener("click", e, !0), Rt = () => {
|
|
76675
76688
|
fe.value?.removeEventListener("click", e, !0);
|
|
76676
76689
|
};
|
|
76677
76690
|
}
|
|
76678
|
-
function Zp(e) {
|
|
76679
|
-
K.value = e === !0, K.value || Jp(), ui(K.value ? "调试坐标点拾取已开启" : "调试坐标点拾取已关闭");
|
|
76680
|
-
}
|
|
76681
76691
|
function Qp(e) {
|
|
76682
|
-
|
|
76692
|
+
K.value = e === !0, K.value || Yp(), ui(K.value ? "调试坐标点拾取已开启" : "调试坐标点拾取已关闭");
|
|
76683
76693
|
}
|
|
76684
76694
|
function $p(e) {
|
|
76695
|
+
return Bf(e) ? up(e) : Vf(e) ? fp(e) : Hf(e) ? mp(e) : Uf(e) ? vp(e) : np(e) ? Cp(e) : rp(e) ? wp(e) : ap(e) ? Ep(e) : ip(e) ? Dp(e) : Object.entries(Ap(e)).map(([e, t]) => [e, Lf(t)]);
|
|
76696
|
+
}
|
|
76697
|
+
function em(e) {
|
|
76685
76698
|
return Number.isFinite(Number(e));
|
|
76686
76699
|
}
|
|
76687
|
-
function
|
|
76700
|
+
function tm() {
|
|
76688
76701
|
return (Array.isArray(ue.value.customModelItems) ? ue.value.customModelItems : []).map((e) => {
|
|
76689
76702
|
if (!e || typeof e != "object") return null;
|
|
76690
76703
|
let t = typeof e.key == "string" && e.key.trim() ? e.key.trim() : "", n = z(t) || H(t);
|
|
76691
|
-
if (e.visible === !1 && !n ||
|
|
76704
|
+
if (e.visible === !1 && !n || !em(e?.absolutePosition?.x) || !em(e?.absolutePosition?.y) || !em(e?.absolutePosition?.z)) return null;
|
|
76692
76705
|
let r = typeof e.url == "string" && e.url.trim() ? e.url.trim() : "";
|
|
76693
76706
|
return !t || !r ? null : {
|
|
76694
76707
|
key: t,
|
|
@@ -76720,17 +76733,17 @@ var iY = {
|
|
|
76720
76733
|
};
|
|
76721
76734
|
}).filter(Boolean);
|
|
76722
76735
|
}
|
|
76723
|
-
function
|
|
76736
|
+
function nm(e) {
|
|
76724
76737
|
$n().forEach((t) => {
|
|
76725
76738
|
let n = typeof t.key == "string" ? t.key.trim() : "", r = mt[n] ?? null;
|
|
76726
76739
|
r && (r.visible = e);
|
|
76727
76740
|
}), Ej();
|
|
76728
76741
|
}
|
|
76729
|
-
function
|
|
76742
|
+
function rm(e) {
|
|
76730
76743
|
return !e || typeof e != "object" ? !1 : Number.isFinite(e.brightness) || Number.isFinite(e.roughness) || Number.isFinite(e.metalness) || Number.isFinite(e.envMapIntensity);
|
|
76731
76744
|
}
|
|
76732
|
-
function
|
|
76733
|
-
if (!e || typeof e.traverse != "function" || !
|
|
76745
|
+
function im(e, t) {
|
|
76746
|
+
if (!e || typeof e.traverse != "function" || !rm(t)) return;
|
|
76734
76747
|
let n = Number.isFinite(t.brightness) ? Math.max(0, t.brightness) : 1;
|
|
76735
76748
|
e.traverse((e) => {
|
|
76736
76749
|
if (!e?.isMesh || !e.material) return;
|
|
@@ -76742,21 +76755,21 @@ var iY = {
|
|
|
76742
76755
|
e.material = Array.isArray(e.material) ? r : r[0];
|
|
76743
76756
|
});
|
|
76744
76757
|
}
|
|
76745
|
-
function
|
|
76758
|
+
function am() {
|
|
76746
76759
|
Object.values(mt).forEach((e) => {
|
|
76747
|
-
e?.parent?.remove?.(e),
|
|
76760
|
+
e?.parent?.remove?.(e), fm(e);
|
|
76748
76761
|
}), mt = {}, Pt = !1, Ce.value += 1, Fd(), Sr();
|
|
76749
76762
|
}
|
|
76750
|
-
async function
|
|
76751
|
-
let e =
|
|
76752
|
-
if (
|
|
76763
|
+
async function om() {
|
|
76764
|
+
let e = dm(), t = tm(), n = ++xt;
|
|
76765
|
+
if (am(), !e || t.length === 0) return Ld(), 0;
|
|
76753
76766
|
let r = wi(), i = {}, a = 0;
|
|
76754
76767
|
for (let o of t) {
|
|
76755
76768
|
let t = await FJ(o.url, r);
|
|
76756
|
-
if (n !== xt) return
|
|
76769
|
+
if (n !== xt) return fm(t?.scene), 0;
|
|
76757
76770
|
let s = t?.scene, c = Di(o.absolutePosition);
|
|
76758
76771
|
if (!s || !c) {
|
|
76759
|
-
|
|
76772
|
+
fm(s);
|
|
76760
76773
|
continue;
|
|
76761
76774
|
}
|
|
76762
76775
|
if (s.name = o.key, s.position.set(Number(c.x), Number(c.y), Number(c.z)), s.rotation.set(tr(Number(o.rotation.x)), tr(Number(o.rotation.y)), tr(Number(o.rotation.z))), s.scale.set(Number.isFinite(o.scale.x) ? o.scale.x : 1, Number.isFinite(o.scale.y) ? o.scale.y : 1, Number.isFinite(o.scale.z) ? o.scale.z : 1), s.userData = {
|
|
@@ -76766,7 +76779,7 @@ var iY = {
|
|
|
76766
76779
|
modelName: o.name,
|
|
76767
76780
|
absolutePosition: { ...o.absolutePosition },
|
|
76768
76781
|
longObservationHoleWaterFillRatio: Number(o?.waterFillRatio)
|
|
76769
|
-
}, s.visible = o.visible !== !1,
|
|
76782
|
+
}, s.visible = o.visible !== !1, im(s, o.material), z(o.key) && (Er(s), Or(s), Tr(s)), e.add(s), i[o.key] = s, z(o.key)) {
|
|
76770
76783
|
let t = Id(s, o, e, r);
|
|
76771
76784
|
t && (t.visible = o.visible !== !1);
|
|
76772
76785
|
}
|
|
@@ -76774,7 +76787,7 @@ var iY = {
|
|
|
76774
76787
|
}
|
|
76775
76788
|
return mt = i, Pt = Object.entries(i).some(([e, t]) => z(e) && t?.visible === !0), Md(), Pd(), Pt ? Cr() : Sr(), Ce.value += 1, Rd(), Ej(), a;
|
|
76776
76789
|
}
|
|
76777
|
-
function
|
|
76790
|
+
function sm(e, t = {}) {
|
|
76778
76791
|
let { positionMode: n = "absolute" } = t, r = n === "relative" ? {
|
|
76779
76792
|
x: Number(e?.x),
|
|
76780
76793
|
y: Number(e?.y),
|
|
@@ -76798,24 +76811,24 @@ var iY = {
|
|
|
76798
76811
|
return null;
|
|
76799
76812
|
}
|
|
76800
76813
|
}
|
|
76801
|
-
function
|
|
76802
|
-
let { enableScale: n = !0 } = t, r =
|
|
76814
|
+
function cm(e, t = {}) {
|
|
76815
|
+
let { enableScale: n = !0 } = t, r = sm(e, t);
|
|
76803
76816
|
if (!r) return null;
|
|
76804
76817
|
let i = `translate(${r.x}px, ${r.y}px) translate(-50%, -100%)`;
|
|
76805
76818
|
return { transform: n ? `${i} scale(${r.scale.toFixed(3)})` : i };
|
|
76806
76819
|
}
|
|
76807
|
-
function
|
|
76820
|
+
function lm(e) {
|
|
76808
76821
|
return e == null ? "" : String(e).trim().toLowerCase();
|
|
76809
76822
|
}
|
|
76810
|
-
function
|
|
76823
|
+
function um(e = me.value) {
|
|
76811
76824
|
let t = Sj(), n = typeof e == "string" && e.trim() ? e.trim() : "#041D4B";
|
|
76812
76825
|
t?.signals?.sceneBackgroundChanged?.dispatch?.("Gradientcolor", null, null, null, null, n, n);
|
|
76813
76826
|
}
|
|
76814
|
-
function
|
|
76827
|
+
function dm() {
|
|
76815
76828
|
let e = Sj(), t = xj();
|
|
76816
76829
|
return [e?.scene, t?.scene].find((e) => e && typeof e.add == "function") ?? null;
|
|
76817
76830
|
}
|
|
76818
|
-
function
|
|
76831
|
+
function fm(e) {
|
|
76819
76832
|
e && e.traverse?.((e) => {
|
|
76820
76833
|
if (e.geometry?.dispose?.(), Array.isArray(e.material)) {
|
|
76821
76834
|
e.material.forEach((e) => e?.dispose?.());
|
|
@@ -76824,7 +76837,7 @@ var iY = {
|
|
|
76824
76837
|
e.material?.dispose?.();
|
|
76825
76838
|
});
|
|
76826
76839
|
}
|
|
76827
|
-
function
|
|
76840
|
+
function pm(e) {
|
|
76828
76841
|
let t = e;
|
|
76829
76842
|
for (; t;) {
|
|
76830
76843
|
if (t.name === N4 || t.name === P4 || t.name === F4 || t.name === I4 || t.name === R3 || t.name === "TransformControlHelper" || t.userData?.markerType === m6 || t.userData?.markerType === B3 || t.userData?.markerType === h6) return !0;
|
|
@@ -76832,7 +76845,7 @@ var iY = {
|
|
|
76832
76845
|
}
|
|
76833
76846
|
return !1;
|
|
76834
76847
|
}
|
|
76835
|
-
function
|
|
76848
|
+
function mm(e) {
|
|
76836
76849
|
return [
|
|
76837
76850
|
e?.info,
|
|
76838
76851
|
e?.userData?.attrs,
|
|
@@ -76840,33 +76853,33 @@ var iY = {
|
|
|
76840
76853
|
e?.userData
|
|
76841
76854
|
].find((e) => e && typeof e == "object" && !Array.isArray(e)) ?? null;
|
|
76842
76855
|
}
|
|
76843
|
-
function
|
|
76844
|
-
let t =
|
|
76856
|
+
function hm(e) {
|
|
76857
|
+
let t = mm(e);
|
|
76845
76858
|
return !t || typeof t != "object" || Array.isArray(t) ? !1 : Object.prototype.hasOwnProperty.call(t, "水平") && Object.prototype.hasOwnProperty.call(t, "采区") ? !0 : Object.prototype.hasOwnProperty.call(t, "图层") && Object.prototype.hasOwnProperty.call(t, "实体ID") && (Object.prototype.hasOwnProperty.call(t, "名称") || Object.prototype.hasOwnProperty.call(t, "FeatureType"));
|
|
76846
76859
|
}
|
|
76847
|
-
function
|
|
76848
|
-
let t =
|
|
76860
|
+
function gm(e) {
|
|
76861
|
+
let t = mm(e);
|
|
76849
76862
|
return !t || typeof t != "object" || Array.isArray(t) ? !1 : Object.prototype.hasOwnProperty.call(t, "水平") && Object.prototype.hasOwnProperty.call(t, "采区");
|
|
76850
76863
|
}
|
|
76851
|
-
function
|
|
76864
|
+
function _m(e, t = {}) {
|
|
76852
76865
|
if (!fe.value) return null;
|
|
76853
|
-
let n =
|
|
76866
|
+
let n = dm(), r = Si();
|
|
76854
76867
|
if (!n || !r) return null;
|
|
76855
76868
|
let i = fe.value.getBoundingClientRect();
|
|
76856
76869
|
if (i.width <= 0 || i.height <= 0) return null;
|
|
76857
76870
|
let a = wi(), o = new a.Vector2((e.clientX - i.left) / i.width * 2 - 1, -((e.clientY - i.top) / i.height) * 2 + 1), s = new a.Raycaster();
|
|
76858
76871
|
return r.updateProjectionMatrix?.(), r.updateMatrixWorld?.(!0), n.updateMatrixWorld?.(!0), s.setFromCamera(o, r), s.intersectObjects(n.children, !0).find((e) => {
|
|
76859
76872
|
let n = e?.object;
|
|
76860
|
-
return !n?.visible ||
|
|
76873
|
+
return !n?.visible || pm(n) || t?.ignoreExitPathInterference === !0 && Sl(n) || !hm(n) ? !1 : Ti(e?.point);
|
|
76861
76874
|
}) ?? null;
|
|
76862
76875
|
}
|
|
76863
|
-
function
|
|
76876
|
+
function vm(e) {
|
|
76864
76877
|
if (!Ti(e)) return null;
|
|
76865
|
-
let t =
|
|
76878
|
+
let t = dm();
|
|
76866
76879
|
if (!t) return null;
|
|
76867
76880
|
let n = wi(), r = new n.Vector3(Number(e.x), Number(e.y), Number(e.z)), i = new n.Box3(), a = new n.Vector3(), o = new n.Vector3(), s = null, c = Infinity, l = null, u = Infinity;
|
|
76868
76881
|
return t.updateMatrixWorld?.(!0), t.traverse?.((e) => {
|
|
76869
|
-
if (!e?.visible ||
|
|
76882
|
+
if (!e?.visible || pm(e) || !hm(e) || !e.geometry || (e.geometry.computeBoundingBox?.(), !e.geometry.boundingBox)) return;
|
|
76870
76883
|
i.copy(e.geometry.boundingBox), i.applyMatrix4(e.matrixWorld), i.getSize(a);
|
|
76871
76884
|
let t = Math.max(a.x, 0) * Math.max(a.y, 0) * Math.max(a.z, 0);
|
|
76872
76885
|
if (i.containsPoint(r)) {
|
|
@@ -76878,11 +76891,11 @@ var iY = {
|
|
|
76878
76891
|
n < u && (u = n, l = e);
|
|
76879
76892
|
}), s ?? l;
|
|
76880
76893
|
}
|
|
76881
|
-
function
|
|
76894
|
+
function ym(...e) {
|
|
76882
76895
|
for (let t of e) if (t != null && String(t).trim()) return t;
|
|
76883
76896
|
return "";
|
|
76884
76897
|
}
|
|
76885
|
-
function
|
|
76898
|
+
function bm(e) {
|
|
76886
76899
|
let t = {
|
|
76887
76900
|
ids: [],
|
|
76888
76901
|
names: [],
|
|
@@ -76895,61 +76908,61 @@ var iY = {
|
|
|
76895
76908
|
}
|
|
76896
76909
|
return t;
|
|
76897
76910
|
}
|
|
76898
|
-
function
|
|
76911
|
+
function xm(e, t = "selection") {
|
|
76899
76912
|
let n = e?.object ?? e ?? null;
|
|
76900
76913
|
if (!n || typeof n != "object") return null;
|
|
76901
|
-
let r =
|
|
76914
|
+
let r = bm(n), i = n?.position, a = i && Number.isFinite(Number(i.x)) ? {
|
|
76902
76915
|
x: Number(i.x),
|
|
76903
76916
|
y: Number(i.y),
|
|
76904
76917
|
z: Number(i.z)
|
|
76905
76918
|
} : null;
|
|
76906
76919
|
return {
|
|
76907
|
-
id:
|
|
76908
|
-
name:
|
|
76909
|
-
layerName:
|
|
76920
|
+
id: ym(...r.ids) || null,
|
|
76921
|
+
name: ym(...r.names) || null,
|
|
76922
|
+
layerName: ym(...r.layerNames) || null,
|
|
76910
76923
|
position: a
|
|
76911
76924
|
};
|
|
76912
76925
|
}
|
|
76913
|
-
function xm(e) {
|
|
76914
|
-
return cm(typeof e == "string" ? e.trim() : e);
|
|
76915
|
-
}
|
|
76916
76926
|
function Sm(e) {
|
|
76917
|
-
return
|
|
76927
|
+
return lm(typeof e == "string" ? e.trim() : e);
|
|
76918
76928
|
}
|
|
76919
76929
|
function Cm(e) {
|
|
76930
|
+
return [e?.displayName].map((e) => Sm(e)).filter(Boolean);
|
|
76931
|
+
}
|
|
76932
|
+
function wm(e) {
|
|
76920
76933
|
let t = [], n = e;
|
|
76921
76934
|
for (; n;) {
|
|
76922
76935
|
let e = n?.userData ?? {}, r = e?.attrs ?? e?.info ?? e ?? {};
|
|
76923
76936
|
t.push(r?.名称, r?.name, r?.FEATURENAME, r?.工作面名称, e?.name, e?.displayName, n?.name), n = n.parent ?? null;
|
|
76924
76937
|
}
|
|
76925
|
-
return t.map((e) =>
|
|
76938
|
+
return t.map((e) => Sm(e)).filter(Boolean);
|
|
76926
76939
|
}
|
|
76927
|
-
function
|
|
76940
|
+
function Tm(e) {
|
|
76928
76941
|
return {
|
|
76929
|
-
layerNameToken:
|
|
76930
|
-
entityIdToken:
|
|
76942
|
+
layerNameToken: Sm(e?.layerName),
|
|
76943
|
+
entityIdToken: Sm(e?.entityId)
|
|
76931
76944
|
};
|
|
76932
76945
|
}
|
|
76933
|
-
function
|
|
76946
|
+
function Em(e) {
|
|
76934
76947
|
let t = e, n = [], r = [];
|
|
76935
76948
|
for (; t;) {
|
|
76936
76949
|
let e = t?.userData ?? {}, i = e?.attrs ?? e?.info ?? e ?? {};
|
|
76937
76950
|
n.push(i?.图层, i?.layername, i?.layerName, i?.layer, e?.layername, e?.layerName, e?.layer, t?.layername, t?.layerName), r.push(i?.实体ID, i?.entityId, i?.entityID, i?.id, i?.FEATUREID, e?.entityId, e?.entityID, e?.id, e?.featureId, t?.id), t = t.parent ?? null;
|
|
76938
76951
|
}
|
|
76939
76952
|
return {
|
|
76940
|
-
layerNameToken:
|
|
76941
|
-
entityIdToken:
|
|
76953
|
+
layerNameToken: Sm(ym(...n)),
|
|
76954
|
+
entityIdToken: Sm(ym(...r))
|
|
76942
76955
|
};
|
|
76943
76956
|
}
|
|
76944
|
-
function
|
|
76945
|
-
let t =
|
|
76957
|
+
function Dm(e) {
|
|
76958
|
+
let t = dm();
|
|
76946
76959
|
if (!t || typeof t.traverse != "function" || !e) return console.log("[lr-map-viewer] highlightRegionByName resolveRegionSceneObject skipped", {
|
|
76947
76960
|
hasScene: !!t,
|
|
76948
76961
|
canTraverse: typeof t?.traverse == "function",
|
|
76949
76962
|
hasRegionItem: !!e,
|
|
76950
76963
|
displayName: e?.displayName || ""
|
|
76951
76964
|
}), null;
|
|
76952
|
-
let n =
|
|
76965
|
+
let n = Cm(e), r = Tm(e);
|
|
76953
76966
|
(!r.layerNameToken || !r.entityIdToken) && console.log("[lr-map-viewer] highlightRegionByName resolveRegionSceneObject missing stable keys", {
|
|
76954
76967
|
displayName: e?.displayName || "",
|
|
76955
76968
|
layerName: e?.layerName || "",
|
|
@@ -76959,8 +76972,8 @@ var iY = {
|
|
|
76959
76972
|
});
|
|
76960
76973
|
let i = null, a = [], o = null;
|
|
76961
76974
|
return t.traverse((e) => {
|
|
76962
|
-
if (i || !e || typeof e != "object" || !
|
|
76963
|
-
let t =
|
|
76975
|
+
if (i || !e || typeof e != "object" || !hm(e)) return;
|
|
76976
|
+
let t = wm(e), s = Em(e);
|
|
76964
76977
|
if (r.layerNameToken && r.entityIdToken && r.layerNameToken === s.layerNameToken && r.entityIdToken === s.entityIdToken) {
|
|
76965
76978
|
i = e, a = t, o = s;
|
|
76966
76979
|
return;
|
|
@@ -76977,12 +76990,12 @@ var iY = {
|
|
|
76977
76990
|
matchedNodeStableMatchKeys: o
|
|
76978
76991
|
}), i;
|
|
76979
76992
|
}
|
|
76980
|
-
function
|
|
76993
|
+
function Om() {
|
|
76981
76994
|
typeof window < "u" && It !== null && (window.clearTimeout(It), It = null), typeof window < "u" && Lt && window.cancelAnimationFrame(Lt), Lt = 0, Ft?.parent && Ft.parent.remove(Ft), Ft?.traverse && Ft.traverse((e) => {
|
|
76982
76995
|
e?.geometry?.dispose?.(), e?.material?.dispose?.();
|
|
76983
76996
|
}), Ft = null;
|
|
76984
76997
|
}
|
|
76985
|
-
function
|
|
76998
|
+
function km(e) {
|
|
76986
76999
|
let t = [];
|
|
76987
77000
|
if ((Array.isArray(e?.coordinates) ? e.coordinates : []).forEach((e) => {
|
|
76988
77001
|
let n = Kt(e);
|
|
@@ -77001,11 +77014,11 @@ var iY = {
|
|
|
77001
77014
|
}
|
|
77002
77015
|
return t;
|
|
77003
77016
|
}
|
|
77004
|
-
function
|
|
77017
|
+
function Am(e) {
|
|
77005
77018
|
let t = wi();
|
|
77006
77019
|
if (!t || !e) return null;
|
|
77007
77020
|
try {
|
|
77008
|
-
let n =
|
|
77021
|
+
let n = km(e);
|
|
77009
77022
|
if (n.length < 2) return null;
|
|
77010
77023
|
let r = new t.Group();
|
|
77011
77024
|
r.name = "lr3d-region-highlight-outline", r.renderOrder = C6;
|
|
@@ -77028,7 +77041,7 @@ var iY = {
|
|
|
77028
77041
|
return null;
|
|
77029
77042
|
}
|
|
77030
77043
|
}
|
|
77031
|
-
function
|
|
77044
|
+
function jm(e) {
|
|
77032
77045
|
if (typeof window > "u" || !e?.children?.length) return;
|
|
77033
77046
|
let t = (n) => {
|
|
77034
77047
|
if (!e?.children?.length) {
|
|
@@ -77042,7 +77055,7 @@ var iY = {
|
|
|
77042
77055
|
};
|
|
77043
77056
|
Lt = window.requestAnimationFrame(t);
|
|
77044
77057
|
}
|
|
77045
|
-
function
|
|
77058
|
+
function Mm(e, t) {
|
|
77046
77059
|
let n = wi(), r = Sj();
|
|
77047
77060
|
if (!n || !e) return {
|
|
77048
77061
|
focused: !1,
|
|
@@ -77090,8 +77103,8 @@ var iY = {
|
|
|
77090
77103
|
};
|
|
77091
77104
|
}
|
|
77092
77105
|
}
|
|
77093
|
-
function
|
|
77094
|
-
let n = String(e || "").trim(), r =
|
|
77106
|
+
function Nm(e, t = v6) {
|
|
77107
|
+
let n = String(e || "").trim(), r = Sm(n), i = Array.isArray(ps.value) ? ps.value.map((e) => String(e?.displayName || "")) : [];
|
|
77095
77108
|
if (console.log("[lr-map-viewer] highlightRegionByName start", {
|
|
77096
77109
|
regionName: e,
|
|
77097
77110
|
normalizedRegionName: n,
|
|
@@ -77100,7 +77113,7 @@ var iY = {
|
|
|
77100
77113
|
regionItemCount: Array.isArray(ps.value) ? ps.value.length : 0,
|
|
77101
77114
|
regionDisplayNameList: i
|
|
77102
77115
|
}), !n) return console.log("[lr-map-viewer] highlightRegionByName failed: empty region name"), X.value = "区域高亮失败:区域名称不能为空", !1;
|
|
77103
|
-
let a = ps.value.find((e) =>
|
|
77116
|
+
let a = ps.value.find((e) => Cm(e).includes(r));
|
|
77104
77117
|
if (!a) return console.log("[lr-map-viewer] highlightRegionByName failed: region item not found", {
|
|
77105
77118
|
targetToken: r,
|
|
77106
77119
|
regionDisplayNameList: i
|
|
@@ -77114,9 +77127,9 @@ var iY = {
|
|
|
77114
77127
|
layerName: a?.layerName || "",
|
|
77115
77128
|
entityId: a?.entityId || ""
|
|
77116
77129
|
});
|
|
77117
|
-
let o =
|
|
77130
|
+
let o = Dm(a);
|
|
77118
77131
|
if (!o) return console.log("[lr-map-viewer] highlightRegionByName failed: scene object not found", { displayName: a?.displayName || "" }), X.value = `区域高亮失败:未找到区域“${n}”对应模型`, !1;
|
|
77119
|
-
let s =
|
|
77132
|
+
let s = Mm(o, n), c = s.absoluteCenter, l = s.focused;
|
|
77120
77133
|
if (console.log("[lr-map-viewer] highlightRegionByName focus step", {
|
|
77121
77134
|
displayName: a?.displayName || "",
|
|
77122
77135
|
regionNodeName: o?.name || "",
|
|
@@ -77129,26 +77142,26 @@ var iY = {
|
|
|
77129
77142
|
hasAbsoluteCenter: !!c,
|
|
77130
77143
|
focusResult: l
|
|
77131
77144
|
}), X.value = `区域高亮失败:无法聚焦区域“${n}”`, !1;
|
|
77132
|
-
let u =
|
|
77145
|
+
let u = Am(a), d = Array.isArray(u?.children) ? u.children.length : 0;
|
|
77133
77146
|
if (console.log("[lr-map-viewer] highlightRegionByName outline step", {
|
|
77134
77147
|
displayName: a?.displayName || "",
|
|
77135
77148
|
outlineCreated: !!u,
|
|
77136
77149
|
outlineChildCount: d
|
|
77137
77150
|
}), !u) return console.log("[lr-map-viewer] highlightRegionByName failed: outline group not created", { displayName: a?.displayName || "" }), X.value = `区域高亮失败:区域“${n}”缺少可高亮轮廓`, !1;
|
|
77138
|
-
|
|
77139
|
-
let f =
|
|
77151
|
+
Om();
|
|
77152
|
+
let f = dm();
|
|
77140
77153
|
if (!f || typeof f.add != "function") return console.log("[lr-map-viewer] highlightRegionByName failed: outline scene missing", { displayName: a?.displayName || "" }), X.value = `区域高亮失败:区域“${n}”缺少可挂载场景`, !1;
|
|
77141
|
-
f.add(u), Ft = u,
|
|
77154
|
+
f.add(u), Ft = u, jm(u);
|
|
77142
77155
|
let p = Math.max(0, Number(t) || v6);
|
|
77143
77156
|
return typeof window < "u" && (It = window.setTimeout(() => {
|
|
77144
|
-
|
|
77157
|
+
Om();
|
|
77145
77158
|
}, p)), console.log("[lr-map-viewer] highlightRegionByName success", {
|
|
77146
77159
|
displayName: a?.displayName || "",
|
|
77147
77160
|
safeDuration: p,
|
|
77148
77161
|
outlineChildCount: d
|
|
77149
77162
|
}), X.value = `已高亮区域:${n}`, !0;
|
|
77150
77163
|
}
|
|
77151
|
-
function
|
|
77164
|
+
function Pm() {
|
|
77152
77165
|
return !Array.isArray(ps.value) || ps.value.length === 0 ? [] : ps.value.map((e) => ({
|
|
77153
77166
|
key: String(e?.key || ""),
|
|
77154
77167
|
displayName: String(e?.displayName || ""),
|
|
@@ -77162,15 +77175,15 @@ var iY = {
|
|
|
77162
77175
|
coordinates: Array.isArray(e?.coordinates) ? e.coordinates.map((e) => ({ ...e })) : []
|
|
77163
77176
|
}));
|
|
77164
77177
|
}
|
|
77165
|
-
function
|
|
77178
|
+
function Fm(e) {
|
|
77166
77179
|
return {
|
|
77167
77180
|
x: Number(e?.x),
|
|
77168
77181
|
y: Number(e?.y),
|
|
77169
77182
|
z: Number(e?.z)
|
|
77170
77183
|
};
|
|
77171
77184
|
}
|
|
77172
|
-
function
|
|
77173
|
-
let n =
|
|
77185
|
+
function Im(e, t) {
|
|
77186
|
+
let n = Fm(e), r = Fm(t);
|
|
77174
77187
|
return [
|
|
77175
77188
|
"{",
|
|
77176
77189
|
` cameraPos: {x: ${n.x}, y: ${n.y}, z: ${n.z}},`,
|
|
@@ -77178,7 +77191,7 @@ var iY = {
|
|
|
77178
77191
|
"}"
|
|
77179
77192
|
].join("\n");
|
|
77180
77193
|
}
|
|
77181
|
-
function
|
|
77194
|
+
function Lm(e, t = "icon") {
|
|
77182
77195
|
if (!e || typeof e != "object") return null;
|
|
77183
77196
|
let n = Ti(e.position) ? {
|
|
77184
77197
|
x: Number(e.position.x),
|
|
@@ -77196,28 +77209,28 @@ var iY = {
|
|
|
77196
77209
|
rawData: i
|
|
77197
77210
|
};
|
|
77198
77211
|
}
|
|
77199
|
-
function
|
|
77200
|
-
if (!
|
|
77201
|
-
let n =
|
|
77212
|
+
function Rm(e, t = "icon") {
|
|
77213
|
+
if (!ap(e)) return null;
|
|
77214
|
+
let n = Lm(e, t);
|
|
77202
77215
|
return n ? {
|
|
77203
77216
|
...n,
|
|
77204
|
-
videoId:
|
|
77217
|
+
videoId: op(e)
|
|
77205
77218
|
} : null;
|
|
77206
77219
|
}
|
|
77207
|
-
function
|
|
77208
|
-
let n = Re.value, r =
|
|
77220
|
+
function zm(e, t = "icon") {
|
|
77221
|
+
let n = Re.value, r = Lm(e, t);
|
|
77209
77222
|
return typeof n != "function" || !r ? !1 : (n(r), !0);
|
|
77210
77223
|
}
|
|
77211
|
-
function
|
|
77212
|
-
let n = Be.value, r =
|
|
77224
|
+
function Bm(e, t = "icon") {
|
|
77225
|
+
let n = Be.value, r = Rm(e, t);
|
|
77213
77226
|
if (typeof n != "function" || !r) return !1;
|
|
77214
77227
|
try {
|
|
77215
77228
|
return n(r), !0;
|
|
77216
77229
|
} catch (e) {
|
|
77217
|
-
return di(`视频测点点击回调执行失败:${
|
|
77230
|
+
return di(`视频测点点击回调执行失败:${Gp(e)}`), !1;
|
|
77218
77231
|
}
|
|
77219
77232
|
}
|
|
77220
|
-
function
|
|
77233
|
+
function Vm(e) {
|
|
77221
77234
|
let t = Le.value;
|
|
77222
77235
|
if (typeof t != "function" || !e) return !1;
|
|
77223
77236
|
let n = [
|
|
@@ -77231,7 +77244,7 @@ var iY = {
|
|
|
77231
77244
|
timestamp: r
|
|
77232
77245
|
}, t(e), !0);
|
|
77233
77246
|
}
|
|
77234
|
-
function
|
|
77247
|
+
function Hm() {
|
|
77235
77248
|
Ue.value?.();
|
|
77236
77249
|
let e = [];
|
|
77237
77250
|
if (fe.value) {
|
|
@@ -77239,8 +77252,8 @@ var iY = {
|
|
|
77239
77252
|
We.value !== null && window.clearTimeout(We.value), We.value = window.setTimeout(() => {
|
|
77240
77253
|
We.value = null;
|
|
77241
77254
|
try {
|
|
77242
|
-
let e =
|
|
77243
|
-
|
|
77255
|
+
let e = xm(Sj()?.selected, "click-fallback");
|
|
77256
|
+
Vm(e) && ui(`模型信息查询触发:${e?.name || e?.id || "未命名对象"}`);
|
|
77244
77257
|
} catch {}
|
|
77245
77258
|
}, 0);
|
|
77246
77259
|
};
|
|
@@ -77250,73 +77263,73 @@ var iY = {
|
|
|
77250
77263
|
e.forEach((e) => e()), We.value !== null && (window.clearTimeout(We.value), We.value = null);
|
|
77251
77264
|
};
|
|
77252
77265
|
}
|
|
77253
|
-
function
|
|
77266
|
+
function Um(e) {
|
|
77254
77267
|
if (e != null && typeof e != "function") throw Error("模型信息查询回调必须是函数");
|
|
77255
77268
|
return Le.value = typeof e == "function" ? e : null, Le.value !== null;
|
|
77256
77269
|
}
|
|
77257
|
-
function
|
|
77270
|
+
function Wm(e) {
|
|
77258
77271
|
if (e != null && typeof e != "function") throw Error("监测点点击回调必须是函数");
|
|
77259
77272
|
return Re.value = typeof e == "function" ? e : null, Re.value !== null;
|
|
77260
77273
|
}
|
|
77261
|
-
function
|
|
77274
|
+
function Gm(e) {
|
|
77262
77275
|
if (e != null && typeof e != "function") throw Error("事故点按钮点击回调必须是函数");
|
|
77263
77276
|
return Ve.value = typeof e == "function" ? e : null, Ve.value !== null;
|
|
77264
77277
|
}
|
|
77265
|
-
function
|
|
77278
|
+
function Km(e) {
|
|
77266
77279
|
if (e != null && typeof e != "function") throw Error("视频测点点击回调必须是函数");
|
|
77267
77280
|
return Be.value = typeof e == "function" ? e : null, Be.value !== null;
|
|
77268
77281
|
}
|
|
77269
|
-
function
|
|
77282
|
+
function qm(e) {
|
|
77270
77283
|
if (e != null && typeof e != "function") throw Error("水漫延参数变更回调必须是函数");
|
|
77271
77284
|
return He.value = typeof e == "function" ? e : null, He.value !== null;
|
|
77272
77285
|
}
|
|
77273
|
-
function qm() {
|
|
77274
|
-
return !zp.value || _i.value.length === 0 ? !1 : (Ye.value = !Ye.value, X.value = Ye.value ? "视角面板已显示" : "视角面板已隐藏", ui(X.value), !0);
|
|
77275
|
-
}
|
|
77276
77286
|
function Jm() {
|
|
77287
|
+
return !Bp.value || _i.value.length === 0 ? !1 : (Ye.value = !Ye.value, X.value = Ye.value ? "视角面板已显示" : "视角面板已隐藏", ui(X.value), !0);
|
|
77288
|
+
}
|
|
77289
|
+
function Ym() {
|
|
77277
77290
|
return Xe.value = !Xe.value, X.value = Xe.value ? "视角面板已置顶" : "视角面板已取消置顶", ui(X.value), Xe.value;
|
|
77278
77291
|
}
|
|
77279
|
-
function
|
|
77292
|
+
function Xm(e) {
|
|
77280
77293
|
return Ni(e) ? (Xe.value || (Ye.value = !1, X.value = "已切换视角并关闭视角面板", ui(X.value)), !0) : !1;
|
|
77281
77294
|
}
|
|
77282
|
-
function
|
|
77295
|
+
function Zm() {
|
|
77283
77296
|
let e = W.value;
|
|
77284
77297
|
return e ? ji(e, { onComplete: () => {
|
|
77285
77298
|
hi.value = "", X.value = "已切换视角:事故点", ui("已切换到事故点视角:接口视角"), fs();
|
|
77286
77299
|
} }) : (X.value = "事故点视角缺失,请先补充接口中的事故点视角配置", ui("事故点视角切换失败:视角接口中未找到 scene_name=事故点 的配置"), !1);
|
|
77287
77300
|
}
|
|
77288
|
-
function Zm() {
|
|
77289
|
-
return pt ? !1 : (pt = !0, Cf(O6, !0), Cf(N6, !0), Rs.value ? (zs.value && Pc(), !al.value && !il.value && Promise.resolve(bl()), !0) : (Rc(), !al.value && !il.value && Promise.resolve(bl()), !0));
|
|
77290
|
-
}
|
|
77291
77301
|
function Qm() {
|
|
77302
|
+
return pt ? !1 : (pt = !0, wf(O6, !0), wf(N6, !0), Rs.value ? (zs.value && Pc(), !al.value && !il.value && Promise.resolve(bl()), !0) : (Rc(), !al.value && !il.value && Promise.resolve(bl()), !0));
|
|
77303
|
+
}
|
|
77304
|
+
function $m() {
|
|
77292
77305
|
try {
|
|
77293
77306
|
Ve.value?.("OK");
|
|
77294
77307
|
} catch (e) {
|
|
77295
|
-
ui(`事故点按钮点击回调执行失败:${
|
|
77308
|
+
ui(`事故点按钮点击回调执行失败:${Gp(e)}`);
|
|
77296
77309
|
}
|
|
77297
|
-
if (Io.value) return
|
|
77310
|
+
if (Io.value) return Qm(), Zm();
|
|
77298
77311
|
let e = qt(), t = Jt(), n = Yt(), r = e ?? t;
|
|
77299
77312
|
return r ? os(r, {
|
|
77300
77313
|
coordinateSpace: e ? "relative" : "absolute",
|
|
77301
77314
|
pickObjectMatchInfo: n,
|
|
77302
77315
|
syncDefaultRange: !1
|
|
77303
|
-
}) ? (
|
|
77304
|
-
}
|
|
77305
|
-
function $m() {
|
|
77306
|
-
return Qm();
|
|
77316
|
+
}) ? (Qm(), Zm()) : !1 : (X.value = "事故点默认坐标缺失,请先补充当前矿井配置", ui("事故点生成失败:当前矿井缺少 accidentPointAbsolutePosition 配置"), !1);
|
|
77307
77317
|
}
|
|
77308
77318
|
function eh() {
|
|
77309
|
-
return
|
|
77319
|
+
return $m();
|
|
77310
77320
|
}
|
|
77311
77321
|
function th() {
|
|
77312
|
-
return
|
|
77313
|
-
|
|
77322
|
+
return Pp.value ? qe.value || Je.value ? (qe.value = !1, Je.value = !1, cd.value = {}, X.value = "调试面板已隐藏", ui(X.value), !0) : (qe.value = !0, Je.value = !1, je.value = !1, X.value = "调试面板已显示", ui(X.value), !0) : !1;
|
|
77323
|
+
}
|
|
77324
|
+
function nh() {
|
|
77325
|
+
return Pp.value ? (qe.value = !1, Je.value = !0, je.value = !1, Ln({ silent: !0 }).catch((e) => {
|
|
77326
|
+
di(`强排泵调试数据加载失败:${Gp(e)}`);
|
|
77314
77327
|
}), X.value = "调试面板已放大显示", ui(X.value), !0) : !1;
|
|
77315
77328
|
}
|
|
77316
77329
|
B([fe, K], () => {
|
|
77317
|
-
|
|
77330
|
+
Zp();
|
|
77318
77331
|
}, { immediate: !0 });
|
|
77319
|
-
async function
|
|
77332
|
+
async function rh(e) {
|
|
77320
77333
|
let t = Qq[e] ?? e, n = Ke.value[e];
|
|
77321
77334
|
if (!n) throw Error(`未找到手动加载类型: ${e}`);
|
|
77322
77335
|
if (n.loading) {
|
|
@@ -77335,7 +77348,7 @@ var iY = {
|
|
|
77335
77348
|
n.loading = !1;
|
|
77336
77349
|
}
|
|
77337
77350
|
}
|
|
77338
|
-
async function
|
|
77351
|
+
async function ih({ trigger: e = "manual", forceReload: t = !1 } = {}) {
|
|
77339
77352
|
if (ke.value) return ui("数据源正在加载,已忽略重复请求"), null;
|
|
77340
77353
|
if (Ae.value && !t) return ui("区域要素与巷道已加载,跳过重复请求"), null;
|
|
77341
77354
|
let n = e === "auto" ? "自动" : "手动";
|
|
@@ -77347,7 +77360,7 @@ var iY = {
|
|
|
77347
77360
|
ke.value = !1;
|
|
77348
77361
|
}
|
|
77349
77362
|
}
|
|
77350
|
-
async function
|
|
77363
|
+
async function ah(e) {
|
|
77351
77364
|
try {
|
|
77352
77365
|
let t = typeof e == "string" ? e : String(e?.type ?? "").trim(), n = e && typeof e == "object" ? e : null;
|
|
77353
77366
|
if (t === "resize") {
|
|
@@ -77366,7 +77379,7 @@ var iY = {
|
|
|
77366
77379
|
if (t === "copyCurrentSdkViewState") {
|
|
77367
77380
|
let e = Sj(), t = e?.camera?.position?.clone?.(), n = e?.controls?.center?.clone?.();
|
|
77368
77381
|
if (!t || !n) throw Error("当前 SDK 未提供可读取的 camera.position 或 controls.center");
|
|
77369
|
-
let r =
|
|
77382
|
+
let r = Im(t, n);
|
|
77370
77383
|
if (typeof navigator > "u" || !navigator.clipboard || typeof navigator.clipboard.writeText != "function") throw Error("当前环境不支持剪贴板复制");
|
|
77371
77384
|
await navigator.clipboard.writeText(r), ui("SDK 视口参数已复制到剪贴板"), ae.success("复制成功");
|
|
77372
77385
|
return;
|
|
@@ -77382,7 +77395,7 @@ var iY = {
|
|
|
77382
77395
|
return;
|
|
77383
77396
|
}
|
|
77384
77397
|
if (t === "datasource") {
|
|
77385
|
-
await
|
|
77398
|
+
await ih({ trigger: "manual" });
|
|
77386
77399
|
return;
|
|
77387
77400
|
}
|
|
77388
77401
|
if (t === "laneSize") {
|
|
@@ -77398,46 +77411,46 @@ var iY = {
|
|
|
77398
77411
|
return;
|
|
77399
77412
|
}
|
|
77400
77413
|
if (t === "regionAssist") {
|
|
77401
|
-
await
|
|
77414
|
+
await rh("regionAssist");
|
|
77402
77415
|
return;
|
|
77403
77416
|
}
|
|
77404
77417
|
if (t === "coalResvers") {
|
|
77405
|
-
await
|
|
77418
|
+
await rh("coalResvers");
|
|
77406
77419
|
return;
|
|
77407
77420
|
}
|
|
77408
77421
|
if (t === "boundary") {
|
|
77409
|
-
await
|
|
77422
|
+
await rh("boundary");
|
|
77410
77423
|
return;
|
|
77411
77424
|
}
|
|
77412
77425
|
if (t === "geology") {
|
|
77413
|
-
await
|
|
77426
|
+
await rh("geology");
|
|
77414
77427
|
return;
|
|
77415
77428
|
}
|
|
77416
77429
|
if (t === "pointSymbol") {
|
|
77417
|
-
await
|
|
77430
|
+
await rh("pointSymbol");
|
|
77418
77431
|
return;
|
|
77419
77432
|
}
|
|
77420
77433
|
if (t === "coal") {
|
|
77421
|
-
await
|
|
77434
|
+
await rh("coal");
|
|
77422
77435
|
return;
|
|
77423
77436
|
}
|
|
77424
77437
|
if (t === "geofault") {
|
|
77425
|
-
await
|
|
77438
|
+
await rh("geofault");
|
|
77426
77439
|
return;
|
|
77427
77440
|
}
|
|
77428
77441
|
} catch (e) {
|
|
77429
|
-
ui(`调试失败: ${
|
|
77442
|
+
ui(`调试失败: ${Gp(e)}`);
|
|
77430
77443
|
}
|
|
77431
77444
|
}
|
|
77432
|
-
function
|
|
77445
|
+
function oh() {
|
|
77433
77446
|
let e = typeof window < "u" ? window.lr3dapp : null, t = e?.editor;
|
|
77434
77447
|
return t?.renderer ?? e?.renderer ?? t?.manager?.get?.("renderer") ?? null;
|
|
77435
77448
|
}
|
|
77436
|
-
function
|
|
77449
|
+
function sh() {
|
|
77437
77450
|
typeof document > "u" || document.getElementById("viewHelper")?.remove?.();
|
|
77438
77451
|
}
|
|
77439
|
-
function
|
|
77440
|
-
let e =
|
|
77452
|
+
function ch() {
|
|
77453
|
+
let e = oh();
|
|
77441
77454
|
if (!e || typeof e.render != "function") return !1;
|
|
77442
77455
|
if (e.__lrMapViewerViewHelperDisabled === !0) return !0;
|
|
77443
77456
|
let t = e.render.bind(e);
|
|
@@ -77445,15 +77458,15 @@ var iY = {
|
|
|
77445
77458
|
if (e?.isViewHelper !== !0) return t(e, n, ...r);
|
|
77446
77459
|
}, e.__lrMapViewerViewHelperDisabled = !0, !0;
|
|
77447
77460
|
}
|
|
77448
|
-
function
|
|
77449
|
-
typeof window > "u" || (
|
|
77450
|
-
Dt = null,
|
|
77461
|
+
function lh() {
|
|
77462
|
+
typeof window > "u" || (sh(), ch(), Dt !== null && window.clearTimeout(Dt), Dt = window.setTimeout(() => {
|
|
77463
|
+
Dt = null, sh(), ch(), gj() && Ej();
|
|
77451
77464
|
}, 500));
|
|
77452
77465
|
}
|
|
77453
77466
|
return T(() => {
|
|
77454
|
-
Wt(`组件初始化版本号:${Zq}`), typeof window < "u" && (window.addEventListener("resize",
|
|
77467
|
+
Wt(`组件初始化版本号:${Zq}`), typeof window < "u" && (window.addEventListener("resize", _f), window.addEventListener("pointerdown", ff, !0)), fe.value?.addEventListener("pointerdown", cf, !0), fe.value?.addEventListener("pointermove", lf, !0), fe.value?.addEventListener("pointercancel", uf, !0), fe.value?.addEventListener("contextmenu", df, !0), fi(), lh();
|
|
77455
77468
|
}), D(() => {
|
|
77456
|
-
Nn(), Mn(), Mr(), Sr(), Nd(), Ld(), gd?.disconnect?.(), gd = null, typeof window < "u" && (window.removeEventListener("resize",
|
|
77469
|
+
Nn(), Mn(), Mr(), Sr(), Nd(), Ld(), gd?.disconnect?.(), gd = null, typeof window < "u" && (window.removeEventListener("resize", _f), window.removeEventListener("pointerdown", ff, !0), Dt !== null && (window.clearTimeout(Dt), Dt = null), Ot !== null && (window.clearTimeout(Ot), Ot = null)), fc(typeof window < "u" ? window.lr3dapp?.editor?.manager?.modules?.waterSimulation : null), Al.value = "", wl.value = [], Tl.value = "idle", El.value = "", Dl.value = {}, Om(), ku(), yi(), Cl(), ks(), As(), js(), Ue.value?.(), Jp(), Yp(), Zd(), cc({ restoreRangeSelection: !1 }), uc(), dc(), wu({ preserveStatus: !0 }), us({ preserveStatus: !0 }), ds({ preserveStatus: !0 }), ho({ clearItems: !0 }), Ss([]), Cs([]), ws(), Ds(), am(), fe.value?.removeEventListener("pointerdown", cf, !0), fe.value?.removeEventListener("pointermove", lf, !0), fe.value?.removeEventListener("pointercancel", uf, !0), fe.value?.removeEventListener("contextmenu", df, !0), mi();
|
|
77457
77470
|
}), n({
|
|
77458
77471
|
initMonitorPoints: Iu,
|
|
77459
77472
|
queryMonitorPointList: Lu,
|
|
@@ -77497,7 +77510,7 @@ var iY = {
|
|
|
77497
77510
|
setRangeSelectionByCoordinate: is,
|
|
77498
77511
|
setAccidentRangeSelection: as,
|
|
77499
77512
|
setAccidentRangeSelectionByCoordinate: os,
|
|
77500
|
-
triggerAccidentView:
|
|
77513
|
+
triggerAccidentView: eh,
|
|
77501
77514
|
setRangeSelectionRadius: ls,
|
|
77502
77515
|
clearRangeSelection: us,
|
|
77503
77516
|
getRangeSelectionResult: Ko,
|
|
@@ -77507,13 +77520,13 @@ var iY = {
|
|
|
77507
77520
|
startRangeSelectionCoordinatePick: ss,
|
|
77508
77521
|
startMonitorPointPlacement: Tu,
|
|
77509
77522
|
focusMonitorPoint: Gu,
|
|
77510
|
-
highlightRegionByName:
|
|
77511
|
-
getRegionList:
|
|
77512
|
-
getMonitorPointLegendTypes:
|
|
77513
|
-
registerMonitorPointLegendClick:
|
|
77514
|
-
setAllMonitorPointTypesVisible:
|
|
77515
|
-
setMonitorPointTypeVisible:
|
|
77516
|
-
setMonitorPointTypeNameVisible:
|
|
77523
|
+
highlightRegionByName: Nm,
|
|
77524
|
+
getRegionList: Pm,
|
|
77525
|
+
getMonitorPointLegendTypes: Sf,
|
|
77526
|
+
registerMonitorPointLegendClick: Of,
|
|
77527
|
+
setAllMonitorPointTypesVisible: Cf,
|
|
77528
|
+
setMonitorPointTypeVisible: wf,
|
|
77529
|
+
setMonitorPointTypeNameVisible: Tf,
|
|
77517
77530
|
setSurfaceMapVisible: Ud,
|
|
77518
77531
|
setPitSurfaceVisible: Gd,
|
|
77519
77532
|
setSceneFloatLabelsVisible: qd,
|
|
@@ -77526,11 +77539,11 @@ var iY = {
|
|
|
77526
77539
|
followCarTrack: Qa,
|
|
77527
77540
|
stopCarTrackFollow: $a,
|
|
77528
77541
|
moveView: Li,
|
|
77529
|
-
registerModelInfoQuery:
|
|
77530
|
-
registerPointClick:
|
|
77531
|
-
registerAccidentViewButtonClick:
|
|
77532
|
-
registerVideoMonitorClick:
|
|
77533
|
-
registerWaterSimulationParameterChange:
|
|
77542
|
+
registerModelInfoQuery: Um,
|
|
77543
|
+
registerPointClick: Wm,
|
|
77544
|
+
registerAccidentViewButtonClick: Gm,
|
|
77545
|
+
registerVideoMonitorClick: Km,
|
|
77546
|
+
registerWaterSimulationParameterChange: qm,
|
|
77534
77547
|
jumpRescueHoleDrillToDepth: Vr,
|
|
77535
77548
|
setActiveVideoMonitorIds: Au,
|
|
77536
77549
|
highlightVideoMonitor: ju,
|
|
@@ -77554,7 +77567,7 @@ var iY = {
|
|
|
77554
77567
|
}, [s("button", {
|
|
77555
77568
|
type: "button",
|
|
77556
77569
|
class: "lr3d-scene-quick-menu__item",
|
|
77557
|
-
onClick:
|
|
77570
|
+
onClick: sf
|
|
77558
77571
|
}, " 重新选择事故点 ")], 36)])) : a("", !0),
|
|
77559
77572
|
R(Rl).status === "idle" ? R(Wa)() ? (O(), o("div", HQ, [s("div", UQ, [n[49] ||= s("strong", null, "视角跟随中", -1), s("span", null, P(tf()), 1)]), s("button", {
|
|
77560
77573
|
type: "button",
|
|
@@ -77751,20 +77764,20 @@ var iY = {
|
|
|
77751
77764
|
class: S(["lr3d-water-prediction-overlay__label", { "lr3d-water-prediction-overlay__label--secondary": n > 0 }])
|
|
77752
77765
|
}, P(t), 3))), 128))], 2)])
|
|
77753
77766
|
], 14, F$))), 128))])) : a("", !0),
|
|
77754
|
-
R(ci) === "ready" &&
|
|
77767
|
+
R(ci) === "ready" && Zf.value.length > 0 ? (O(), o("div", p1, [(O(!0), o(t, null, M(Zf.value, (e) => (O(), o("div", {
|
|
77755
77768
|
key: `monitor-point-${e.viewId}`,
|
|
77756
77769
|
class: S(["lr3d-monitor-overlay__point", [e.iconMeta.modifierClass, {
|
|
77757
|
-
"lr3d-monitor-overlay__point--active": e.isActive ||
|
|
77770
|
+
"lr3d-monitor-overlay__point--active": e.isActive || Kf(e) || Jf(e),
|
|
77758
77771
|
"lr3d-monitor-overlay__point--video-active": e.isActiveVideoMonitor,
|
|
77759
77772
|
"lr3d-monitor-overlay__point--video-highlighted": e.isHighlightedVideoMonitor,
|
|
77760
77773
|
"lr3d-monitor-overlay__point--broadcast-highlighted": e.isHighlightedBroadcastMonitor,
|
|
77761
77774
|
"lr3d-monitor-overlay__point--focused-highlight": e.isFocusedHighlight
|
|
77762
77775
|
}]]),
|
|
77763
77776
|
style: C(e.screenStyle ?? { display: "none" }),
|
|
77764
|
-
onClick: ie((t) =>
|
|
77777
|
+
onClick: ie((t) => If(e), ["stop"])
|
|
77765
77778
|
}, [
|
|
77766
77779
|
e.isFocusedHighlight ? (O(), o("span", h1)) : a("", !0),
|
|
77767
|
-
|
|
77780
|
+
Mf(e) ? (O(), o("span", g1, P(e.name), 1)) : a("", !0),
|
|
77768
77781
|
s("span", {
|
|
77769
77782
|
class: S(["lr3d-monitor-overlay__badge", { "lr3d-monitor-overlay__badge--image": e.iconMeta.iconType === "image" }]),
|
|
77770
77783
|
"aria-label": e.type
|
|
@@ -77864,12 +77877,12 @@ var iY = {
|
|
|
77864
77877
|
"stroke-linejoin": "round",
|
|
77865
77878
|
"stroke-width": "1.8"
|
|
77866
77879
|
}, null, -1)
|
|
77867
|
-
]])) : (O(), o("svg", w1, [...n[73] ||= [c("<circle cx=\"12\" cy=\"12\" r=\"4\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" data-v-
|
|
77880
|
+
]])) : (O(), o("svg", w1, [...n[73] ||= [c("<circle cx=\"12\" cy=\"12\" r=\"4\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" data-v-03bc105c></circle><path d=\"M12 4V7\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" data-v-03bc105c></path><path d=\"M12 17V20\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" data-v-03bc105c></path><path d=\"M4 12H7\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" data-v-03bc105c></path><path d=\"M17 12H20\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" data-v-03bc105c></path>", 5)]]))], 10, _1),
|
|
77868
77881
|
R(ru) && e.isActive && R(eu) ? (O(), i(wP, {
|
|
77869
77882
|
key: 2,
|
|
77870
77883
|
title: R(eu).name,
|
|
77871
|
-
"type-label":
|
|
77872
|
-
"position-text":
|
|
77884
|
+
"type-label": cp(R(eu)),
|
|
77885
|
+
"position-text": Kp(R(eu).position),
|
|
77873
77886
|
"position-label": R(eu).isPlacementPreview ? "候选位置" : "空间位置",
|
|
77874
77887
|
"position-meta": R(eu).isPlacementPreview ? "待保存坐标" : "三维坐标",
|
|
77875
77888
|
"data-entries": R(nu),
|
|
@@ -77918,13 +77931,13 @@ var iY = {
|
|
|
77918
77931
|
type: "button",
|
|
77919
77932
|
class: S(["lr3d-monitor-legend__item lr3d-monitor-legend__item--all", { "lr3d-monitor-legend__item--inactive": !R(cu) }]),
|
|
77920
77933
|
"aria-pressed": R(cu) ? "true" : "false",
|
|
77921
|
-
onClick:
|
|
77934
|
+
onClick: kf
|
|
77922
77935
|
}, [s("span", F1, P(R(cu) ? "全不选" : "全选"), 1)], 10, P1), (O(!0), o(t, null, M(R(lu), (e) => (O(), o("button", {
|
|
77923
77936
|
key: `monitor-legend-${e.type}`,
|
|
77924
77937
|
type: "button",
|
|
77925
77938
|
class: S(["lr3d-monitor-legend__item", [e.iconMeta.modifierClass, { "lr3d-monitor-legend__item--inactive": !e.visible }]]),
|
|
77926
77939
|
"aria-pressed": e.visible ? "true" : "false",
|
|
77927
|
-
onClick: (t) =>
|
|
77940
|
+
onClick: (t) => Af(t, e.type)
|
|
77928
77941
|
}, [
|
|
77929
77942
|
e.iconMeta.iconType === "image" && (e.iconMeta.legendImageUrl || e.iconMeta.imageUrl) ? (O(), o("img", {
|
|
77930
77943
|
key: 0,
|
|
@@ -77942,9 +77955,9 @@ var iY = {
|
|
|
77942
77955
|
s("span", B1, P(e.label), 1),
|
|
77943
77956
|
Pe.value ? (O(), o("span", V1, P(e.count), 1)) : a("", !0),
|
|
77944
77957
|
s("span", {
|
|
77945
|
-
class: S(["lr3d-monitor-legend__name-toggle", { "lr3d-monitor-legend__name-toggle--active":
|
|
77946
|
-
"aria-label": `${e.label}${
|
|
77947
|
-
title: `${e.label}${
|
|
77958
|
+
class: S(["lr3d-monitor-legend__name-toggle", { "lr3d-monitor-legend__name-toggle--active": bf(e.type) }]),
|
|
77959
|
+
"aria-label": `${e.label}${bf(e.type) ? "关闭" : "开启"}名称显示`,
|
|
77960
|
+
title: `${e.label}${bf(e.type) ? "关闭" : "开启"}名称显示`,
|
|
77948
77961
|
"data-monitor-name-toggle": "true"
|
|
77949
77962
|
}, [...n[76] ||= [s("svg", {
|
|
77950
77963
|
class: "lr3d-monitor-legend__name-toggle-icon",
|
|
@@ -77972,16 +77985,16 @@ var iY = {
|
|
|
77972
77985
|
R(ci) === "ready" ? (O(), o("div", U1, [s("div", W1, [s("button", {
|
|
77973
77986
|
type: "button",
|
|
77974
77987
|
class: "lr3d-accident-view-button",
|
|
77975
|
-
onClick:
|
|
77988
|
+
onClick: $m
|
|
77976
77989
|
}, " 事故点 "), s("nav", G1, [
|
|
77977
|
-
|
|
77990
|
+
Pp.value ? (O(), o("button", {
|
|
77978
77991
|
key: 0,
|
|
77979
77992
|
type: "button",
|
|
77980
77993
|
class: S(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": qe.value || Je.value }]),
|
|
77981
77994
|
"aria-pressed": qe.value || Je.value ? "true" : "false",
|
|
77982
|
-
onClick:
|
|
77995
|
+
onClick: th
|
|
77983
77996
|
}, " 调试 ", 10, K1)) : a("", !0),
|
|
77984
|
-
|
|
77997
|
+
Ip.value ? (O(), o("button", {
|
|
77985
77998
|
key: 1,
|
|
77986
77999
|
type: "button",
|
|
77987
78000
|
class: S(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": R(Fl) }]),
|
|
@@ -77995,14 +78008,14 @@ var iY = {
|
|
|
77995
78008
|
"aria-pressed": rr.value ? "true" : "false",
|
|
77996
78009
|
onClick: Wr
|
|
77997
78010
|
}, " 救援孔 ", 10, J1)) : a("", !0),
|
|
77998
|
-
|
|
78011
|
+
Rp.value ? (O(), o("button", {
|
|
77999
78012
|
key: 3,
|
|
78000
78013
|
type: "button",
|
|
78001
78014
|
class: S(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": R(Ls) }]),
|
|
78002
78015
|
"aria-pressed": R(Ls) ? "true" : "false",
|
|
78003
78016
|
onClick: n[7] ||= (...e) => R(gc) && R(gc)(...e)
|
|
78004
78017
|
}, " 水漫延 ", 10, Y1)) : a("", !0),
|
|
78005
|
-
|
|
78018
|
+
zp.value ? (O(), o("button", {
|
|
78006
78019
|
key: 4,
|
|
78007
78020
|
type: "button",
|
|
78008
78021
|
class: S(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": R(il) || R(al) }]),
|
|
@@ -78010,28 +78023,28 @@ var iY = {
|
|
|
78010
78023
|
disabled: R(il),
|
|
78011
78024
|
onClick: n[8] ||= (...e) => R(bl) && R(bl)(...e)
|
|
78012
78025
|
}, P(R(il) ? "生成中" : R(al) ? "清除线路" : "避灾线路"), 11, X1)) : a("", !0),
|
|
78013
|
-
|
|
78026
|
+
Bp.value && R(_i).length > 0 ? (O(), o("button", {
|
|
78014
78027
|
key: 5,
|
|
78015
78028
|
type: "button",
|
|
78016
78029
|
class: S(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": Ye.value }]),
|
|
78017
78030
|
"aria-pressed": Ye.value ? "true" : "false",
|
|
78018
|
-
onClick:
|
|
78031
|
+
onClick: Jm
|
|
78019
78032
|
}, " 视角 ", 10, Z1)) : a("", !0),
|
|
78020
|
-
|
|
78033
|
+
Fp.value ? (O(), o("button", {
|
|
78021
78034
|
key: 6,
|
|
78022
78035
|
type: "button",
|
|
78023
78036
|
class: S(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": je.value }]),
|
|
78024
78037
|
"aria-pressed": je.value ? "true" : "false",
|
|
78025
78038
|
onClick: Xi
|
|
78026
78039
|
}, " 场景 ", 10, Q1)) : a("", !0),
|
|
78027
|
-
|
|
78040
|
+
Bp.value && R(gi) ? (O(), o("button", {
|
|
78028
78041
|
key: 7,
|
|
78029
78042
|
type: "button",
|
|
78030
78043
|
class: "lr3d-toolbar__button",
|
|
78031
78044
|
onClick: n[9] ||= (...e) => R(Pi) && R(Pi)(...e)
|
|
78032
78045
|
}, " 全景俯视 ")) : a("", !0)
|
|
78033
|
-
])]), Se.value ||
|
|
78034
|
-
|
|
78046
|
+
])]), Se.value || Rp.value && R(Ls) || Bp.value && R(_i).length > 0 && Ye.value || zp.value && R(rl) ? (O(), o("div", $1, [
|
|
78047
|
+
Bp.value && R(_i).length > 0 && Ye.value ? (O(), i(TZ, {
|
|
78035
78048
|
key: 0,
|
|
78036
78049
|
visible: !0,
|
|
78037
78050
|
"view-points": R(_i),
|
|
@@ -78039,9 +78052,9 @@ var iY = {
|
|
|
78039
78052
|
"active-view-point-name": R(vi),
|
|
78040
78053
|
"is-refreshing": od.value,
|
|
78041
78054
|
"is-pinned": Xe.value,
|
|
78042
|
-
onSelect:
|
|
78055
|
+
onSelect: Xm,
|
|
78043
78056
|
onRefresh: zn,
|
|
78044
|
-
onTogglePin:
|
|
78057
|
+
onTogglePin: Ym
|
|
78045
78058
|
}, null, 8, [
|
|
78046
78059
|
"view-points",
|
|
78047
78060
|
"active-view-point-key",
|
|
@@ -78049,7 +78062,7 @@ var iY = {
|
|
|
78049
78062
|
"is-refreshing",
|
|
78050
78063
|
"is-pinned"
|
|
78051
78064
|
])) : a("", !0),
|
|
78052
|
-
|
|
78065
|
+
Rp.value && R(Ls) ? (O(), i(PQ, {
|
|
78053
78066
|
key: 1,
|
|
78054
78067
|
visible: !0,
|
|
78055
78068
|
"flow-rate": R(Bs),
|
|
@@ -78146,7 +78159,7 @@ var iY = {
|
|
|
78146
78159
|
"secondary-action-text",
|
|
78147
78160
|
"is-secondary-action-disabled"
|
|
78148
78161
|
])) : a("", !0),
|
|
78149
|
-
|
|
78162
|
+
zp.value && R(rl) ? (O(), i(cX, {
|
|
78150
78163
|
key: 3,
|
|
78151
78164
|
visible: !0,
|
|
78152
78165
|
"is-computing": R(il),
|
|
@@ -78189,7 +78202,7 @@ var iY = {
|
|
|
78189
78202
|
s("div", u0, [n[79] ||= s("span", null, "静水位标高", -1), s("strong", null, P(e.staticWaterLevelElevationText), 1)]),
|
|
78190
78203
|
s("div", d0, [n[80] ||= s("span", null, "时间", -1), s("strong", null, P(e.observationDateText), 1)])
|
|
78191
78204
|
])], 8, a0)]))), 128))]))])])])) : a("", !0),
|
|
78192
|
-
R(ci) === "ready" && (
|
|
78205
|
+
R(ci) === "ready" && (Vp.value || Ip.value) ? (O(), o("div", f0, [Vp.value && R(ci) === "ready" ? (O(), i(fZ, {
|
|
78193
78206
|
key: 0,
|
|
78194
78207
|
visible: !0,
|
|
78195
78208
|
expanded: Y.value,
|
|
@@ -78224,7 +78237,7 @@ var iY = {
|
|
|
78224
78237
|
"onToggleLanes",
|
|
78225
78238
|
"onRegionVisibilityChange",
|
|
78226
78239
|
"onLaneVisibilityChange"
|
|
78227
|
-
])) : a("", !0),
|
|
78240
|
+
])) : a("", !0), Ip.value && R(Fl) ? (O(), o("aside", p0, [
|
|
78228
78241
|
s("div", {
|
|
78229
78242
|
ref_key: "monitorPointTabsRef",
|
|
78230
78243
|
ref: kl,
|
|
@@ -78296,7 +78309,7 @@ var iY = {
|
|
|
78296
78309
|
key: 0,
|
|
78297
78310
|
type: "button",
|
|
78298
78311
|
class: "lr3d-monitor-panel__filter-toggle",
|
|
78299
|
-
onClick:
|
|
78312
|
+
onClick: hf
|
|
78300
78313
|
}, P(Ju.value ? "收起" : "展开"), 1)) : a("", !0)]),
|
|
78301
78314
|
s("div", {
|
|
78302
78315
|
ref_key: "monitorPointTypeFilterOptionsRef",
|
|
@@ -78340,11 +78353,11 @@ var iY = {
|
|
|
78340
78353
|
R(ua).rawItems.length > 0 ? (O(), o("div", L0, [(O(!0), o(t, null, M(R(ua).rawItems, (e, t) => (O(), o("article", {
|
|
78341
78354
|
key: `${R(ua).cardId}-${e.station_id || t}-${e.station_time || t}`,
|
|
78342
78355
|
class: S(["lr3d-person-track-panel__item", { "lr3d-person-track-panel__item--active": R(ua).currentRawIndex === t }])
|
|
78343
|
-
}, [s("div", R0, [s("strong", null, P(
|
|
78344
|
-
s("div", B0, [n[88] ||= s("span", null, "停留时长", -1), s("strong", null, P(
|
|
78345
|
-
s("div", V0, [n[89] ||= s("span", null, "站点编码", -1), s("strong", null, P(
|
|
78346
|
-
s("div", H0, [n[90] ||= s("span", null, "位置名称", -1), s("strong", null, P(
|
|
78347
|
-
s("div", U0, [n[91] ||= s("span", null, "三维坐标", -1), s("strong", null, P(
|
|
78356
|
+
}, [s("div", R0, [s("strong", null, P(zf(e.station_name ?? e.location)), 1), s("span", null, P(zf(e.station_time)), 1)]), s("div", z0, [
|
|
78357
|
+
s("div", B0, [n[88] ||= s("span", null, "停留时长", -1), s("strong", null, P(zf(e.duration)), 1)]),
|
|
78358
|
+
s("div", V0, [n[89] ||= s("span", null, "站点编码", -1), s("strong", null, P(zf(e.station_id)), 1)]),
|
|
78359
|
+
s("div", H0, [n[90] ||= s("span", null, "位置名称", -1), s("strong", null, P(zf(e.location)), 1)]),
|
|
78360
|
+
s("div", U0, [n[91] ||= s("span", null, "三维坐标", -1), s("strong", null, P(zf(e.coordinates)), 1)])
|
|
78348
78361
|
])], 2))), 128))])) : a("", !0)
|
|
78349
78362
|
], 64)) : R(ql) ? (O(), o(t, { key: 1 }, [
|
|
78350
78363
|
s("div", { class: S(["lr3d-monitor-panel__state", { "lr3d-monitor-panel__state--error": !!R(pa).loadError }]) }, P(R(xa)), 3),
|
|
@@ -78372,19 +78385,19 @@ var iY = {
|
|
|
78372
78385
|
R(pa).rawItems.length > 0 ? (O(), o("div", Z0, [(O(!0), o(t, null, M(R(pa).rawItems, (e, t) => (O(), o("article", {
|
|
78373
78386
|
key: `${R(pa).personCard}-${e.station_code || t}-${e.data_time || t}`,
|
|
78374
78387
|
class: S(["lr3d-person-track-panel__item", { "lr3d-person-track-panel__item--active": R(pa).currentRawIndex === e.rawIndex }])
|
|
78375
|
-
}, [s("div", Q0, [s("strong", null, P(
|
|
78376
|
-
s("div", e2, [n[92] ||= s("span", null, "站点编码", -1), s("strong", null, P(
|
|
78377
|
-
s("div", t2, [n[93] ||= s("span", null, "入库时间", -1), s("strong", null, P(
|
|
78378
|
-
s("div", n2, [n[94] ||= s("span", null, "定位卡号", -1), s("strong", null, P(
|
|
78379
|
-
s("div", r2, [n[95] ||= s("span", null, "三维坐标", -1), s("strong", null, P(
|
|
78388
|
+
}, [s("div", Q0, [s("strong", null, P(zf(e.station_name)), 1), s("span", null, P(zf(e.data_time ?? e.station_entertime)), 1)]), s("div", $0, [
|
|
78389
|
+
s("div", e2, [n[92] ||= s("span", null, "站点编码", -1), s("strong", null, P(zf(e.station_code)), 1)]),
|
|
78390
|
+
s("div", t2, [n[93] ||= s("span", null, "入库时间", -1), s("strong", null, P(zf(e.insert_time)), 1)]),
|
|
78391
|
+
s("div", n2, [n[94] ||= s("span", null, "定位卡号", -1), s("strong", null, P(zf(e.person_card)), 1)]),
|
|
78392
|
+
s("div", r2, [n[95] ||= s("span", null, "三维坐标", -1), s("strong", null, P(zf(e.playbackCoordinatesText)), 1)])
|
|
78380
78393
|
])], 2))), 128))])) : a("", !0)
|
|
78381
78394
|
], 64)) : R(Xl) ? (O(), o("div", i2, " 正在读取监测点数据... ")) : R(Tl) === "error" ? (O(), o("div", a2, " 监测点数据加载失败:" + P(R(El)), 1)) : R(Ul) ? (O(), o(t, { key: 5 }, [R(Zl) ? (O(), o("div", s2, " 其余监测点数据仍在加载,已返回的数据先展示。 ")) : a("", !0), s("ul", c2, [(O(!0), o(t, null, M(R(Ql), (e) => (O(), o("li", {
|
|
78382
78395
|
key: e.viewId,
|
|
78383
78396
|
class: "lr3d-monitor-panel__item lr3d-monitor-panel__item--clickable",
|
|
78384
78397
|
onClick: (t) => R(Cu)(e)
|
|
78385
78398
|
}, [
|
|
78386
|
-
s("div", u2, [s("strong", null, P(
|
|
78387
|
-
|
|
78399
|
+
s("div", u2, [s("strong", null, P(Uf(e) ? yp(e) : e.name), 1), s("div", d2, [
|
|
78400
|
+
Uf(e) ? (O(), o("button", {
|
|
78388
78401
|
key: 0,
|
|
78389
78402
|
type: "button",
|
|
78390
78403
|
class: "lr3d-monitor-panel__compact-button lr3d-monitor-panel__compact-button--track",
|
|
@@ -78392,7 +78405,7 @@ var iY = {
|
|
|
78392
78405
|
title: e.cardId ? "查询并打开当前人员轨迹面板" : "当前人员缺少卡号,无法查询轨迹",
|
|
78393
78406
|
onClick: ie((t) => R(Fa)(e), ["stop"])
|
|
78394
78407
|
}, P(R(ua).loading && R(ua).sceneId === String(e.personSceneId) ? "查询中" : "轨迹播放"), 9, f2)) : a("", !0),
|
|
78395
|
-
|
|
78408
|
+
rp(e) ? (O(), o("button", {
|
|
78396
78409
|
key: 1,
|
|
78397
78410
|
type: "button",
|
|
78398
78411
|
class: "lr3d-monitor-panel__compact-button lr3d-monitor-panel__compact-button--track",
|
|
@@ -78400,13 +78413,13 @@ var iY = {
|
|
|
78400
78413
|
title: e.personCard ? "查询并打开当前车辆轨迹面板" : "当前车辆缺少定位卡号,无法查询轨迹",
|
|
78401
78414
|
onClick: ie((t) => R(Ga)(e), ["stop"])
|
|
78402
78415
|
}, P(R(pa).loading && R(pa).sceneId === String(e.carSceneId) ? "查询中" : "轨迹播放"), 9, p2)) : a("", !0),
|
|
78403
|
-
|
|
78416
|
+
tp(e) && Ff(e) ? (O(), o("button", {
|
|
78404
78417
|
key: 2,
|
|
78405
78418
|
type: "button",
|
|
78406
78419
|
class: "lr3d-monitor-panel__placement-button lr3d-monitor-panel__placement-button--clear",
|
|
78407
78420
|
"aria-label": "清除坐标",
|
|
78408
|
-
disabled:
|
|
78409
|
-
title:
|
|
78421
|
+
disabled: !!$f(e) || !Ff(e) || R(Rl).status === "saving",
|
|
78422
|
+
title: $f(e) || (Ff(e) ? "清除坐标" : "当前测点没有可清除的有效坐标"),
|
|
78410
78423
|
onClick: ie((t) => R(Du)(e), ["stop"])
|
|
78411
78424
|
}, [...n[96] ||= [s("svg", {
|
|
78412
78425
|
viewBox: "0 0 24 24",
|
|
@@ -78419,13 +78432,13 @@ var iY = {
|
|
|
78419
78432
|
"stroke-linejoin": "round",
|
|
78420
78433
|
"stroke-width": "1.8"
|
|
78421
78434
|
})], -1)]], 8, m2)) : a("", !0),
|
|
78422
|
-
|
|
78435
|
+
tp(e) ? (O(), o("button", {
|
|
78423
78436
|
key: 3,
|
|
78424
78437
|
type: "button",
|
|
78425
|
-
class: S(["lr3d-monitor-panel__placement-button", [
|
|
78426
|
-
"aria-label":
|
|
78427
|
-
disabled:
|
|
78428
|
-
title:
|
|
78438
|
+
class: S(["lr3d-monitor-panel__placement-button", [Ff(e) ? "lr3d-monitor-panel__placement-button--placed" : "lr3d-monitor-panel__placement-button--empty", { "lr3d-monitor-panel__placement-button--active": R(Rl).targetItem?.viewId === e.viewId && R(Rl).status !== "idle" }]]),
|
|
78439
|
+
"aria-label": Ff(e) ? "重新布点" : "布点",
|
|
78440
|
+
disabled: !ep(e),
|
|
78441
|
+
title: $f(e) || (Ff(e) ? "重新布点" : "布点"),
|
|
78429
78442
|
onClick: ie((t) => R(Eu)(e), ["stop"])
|
|
78430
78443
|
}, [...n[97] ||= [s("svg", {
|
|
78431
78444
|
viewBox: "0 0 24 24",
|
|
@@ -78443,32 +78456,32 @@ var iY = {
|
|
|
78443
78456
|
fill: "currentColor"
|
|
78444
78457
|
})], -1)]], 10, h2)) : a("", !0)
|
|
78445
78458
|
])]),
|
|
78446
|
-
!
|
|
78447
|
-
|
|
78459
|
+
!Uf(e) && !ap(e) ? (O(), o("p", g2, P(sp(e)), 1)) : a("", !0),
|
|
78460
|
+
Bf(e) ? (O(), o("div", _2, [s("div", v2, [n[98] ||= s("span", { class: "lr3d-monitor-panel__safety-label" }, "测点值", -1), s("strong", y2, P(lp(e)), 1)]), s("div", b2, [n[99] ||= s("span", { class: "lr3d-monitor-panel__safety-label" }, "更新时间", -1), s("strong", x2, P(zf(e.data_time)), 1)])])) : Vf(e) ? (O(), o("div", S2, [s("div", C2, [n[100] ||= s("span", { class: "lr3d-monitor-panel__hydrology-label" }, "监测值", -1), s("strong", w2, P(dp(e)), 1)]), s("div", T2, [s("div", E2, [n[101] ||= s("span", null, "数据时间", -1), s("strong", null, P(zf(e.data_time ?? e.sj)), 1)]), s("div", D2, [n[102] ||= s("span", null, "状态", -1), s("strong", O2, P(zf(e.state)), 1)])])])) : Uf(e) ? (O(), o("div", k2, [s("div", A2, [(O(!0), o(t, null, M(bp(e), ([t, n]) => (O(), o("div", {
|
|
78448
78461
|
key: `${e.viewId}-${t}`,
|
|
78449
78462
|
class: "lr3d-monitor-panel__person-metric"
|
|
78450
|
-
}, [s("span", j2, P(t), 1), s("strong", M2, P(n), 1)]))), 128))])])) :
|
|
78463
|
+
}, [s("span", j2, P(t), 1), s("strong", M2, P(n), 1)]))), 128))])])) : Wf(e) ? (O(), o("div", N2, [s("div", P2, [(O(!0), o(t, null, M(xp(e), ([t, n]) => (O(), o("div", {
|
|
78451
78464
|
key: `${e.viewId}-${t}`,
|
|
78452
78465
|
class: "lr3d-monitor-panel__person-metric"
|
|
78453
|
-
}, [s("span", F2, P(t), 1), s("strong", I2, P(n), 1)]))), 128))])])) :
|
|
78466
|
+
}, [s("span", F2, P(t), 1), s("strong", I2, P(n), 1)]))), 128))])])) : ap(e) ? (O(), o("div", L2, [(O(!0), o(t, null, M(Nf(e), ([t, n]) => (O(), o("span", {
|
|
78454
78467
|
key: `${e.viewId}-${t}`,
|
|
78455
78468
|
class: "lr3d-monitor-panel__item-chip"
|
|
78456
|
-
}, P(t) + ":" + P(n), 1))), 128))])) :
|
|
78469
|
+
}, P(t) + ":" + P(n), 1))), 128))])) : Hf(e) ? (O(), o("div", R2, [s("div", z2, [(O(!0), o(t, null, M(gp(e), ([t, n]) => (O(), o("div", {
|
|
78457
78470
|
key: `${e.viewId}-${t}`,
|
|
78458
78471
|
class: "lr3d-monitor-panel__bundle-summary-item"
|
|
78459
|
-
}, [s("span", B2, P(t), 1), s("strong", V2, P(n), 1)]))), 128))]), s("div", H2, [(O(!0), o(t, null, M(
|
|
78472
|
+
}, [s("span", B2, P(t), 1), s("strong", V2, P(n), 1)]))), 128))]), s("div", H2, [(O(!0), o(t, null, M(_p(e), ([t, n]) => (O(), o("div", {
|
|
78460
78473
|
key: `${e.viewId}-${t}`,
|
|
78461
78474
|
class: "lr3d-monitor-panel__bundle-metric"
|
|
78462
|
-
}, [s("span", U2, P(t), 1), s("strong", W2, P(n), 1)]))), 128))])])) :
|
|
78475
|
+
}, [s("span", U2, P(t), 1), s("strong", W2, P(n), 1)]))), 128))])])) : rp(e) ? (O(), o("div", G2, [s("div", K2, [(O(!0), o(t, null, M(Tp(e), ([t, n]) => (O(), o("div", {
|
|
78463
78476
|
key: `${e.viewId}-${t}`,
|
|
78464
78477
|
class: "lr3d-monitor-panel__car-metric"
|
|
78465
|
-
}, [s("span", q2, P(t), 1), s("strong", J2, P(n), 1)]))), 128))])])) :
|
|
78478
|
+
}, [s("span", q2, P(t), 1), s("strong", J2, P(n), 1)]))), 128))])])) : ip(e) ? (O(), o("div", Y2, [s("div", X2, [(O(!0), o(t, null, M(Op(e), ([t, n]) => (O(), o("div", {
|
|
78466
78479
|
key: `${e.viewId}-${t}`,
|
|
78467
78480
|
class: "lr3d-monitor-panel__broadcast-summary-item"
|
|
78468
|
-
}, [s("span", Z2, P(t), 1), s("strong", Q2, P(n), 1)]))), 128))]), s("div", $2, [(O(!0), o(t, null, M(
|
|
78481
|
+
}, [s("span", Z2, P(t), 1), s("strong", Q2, P(n), 1)]))), 128))]), s("div", $2, [(O(!0), o(t, null, M(kp(e), ([t, n]) => (O(), o("div", {
|
|
78469
78482
|
key: `${e.viewId}-${t}`,
|
|
78470
78483
|
class: "lr3d-monitor-panel__broadcast-metric"
|
|
78471
|
-
}, [s("span", e4, P(t), 1), s("strong", t4, P(n), 1)]))), 128))])])) : (O(), o("div", n4, [(O(!0), o(t, null, M(
|
|
78484
|
+
}, [s("span", e4, P(t), 1), s("strong", t4, P(n), 1)]))), 128))])])) : (O(), o("div", n4, [(O(!0), o(t, null, M($p(e), ([t, n]) => (O(), o("span", {
|
|
78472
78485
|
key: `${e.viewId}-${t}`,
|
|
78473
78486
|
class: "lr3d-monitor-panel__item-chip"
|
|
78474
78487
|
}, P(t) + ":" + P(n), 1))), 128))]))
|
|
@@ -78489,17 +78502,17 @@ var iY = {
|
|
|
78489
78502
|
}, " 下一页 ", 8, c4)
|
|
78490
78503
|
])) : a("", !0)])
|
|
78491
78504
|
])) : a("", !0)])) : a("", !0),
|
|
78492
|
-
|
|
78505
|
+
Pp.value && qe.value ? (O(), i(dY, {
|
|
78493
78506
|
key: 17,
|
|
78494
78507
|
visible: !0,
|
|
78495
78508
|
"debug-coordinate-pick-enabled": K.value,
|
|
78496
78509
|
"debug-monitor-legend-count-visible": Pe.value,
|
|
78497
|
-
"onUpdate:debugCoordinatePickEnabled":
|
|
78510
|
+
"onUpdate:debugCoordinatePickEnabled": Qp,
|
|
78498
78511
|
"onUpdate:debugMonitorLegendCountVisible": n[43] ||= (e) => Pe.value = e,
|
|
78499
|
-
onExecuteAction:
|
|
78500
|
-
onExpand:
|
|
78512
|
+
onExecuteAction: ah,
|
|
78513
|
+
onExpand: nh
|
|
78501
78514
|
}, null, 8, ["debug-coordinate-pick-enabled", "debug-monitor-legend-count-visible"])) : a("", !0),
|
|
78502
|
-
|
|
78515
|
+
Pp.value && Je.value ? (O(), i($Y, {
|
|
78503
78516
|
key: 18,
|
|
78504
78517
|
visible: !0,
|
|
78505
78518
|
"debug-scene-background-color": me.value,
|
|
@@ -78515,10 +78528,10 @@ var iY = {
|
|
|
78515
78528
|
"onUpdate:debugToolName": n[45] ||= (e) => pe.value = e,
|
|
78516
78529
|
"onUpdate:debugLaneWidth": n[46] ||= (e) => he.value = e,
|
|
78517
78530
|
"onUpdate:debugLaneHeight": n[47] ||= (e) => G.value = e,
|
|
78518
|
-
"onUpdate:debugCoordinatePickEnabled":
|
|
78531
|
+
"onUpdate:debugCoordinatePickEnabled": Qp,
|
|
78519
78532
|
"onUpdate:debugMonitorLegendCountVisible": n[48] ||= (e) => Pe.value = e,
|
|
78520
|
-
onSceneBackgroundInput:
|
|
78521
|
-
onExecuteAction:
|
|
78533
|
+
onSceneBackgroundInput: Wp,
|
|
78534
|
+
onExecuteAction: ah
|
|
78522
78535
|
}, null, 8, [
|
|
78523
78536
|
"debug-scene-background-color",
|
|
78524
78537
|
"manual-load-state",
|
|
@@ -78530,7 +78543,7 @@ var iY = {
|
|
|
78530
78543
|
"strong-pump-debug-items",
|
|
78531
78544
|
"debug-action-log"
|
|
78532
78545
|
])) : a("", !0),
|
|
78533
|
-
|
|
78546
|
+
Pp.value && je.value ? (O(), i(YX, {
|
|
78534
78547
|
key: 19,
|
|
78535
78548
|
visible: !0,
|
|
78536
78549
|
scenes: ot.value,
|
|
@@ -78559,7 +78572,7 @@ var iY = {
|
|
|
78559
78572
|
R(ci) === "error" ? (O(), o("div", u4, [...n[104] ||= [s("p", null, "最小初始化未完成", -1), s("small", null, "请根据状态信息检查 SDK 依赖或资源路径", -1)]])) : a("", !0)
|
|
78560
78573
|
])])]));
|
|
78561
78574
|
}
|
|
78562
|
-
}, [["__scopeId", "data-v-
|
|
78575
|
+
}, [["__scopeId", "data-v-03bc105c"]]), F6 = { class: "lr-map-viewer" }, I6 = { class: "lr-map-viewer__stack" }, L6 = /* @__PURE__ */ nP({
|
|
78563
78576
|
__name: "LrMapViewer",
|
|
78564
78577
|
props: {
|
|
78565
78578
|
mode: {
|