@zhangdali1996/lr-map-viewer 0.0.54 → 0.0.56
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 +1490 -1374
- package/package.json +1 -1
package/dist/lr-map-viewer.js
CHANGED
|
@@ -21,7 +21,7 @@ var re = Object.create, ie = Object.defineProperty, ae = Object.getOwnPropertyDe
|
|
|
21
21
|
}) : n, e)), de = {
|
|
22
22
|
name: "@zhangdali1996/lr-map-viewer",
|
|
23
23
|
private: !1,
|
|
24
|
-
version: "0.0.
|
|
24
|
+
version: "0.0.55",
|
|
25
25
|
type: "module",
|
|
26
26
|
files: ["dist"],
|
|
27
27
|
main: "./dist/lr-map-viewer.js",
|
|
@@ -50874,7 +50874,7 @@ async function Fw(e, t) {
|
|
|
50874
50874
|
//#endregion
|
|
50875
50875
|
//#region src/config/internal-auth.js
|
|
50876
50876
|
var Iw = Object.freeze({
|
|
50877
|
-
gis_server_url: "
|
|
50877
|
+
gis_server_url: "http://10.10.100.238:8080/",
|
|
50878
50878
|
map_server_url: "http://39.102.163.10:8046/",
|
|
50879
50879
|
encrypted_username: "v1.2ldvmF3QC8ykmQw40Ujrbw.da23OWqsH0AfO-Vd.-I0TyJ1x4yJIylQhL9Mu7QvHbjKtt_Mh",
|
|
50880
50880
|
encrypted_password: "v1.pm4cyIjOtVwnv7Z9GoQbmw.SjI4wfy8N4D_3EW3.XVM3o28I0CPMkSfO6H6JaPGxR8A-LssrXNlleg"
|
|
@@ -54148,7 +54148,7 @@ async function Gj(e = {}) {
|
|
|
54148
54148
|
//#endregion
|
|
54149
54149
|
//#region src/config/mine-presets.js
|
|
54150
54150
|
var Kj = Object.freeze({
|
|
54151
|
-
CAOJIATAN: "
|
|
54151
|
+
CAOJIATAN: "610802024",
|
|
54152
54152
|
YUHUA: "610000060000020",
|
|
54153
54153
|
CHENJIASHAN: "610204006"
|
|
54154
54154
|
});
|
|
@@ -54171,7 +54171,7 @@ var Xj = Object.freeze([
|
|
|
54171
54171
|
{
|
|
54172
54172
|
orgId: Kj.CAOJIATAN,
|
|
54173
54173
|
name: "曹家滩",
|
|
54174
|
-
gisDrawingId: "
|
|
54174
|
+
gisDrawingId: "39d77713-3ce3-478b-95f5-f3e642453e7c",
|
|
54175
54175
|
map2dConfig: {
|
|
54176
54176
|
behavior: {
|
|
54177
54177
|
autoInitLayer: !0,
|
|
@@ -54179,7 +54179,7 @@ var Xj = Object.freeze([
|
|
|
54179
54179
|
captureLayerTree: !0
|
|
54180
54180
|
},
|
|
54181
54181
|
options: {
|
|
54182
|
-
ygis_dsGuid: "
|
|
54182
|
+
ygis_dsGuid: "39d77713-3ce3-478b-95f5-f3e642453e7c",
|
|
54183
54183
|
showAllLayers: !0,
|
|
54184
54184
|
layerName: "临时使用^采掘图-曹家滩",
|
|
54185
54185
|
extent: "37387406.255664,4283304.827622,37404452.423273,4285228.356360",
|
|
@@ -54199,7 +54199,7 @@ var Xj = Object.freeze([
|
|
|
54199
54199
|
height: 10
|
|
54200
54200
|
},
|
|
54201
54201
|
layers: ["三维巷道中心线CJTK0220CSW"],
|
|
54202
|
-
dsGuid: "
|
|
54202
|
+
dsGuid: "39d77713-3ce3-478b-95f5-f3e642453e7c",
|
|
54203
54203
|
basePoint: {
|
|
54204
54204
|
x: 37402616.374956,
|
|
54205
54205
|
y: 4276407.346051,
|
|
@@ -63839,79 +63839,85 @@ function jW(e = {}) {
|
|
|
63839
63839
|
x: 36573561.39,
|
|
63840
63840
|
y: 3896389.7,
|
|
63841
63841
|
z: 1046.7
|
|
63842
|
-
}), r = A(!1), i = A(!1), a = A(!1), o = A([]), s = A(""), c = 0, l = 0;
|
|
63843
|
-
function
|
|
63842
|
+
}), r = A(!1), i = A(!1), a = A(!1), o = A([]), s = A(""), c = 0, l = 0, u = [], d = [];
|
|
63843
|
+
function f(t) {
|
|
63844
63844
|
e.workfacePanelStatus && (e.workfacePanelStatus.value = t);
|
|
63845
63845
|
}
|
|
63846
|
-
function
|
|
63846
|
+
function p(t) {
|
|
63847
63847
|
typeof e.setDebugLog == "function" && e.setDebugLog(t);
|
|
63848
63848
|
}
|
|
63849
|
-
function
|
|
63849
|
+
function m(t) {
|
|
63850
63850
|
typeof e.appendDebugLog == "function" && e.appendDebugLog(t);
|
|
63851
63851
|
}
|
|
63852
|
-
function
|
|
63852
|
+
function h(t) {
|
|
63853
63853
|
return typeof e.resolveErrorMessage == "function" ? e.resolveErrorMessage(t) : t instanceof Error ? t.message : String(t);
|
|
63854
63854
|
}
|
|
63855
|
-
function
|
|
63855
|
+
function g(e) {
|
|
63856
63856
|
let n = String(e || ""), r = n.startsWith("避灾线路生成失败") || n.startsWith("避灾线路坐标生成失败") || n === "SDK 避灾线路生成失败" ? t : n;
|
|
63857
|
-
r !== t && H.error(r),
|
|
63857
|
+
r !== t && H.error(r), f(r), p(e);
|
|
63858
63858
|
}
|
|
63859
|
-
function
|
|
63859
|
+
function _() {
|
|
63860
63860
|
return typeof e.isExitPathToolEnabled == "function" ? e.isExitPathToolEnabled() : !0;
|
|
63861
63861
|
}
|
|
63862
|
-
function
|
|
63863
|
-
if (typeof window > "u") return
|
|
63862
|
+
function v() {
|
|
63863
|
+
if (typeof window > "u") return g("避灾线路控制对象获取失败:当前环境缺少 window"), null;
|
|
63864
63864
|
let t = window.lr3dapp?.editor?.manager?.modules?.exitPath;
|
|
63865
|
-
return t ? (t.tolerance = Number(e.defaultTolerance) || 16, t) : (
|
|
63865
|
+
return t ? (t.tolerance = Number(e.defaultTolerance) || 16, t) : (g(`避灾线路控制对象获取失败:未找到 ${e.modulePath || "window[\"lr3dapp\"].editor.manager.modules.exitPath"}`), null);
|
|
63866
63866
|
}
|
|
63867
|
-
async function
|
|
63868
|
-
let i = n ??
|
|
63867
|
+
async function y(e, t, n = null, r = []) {
|
|
63868
|
+
let i = n ?? v();
|
|
63869
63869
|
if (!i) return !1;
|
|
63870
63870
|
let a = i[e];
|
|
63871
|
-
if (typeof a != "function") return
|
|
63871
|
+
if (typeof a != "function") return g(`避灾线路操作失败:控制对象缺少 ${e} 方法`), !1;
|
|
63872
63872
|
try {
|
|
63873
|
-
return await a.call(i, ...r),
|
|
63873
|
+
return await a.call(i, ...r), f(t), p(t), !0;
|
|
63874
63874
|
} catch (e) {
|
|
63875
|
-
let t =
|
|
63876
|
-
return typeof t == "string" && t.includes("Cannot destructure property 'path'") && t.includes("pathFinder.calculate") ? (
|
|
63875
|
+
let t = h(e);
|
|
63876
|
+
return typeof t == "string" && t.includes("Cannot destructure property 'path'") && t.includes("pathFinder.calculate") ? (g("避灾线路生成失败"), !1) : (g(`避灾线路操作失败:${t}`), !1);
|
|
63877
63877
|
}
|
|
63878
63878
|
}
|
|
63879
|
-
function
|
|
63879
|
+
function b(t) {
|
|
63880
63880
|
let n = t?.point, r = typeof t?.label == "string" ? t.label.trim() : "";
|
|
63881
|
-
!n || !Number.isFinite(n.x) || !Number.isFinite(n.y) || !Number.isFinite(n.z)
|
|
63881
|
+
if (!n || !Number.isFinite(n.x) || !Number.isFinite(n.y) || !Number.isFinite(n.z)) return;
|
|
63882
|
+
l += 1;
|
|
63883
|
+
let i = e.addLr3dTextMarker?.({
|
|
63882
63884
|
text: r || `途经点${l}`,
|
|
63883
63885
|
position: {
|
|
63884
63886
|
x: n.x,
|
|
63885
63887
|
y: n.y,
|
|
63886
63888
|
z: n.z
|
|
63887
63889
|
}
|
|
63888
|
-
})
|
|
63890
|
+
});
|
|
63891
|
+
ce(i, {
|
|
63892
|
+
markerType: "exit-path-route-point",
|
|
63893
|
+
markerText: r || `途经点${l}`
|
|
63894
|
+
});
|
|
63889
63895
|
}
|
|
63890
|
-
function
|
|
63891
|
-
function
|
|
63896
|
+
function x() {}
|
|
63897
|
+
function S(e = o.value) {
|
|
63892
63898
|
if (!Array.isArray(e) || e.length === 0) return !1;
|
|
63893
63899
|
let t = !1;
|
|
63894
63900
|
return e.forEach((e) => {
|
|
63895
63901
|
!Array.isArray(e?.textMarkers) || e.textMarkers.length === 0 || (e.textMarkers.forEach((e) => {
|
|
63896
|
-
e?.removeFromParent?.(), t = !0;
|
|
63902
|
+
e?.removeFromParent?.(), le(e), t = !0;
|
|
63897
63903
|
}), e.textMarkers = []);
|
|
63898
63904
|
}), t && cj(), t;
|
|
63899
63905
|
}
|
|
63900
|
-
function
|
|
63906
|
+
function C() {
|
|
63901
63907
|
if (!Array.isArray(o.value) || o.value.length === 0) return !1;
|
|
63902
|
-
|
|
63908
|
+
S(o.value);
|
|
63903
63909
|
let t = !1;
|
|
63904
63910
|
return o.value.forEach((n) => {
|
|
63905
63911
|
let r = n?.routeObject;
|
|
63906
63912
|
r && (r.parent?.remove?.(r), e.disposeThreeObject?.(r), t = !0);
|
|
63907
63913
|
}), o.value = [], t && cj(), t;
|
|
63908
63914
|
}
|
|
63909
|
-
function
|
|
63915
|
+
function w() {
|
|
63910
63916
|
return typeof window > "u" || c === 0 ? !1 : (window.cancelAnimationFrame(c), c = 0, !0);
|
|
63911
63917
|
}
|
|
63912
|
-
function
|
|
63918
|
+
function T() {
|
|
63913
63919
|
if (typeof window > "u") return !1;
|
|
63914
|
-
|
|
63920
|
+
w();
|
|
63915
63921
|
let e = () => {
|
|
63916
63922
|
o.value.forEach((e) => {
|
|
63917
63923
|
e?.routeObject?.traverse?.((e) => {
|
|
@@ -63922,22 +63928,22 @@ function jW(e = {}) {
|
|
|
63922
63928
|
};
|
|
63923
63929
|
return c = window.requestAnimationFrame(e), !0;
|
|
63924
63930
|
}
|
|
63925
|
-
function w() {
|
|
63926
|
-
return h() ? (r.value = !r.value, !0) : !1;
|
|
63927
|
-
}
|
|
63928
|
-
function T() {
|
|
63929
|
-
return h() ? (r.value = !0, !0) : !1;
|
|
63930
|
-
}
|
|
63931
63931
|
function E() {
|
|
63932
|
-
return r.value = !
|
|
63932
|
+
return _() ? (r.value = !r.value, !0) : !1;
|
|
63933
63933
|
}
|
|
63934
63934
|
function D() {
|
|
63935
|
-
return _(
|
|
63935
|
+
return _() ? (r.value = !0, !0) : !1;
|
|
63936
63936
|
}
|
|
63937
63937
|
function O() {
|
|
63938
|
-
return
|
|
63938
|
+
return r.value = !1, !0;
|
|
63939
63939
|
}
|
|
63940
|
-
function k(
|
|
63940
|
+
function k() {
|
|
63941
|
+
return y("startSelectRoute", "已进入避灾线路途经点拾取流程", null, [b]);
|
|
63942
|
+
}
|
|
63943
|
+
function j() {
|
|
63944
|
+
return y("startSelectObstacle", "已进入避灾线路障碍路段拾取流程", null, [x]);
|
|
63945
|
+
}
|
|
63946
|
+
function M(t, n = {}) {
|
|
63941
63947
|
let r = n ?? {}, i = r.coordinateSpace === "relative" ? "relative" : "absolute", a = r.pointLabel || "坐标点", o = e.parseCoordinateText?.(t) ?? [];
|
|
63942
63948
|
if (o.length < 3) throw Error(`${a}坐标无效,必须包含 x、y、z 三个数值`);
|
|
63943
63949
|
let [s, c, l] = o;
|
|
@@ -63964,98 +63970,95 @@ function jW(e = {}) {
|
|
|
63964
63970
|
selectedObject: m
|
|
63965
63971
|
};
|
|
63966
63972
|
}
|
|
63967
|
-
function
|
|
63973
|
+
function N(e, t = {}) {
|
|
63968
63974
|
if (!Array.isArray(e) || e.length < 2) throw Error("避灾线路坐标数组至少需要包含两个坐标点");
|
|
63969
|
-
return e.map((e, n) =>
|
|
63975
|
+
return e.map((e, n) => M(e, {
|
|
63970
63976
|
coordinateSpace: t?.coordinateSpace,
|
|
63971
63977
|
pointLabel: `第${n + 1}个点`
|
|
63972
63978
|
}));
|
|
63973
63979
|
}
|
|
63974
|
-
function
|
|
63975
|
-
return
|
|
63980
|
+
function P(e = null) {
|
|
63981
|
+
return y("endSelect", "已结束避灾线路拾取流程", e);
|
|
63976
63982
|
}
|
|
63977
|
-
async function
|
|
63983
|
+
async function F(t) {
|
|
63978
63984
|
if (!t) return !1;
|
|
63985
|
+
pe();
|
|
63979
63986
|
try {
|
|
63980
63987
|
typeof t.endSelect == "function" && await Promise.resolve(t.endSelect.call(t));
|
|
63981
63988
|
} catch (e) {
|
|
63982
|
-
|
|
63989
|
+
m(`避灾线路坐标生成前结束拾取失败:${h(e)}`);
|
|
63983
63990
|
}
|
|
63984
63991
|
try {
|
|
63985
63992
|
typeof t.clear == "function" && await Promise.resolve(t.clear.call(t));
|
|
63986
63993
|
} catch (e) {
|
|
63987
|
-
|
|
63994
|
+
m(`避灾线路坐标生成前清理失败:${h(e)}`);
|
|
63988
63995
|
}
|
|
63989
63996
|
try {
|
|
63990
63997
|
t.loop?.stop?.(), t.loop = null;
|
|
63991
63998
|
} catch (e) {
|
|
63992
|
-
|
|
63999
|
+
m(`避灾线路坐标生成前复位动画循环失败:${h(e)}`);
|
|
63993
64000
|
}
|
|
63994
64001
|
try {
|
|
63995
64002
|
t.pathMesh?.removeFromParent?.(), t.pathMesh = null;
|
|
63996
64003
|
} catch (e) {
|
|
63997
|
-
|
|
64004
|
+
m(`避灾线路坐标生成前复位线路网格失败:${h(e)}`);
|
|
63998
64005
|
}
|
|
63999
64006
|
return a.value = !1, l = 0, e.clearLr3dTextMarkers?.(), !0;
|
|
64000
64007
|
}
|
|
64001
|
-
function
|
|
64008
|
+
function ee(e) {
|
|
64002
64009
|
let t = e?.pathMesh?.material;
|
|
64003
64010
|
return !t?.color || typeof t.color.set != "function" ? !1 : (t.color.set(0, 1, 0), !0);
|
|
64004
64011
|
}
|
|
64005
|
-
async function
|
|
64012
|
+
async function te() {
|
|
64006
64013
|
if (i.value) return !1;
|
|
64007
|
-
i.value = !0,
|
|
64014
|
+
i.value = !0, f("正在生成避灾线路"), p(e.workfacePanelStatus?.value ?? "");
|
|
64008
64015
|
try {
|
|
64009
|
-
let t =
|
|
64010
|
-
if (!t || !await
|
|
64016
|
+
let t = v();
|
|
64017
|
+
if (!t || !await P(t)) return !1;
|
|
64011
64018
|
Array.isArray(t.selectObjsRoute) && t.selectObjsRoute.length > 0 && t.selectObjsRoute.forEach((t, n) => {
|
|
64012
64019
|
typeof t?.label == "string" && t.label.trim() ? t.label.trim() : `${n + 1}`;
|
|
64013
64020
|
let r = t?.point ?? {};
|
|
64014
64021
|
e.isVectorLike?.(r) && e.toAbsolutePosition?.(r);
|
|
64015
|
-
})
|
|
64016
|
-
let n =
|
|
64017
|
-
|
|
64022
|
+
});
|
|
64023
|
+
let n = fe();
|
|
64024
|
+
f("正在生成避灾线路"), p(e.workfacePanelStatus?.value ?? "");
|
|
64025
|
+
let r = await y("compute", "避灾线路已生成", t);
|
|
64026
|
+
return r && (ee(t), me(n), a.value = !0), r;
|
|
64018
64027
|
} finally {
|
|
64019
64028
|
i.value = !1;
|
|
64020
64029
|
}
|
|
64021
64030
|
}
|
|
64022
|
-
function
|
|
64031
|
+
function I() {
|
|
64023
64032
|
if (s.value === "custom-fixed-routes") {
|
|
64024
|
-
let t =
|
|
64025
|
-
return t && (
|
|
64033
|
+
let t = w();
|
|
64034
|
+
return t && (f("已暂停避灾线路"), p(e.workfacePanelStatus?.value ?? "")), t;
|
|
64026
64035
|
}
|
|
64027
|
-
return
|
|
64036
|
+
return y("pause", "已暂停避灾线路");
|
|
64028
64037
|
}
|
|
64029
|
-
function
|
|
64038
|
+
function R() {
|
|
64030
64039
|
if (s.value === "custom-fixed-routes") {
|
|
64031
|
-
let t =
|
|
64032
|
-
return t && (
|
|
64040
|
+
let t = T();
|
|
64041
|
+
return t && (f("已继续避灾线路"), p(e.workfacePanelStatus?.value ?? "")), t;
|
|
64033
64042
|
}
|
|
64034
|
-
return
|
|
64043
|
+
return y("resume", "已继续避灾线路");
|
|
64035
64044
|
}
|
|
64036
|
-
async function
|
|
64037
|
-
if (s.value === "custom-fixed-routes") {
|
|
64038
|
-
|
|
64039
|
-
let t =
|
|
64045
|
+
async function z() {
|
|
64046
|
+
if (pe(), s.value === "custom-fixed-routes") {
|
|
64047
|
+
w();
|
|
64048
|
+
let t = v();
|
|
64040
64049
|
if (t) try {
|
|
64041
|
-
await
|
|
64050
|
+
await F(t);
|
|
64042
64051
|
} catch {}
|
|
64043
|
-
return
|
|
64052
|
+
return C(), i.value = !1, a.value = !1, s.value = "", l = 0, u = [], e.clearLr3dTextMarkers?.(), f("已清除避灾线路"), p(e.workfacePanelStatus?.value ?? ""), !0;
|
|
64044
64053
|
}
|
|
64045
|
-
let t = await
|
|
64046
|
-
return t && (i.value = !1, a.value = !1, s.value = "", l = 0, e.clearLr3dTextMarkers?.()), t;
|
|
64047
|
-
}
|
|
64048
|
-
function R() {
|
|
64049
|
-
return D();
|
|
64050
|
-
}
|
|
64051
|
-
function z() {
|
|
64052
|
-
return O();
|
|
64054
|
+
let t = await y("clear", "已清除避灾线路");
|
|
64055
|
+
return t && (i.value = !1, a.value = !1, s.value = "", l = 0, u = [], e.clearLr3dTextMarkers?.()), t;
|
|
64053
64056
|
}
|
|
64054
64057
|
function B() {
|
|
64055
|
-
return
|
|
64058
|
+
return k();
|
|
64056
64059
|
}
|
|
64057
64060
|
function V() {
|
|
64058
|
-
return
|
|
64061
|
+
return j();
|
|
64059
64062
|
}
|
|
64060
64063
|
function U() {
|
|
64061
64064
|
return te();
|
|
@@ -64063,40 +64066,46 @@ function jW(e = {}) {
|
|
|
64063
64066
|
function re() {
|
|
64064
64067
|
return I();
|
|
64065
64068
|
}
|
|
64066
|
-
|
|
64069
|
+
function ie() {
|
|
64070
|
+
return R();
|
|
64071
|
+
}
|
|
64072
|
+
function ae() {
|
|
64073
|
+
return z();
|
|
64074
|
+
}
|
|
64075
|
+
async function oe(t, n = {}) {
|
|
64067
64076
|
if (i.value) return !1;
|
|
64068
|
-
i.value = !0,
|
|
64077
|
+
i.value = !0, f("正在根据坐标生成避灾线路"), p(e.workfacePanelStatus?.value ?? "");
|
|
64069
64078
|
try {
|
|
64070
|
-
let r =
|
|
64079
|
+
let r = v();
|
|
64071
64080
|
if (!r) return !1;
|
|
64072
|
-
let i = n?.coordinateSpace === "relative" ? "relative" : "absolute", o = n?.viewInfoAfterCompute ?? null, c =
|
|
64081
|
+
let i = n?.coordinateSpace === "relative" ? "relative" : "absolute", o = n?.viewInfoAfterCompute ?? null, c = N(t, { coordinateSpace: i });
|
|
64073
64082
|
c.forEach((e, t) => {
|
|
64074
64083
|
typeof e?.payload?.label == "string" && e.payload.label.trim() ? e.payload.label.trim() : `${t + 1}`, e?.payload?.point, e?.absolutePosition;
|
|
64075
|
-
}), await
|
|
64076
|
-
|
|
64084
|
+
}), await F(r), r.selectObjsRoute = c.map((e) => e.payload), r.selectObjsObstacle = [], c.forEach((e) => {
|
|
64085
|
+
b(e.payload);
|
|
64077
64086
|
});
|
|
64078
|
-
let l = c[0],
|
|
64079
|
-
|
|
64080
|
-
let
|
|
64081
|
-
return
|
|
64087
|
+
let l = c[0], u = c[c.length - 1], d = fe();
|
|
64088
|
+
f("正在根据坐标生成避灾线路"), p(`避灾线路坐标生成中,共 ${c.length} 个点,起点:${e.formatRangeSelectionPosition?.(l.absolutePosition) ?? "--"},终点:${e.formatRangeSelectionPosition?.(u.absolutePosition) ?? "--"}`);
|
|
64089
|
+
let m = await y("compute", "避灾线路已生成", r);
|
|
64090
|
+
return m && (ee(r), me(d), a.value = !0, s.value = "sdk-single", o && e.applyViewInfo?.(o)), m;
|
|
64082
64091
|
} catch (e) {
|
|
64083
|
-
return
|
|
64092
|
+
return g(`避灾线路坐标生成失败:${h(e)}`), !1;
|
|
64084
64093
|
} finally {
|
|
64085
64094
|
i.value = !1;
|
|
64086
64095
|
}
|
|
64087
64096
|
}
|
|
64088
|
-
function
|
|
64089
|
-
return
|
|
64097
|
+
function se(e, t, n = {}) {
|
|
64098
|
+
return oe([e, t], n);
|
|
64090
64099
|
}
|
|
64091
|
-
function
|
|
64092
|
-
if (!e.accidentRangeSelectionCenterRelative?.value) return
|
|
64100
|
+
function W() {
|
|
64101
|
+
if (!e.accidentRangeSelectionCenterRelative?.value) return g("请先完成事故选点,再生成避灾线路"), !1;
|
|
64093
64102
|
let t = e.toAbsolutePosition?.(e.accidentRangeSelectionCenterRelative.value);
|
|
64094
|
-
if (!t) return
|
|
64103
|
+
if (!t) return g("避灾线路生成失败:事故点坐标转换失败"), !1;
|
|
64095
64104
|
let r = e.defaultAccidentPointAbsolutePosition ?? null, i = e.defaultExitPathAccidentRoutePointAbsolutePosition ?? null, a = r ? Math.abs(Number(t.x) - Number(r.x)) < .01 && Math.abs(Number(t.y) - Number(r.y)) < .01 && Math.abs(Number(t.z) - Number(r.z)) < .01 : !1, o = a && i ? i : t;
|
|
64096
64105
|
if (a) {
|
|
64097
64106
|
console.log(`[lr-map-viewer] 避灾线路首点已替换为联调坐标:X ${o.x} / Y ${o.y} / Z ${o.z}`);
|
|
64098
64107
|
let t = (Array.isArray(e.customRouteStyles) ? e.customRouteStyles : [])[1];
|
|
64099
|
-
return t ? (console.log("[lr-map-viewer] 事故点避灾线路已切换为 SDK 第二条线路方案"),
|
|
64108
|
+
return t ? (console.log("[lr-map-viewer] 事故点避灾线路已切换为 SDK 第二条线路方案"), oe([{
|
|
64100
64109
|
x: Number(o.x),
|
|
64101
64110
|
y: Number(o.y),
|
|
64102
64111
|
z: Number(o.z),
|
|
@@ -64106,9 +64115,9 @@ function jW(e = {}) {
|
|
|
64106
64115
|
y: e.y,
|
|
64107
64116
|
z: e.z,
|
|
64108
64117
|
label: e.label
|
|
64109
|
-
}))], { viewInfoAfterCompute: e.fixedExitPathViewInfo ?? null })) : (
|
|
64118
|
+
}))], { viewInfoAfterCompute: e.fixedExitPathViewInfo ?? null })) : (g("避灾线路生成失败:未找到第二条线路配置"), !1);
|
|
64110
64119
|
}
|
|
64111
|
-
return console.log("[lr-map-viewer] 非默认事故点避灾线路已切换为事故点至主井口两点方案"),
|
|
64120
|
+
return console.log("[lr-map-viewer] 非默认事故点避灾线路已切换为事故点至主井口两点方案"), oe([{
|
|
64112
64121
|
x: Number(t.x),
|
|
64113
64122
|
y: Number(t.y),
|
|
64114
64123
|
z: Number(t.z),
|
|
@@ -64120,11 +64129,60 @@ function jW(e = {}) {
|
|
|
64120
64129
|
label: "主井口"
|
|
64121
64130
|
}], { viewInfoAfterCompute: e.fixedExitPathViewInfo ?? null });
|
|
64122
64131
|
}
|
|
64123
|
-
function
|
|
64124
|
-
return
|
|
64132
|
+
function G() {
|
|
64133
|
+
return _() ? a.value ? z() : W() : !1;
|
|
64125
64134
|
}
|
|
64126
|
-
function
|
|
64127
|
-
|
|
64135
|
+
function ce(e, t = {}) {
|
|
64136
|
+
return e ? (e.userData = {
|
|
64137
|
+
...e.userData ?? {},
|
|
64138
|
+
markerType: t.markerType || "exit-path-text",
|
|
64139
|
+
markerOwner: "exit-path",
|
|
64140
|
+
...t
|
|
64141
|
+
}, u.includes(e) || (u = [...u, e]), e) : null;
|
|
64142
|
+
}
|
|
64143
|
+
function le(e) {
|
|
64144
|
+
e && (u = u.filter((t) => t !== e));
|
|
64145
|
+
}
|
|
64146
|
+
function ue() {
|
|
64147
|
+
return typeof window > "u" ? null : window.lr3dapp?.editor?.manager?.modules?.exitPath ?? null;
|
|
64148
|
+
}
|
|
64149
|
+
function de() {
|
|
64150
|
+
return e.resolveRangeSelectionScene?.() || (typeof window > "u" ? null : window.lr3dapp?.editor?.scene ?? null);
|
|
64151
|
+
}
|
|
64152
|
+
function fe() {
|
|
64153
|
+
let e = de();
|
|
64154
|
+
return !e || !Array.isArray(e.children) ? /* @__PURE__ */ new Set() : new Set(e.children);
|
|
64155
|
+
}
|
|
64156
|
+
function pe() {
|
|
64157
|
+
d = [];
|
|
64158
|
+
}
|
|
64159
|
+
function me(e) {
|
|
64160
|
+
let t = de();
|
|
64161
|
+
return pe(), !t || !Array.isArray(t.children) || !(e instanceof Set) ? [] : (d = t.children.filter((t) => !e.has(t)), d);
|
|
64162
|
+
}
|
|
64163
|
+
function he() {
|
|
64164
|
+
let e = [], t = /* @__PURE__ */ new Set(), n = ue();
|
|
64165
|
+
function r(n) {
|
|
64166
|
+
!n || t.has(n) || (t.add(n), e.push(n));
|
|
64167
|
+
}
|
|
64168
|
+
return r(n?.pathMesh ?? null), u.forEach((e) => r(e)), o.value.forEach((e) => r(e?.routeObject ?? null)), d.forEach((e) => r(e)), e;
|
|
64169
|
+
}
|
|
64170
|
+
function K() {
|
|
64171
|
+
return he();
|
|
64172
|
+
}
|
|
64173
|
+
function ge(e) {
|
|
64174
|
+
if (!e) return !1;
|
|
64175
|
+
let t = he();
|
|
64176
|
+
if (t.length === 0) return !1;
|
|
64177
|
+
let n = e;
|
|
64178
|
+
for (; n;) {
|
|
64179
|
+
if (t.includes(n)) return !0;
|
|
64180
|
+
n = n.parent ?? null;
|
|
64181
|
+
}
|
|
64182
|
+
return !1;
|
|
64183
|
+
}
|
|
64184
|
+
function _e() {
|
|
64185
|
+
pe(), w(), C(), i.value = !1, a.value = !1, s.value = "", l = 0, u = [];
|
|
64128
64186
|
}
|
|
64129
64187
|
return ne(() => e.accidentRangeSelectionCenterRelative?.value ? {
|
|
64130
64188
|
x: e.accidentRangeSelectionCenterRelative.value.x,
|
|
@@ -64133,27 +64191,29 @@ function jW(e = {}) {
|
|
|
64133
64191
|
} : null, (e) => {
|
|
64134
64192
|
if (!(!a.value || s.value !== "custom-fixed-routes")) {
|
|
64135
64193
|
if (!e) {
|
|
64136
|
-
|
|
64194
|
+
z();
|
|
64137
64195
|
return;
|
|
64138
64196
|
}
|
|
64139
|
-
|
|
64197
|
+
W();
|
|
64140
64198
|
}
|
|
64141
64199
|
}, { deep: !0 }), {
|
|
64142
64200
|
isExitPathPanelVisible: r,
|
|
64143
64201
|
isExitPathComputing: i,
|
|
64144
64202
|
isExitPathGenerated: a,
|
|
64145
|
-
showExitPathPanel:
|
|
64146
|
-
hideExitPathPanel:
|
|
64147
|
-
toggleExitPathPanel:
|
|
64148
|
-
startExitPathRoutePick:
|
|
64149
|
-
startExitPathObstaclePick:
|
|
64150
|
-
computeExitPath:
|
|
64151
|
-
computeExitPathByCoordinates:
|
|
64152
|
-
pauseExitPath:
|
|
64153
|
-
resumeExitPath:
|
|
64154
|
-
clearExitPath:
|
|
64155
|
-
handleExitPathGenerateByAccident:
|
|
64156
|
-
|
|
64203
|
+
showExitPathPanel: D,
|
|
64204
|
+
hideExitPathPanel: O,
|
|
64205
|
+
toggleExitPathPanel: E,
|
|
64206
|
+
startExitPathRoutePick: B,
|
|
64207
|
+
startExitPathObstaclePick: V,
|
|
64208
|
+
computeExitPath: U,
|
|
64209
|
+
computeExitPathByCoordinates: se,
|
|
64210
|
+
pauseExitPath: re,
|
|
64211
|
+
resumeExitPath: ie,
|
|
64212
|
+
clearExitPath: ae,
|
|
64213
|
+
handleExitPathGenerateByAccident: G,
|
|
64214
|
+
getExitPathPickInterferenceObjects: K,
|
|
64215
|
+
isExitPathPickInterferenceObject: ge,
|
|
64216
|
+
cleanupExitPathRuntime: _e
|
|
64157
64217
|
};
|
|
64158
64218
|
}
|
|
64159
64219
|
var MW = {
|
|
@@ -66443,7 +66503,7 @@ function YW(e = {}) {
|
|
|
66443
66503
|
"1581:1587",
|
|
66444
66504
|
"1587:1588",
|
|
66445
66505
|
"1588:1589"
|
|
66446
|
-
], c = A(!1), l = A(!1), u = A(!1), d = A(Number(e.defaultFlowRate) || 3600), f = A(Number(e.defaultDrainageRate) || 0), p = A(Number(e.defaultPlaybackMultiplier) || 1), m = A(0), h = A(0), g = A([]), _ = A([]), v = A({}), y = A([]), b = A(""), x = A(0), S = A([]), C = A(null), w = A(null), T = A(null), E = r(() => S.value.length), D = A(!1), O = A(!1), k = A(!1), j = A(""), M = null, N = 0, P = 0, F = null, ee = null, te = null, I = null, R =
|
|
66506
|
+
], c = A(!1), l = A(!1), u = A(!1), d = A(Number(e.defaultFlowRate) || 3600), f = A(Number(e.defaultDrainageRate) || 0), p = A(Number(e.defaultPlaybackMultiplier) || 1), m = A(0), h = A(0), g = A([]), _ = A([]), v = A({}), y = A([]), b = A(""), x = A(0), S = A([]), C = A(null), w = A(null), T = A(null), E = r(() => S.value.length), D = A(!1), O = A(!1), k = A(!1), j = A(""), M = null, N = 0, P = 0, F = null, ee = null, te = null, I = null, R = null, z = [], ne = 0, B = null, V = null, U = null, re = Me(d.value), ie = Ne(f.value), ae = Pe(p.value), oe = null;
|
|
66447
66507
|
function se(t) {
|
|
66448
66508
|
e.workfacePanelStatus && (e.workfacePanelStatus.value = t);
|
|
66449
66509
|
}
|
|
@@ -66453,39 +66513,119 @@ function YW(e = {}) {
|
|
|
66453
66513
|
function G(t) {
|
|
66454
66514
|
typeof e.appendDebugLog == "function" && e.appendDebugLog(t);
|
|
66455
66515
|
}
|
|
66456
|
-
function ce(
|
|
66516
|
+
function ce() {
|
|
66517
|
+
let t = typeof window > "u" ? null : window.lr3dapp?.editor ?? null, n = e.getLr3dEditor?.() ?? t;
|
|
66518
|
+
if (!n) return null;
|
|
66519
|
+
try {
|
|
66520
|
+
let e = typeof n.use == "function" ? n.use("mouse") : null;
|
|
66521
|
+
if (e) return e;
|
|
66522
|
+
} catch {}
|
|
66523
|
+
let r = n.manager ?? null;
|
|
66524
|
+
if (r) try {
|
|
66525
|
+
let e = typeof r.use == "function" ? r.use("mouse") : null;
|
|
66526
|
+
if (e) return e;
|
|
66527
|
+
} catch {}
|
|
66528
|
+
return n.mouse ?? r?.mouse ?? n._mouse ?? r?._mouse ?? null;
|
|
66529
|
+
}
|
|
66530
|
+
function le(e) {
|
|
66531
|
+
return Array.isArray(e) ? e : !e || typeof e != "object" ? [] : Array.isArray(e.intersects) ? e.intersects : e.object || e.point || Number.isFinite(Number(e.distance)) ? [e] : [];
|
|
66532
|
+
}
|
|
66533
|
+
function ue(t) {
|
|
66534
|
+
let n = t?.object ?? null;
|
|
66535
|
+
return !n || typeof e.isExitPathPickInterferenceObject != "function" ? !1 : e.isExitPathPickInterferenceObject(n) === !0;
|
|
66536
|
+
}
|
|
66537
|
+
function de(e) {
|
|
66538
|
+
return !Array.isArray(e) || e.length === 0 ? [] : e.filter((e) => !ue(e));
|
|
66539
|
+
}
|
|
66540
|
+
function fe(e, t) {
|
|
66541
|
+
return Array.isArray(e) || !e || typeof e != "object" ? t : Array.isArray(e.intersects) ? {
|
|
66542
|
+
...e,
|
|
66543
|
+
intersects: t
|
|
66544
|
+
} : t.length <= 0 ? null : t[0];
|
|
66545
|
+
}
|
|
66546
|
+
function pe(t, n, r) {
|
|
66547
|
+
if (typeof n != "function" || typeof e.getExitPathPickInterferenceObjects != "function") return null;
|
|
66548
|
+
let i = e.getExitPathPickInterferenceObjects();
|
|
66549
|
+
if (!Array.isArray(i) || i.length === 0) return null;
|
|
66550
|
+
let a = [], o = /* @__PURE__ */ new Set();
|
|
66551
|
+
if (i.forEach((e) => {
|
|
66552
|
+
!e || o.has(e) || typeof e.visible != "boolean" || (o.add(e), a.push({
|
|
66553
|
+
object: e,
|
|
66554
|
+
visible: e.visible
|
|
66555
|
+
}), e.visible = !1);
|
|
66556
|
+
}), a.length === 0) return null;
|
|
66557
|
+
try {
|
|
66558
|
+
return n.apply(t, r);
|
|
66559
|
+
} finally {
|
|
66560
|
+
a.forEach((e) => {
|
|
66561
|
+
e.object.visible = e.visible;
|
|
66562
|
+
});
|
|
66563
|
+
}
|
|
66564
|
+
}
|
|
66565
|
+
function me() {
|
|
66566
|
+
if (typeof B == "function") return !0;
|
|
66567
|
+
let e = ce(), t = [];
|
|
66568
|
+
return !e || (["intersection", "intersectionGPU"].forEach((n) => {
|
|
66569
|
+
let r = e[n];
|
|
66570
|
+
typeof r == "function" && (e[n] = function(...e) {
|
|
66571
|
+
let t = r.apply(this, e), n = t;
|
|
66572
|
+
try {
|
|
66573
|
+
if (!D.value) return n;
|
|
66574
|
+
let i = le(t), a = de(i);
|
|
66575
|
+
if (a.length !== i.length && (n = fe(n, a)), a.length === 0 && i.some((e) => ue(e))) {
|
|
66576
|
+
let t = pe(this, r, e);
|
|
66577
|
+
t != null && (n = t, a = de(le(t)), n = fe(n, a));
|
|
66578
|
+
}
|
|
66579
|
+
} catch (e) {
|
|
66580
|
+
G(`水漫延地点拾取过滤失败:${K(e)}`);
|
|
66581
|
+
}
|
|
66582
|
+
return n;
|
|
66583
|
+
}, t.push({
|
|
66584
|
+
methodName: n,
|
|
66585
|
+
originalMethod: r
|
|
66586
|
+
}));
|
|
66587
|
+
}), t.length <= 0) ? !1 : (B = () => {
|
|
66588
|
+
t.forEach(({ methodName: t, originalMethod: n }) => {
|
|
66589
|
+
e[t] = n;
|
|
66590
|
+
}), B = null;
|
|
66591
|
+
}, !0);
|
|
66592
|
+
}
|
|
66593
|
+
function he() {
|
|
66594
|
+
return typeof B == "function" ? (B(), !0) : !1;
|
|
66595
|
+
}
|
|
66596
|
+
function K(t) {
|
|
66457
66597
|
return typeof e.resolveErrorMessage == "function" ? e.resolveErrorMessage(t) : t instanceof Error ? t.message : String(t);
|
|
66458
66598
|
}
|
|
66459
|
-
function
|
|
66599
|
+
function ge() {
|
|
66460
66600
|
return typeof e.isWaterToolEnabled == "function" ? e.isWaterToolEnabled() : !0;
|
|
66461
66601
|
}
|
|
66462
|
-
function
|
|
66602
|
+
function _e(e) {
|
|
66463
66603
|
return e ? `X ${Number(e.x).toFixed(2)} / Y ${Number(e.y).toFixed(2)} / Z ${Number(e.z).toFixed(2)}` : "--";
|
|
66464
66604
|
}
|
|
66465
|
-
function
|
|
66605
|
+
function q(e) {
|
|
66466
66606
|
let t = Math.max(0, Math.floor(Number(e) || 0)), n = Math.floor(t / 3600), r = Math.floor(t % 3600 / 60), i = t % 60;
|
|
66467
66607
|
return n > 0 ? `${n}小时${r}分钟${i}秒` : r > 0 ? `${r}分钟${i}秒` : `${i}秒`;
|
|
66468
66608
|
}
|
|
66469
|
-
function
|
|
66609
|
+
function ve(e) {
|
|
66470
66610
|
let t = Math.max(0, Math.round(Number(e) || 0)), n = Math.floor(t / 3600), r = Math.floor(t % 3600 / 60), i = t % 60;
|
|
66471
66611
|
return n > 0 ? `${n}时${r}分${i}秒` : r > 0 ? `${r}分${i}秒` : `${i}秒`;
|
|
66472
66612
|
}
|
|
66473
|
-
function
|
|
66613
|
+
function ye(e) {
|
|
66474
66614
|
let t = Math.max(0, Math.floor(Number(e) || 0)), n = Math.floor(t / 3600), r = Math.floor(t % 3600 / 60), i = t % 60;
|
|
66475
66615
|
return n > 0 ? `${String(n).padStart(2, "0")}时${String(r).padStart(2, "0")}分${String(i).padStart(2, "0")}秒` : `${String(r).padStart(2, "0")}分${String(i).padStart(2, "0")}秒`;
|
|
66476
66616
|
}
|
|
66477
|
-
function
|
|
66617
|
+
function be(e) {
|
|
66478
66618
|
let t = Array.isArray(e) ? e[0] : null;
|
|
66479
|
-
return t?.status === "stopped" ? "不被淹没" : t?.status !== "reachable" && t?.status !== "flooded" ? "不可抵达" : Number.isFinite(Number(t?.time)) ?
|
|
66619
|
+
return t?.status === "stopped" ? "不被淹没" : t?.status !== "reachable" && t?.status !== "flooded" ? "不可抵达" : Number.isFinite(Number(t?.time)) ? ve(t?.time) : t?.status === "flooded" ? "已淹没" : "不可抵达";
|
|
66480
66620
|
}
|
|
66481
|
-
function
|
|
66621
|
+
function J(e) {
|
|
66482
66622
|
let t = Number(e);
|
|
66483
66623
|
return !Number.isFinite(t) || t < 0 ? "当前水位:--" : `当前水位:${Number(t.toFixed(2))}米`;
|
|
66484
66624
|
}
|
|
66485
|
-
function
|
|
66486
|
-
return !Number.isFinite(t) || t < 0 ? `${e}:--` : `${e}:${
|
|
66625
|
+
function xe(e, t) {
|
|
66626
|
+
return !Number.isFinite(t) || t < 0 ? `${e}:--` : `${e}:${ve(t)}`;
|
|
66487
66627
|
}
|
|
66488
|
-
function
|
|
66628
|
+
function Se(e) {
|
|
66489
66629
|
let t = Math.max(0, Number(e) || 0);
|
|
66490
66630
|
if (t <= 0) return "0分钟";
|
|
66491
66631
|
let n = t / 60, r = Math.round(n);
|
|
@@ -66493,37 +66633,37 @@ function YW(e = {}) {
|
|
|
66493
66633
|
let i = Math.floor(r / 60), a = r % 60;
|
|
66494
66634
|
return i <= 0 ? `${r}分钟` : a <= 0 ? `${i}小时` : `${i}小时${a}分钟`;
|
|
66495
66635
|
}
|
|
66496
|
-
function
|
|
66636
|
+
function Ce(t) {
|
|
66497
66637
|
return `${e.analysisLocationMarkerText || "分析地点"}${t + 1}`;
|
|
66498
66638
|
}
|
|
66499
|
-
function
|
|
66639
|
+
function we(e = {}) {
|
|
66500
66640
|
let t = Number(e.arriveTimeSeconds), n = Number(e.elapsedTimeSeconds);
|
|
66501
66641
|
if (!Number.isFinite(t) || t < 0 || !Number.isFinite(n) || n < t) return null;
|
|
66502
|
-
let r =
|
|
66642
|
+
let r = Fe();
|
|
66503
66643
|
if (r <= 0) return .1;
|
|
66504
66644
|
let i = .1 + (n - t) / 3600 * r / 250;
|
|
66505
66645
|
return Math.min(Math.max(i, 0), 4);
|
|
66506
66646
|
}
|
|
66507
|
-
function
|
|
66647
|
+
function Te(e = {}) {
|
|
66508
66648
|
let t = Number(e.arriveTimeSeconds), n = Number(e.targetDepth);
|
|
66509
66649
|
if (!Number.isFinite(t) || t < 0 || !Number.isFinite(n) || n < 0) return null;
|
|
66510
66650
|
let r = .1;
|
|
66511
66651
|
if (n <= r) return t;
|
|
66512
|
-
let i =
|
|
66652
|
+
let i = Fe();
|
|
66513
66653
|
return i <= 0 ? null : t + (n - r) * 50 * 5 / i * 3600;
|
|
66514
66654
|
}
|
|
66515
|
-
function
|
|
66516
|
-
let t = Number(e.arriveTimeSeconds), n = Number(e.currentElapsedSeconds), r = Number.isFinite(t) && t >= 0, i = r && Number.isFinite(n) && n >= 0 && n >= t, a = i ?
|
|
66655
|
+
function Ee(e = {}) {
|
|
66656
|
+
let t = Number(e.arriveTimeSeconds), n = Number(e.currentElapsedSeconds), r = Number.isFinite(t) && t >= 0, i = r && Number.isFinite(n) && n >= 0 && n >= t, a = i ? we({
|
|
66517
66657
|
arriveTimeSeconds: t,
|
|
66518
66658
|
elapsedTimeSeconds: n
|
|
66519
66659
|
}) : null;
|
|
66520
66660
|
return r ? {
|
|
66521
66661
|
isCurrentlyFlooded: i,
|
|
66522
66662
|
currentWaterDepth: a,
|
|
66523
|
-
predictionDetailLines: [
|
|
66663
|
+
predictionDetailLines: [xe(`涨到${o}米`, Te({
|
|
66524
66664
|
arriveTimeSeconds: t,
|
|
66525
66665
|
targetDepth: o
|
|
66526
|
-
})),
|
|
66666
|
+
})), xe("完全淹没", Te({
|
|
66527
66667
|
arriveTimeSeconds: t,
|
|
66528
66668
|
targetDepth: 4
|
|
66529
66669
|
}))]
|
|
@@ -66533,22 +66673,22 @@ function YW(e = {}) {
|
|
|
66533
66673
|
predictionDetailLines: []
|
|
66534
66674
|
};
|
|
66535
66675
|
}
|
|
66536
|
-
function
|
|
66676
|
+
function De(e) {
|
|
66537
66677
|
let t = String(e?.shortLabel ?? e?.label ?? "").trim(), n = t ? [t] : [];
|
|
66538
|
-
return e?.isCurrentlyFlooded && Number.isFinite(e?.currentWaterDepth) && n.push(
|
|
66678
|
+
return e?.isCurrentlyFlooded && Number.isFinite(e?.currentWaterDepth) && n.push(J(e.currentWaterDepth)), e?.isExpanded && Array.isArray(e?.predictionDetailLines) ? [...n, ...e.predictionDetailLines.filter((e) => typeof e == "string" && e.trim() !== "")] : n;
|
|
66539
66679
|
}
|
|
66540
|
-
function
|
|
66680
|
+
function Oe(e) {
|
|
66541
66681
|
return {
|
|
66542
66682
|
...e,
|
|
66543
|
-
displayLines:
|
|
66683
|
+
displayLines: De(e)
|
|
66544
66684
|
};
|
|
66545
66685
|
}
|
|
66546
|
-
function
|
|
66547
|
-
let t =
|
|
66686
|
+
function ke(e = {}) {
|
|
66687
|
+
let t = Ee({
|
|
66548
66688
|
arriveTimeSeconds: e.arriveTimeSeconds,
|
|
66549
66689
|
currentElapsedSeconds: e.currentElapsedSeconds
|
|
66550
66690
|
}), n = e.enableExpandPrediction !== !1 && t.predictionDetailLines.some((e) => typeof e == "string" && !e.endsWith(":--"));
|
|
66551
|
-
return
|
|
66691
|
+
return Oe({
|
|
66552
66692
|
key: e.key,
|
|
66553
66693
|
level: e.level,
|
|
66554
66694
|
label: e.label,
|
|
@@ -66557,7 +66697,7 @@ function YW(e = {}) {
|
|
|
66557
66697
|
arriveTimeSeconds: Number.isFinite(Number(e.arriveTimeSeconds)) ? Number(e.arriveTimeSeconds) : null,
|
|
66558
66698
|
enableExpandPrediction: e.enableExpandPrediction !== !1,
|
|
66559
66699
|
analysisType: e.analysisType ?? "time",
|
|
66560
|
-
projectedPoint:
|
|
66700
|
+
projectedPoint: Ve(e.projectedPoint),
|
|
66561
66701
|
segmentId: e.segmentId ?? null,
|
|
66562
66702
|
isCurrentlyFlooded: t.isCurrentlyFlooded,
|
|
66563
66703
|
currentWaterDepth: t.currentWaterDepth,
|
|
@@ -66566,57 +66706,57 @@ function YW(e = {}) {
|
|
|
66566
66706
|
isExpanded: !1
|
|
66567
66707
|
});
|
|
66568
66708
|
}
|
|
66569
|
-
function
|
|
66709
|
+
function Ae(e = null, t = null) {
|
|
66570
66710
|
return Number.isFinite(Number(e?.time)) ? Math.max(0, Number(e.time)) : Math.max(0, Number(t?.pathSim?.time) || 0);
|
|
66571
66711
|
}
|
|
66572
|
-
function
|
|
66712
|
+
function je() {
|
|
66573
66713
|
return Math.max(0, Number(m.value) || 0);
|
|
66574
66714
|
}
|
|
66575
|
-
function
|
|
66715
|
+
function Y(e, t = {}) {
|
|
66576
66716
|
let n = Math.max(0, Number(e) || 0);
|
|
66577
66717
|
return t.force === !0 || oe === null || n < oe || n - oe >= .5 ? (oe = n, !0) : !1;
|
|
66578
66718
|
}
|
|
66579
|
-
function
|
|
66719
|
+
function Me(t) {
|
|
66580
66720
|
let n = Number(t);
|
|
66581
66721
|
if (!Number.isFinite(n)) return Number(e.defaultFlowRate) || 3600;
|
|
66582
66722
|
let r = Math.min(Number(e.maxFlowRate) || 1e4, Math.max(Number(e.minFlowRate) || 0, n));
|
|
66583
66723
|
return Math.round(r);
|
|
66584
66724
|
}
|
|
66585
|
-
function
|
|
66725
|
+
function Ne(t) {
|
|
66586
66726
|
let n = Number(t);
|
|
66587
66727
|
if (!Number.isFinite(n)) return Number(e.defaultDrainageRate) || 0;
|
|
66588
66728
|
let r = Math.min(Number(e.maxFlowRate) || 1e4, Math.max(Number(e.minFlowRate) || 0, n));
|
|
66589
66729
|
return Math.round(r);
|
|
66590
66730
|
}
|
|
66591
|
-
function
|
|
66731
|
+
function Pe(t) {
|
|
66592
66732
|
let n = Number(t);
|
|
66593
66733
|
if (!Number.isFinite(n)) return Number(e.defaultPlaybackMultiplier) || 1;
|
|
66594
66734
|
let r = Math.min(Number(e.maxPlaybackMultiplier) || 100, Math.max(Number(e.minPlaybackMultiplier) || 1, n));
|
|
66595
66735
|
return Number(r.toFixed(1));
|
|
66596
66736
|
}
|
|
66597
|
-
function
|
|
66598
|
-
let t =
|
|
66737
|
+
function Fe() {
|
|
66738
|
+
let t = Me(d.value), n = Ne(f.value);
|
|
66599
66739
|
return Math.max(Number(e.minFlowRate) || 0, t - n);
|
|
66600
66740
|
}
|
|
66601
|
-
function
|
|
66602
|
-
return
|
|
66741
|
+
function Ie() {
|
|
66742
|
+
return Fe() <= 0;
|
|
66603
66743
|
}
|
|
66604
|
-
function
|
|
66605
|
-
let e =
|
|
66606
|
-
return
|
|
66744
|
+
function Le() {
|
|
66745
|
+
let e = Me(d.value);
|
|
66746
|
+
return Ne(f.value) > e;
|
|
66607
66747
|
}
|
|
66608
|
-
function
|
|
66609
|
-
return
|
|
66748
|
+
function Re() {
|
|
66749
|
+
return Ie() ? 0 : .05;
|
|
66610
66750
|
}
|
|
66611
|
-
function
|
|
66751
|
+
function ze(e) {
|
|
66612
66752
|
let t = Number(e);
|
|
66613
66753
|
return !Number.isFinite(t) || t < 0 ? 0 : Number(t.toFixed(2));
|
|
66614
66754
|
}
|
|
66615
|
-
function
|
|
66755
|
+
function Be(e) {
|
|
66616
66756
|
let t = Number(e);
|
|
66617
66757
|
return !Number.isFinite(t) || t < 0 ? 0 : Math.min(59, Math.floor(t));
|
|
66618
66758
|
}
|
|
66619
|
-
function
|
|
66759
|
+
function Ve(e) {
|
|
66620
66760
|
if (!e) return null;
|
|
66621
66761
|
let t = Number(e.x), n = Number(e.y), r = Number(e.z);
|
|
66622
66762
|
return !Number.isFinite(t) || !Number.isFinite(n) || !Number.isFinite(r) ? null : {
|
|
@@ -66625,90 +66765,90 @@ function YW(e = {}) {
|
|
|
66625
66765
|
z: r
|
|
66626
66766
|
};
|
|
66627
66767
|
}
|
|
66628
|
-
function
|
|
66768
|
+
function He(e) {
|
|
66629
66769
|
let t = Number(e);
|
|
66630
66770
|
return Number.isFinite(t) ? Number(t.toFixed(6)) : null;
|
|
66631
66771
|
}
|
|
66632
|
-
function
|
|
66772
|
+
function Ue(e) {
|
|
66633
66773
|
return e ? {
|
|
66634
|
-
x:
|
|
66635
|
-
y:
|
|
66636
|
-
z:
|
|
66774
|
+
x: He(e.x),
|
|
66775
|
+
y: He(e.y),
|
|
66776
|
+
z: He(e.z)
|
|
66637
66777
|
} : null;
|
|
66638
66778
|
}
|
|
66639
|
-
function
|
|
66779
|
+
function We(t = {}) {
|
|
66640
66780
|
let n = Array.isArray(t.projectedLocations) ? t.projectedLocations : [], r = Array.isArray(t.rawResult) ? t.rawResult : [], i = e.accidentRangeSelectionCenterRelative?.value, a = e.accidentRangeSelectionPickObject?.value;
|
|
66641
66781
|
return {
|
|
66642
66782
|
mode: t.mode || "predict",
|
|
66643
|
-
flowRate:
|
|
66644
|
-
drainageRate:
|
|
66645
|
-
effectiveFlowRate:
|
|
66646
|
-
analysisBaseSpeed:
|
|
66647
|
-
accidentPoint:
|
|
66783
|
+
flowRate: Me(d.value),
|
|
66784
|
+
drainageRate: Ne(f.value),
|
|
66785
|
+
effectiveFlowRate: He(Fe()),
|
|
66786
|
+
analysisBaseSpeed: He(tt.value),
|
|
66787
|
+
accidentPoint: Ue(i),
|
|
66648
66788
|
accidentObjectName: a?.name ?? a?.uuid ?? null,
|
|
66649
|
-
snapshotTime:
|
|
66789
|
+
snapshotTime: He(t.runtimeSnapshot?.time),
|
|
66650
66790
|
locationCount: n.length,
|
|
66651
66791
|
locations: n.map((e, t) => {
|
|
66652
66792
|
let n = r[t] ?? null;
|
|
66653
66793
|
return {
|
|
66654
66794
|
key: e?.key ?? `location-${t + 1}`,
|
|
66655
|
-
label: e?.label ??
|
|
66795
|
+
label: e?.label ?? Ce(t),
|
|
66656
66796
|
isKeyLocation: e?.isKeyLocation === !0,
|
|
66657
66797
|
segmentId: e?.segmentId ?? null,
|
|
66658
|
-
renderPosition:
|
|
66659
|
-
projectedPoint:
|
|
66798
|
+
renderPosition: Ue(e?.renderPosition),
|
|
66799
|
+
projectedPoint: Ue(e?.projectedPoint),
|
|
66660
66800
|
resultStatus: n?.status ?? null,
|
|
66661
|
-
resultTime:
|
|
66662
|
-
resultDelay:
|
|
66801
|
+
resultTime: He(n?.time),
|
|
66802
|
+
resultDelay: He(n?.delay),
|
|
66663
66803
|
resultMessage: n?.message ?? null,
|
|
66664
|
-
shortLabel: n ?
|
|
66804
|
+
shortLabel: n ? be([n]) : null
|
|
66665
66805
|
};
|
|
66666
66806
|
})
|
|
66667
66807
|
};
|
|
66668
66808
|
}
|
|
66669
|
-
function
|
|
66809
|
+
function Ge(e, t, n = null) {
|
|
66670
66810
|
let r = Number.isFinite(Number(e?.time)) ? Number(e.time) : null;
|
|
66671
|
-
return r === null ? e?.status === "flooded" ?
|
|
66811
|
+
return r === null ? e?.status === "flooded" ? Ft(t?.projectedPoint, t?.segmentId, n, je()) : null : r;
|
|
66672
66812
|
}
|
|
66673
|
-
function
|
|
66813
|
+
function Ke(e) {
|
|
66674
66814
|
if (!e || !Array.isArray(e.locations)) return null;
|
|
66675
66815
|
let t = e.locations.find((e) => e?.isKeyLocation === !0);
|
|
66676
66816
|
return t && Number.isFinite(Number(t.resultTime)) ? Number(t.resultTime) : null;
|
|
66677
66817
|
}
|
|
66678
|
-
function
|
|
66818
|
+
function qe(e, t = null) {
|
|
66679
66819
|
if (!e) return null;
|
|
66680
66820
|
try {
|
|
66681
|
-
let n =
|
|
66821
|
+
let n = Mt();
|
|
66682
66822
|
if (!n) return null;
|
|
66683
|
-
if (
|
|
66684
|
-
let r = t ??
|
|
66685
|
-
return
|
|
66823
|
+
if (Ie()) {
|
|
66824
|
+
let r = t ?? At(e);
|
|
66825
|
+
return Pt(n.projectedPoint, n.segmentId, r) ? Ge({
|
|
66686
66826
|
status: "flooded",
|
|
66687
66827
|
time: null
|
|
66688
66828
|
}, n, r) : null;
|
|
66689
66829
|
}
|
|
66690
|
-
let r =
|
|
66830
|
+
let r = rn(e);
|
|
66691
66831
|
if (!r || typeof r.predictArrivalTimes != "function") return null;
|
|
66692
66832
|
let i = r.predictArrivalTimes([n.projectedPointRaw]);
|
|
66693
|
-
return
|
|
66833
|
+
return Ge(Array.isArray(i) ? i[0] : null, n, t);
|
|
66694
66834
|
} catch (e) {
|
|
66695
|
-
return G(`关键点位抵达时间回调计算失败:${
|
|
66835
|
+
return G(`关键点位抵达时间回调计算失败:${K(e)}`), Ke(U);
|
|
66696
66836
|
}
|
|
66697
66837
|
}
|
|
66698
|
-
function
|
|
66838
|
+
function Je(t = null) {
|
|
66699
66839
|
if (typeof e.notifyWaterSimulationParameterChange != "function") return !1;
|
|
66700
|
-
let n =
|
|
66701
|
-
flowRate:
|
|
66702
|
-
drainageRate:
|
|
66840
|
+
let n = qe(t, t ? At(t) : null), r = {
|
|
66841
|
+
flowRate: Me(d.value),
|
|
66842
|
+
drainageRate: Ne(f.value),
|
|
66703
66843
|
keyLocationReachTime: Number.isFinite(Number(n)) ? Math.round(Number(n)) : null
|
|
66704
66844
|
};
|
|
66705
66845
|
try {
|
|
66706
66846
|
return e.notifyWaterSimulationParameterChange(r), !0;
|
|
66707
66847
|
} catch (e) {
|
|
66708
|
-
return G(`水漫延参数变更回调执行失败:${
|
|
66848
|
+
return G(`水漫延参数变更回调执行失败:${K(e)}`), !1;
|
|
66709
66849
|
}
|
|
66710
66850
|
}
|
|
66711
|
-
function
|
|
66851
|
+
function Ye(e, t) {
|
|
66712
66852
|
if (!e || !Array.isArray(e.locations)) return t.locations.map((e) => ({
|
|
66713
66853
|
key: e.key,
|
|
66714
66854
|
label: e.label,
|
|
@@ -66742,98 +66882,98 @@ function YW(e = {}) {
|
|
|
66742
66882
|
});
|
|
66743
66883
|
}), r;
|
|
66744
66884
|
}
|
|
66745
|
-
function
|
|
66746
|
-
let t =
|
|
66885
|
+
function Xe(e = {}) {
|
|
66886
|
+
let t = We(e), n = Ye(U, t), r = n.length > 0 ? n.map((e) => `${e.label}:${e.changeTypes.join("+")}`).join(" / ") : "无变化";
|
|
66747
66887
|
G(`地点分析输入:地点 ${t.locationCount} 个,净涌水量 ${t.effectiveFlowRate ?? "--"},基础速度 ${t.analysisBaseSpeed ?? "--"}`), G(`地点分析对比:${r}`), U = t;
|
|
66748
66888
|
}
|
|
66749
|
-
function
|
|
66889
|
+
function Ze(e) {
|
|
66750
66890
|
H.error(e), se(e), W(e);
|
|
66751
66891
|
}
|
|
66752
|
-
let
|
|
66753
|
-
let e =
|
|
66892
|
+
let Qe = r(() => l.value ? "重新分析" : "开始分析"), $e = r(() => !l.value), et = r(() => u.value ? "继续" : "暂停"), tt = r(() => {
|
|
66893
|
+
let e = Fe();
|
|
66754
66894
|
return Number((e / 360).toFixed(4));
|
|
66755
|
-
}),
|
|
66756
|
-
let e =
|
|
66757
|
-
return Number((
|
|
66758
|
-
}),
|
|
66895
|
+
}), nt = r(() => {
|
|
66896
|
+
let e = Pe(p.value);
|
|
66897
|
+
return Number((tt.value * e).toFixed(4));
|
|
66898
|
+
}), rt = r(() => q(h.value)), it = r(() => q(m.value)), at = r(() => [...g.value, ..._.value].map((e) => ({
|
|
66759
66899
|
...e,
|
|
66760
66900
|
screenStyle: v.value[e.key] ?? null
|
|
66761
66901
|
})));
|
|
66762
|
-
async function
|
|
66763
|
-
let t = e.restoreRangeSelection !== !1
|
|
66764
|
-
return typeof F == "function" && F(), F = null, D.value = !1,
|
|
66902
|
+
async function ot(e = {}) {
|
|
66903
|
+
let t = e.restoreRangeSelection !== !1;
|
|
66904
|
+
return typeof F == "function" && F(), F = null, he(), D.value = !1, Gt(), t && Bt(), !0;
|
|
66765
66905
|
}
|
|
66766
|
-
function
|
|
66767
|
-
|
|
66906
|
+
function st(e = {}) {
|
|
66907
|
+
ot(e);
|
|
66768
66908
|
}
|
|
66769
|
-
function
|
|
66909
|
+
function ct() {
|
|
66770
66910
|
let e = S.value.length > 0 ? S.value[S.value.length - 1] : null;
|
|
66771
66911
|
C.value = e?.absolutePosition ?? null, w.value = e?.relativePosition ?? null, T.value = e?.pickData ?? null;
|
|
66772
66912
|
}
|
|
66773
|
-
function
|
|
66913
|
+
function lt(e = {}) {
|
|
66774
66914
|
let t = e.preserveKeyLocation === !0;
|
|
66775
66915
|
g.value = g.value.filter((e) => !!(typeof e?.key != "string" || !e.key.startsWith("water-analysis-location-result-") || t && e.key === "water-analysis-location-result-key-location"));
|
|
66776
66916
|
}
|
|
66777
|
-
function
|
|
66917
|
+
function ut() {
|
|
66778
66918
|
g.value = g.value.filter((e) => typeof e?.key != "string" || !e.key.startsWith("water-analysis-time-"));
|
|
66779
66919
|
}
|
|
66780
|
-
function
|
|
66920
|
+
function dt() {
|
|
66781
66921
|
g.value = [];
|
|
66782
66922
|
}
|
|
66783
|
-
function
|
|
66923
|
+
function ft(e) {
|
|
66784
66924
|
if (!e || typeof e != "object") return null;
|
|
66785
66925
|
let t = {};
|
|
66786
66926
|
return Object.keys(e).forEach((n) => {
|
|
66787
66927
|
let r = e[n];
|
|
66788
66928
|
if (r && typeof r == "object" && "x" in r && "y" in r && "z" in r) {
|
|
66789
|
-
t[n] =
|
|
66929
|
+
t[n] = Ue(r);
|
|
66790
66930
|
return;
|
|
66791
66931
|
}
|
|
66792
66932
|
(r == null || typeof r == "string" || typeof r == "number" || typeof r == "boolean") && (t[n] = r);
|
|
66793
66933
|
}), t;
|
|
66794
66934
|
}
|
|
66795
|
-
function
|
|
66935
|
+
function pt(e = {}) {
|
|
66796
66936
|
return {
|
|
66797
|
-
point:
|
|
66798
|
-
absolutePosition:
|
|
66799
|
-
relativePosition:
|
|
66937
|
+
point: Ue(e.point),
|
|
66938
|
+
absolutePosition: Ue(e.absolutePosition),
|
|
66939
|
+
relativePosition: Ue(e.relativePosition),
|
|
66800
66940
|
segmentId: e.centerPoint?.minseg ?? null,
|
|
66801
|
-
projectedPoint:
|
|
66941
|
+
projectedPoint: Ue(e.centerPoint?.p_proj),
|
|
66802
66942
|
centerPoint: {
|
|
66803
66943
|
minseg: e.centerPoint?.minseg ?? null,
|
|
66804
|
-
p_proj:
|
|
66805
|
-
p_start:
|
|
66806
|
-
p_end:
|
|
66944
|
+
p_proj: Ue(e.centerPoint?.p_proj),
|
|
66945
|
+
p_start: Ue(e.centerPoint?.p_start),
|
|
66946
|
+
p_end: Ue(e.centerPoint?.p_end)
|
|
66807
66947
|
},
|
|
66808
66948
|
segmentInfoKeys: e.segmentInfo && typeof e.segmentInfo == "object" ? Object.keys(e.segmentInfo) : [],
|
|
66809
|
-
segmentInfo:
|
|
66949
|
+
segmentInfo: ft(e.segmentInfo),
|
|
66810
66950
|
pickDataKeys: e.data && typeof e.data == "object" ? Object.keys(e.data) : []
|
|
66811
66951
|
};
|
|
66812
66952
|
}
|
|
66813
|
-
function
|
|
66953
|
+
function mt() {
|
|
66814
66954
|
_.value = [];
|
|
66815
66955
|
}
|
|
66816
|
-
function
|
|
66817
|
-
let t =
|
|
66956
|
+
function ht(e) {
|
|
66957
|
+
let t = Ve(e?.frontCoord);
|
|
66818
66958
|
if (!t) return `water-runtime-head-${e?.segId ?? "unknown"}`;
|
|
66819
66959
|
let n = Number(t.x.toFixed(3)), r = Number(t.y.toFixed(3)), i = Number(t.z.toFixed(3));
|
|
66820
66960
|
return `water-runtime-head-${e?.segId ?? "unknown"}-${n}-${r}-${i}`;
|
|
66821
66961
|
}
|
|
66822
|
-
function
|
|
66962
|
+
function gt(e) {
|
|
66823
66963
|
let t = e == null ? "" : String(e).trim();
|
|
66824
66964
|
return t ? s.some((e) => {
|
|
66825
66965
|
let n = e == null ? "" : String(e).trim();
|
|
66826
66966
|
return n ? t === n : !1;
|
|
66827
66967
|
}) : !1;
|
|
66828
66968
|
}
|
|
66829
|
-
function
|
|
66969
|
+
function _t(e = null) {
|
|
66830
66970
|
let t = Array.isArray(e?.renderItems) ? e.renderItems : [];
|
|
66831
|
-
if (t.length === 0) return
|
|
66832
|
-
let n =
|
|
66833
|
-
return _.value = t.filter((e) => e?.isFull === !0 || !
|
|
66834
|
-
let t =
|
|
66835
|
-
return
|
|
66836
|
-
key:
|
|
66971
|
+
if (t.length === 0) return mt(), !1;
|
|
66972
|
+
let n = ye(m.value);
|
|
66973
|
+
return _.value = t.filter((e) => e?.isFull === !0 || !Ve(e?.frontCoord) ? !1 : gt(e?.segId)).map((e) => {
|
|
66974
|
+
let t = Ve(e.frontCoord);
|
|
66975
|
+
return Oe({
|
|
66976
|
+
key: ht(e),
|
|
66837
66977
|
level: "medium",
|
|
66838
66978
|
label: "当前水头",
|
|
66839
66979
|
shortLabel: n,
|
|
@@ -66848,26 +66988,26 @@ function YW(e = {}) {
|
|
|
66848
66988
|
});
|
|
66849
66989
|
}), _.value.length > 0;
|
|
66850
66990
|
}
|
|
66851
|
-
function
|
|
66991
|
+
function vt(e) {
|
|
66852
66992
|
if (typeof e != "string" || e.trim() === "") return !1;
|
|
66853
66993
|
let t = !1;
|
|
66854
|
-
return g.value = g.value.map((n) => n?.key !== e || n?.isInteractive !== !0 ? n : (t = !0,
|
|
66994
|
+
return g.value = g.value.map((n) => n?.key !== e || n?.isInteractive !== !0 ? n : (t = !0, Oe({
|
|
66855
66995
|
...n,
|
|
66856
66996
|
isExpanded: n.isExpanded !== !0
|
|
66857
66997
|
}))), t;
|
|
66858
66998
|
}
|
|
66859
|
-
function
|
|
66999
|
+
function yt(e = null, t = null, n = {}) {
|
|
66860
67000
|
if (!Array.isArray(g.value) || g.value.length === 0) return !1;
|
|
66861
|
-
let r = Number.isFinite(Number(t)) ? Math.max(0, Number(t)) :
|
|
66862
|
-
return
|
|
66863
|
-
let n = Number.isFinite(Number(t?.arriveTimeSeconds)) ? Number(t.arriveTimeSeconds) : null, i = t?.enableExpandPrediction !== !1, a =
|
|
67001
|
+
let r = Number.isFinite(Number(t)) ? Math.max(0, Number(t)) : je();
|
|
67002
|
+
return Y(r, n) ? (g.value = g.value.map((t) => {
|
|
67003
|
+
let n = Number.isFinite(Number(t?.arriveTimeSeconds)) ? Number(t.arriveTimeSeconds) : null, i = t?.enableExpandPrediction !== !1, a = Ee({
|
|
66864
67004
|
arriveTimeSeconds: n,
|
|
66865
67005
|
currentElapsedSeconds: r
|
|
66866
|
-
}), o = (t?.analysisType === "location" || t?.analysisType === "time") &&
|
|
67006
|
+
}), o = (t?.analysisType === "location" || t?.analysisType === "time") && Pt(t?.projectedPoint, t?.segmentId, e) || a.isCurrentlyFlooded, s = o && Number.isFinite(n) ? we({
|
|
66867
67007
|
arriveTimeSeconds: Math.min(n, r),
|
|
66868
67008
|
elapsedTimeSeconds: r
|
|
66869
67009
|
}) : null, c = i && a.predictionDetailLines.some((e) => typeof e == "string" && !e.endsWith(":--"));
|
|
66870
|
-
return
|
|
67010
|
+
return Oe({
|
|
66871
67011
|
...t,
|
|
66872
67012
|
isCurrentlyFlooded: o,
|
|
66873
67013
|
currentWaterDepth: s,
|
|
@@ -66877,23 +67017,23 @@ function YW(e = {}) {
|
|
|
66877
67017
|
});
|
|
66878
67018
|
}), !0) : !1;
|
|
66879
67019
|
}
|
|
66880
|
-
function
|
|
67020
|
+
function X() {
|
|
66881
67021
|
te !== null && (window.clearTimeout(te), te = null), k.value = !1;
|
|
66882
67022
|
}
|
|
66883
|
-
function
|
|
66884
|
-
return b.value =
|
|
67023
|
+
function bt() {
|
|
67024
|
+
return b.value = ze(b.value), x.value = Be(x.value), !0;
|
|
66885
67025
|
}
|
|
66886
|
-
function
|
|
67026
|
+
function xt(e) {
|
|
66887
67027
|
let t = Math.max(0, Math.floor(Number(e) || 0)), n = Array.isArray(y.value) ? [...y.value] : [], r = n.findIndex((e) => e === t);
|
|
66888
|
-
return r >= 0 ? n.splice(r, 1) : (n.push(t), n.sort((e, t) => e - t)), y.value = n, j.value = "",
|
|
67028
|
+
return r >= 0 ? n.splice(r, 1) : (n.push(t), n.sort((e, t) => e - t)), y.value = n, j.value = "", Et("时间分析条件已变更"), !0;
|
|
66889
67029
|
}
|
|
66890
|
-
function
|
|
66891
|
-
return b.value === "" || b.value === null ? (b.value = "", x.value = 0, j.value = "",
|
|
67030
|
+
function St() {
|
|
67031
|
+
return b.value === "" || b.value === null ? (b.value = "", x.value = 0, j.value = "", Et("时间分析条件已变更"), !0) : (b.value = ze(b.value), x.value = 0, j.value = "", Et("时间分析条件已变更"), !0);
|
|
66892
67032
|
}
|
|
66893
|
-
function
|
|
67033
|
+
function Ct(e) {
|
|
66894
67034
|
return e <= 60 ? "short" : e <= 600 ? "medium" : "long";
|
|
66895
67035
|
}
|
|
66896
|
-
function
|
|
67036
|
+
function wt() {
|
|
66897
67037
|
let t = Array.isArray(e.analysisTimeOptions) ? e.analysisTimeOptions : [], n = /* @__PURE__ */ new Map();
|
|
66898
67038
|
(Array.isArray(y.value) ? y.value : []).forEach((e) => {
|
|
66899
67039
|
if (!(e > 0)) return;
|
|
@@ -66904,22 +67044,22 @@ function YW(e = {}) {
|
|
|
66904
67044
|
seconds: i,
|
|
66905
67045
|
label: r.label,
|
|
66906
67046
|
shortLabel: r.label,
|
|
66907
|
-
level:
|
|
67047
|
+
level: Ct(i)
|
|
66908
67048
|
});
|
|
66909
67049
|
});
|
|
66910
|
-
let r =
|
|
67050
|
+
let r = ze(b.value);
|
|
66911
67051
|
if (r > 0) {
|
|
66912
|
-
let e = Number((r * 60 * 60).toFixed(2)), t =
|
|
67052
|
+
let e = Number((r * 60 * 60).toFixed(2)), t = Se(e);
|
|
66913
67053
|
n.set(`custom-${r}`, {
|
|
66914
67054
|
seconds: e,
|
|
66915
67055
|
label: t,
|
|
66916
67056
|
shortLabel: t,
|
|
66917
|
-
level:
|
|
67057
|
+
level: Ct(e)
|
|
66918
67058
|
});
|
|
66919
67059
|
}
|
|
66920
67060
|
return Array.from(n.values());
|
|
66921
67061
|
}
|
|
66922
|
-
function
|
|
67062
|
+
function Tt(e) {
|
|
66923
67063
|
return e ? (V = {
|
|
66924
67064
|
timeSelections: Array.isArray(e.timeSelections) ? e.timeSelections.map((e) => ({
|
|
66925
67065
|
seconds: Number(e?.seconds) || 0,
|
|
@@ -66930,15 +67070,15 @@ function YW(e = {}) {
|
|
|
66930
67070
|
hasLocationSelection: e.hasLocationSelection === !0
|
|
66931
67071
|
}, !0) : (V = null, !1);
|
|
66932
67072
|
}
|
|
66933
|
-
function
|
|
67073
|
+
function Et(e = "") {
|
|
66934
67074
|
if (!l.value) return !1;
|
|
66935
|
-
let t =
|
|
67075
|
+
let t = en();
|
|
66936
67076
|
if (!t) return !1;
|
|
66937
|
-
let n =
|
|
66938
|
-
if (
|
|
66939
|
-
|
|
67077
|
+
let n = wt(), r = S.value.length > 0 || !D.value, i = Le(), a = [], o = At(t);
|
|
67078
|
+
if (X(), ut(), i || n.forEach((e) => {
|
|
67079
|
+
Yt(t, e, o) && a.push(`时间分析:${e.label}`);
|
|
66940
67080
|
}), n.length === 0 || i) {
|
|
66941
|
-
|
|
67081
|
+
Tt({
|
|
66942
67082
|
timeSelections: n,
|
|
66943
67083
|
hasLocationSelection: r
|
|
66944
67084
|
});
|
|
@@ -66946,56 +67086,56 @@ function YW(e = {}) {
|
|
|
66946
67086
|
return se(t), W(t), !0;
|
|
66947
67087
|
}
|
|
66948
67088
|
if (a.length === 0) return !1;
|
|
66949
|
-
|
|
67089
|
+
yt(o, je(), { force: !0 }), Tt({
|
|
66950
67090
|
timeSelections: n,
|
|
66951
67091
|
hasLocationSelection: r
|
|
66952
67092
|
});
|
|
66953
67093
|
let s = a.join(" / "), c = e ? `已更新分析结果(${e}):${s}` : `已更新分析结果:${s}`;
|
|
66954
67094
|
return se(c), W(c), !0;
|
|
66955
67095
|
}
|
|
66956
|
-
function
|
|
67096
|
+
function Dt(e = "") {
|
|
66957
67097
|
if (!l.value) return !1;
|
|
66958
|
-
let t =
|
|
67098
|
+
let t = en();
|
|
66959
67099
|
if (!t) return !1;
|
|
66960
|
-
let n =
|
|
66961
|
-
if (
|
|
67100
|
+
let n = wt(), r = S.value.length > 0 || !D.value;
|
|
67101
|
+
if (X(), lt(), !r) return Tt({
|
|
66962
67102
|
timeSelections: n,
|
|
66963
67103
|
hasLocationSelection: !1
|
|
66964
67104
|
}), !0;
|
|
66965
|
-
let i =
|
|
66966
|
-
if (!
|
|
66967
|
-
|
|
67105
|
+
let i = At(t);
|
|
67106
|
+
if (!Xt(t, i)) return !1;
|
|
67107
|
+
yt(i, je(), { force: !0 }), Tt({
|
|
66968
67108
|
timeSelections: n,
|
|
66969
67109
|
hasLocationSelection: !0
|
|
66970
67110
|
});
|
|
66971
|
-
let a =
|
|
67111
|
+
let a = Rt(), o = e ? `已更新分析结果(${e}):${a}` : `已更新分析结果:${a}`;
|
|
66972
67112
|
return se(o), W(o), !0;
|
|
66973
67113
|
}
|
|
66974
|
-
function
|
|
67114
|
+
function Ot(e) {
|
|
66975
67115
|
if (!e) return !1;
|
|
66976
|
-
let t =
|
|
66977
|
-
return
|
|
67116
|
+
let t = wt(), n = At(e);
|
|
67117
|
+
return lt(), Xt(e, n) ? (yt(n, je(), { force: !0 }), Tt({
|
|
66978
67118
|
timeSelections: t,
|
|
66979
67119
|
hasLocationSelection: !0
|
|
66980
67120
|
}), !0) : !1;
|
|
66981
67121
|
}
|
|
66982
|
-
function
|
|
67122
|
+
function kt(e, t) {
|
|
66983
67123
|
if (!e || !t) return Infinity;
|
|
66984
67124
|
let n = Number(t.x) - Number(e.x), r = Number(t.y) - Number(e.y), i = Number(t.z) - Number(e.z);
|
|
66985
67125
|
return Math.sqrt(n ** 2 + r ** 2 + i ** 2);
|
|
66986
67126
|
}
|
|
66987
|
-
function
|
|
67127
|
+
function At(e) {
|
|
66988
67128
|
let t = e?.pathSim;
|
|
66989
67129
|
if (!t || typeof t.getRenderData != "function") return null;
|
|
66990
67130
|
try {
|
|
66991
|
-
let e = t.getRenderData(), n = new Map(Array.isArray(t.sources) ? t.sources.map((e) => [e?.sourceId,
|
|
67131
|
+
let e = t.getRenderData(), n = new Map(Array.isArray(t.sources) ? t.sources.map((e) => [e?.sourceId, Ve(e?.point)]) : []), r = Object.values(e).map((e) => {
|
|
66992
67132
|
let t = n.get(e?.sourceId);
|
|
66993
67133
|
return {
|
|
66994
67134
|
segId: e?.segId,
|
|
66995
67135
|
isFull: e?.isFull === !0,
|
|
66996
|
-
startCoord: t ??
|
|
66997
|
-
frontCoord:
|
|
66998
|
-
endCoord:
|
|
67136
|
+
startCoord: t ?? Ve(e?.startCoord),
|
|
67137
|
+
frontCoord: Ve(e?.frontCoord),
|
|
67138
|
+
endCoord: Ve(e?.endCoord)
|
|
66999
67139
|
};
|
|
67000
67140
|
}).filter((e) => e.startCoord && e.frontCoord && e.endCoord);
|
|
67001
67141
|
return {
|
|
@@ -67006,13 +67146,13 @@ function YW(e = {}) {
|
|
|
67006
67146
|
return null;
|
|
67007
67147
|
}
|
|
67008
67148
|
}
|
|
67009
|
-
function
|
|
67149
|
+
function jt() {
|
|
67010
67150
|
return { ...i };
|
|
67011
67151
|
}
|
|
67012
|
-
function
|
|
67013
|
-
let t =
|
|
67152
|
+
function Mt() {
|
|
67153
|
+
let t = jt(), r = e.toRelativePosition?.(t), i = e.getThreeGlobal?.();
|
|
67014
67154
|
if (!e.isVectorLike?.(r)) throw Error("水漫延地点分析失败:关键点位相对坐标无效");
|
|
67015
|
-
let o =
|
|
67155
|
+
let o = Ve(a.projectedPoint);
|
|
67016
67156
|
if (!o) throw Error("水漫延地点分析失败:关键点位分析参数无效");
|
|
67017
67157
|
return {
|
|
67018
67158
|
key: "key-location",
|
|
@@ -67032,13 +67172,13 @@ function YW(e = {}) {
|
|
|
67032
67172
|
}
|
|
67033
67173
|
};
|
|
67034
67174
|
}
|
|
67035
|
-
function
|
|
67175
|
+
function Nt(e) {
|
|
67036
67176
|
return [...S.value.map((t, n) => {
|
|
67037
|
-
let r = e._getCenterPoint(t.pickData), i = r?.p_proj, a =
|
|
67177
|
+
let r = e._getCenterPoint(t.pickData), i = r?.p_proj, a = Ve(i), o = r?.minseg;
|
|
67038
67178
|
if (!i || !a || o == null) throw Error(`水漫延地点分析失败:第${n + 1}个分析地点未能解析投影坐标`);
|
|
67039
67179
|
return {
|
|
67040
67180
|
key: t.key,
|
|
67041
|
-
label:
|
|
67181
|
+
label: Ce(n),
|
|
67042
67182
|
isKeyLocation: !1,
|
|
67043
67183
|
projectedPointRaw: i,
|
|
67044
67184
|
projectedPoint: a,
|
|
@@ -67049,38 +67189,38 @@ function YW(e = {}) {
|
|
|
67049
67189
|
z: Number(t.relativePosition.z)
|
|
67050
67190
|
}
|
|
67051
67191
|
};
|
|
67052
|
-
}),
|
|
67192
|
+
}), Mt()];
|
|
67053
67193
|
}
|
|
67054
|
-
function
|
|
67194
|
+
function Pt(e, n, r) {
|
|
67055
67195
|
if (!e || !r || !Array.isArray(r.renderItems)) return !1;
|
|
67056
67196
|
let i = t;
|
|
67057
67197
|
return r.renderItems.some((t) => {
|
|
67058
67198
|
if (t.segId !== n) return !1;
|
|
67059
67199
|
if (t.isFull) return !0;
|
|
67060
|
-
let r =
|
|
67200
|
+
let r = kt(t.startCoord, t.frontCoord), a = kt(t.startCoord, e), o = kt(t.startCoord, t.endCoord), s = kt(e, t.endCoord);
|
|
67061
67201
|
return !Number.isFinite(r) || !Number.isFinite(a) || !Number.isFinite(o) ? !1 : Math.abs(a + s - o) <= i && a <= r + i;
|
|
67062
67202
|
});
|
|
67063
67203
|
}
|
|
67064
|
-
function
|
|
67204
|
+
function Ft(e, n, r, i) {
|
|
67065
67205
|
if (!e || !r || !Array.isArray(r.renderItems)) return null;
|
|
67066
67206
|
let a = Math.max(0, Number(i) || 0), o = t;
|
|
67067
67207
|
for (let t of r.renderItems) {
|
|
67068
67208
|
if (t.segId !== n || t.isFull) continue;
|
|
67069
|
-
let r =
|
|
67209
|
+
let r = kt(t.startCoord, t.frontCoord), i = kt(t.startCoord, e), s = kt(t.startCoord, t.endCoord), c = kt(e, t.endCoord);
|
|
67070
67210
|
if (!(!Number.isFinite(r) || !Number.isFinite(i) || !Number.isFinite(s) || r <= o) && !(!(Math.abs(i + c - s) <= o) || i > r + o)) return a * Math.min(1, Math.max(0, i / r));
|
|
67071
67211
|
}
|
|
67072
67212
|
return null;
|
|
67073
67213
|
}
|
|
67074
|
-
function
|
|
67075
|
-
|
|
67076
|
-
let r =
|
|
67214
|
+
function It(e, t, n = null) {
|
|
67215
|
+
gn();
|
|
67216
|
+
let r = je();
|
|
67077
67217
|
return g.value = [...g.value, ...t.map((t, i) => {
|
|
67078
|
-
let a = e[i] ?? null, o = a?.status ?? null, s =
|
|
67079
|
-
return
|
|
67218
|
+
let a = e[i] ?? null, o = a?.status ?? null, s = Ge(a, t, n), c = o === "reachable" || o === "flooded";
|
|
67219
|
+
return ke({
|
|
67080
67220
|
key: `water-analysis-location-result-${t.key}`,
|
|
67081
67221
|
level: "medium",
|
|
67082
|
-
label: t.label ??
|
|
67083
|
-
shortLabel:
|
|
67222
|
+
label: t.label ?? Ce(i),
|
|
67223
|
+
shortLabel: be([a]),
|
|
67084
67224
|
analysisType: "location",
|
|
67085
67225
|
arriveTimeSeconds: s,
|
|
67086
67226
|
currentElapsedSeconds: r,
|
|
@@ -67095,8 +67235,8 @@ function YW(e = {}) {
|
|
|
67095
67235
|
});
|
|
67096
67236
|
})], !0;
|
|
67097
67237
|
}
|
|
67098
|
-
function
|
|
67099
|
-
let r = n ??
|
|
67238
|
+
function Lt(e, t, n = null) {
|
|
67239
|
+
let r = n ?? At(e), i = t.map(({ projectedPoint: e, segmentId: t }) => Pt(e, t, r) ? {
|
|
67100
67240
|
status: "flooded",
|
|
67101
67241
|
time: null,
|
|
67102
67242
|
delay: 0,
|
|
@@ -67109,7 +67249,7 @@ function YW(e = {}) {
|
|
|
67109
67249
|
segmentId: t,
|
|
67110
67250
|
message: "当前水流已停止,地点不被淹没"
|
|
67111
67251
|
});
|
|
67112
|
-
|
|
67252
|
+
Xe({
|
|
67113
67253
|
mode: "stopped",
|
|
67114
67254
|
projectedLocations: t,
|
|
67115
67255
|
rawResult: i,
|
|
@@ -67120,13 +67260,13 @@ function YW(e = {}) {
|
|
|
67120
67260
|
} catch {
|
|
67121
67261
|
W("水漫延地点分析返回:结果包含不可序列化内容,请在控制台查看原始数据");
|
|
67122
67262
|
}
|
|
67123
|
-
return
|
|
67263
|
+
return It(i, t, r);
|
|
67124
67264
|
}
|
|
67125
|
-
function
|
|
67265
|
+
function Rt() {
|
|
67126
67266
|
let e = Math.max(0, Number(E.value) || 0);
|
|
67127
67267
|
return e > 0 ? `地点分析:${e}个地点 + ${n}` : `地点分析:${n}`;
|
|
67128
67268
|
}
|
|
67129
|
-
function
|
|
67269
|
+
function zt() {
|
|
67130
67270
|
if (I = null, e.rangeSelectionState?.value !== "picking") return !1;
|
|
67131
67271
|
let t = e.resolveRangeSelectionType?.(e.activeRangeSelectionType?.value);
|
|
67132
67272
|
if (t === e.rangeSelectionTypes?.ACCIDENT) return e.clearRangeSelectionInteraction?.(), !0;
|
|
@@ -67137,26 +67277,17 @@ function YW(e = {}) {
|
|
|
67137
67277
|
radius: Number(n)
|
|
67138
67278
|
}, e.clearRangeSelectionInteraction?.(), !0;
|
|
67139
67279
|
}
|
|
67140
|
-
function
|
|
67280
|
+
function Bt() {
|
|
67141
67281
|
if (!I) return !1;
|
|
67142
67282
|
let t = { ...I };
|
|
67143
67283
|
return I = null, e.startRangeSelectionByMode?.({ radius: t.radius }, t.pickMode, t.selectionType) ?? !1;
|
|
67144
67284
|
}
|
|
67145
|
-
function
|
|
67146
|
-
return typeof e.isExitPathGenerated == "function" ? e.isExitPathGenerated() === !0 : !1;
|
|
67147
|
-
}
|
|
67148
|
-
async function Pt() {
|
|
67149
|
-
return R = !1, Nt() ? typeof e.clearGeneratedExitPath != "function" || !await Promise.resolve(e.clearGeneratedExitPath()) || Nt() ? !1 : (R = !0, !0) : !0;
|
|
67150
|
-
}
|
|
67151
|
-
async function Ft() {
|
|
67152
|
-
return !R || (R = !1, Nt() || typeof e.restoreExitPathByAccident != "function") ? !1 : (await Promise.resolve(e.restoreExitPathByAccident()), !0);
|
|
67153
|
-
}
|
|
67154
|
-
function It(t) {
|
|
67285
|
+
function Vt(t) {
|
|
67155
67286
|
let n = t?.absolutePosition ?? null, r = t?.relativePosition ?? null;
|
|
67156
67287
|
if (!e.isVectorLike?.(n) || !e.isVectorLike?.(r)) throw Error("水漫延地点分析失败:分析地点坐标无效");
|
|
67157
|
-
|
|
67288
|
+
ne += 1;
|
|
67158
67289
|
let i = {
|
|
67159
|
-
key: `water-analysis-location-${
|
|
67290
|
+
key: `water-analysis-location-${ne}`,
|
|
67160
67291
|
absolutePosition: {
|
|
67161
67292
|
x: Number(n.x),
|
|
67162
67293
|
y: Number(n.y),
|
|
@@ -67169,16 +67300,16 @@ function YW(e = {}) {
|
|
|
67169
67300
|
},
|
|
67170
67301
|
pickData: t?.pickData ?? null
|
|
67171
67302
|
};
|
|
67172
|
-
return S.value = [...S.value, i],
|
|
67303
|
+
return S.value = [...S.value, i], ct(), i;
|
|
67173
67304
|
}
|
|
67174
|
-
async function
|
|
67175
|
-
return !D.value && typeof F != "function" ? !0 : (await
|
|
67305
|
+
async function Ht(t = {}) {
|
|
67306
|
+
return !D.value && typeof F != "function" ? !0 : (await ot(t), t.updateStatus !== !1 && (se("已结束水漫延地点分析拾取"), W(e.workfacePanelStatus?.value ?? "")), !0);
|
|
67176
67307
|
}
|
|
67177
|
-
function
|
|
67308
|
+
function Ut(t = {}) {
|
|
67178
67309
|
return !O.value && typeof ee != "function" ? !0 : (typeof ee == "function" && ee(), ee = null, O.value = !1, t.updateStatus !== !1 && (se("已结束巷道信息测试拾取"), W(e.workfacePanelStatus?.value ?? "")), !0);
|
|
67179
67310
|
}
|
|
67180
|
-
function
|
|
67181
|
-
|
|
67311
|
+
function Wt() {
|
|
67312
|
+
R = null;
|
|
67182
67313
|
let t = [];
|
|
67183
67314
|
return [e.rangeSelectionTypes?.DEFAULT, e.rangeSelectionTypes?.ACCIDENT].forEach((n) => {
|
|
67184
67315
|
let r = e.resolveRangeSelectionBinding?.(n);
|
|
@@ -67188,27 +67319,23 @@ function YW(e = {}) {
|
|
|
67188
67319
|
visible: e.visible !== !1
|
|
67189
67320
|
}), e.visible = !1);
|
|
67190
67321
|
});
|
|
67191
|
-
}), t.length ? (
|
|
67322
|
+
}), t.length ? (R = t, cj(), !0) : !1;
|
|
67192
67323
|
}
|
|
67193
|
-
function
|
|
67194
|
-
return !Array.isArray(
|
|
67324
|
+
function Gt() {
|
|
67325
|
+
return !Array.isArray(R) || !R.length ? (R = null, !1) : (R.forEach((e) => {
|
|
67195
67326
|
e?.object && (e.object.visible = e.visible !== !1);
|
|
67196
|
-
}),
|
|
67327
|
+
}), R = null, cj(), !0);
|
|
67197
67328
|
}
|
|
67198
|
-
async function
|
|
67199
|
-
if (D.value) return
|
|
67200
|
-
let t =
|
|
67329
|
+
async function Kt() {
|
|
67330
|
+
if (D.value) return Ht();
|
|
67331
|
+
let t = en();
|
|
67201
67332
|
if (!t) return !1;
|
|
67202
|
-
if (typeof t.startSelect != "function") return
|
|
67203
|
-
if (typeof t.predictPoints != "function") return
|
|
67333
|
+
if (typeof t.startSelect != "function") return Ze("水漫延分析拾取失败:控制对象缺少 startSelect 方法"), !1;
|
|
67334
|
+
if (typeof t.predictPoints != "function") return Ze("水漫延地点分析失败:控制对象缺少 predictPoints 方法"), !1;
|
|
67204
67335
|
try {
|
|
67205
67336
|
t?.endSelect?.();
|
|
67206
67337
|
} catch {}
|
|
67207
|
-
|
|
67208
|
-
restoreRangeSelection: !1,
|
|
67209
|
-
restoreExitPath: !1
|
|
67210
|
-
}), jt(), zt(), !await Pt()) return $e({ restoreExitPath: !1 }), Ue("水漫延分析拾取失败:避灾线路关闭失败,请稍后重试"), !1;
|
|
67211
|
-
e.cancelMonitorPointPlacement?.({ preserveStatus: !0 }), D.value = !0, j.value = "", se("水漫延地点分析拾取中,请在三维场景内单击目标位置"), W("已进入水漫延地点分析拾取模式,等待点击三维场景");
|
|
67338
|
+
Ut({ updateStatus: !1 }), st({ restoreRangeSelection: !1 }), zt(), Wt(), e.cancelMonitorPointPlacement?.({ preserveStatus: !0 }), D.value = !0, j.value = "", me(), se("水漫延地点分析拾取中,请在三维场景内单击目标位置"), W("已进入水漫延地点分析拾取模式,等待点击三维场景");
|
|
67212
67339
|
let n = async (t) => {
|
|
67213
67340
|
let n = t?.point;
|
|
67214
67341
|
if (!n || !Number.isFinite(n.x) || !Number.isFinite(n.y) || !Number.isFinite(n.z)) {
|
|
@@ -67220,21 +67347,21 @@ function YW(e = {}) {
|
|
|
67220
67347
|
G("水漫延地点分析拾取失败:无法解析绝对坐标");
|
|
67221
67348
|
return;
|
|
67222
67349
|
}
|
|
67223
|
-
let i =
|
|
67350
|
+
let i = Ve(n);
|
|
67224
67351
|
if (!e.isVectorLike?.(i)) {
|
|
67225
67352
|
G("水漫延地点分析拾取失败:无法解析相对坐标");
|
|
67226
67353
|
return;
|
|
67227
67354
|
}
|
|
67228
|
-
return
|
|
67355
|
+
return Vt({
|
|
67229
67356
|
absolutePosition: r,
|
|
67230
67357
|
relativePosition: i,
|
|
67231
67358
|
pickData: t
|
|
67232
|
-
}),
|
|
67359
|
+
}), vn(), Dt("已新增分析地点"), se(`已添加分析地点${E.value}:${_e(r)},可继续点击添加或再次点击按钮结束拾取`), W(e.workfacePanelStatus?.value ?? ""), t;
|
|
67233
67360
|
};
|
|
67234
67361
|
try {
|
|
67235
67362
|
t.startSelect(n);
|
|
67236
67363
|
} catch (e) {
|
|
67237
|
-
return
|
|
67364
|
+
return st(), Ze(`水漫延分析拾取失败:${K(e)}`), !1;
|
|
67238
67365
|
}
|
|
67239
67366
|
return F = () => {
|
|
67240
67367
|
try {
|
|
@@ -67242,18 +67369,18 @@ function YW(e = {}) {
|
|
|
67242
67369
|
} catch {}
|
|
67243
67370
|
}, !0;
|
|
67244
67371
|
}
|
|
67245
|
-
async function
|
|
67246
|
-
if (O.value) return
|
|
67247
|
-
let t =
|
|
67372
|
+
async function qt() {
|
|
67373
|
+
if (O.value) return Ut();
|
|
67374
|
+
let t = en();
|
|
67248
67375
|
if (!t) return !1;
|
|
67249
|
-
if (typeof t.startSelect != "function") return
|
|
67250
|
-
if (typeof t._getCenterPoint != "function") return
|
|
67376
|
+
if (typeof t.startSelect != "function") return Ze("巷道信息测试拾取失败:控制对象缺少 startSelect 方法"), !1;
|
|
67377
|
+
if (typeof t._getCenterPoint != "function") return Ze("巷道信息测试拾取失败:控制对象缺少 _getCenterPoint 方法"), !1;
|
|
67251
67378
|
try {
|
|
67252
67379
|
t?.endSelect?.();
|
|
67253
67380
|
} catch {}
|
|
67254
|
-
await
|
|
67381
|
+
await Ht({ updateStatus: !1 }), e.cancelMonitorPointPlacement?.({ preserveStatus: !0 }), O.value = !0, se("巷道信息测试拾取中,请在三维场景内单击目标巷道"), W("已进入巷道信息测试拾取模式,等待点击三维场景");
|
|
67255
67382
|
let n = (n) => {
|
|
67256
|
-
let r =
|
|
67383
|
+
let r = Ve(n?.point), i = r ? e.toAbsolutePosition?.(r) ?? null : null, a = t._getCenterPoint(n), o = nn(t, a?.minseg), s = pt({
|
|
67257
67384
|
data: n,
|
|
67258
67385
|
point: n?.point ?? null,
|
|
67259
67386
|
absolutePosition: i,
|
|
@@ -67266,7 +67393,7 @@ function YW(e = {}) {
|
|
|
67266
67393
|
try {
|
|
67267
67394
|
t.startSelect(n);
|
|
67268
67395
|
} catch (e) {
|
|
67269
|
-
return
|
|
67396
|
+
return Ut({ updateStatus: !1 }), Ze(`巷道信息测试拾取失败:${K(e)}`), !1;
|
|
67270
67397
|
}
|
|
67271
67398
|
return ee = () => {
|
|
67272
67399
|
try {
|
|
@@ -67274,15 +67401,15 @@ function YW(e = {}) {
|
|
|
67274
67401
|
} catch {}
|
|
67275
67402
|
}, !0;
|
|
67276
67403
|
}
|
|
67277
|
-
function
|
|
67404
|
+
function Jt(e, t, n = null) {
|
|
67278
67405
|
let r = Array.isArray(t) ? t.map((e) => {
|
|
67279
|
-
let t =
|
|
67406
|
+
let t = Ve(e?.projectedPoint ?? e?.frontCoord ?? e);
|
|
67280
67407
|
return t ? {
|
|
67281
67408
|
projectedPoint: t,
|
|
67282
67409
|
segmentId: e?.segmentId ?? e?.segId ?? null
|
|
67283
67410
|
} : null;
|
|
67284
|
-
}).filter(Boolean) : [], i =
|
|
67285
|
-
return r.map((t, n) =>
|
|
67411
|
+
}).filter(Boolean) : [], i = je();
|
|
67412
|
+
return r.map((t, n) => ke({
|
|
67286
67413
|
key: `water-analysis-time-${String(e.seconds).replace(".", "_")}-${n}`,
|
|
67287
67414
|
level: e.level,
|
|
67288
67415
|
label: e.label,
|
|
@@ -67300,11 +67427,11 @@ function YW(e = {}) {
|
|
|
67300
67427
|
}
|
|
67301
67428
|
}));
|
|
67302
67429
|
}
|
|
67303
|
-
function
|
|
67430
|
+
function Yt(t, n, r = null) {
|
|
67304
67431
|
if (!t || !n) return !1;
|
|
67305
67432
|
try {
|
|
67306
|
-
let i =
|
|
67307
|
-
if (!i || typeof i.update != "function" || typeof i.getRenderData != "function") return
|
|
67433
|
+
let i = rn(t);
|
|
67434
|
+
if (!i || typeof i.update != "function" || typeof i.getRenderData != "function") return Ze("水漫延时间分析失败:时间分析模拟器初始化失败"), !1;
|
|
67308
67435
|
let a = Math.max(0, Number(n.seconds) || 0), o = a;
|
|
67309
67436
|
for (; o > 0;) {
|
|
67310
67437
|
let t = Math.min(Number(e.timeAnalysisStepSeconds) || 1, o);
|
|
@@ -67320,23 +67447,23 @@ function YW(e = {}) {
|
|
|
67320
67447
|
} catch {
|
|
67321
67448
|
W("水漫延时间分析返回:结果包含不可序列化内容,请在控制台查看原始数据");
|
|
67322
67449
|
}
|
|
67323
|
-
return g.value = [...g.value, ...
|
|
67450
|
+
return g.value = [...g.value, ...Jt(n, c, r)], !0;
|
|
67324
67451
|
} catch (e) {
|
|
67325
|
-
return
|
|
67452
|
+
return Ze(`水漫延时间分析失败:${K(e)}`), !1;
|
|
67326
67453
|
}
|
|
67327
67454
|
}
|
|
67328
|
-
function
|
|
67455
|
+
function Xt(e, t = null) {
|
|
67329
67456
|
if (!e) return !1;
|
|
67330
67457
|
try {
|
|
67331
|
-
if (Array.isArray(S.value) && S.value.length > 0 && typeof e._getCenterPoint != "function") return
|
|
67332
|
-
let n =
|
|
67458
|
+
if (Array.isArray(S.value) && S.value.length > 0 && typeof e._getCenterPoint != "function") return Ze("水漫延地点分析失败:控制对象缺少 _getCenterPoint 方法"), !1;
|
|
67459
|
+
let n = Nt(e);
|
|
67333
67460
|
if (!Array.isArray(n) || n.length === 0) return !1;
|
|
67334
|
-
if (
|
|
67335
|
-
let r =
|
|
67336
|
-
if (!r || typeof r.predictArrivalTimes != "function") return
|
|
67461
|
+
if (Ie()) return Lt(e, n, t);
|
|
67462
|
+
let r = rn(e);
|
|
67463
|
+
if (!r || typeof r.predictArrivalTimes != "function") return Ze("水漫延地点分析失败:地点分析模拟器初始化失败"), !1;
|
|
67337
67464
|
let i = n.map((e) => e.projectedPointRaw), a = r.predictArrivalTimes(i);
|
|
67338
67465
|
if (!Array.isArray(a) || a.length !== n.length) throw Error("水漫延地点分析失败:返回结果数量与分析地点数量不一致");
|
|
67339
|
-
|
|
67466
|
+
Xe({
|
|
67340
67467
|
mode: "predict",
|
|
67341
67468
|
projectedLocations: n,
|
|
67342
67469
|
rawResult: a,
|
|
@@ -67347,44 +67474,44 @@ function YW(e = {}) {
|
|
|
67347
67474
|
} catch {
|
|
67348
67475
|
W("水漫延地点分析返回:结果包含不可序列化内容,请在控制台查看原始数据");
|
|
67349
67476
|
}
|
|
67350
|
-
return
|
|
67477
|
+
return It(a, n, t);
|
|
67351
67478
|
} catch (e) {
|
|
67352
|
-
return
|
|
67479
|
+
return Ze(`水漫延地点分析失败:${K(e)}`), !1;
|
|
67353
67480
|
}
|
|
67354
67481
|
}
|
|
67355
|
-
function
|
|
67356
|
-
let n = Array.isArray(t?.timeSelections) ? t.timeSelections : [], r = t?.hasLocationSelection === !0, i = t?.runtimeSnapshot ??
|
|
67357
|
-
return
|
|
67358
|
-
|
|
67359
|
-
}), r &&
|
|
67482
|
+
function Zt(e, t) {
|
|
67483
|
+
let n = Array.isArray(t?.timeSelections) ? t.timeSelections : [], r = t?.hasLocationSelection === !0, i = t?.runtimeSnapshot ?? At(e), a = Le(), o = [];
|
|
67484
|
+
return dt(), a ? ut() : n.forEach((t) => {
|
|
67485
|
+
Yt(e, t, i) && o.push(`时间分析:${t.label}`);
|
|
67486
|
+
}), r && Xt(e, i) && o.push(Rt()), yt(i, je(), { force: !0 }), o;
|
|
67360
67487
|
}
|
|
67361
|
-
function
|
|
67488
|
+
function Qt(e) {
|
|
67362
67489
|
if (!e || !V) return !1;
|
|
67363
|
-
let t =
|
|
67490
|
+
let t = Zt(e, V);
|
|
67364
67491
|
return t.length === 0 ? !1 : (se(`已更新分析结果:${t.join(" / ")}`), W(`参数变更后已重算分析结果:${t.join(" / ")}`), !0);
|
|
67365
67492
|
}
|
|
67366
|
-
async function
|
|
67367
|
-
D.value && await
|
|
67368
|
-
let t =
|
|
67369
|
-
if (!
|
|
67370
|
-
let a =
|
|
67493
|
+
async function $t() {
|
|
67494
|
+
D.value && await Ht({ updateStatus: !1 }), X(), Cn();
|
|
67495
|
+
let t = wt(), n = !D.value, r = l.value ? en() : null, i = r ? At(r) : null;
|
|
67496
|
+
if (!wn({ skipAutoLocationAnalysis: !0 })) return !1;
|
|
67497
|
+
let a = en();
|
|
67371
67498
|
if (!a) return !1;
|
|
67372
67499
|
let o = [];
|
|
67373
|
-
return t.length === 0 && !n ? (
|
|
67500
|
+
return t.length === 0 && !n ? (dt(), Tt(null), se("已开始水漫延演示"), W(e.workfacePanelStatus?.value ?? ""), !0) : (o.push(...Zt(a, {
|
|
67374
67501
|
timeSelections: t,
|
|
67375
67502
|
hasLocationSelection: n,
|
|
67376
67503
|
runtimeSnapshot: i
|
|
67377
|
-
})), o.length === 0 ? !1 : (
|
|
67504
|
+
})), o.length === 0 ? !1 : (Tt({
|
|
67378
67505
|
timeSelections: t,
|
|
67379
67506
|
hasLocationSelection: n
|
|
67380
67507
|
}), k.value = !0, se(`分析中:${o.join(" / ")}`), te = window.setTimeout(() => {
|
|
67381
67508
|
te = null, k.value = !1, se("");
|
|
67382
67509
|
}, Number(e.analysisLoadingDelayMs) || 1200), !0));
|
|
67383
67510
|
}
|
|
67384
|
-
function
|
|
67385
|
-
return typeof window > "u" ? (
|
|
67511
|
+
function en() {
|
|
67512
|
+
return typeof window > "u" ? (Ze("水漫延控制对象获取失败:当前环境缺少 window"), null) : window.lr3dapp?.editor?.manager?.modules?.waterSimulation || (Ze(`水漫延控制对象获取失败:未找到 ${e.modulePath || "window[\"lr3dapp\"].editor.manager.modules.waterSimulation"}`), null);
|
|
67386
67513
|
}
|
|
67387
|
-
function
|
|
67514
|
+
function tn(e) {
|
|
67388
67515
|
if (!e) return null;
|
|
67389
67516
|
if (e.pathSimPrecidct) return e.pathSimPrecidct;
|
|
67390
67517
|
if (typeof e.predict != "function") return null;
|
|
@@ -67395,10 +67522,10 @@ function YW(e = {}) {
|
|
|
67395
67522
|
}
|
|
67396
67523
|
return e.pathSimPrecidct ?? null;
|
|
67397
67524
|
}
|
|
67398
|
-
function
|
|
67525
|
+
function nn(e, t) {
|
|
67399
67526
|
let n = t == null ? null : String(t);
|
|
67400
67527
|
if (!e || !n) return null;
|
|
67401
|
-
let r = [e?.pathSim?.segInfo,
|
|
67528
|
+
let r = [e?.pathSim?.segInfo, tn(e)?.segInfo];
|
|
67402
67529
|
for (let e of r) {
|
|
67403
67530
|
if (!(e instanceof Map)) continue;
|
|
67404
67531
|
let r = e.get(n) ?? e.get(t);
|
|
@@ -67406,42 +67533,42 @@ function YW(e = {}) {
|
|
|
67406
67533
|
}
|
|
67407
67534
|
return null;
|
|
67408
67535
|
}
|
|
67409
|
-
function
|
|
67410
|
-
let t =
|
|
67536
|
+
function rn(e) {
|
|
67537
|
+
let t = tn(e)?.constructor ?? e?.pathSim?.constructor, n = e?.lanemodulen?.topoGraph;
|
|
67411
67538
|
if (!t || !n) return null;
|
|
67412
67539
|
let r = new t(n);
|
|
67413
|
-
return r.baseSpeed =
|
|
67540
|
+
return r.baseSpeed = tt.value, r.minSpeed = Re(), typeof r.segInfo?.clear == "function" && typeof r._initSegments == "function" && (r.segInfo.clear(), r._initSegments()), typeof r.reset == "function" && r.reset(), Sn(e) ? (typeof e?._setSource == "function" && e._setSource(r), r) : null;
|
|
67414
67541
|
}
|
|
67415
|
-
function
|
|
67542
|
+
function an(e) {
|
|
67416
67543
|
if (!e) return;
|
|
67417
|
-
let t =
|
|
67544
|
+
let t = Me(d.value), n = Ne(f.value), r = Pe(p.value);
|
|
67418
67545
|
d.value = t, f.value = n, p.value = r;
|
|
67419
|
-
let i =
|
|
67420
|
-
e.pathSim && (e.pathSim.baseSpeed = i, e.pathSim.minSpeed =
|
|
67546
|
+
let i = nt.value;
|
|
67547
|
+
e.pathSim && (e.pathSim.baseSpeed = i, e.pathSim.minSpeed = Re()), e.pathSimPrecidct && (e.pathSimPrecidct.baseSpeed = i, e.pathSimPrecidct.minSpeed = Re());
|
|
67421
67548
|
}
|
|
67422
|
-
function
|
|
67423
|
-
d.value =
|
|
67549
|
+
function on() {
|
|
67550
|
+
d.value = Me(d.value), f.value = Ne(f.value), p.value = Pe(p.value);
|
|
67424
67551
|
let e = typeof window < "u" ? window.lr3dapp?.editor?.manager?.modules?.waterSimulation : null;
|
|
67425
|
-
return e &&
|
|
67552
|
+
return e && an(e), !0;
|
|
67426
67553
|
}
|
|
67427
|
-
function
|
|
67428
|
-
let e =
|
|
67429
|
-
|
|
67430
|
-
let s =
|
|
67554
|
+
function sn() {
|
|
67555
|
+
let e = Me(d.value), t = Ne(f.value), n = Pe(p.value), r = e !== re, i = t !== ie, a = n !== ae, o = r || i;
|
|
67556
|
+
on();
|
|
67557
|
+
let s = en();
|
|
67431
67558
|
if (!s) return !1;
|
|
67432
67559
|
if (l.value) {
|
|
67433
67560
|
if (o) {
|
|
67434
|
-
if (!
|
|
67435
|
-
} else if (a && !
|
|
67561
|
+
if (!wn()) return !1;
|
|
67562
|
+
} else if (a && !cn(s)) return !1;
|
|
67436
67563
|
}
|
|
67437
|
-
return re = d.value, ie = f.value, ae = p.value, o &&
|
|
67564
|
+
return re = d.value, ie = f.value, ae = p.value, o && Je(s), V ? Qt(s) : !0;
|
|
67438
67565
|
}
|
|
67439
|
-
function
|
|
67566
|
+
function cn(t) {
|
|
67440
67567
|
if (!t) return !1;
|
|
67441
67568
|
let n = t.pathSim;
|
|
67442
67569
|
if (!n || typeof n.calcSpeed != "function" || !(n.fronts instanceof Map) || !(n.segInfo instanceof Map)) return !0;
|
|
67443
67570
|
try {
|
|
67444
|
-
return
|
|
67571
|
+
return an(t), n.fronts.forEach((e) => {
|
|
67445
67572
|
if (!e || typeof e != "object") return;
|
|
67446
67573
|
let t = n.segInfo.get(e.segId);
|
|
67447
67574
|
if (!t) return;
|
|
@@ -67452,21 +67579,21 @@ function YW(e = {}) {
|
|
|
67452
67579
|
e.speed = n.calcSpeed(r, t.len);
|
|
67453
67580
|
}), se("已更新水漫延参数"), W(e.workfacePanelStatus?.value ?? ""), !0;
|
|
67454
67581
|
} catch (e) {
|
|
67455
|
-
return
|
|
67582
|
+
return Ze(`水漫延参数更新失败:${K(e)}`), !1;
|
|
67456
67583
|
}
|
|
67457
67584
|
}
|
|
67458
|
-
function
|
|
67585
|
+
function ln(e) {
|
|
67459
67586
|
!e?.pathSim || typeof e.pathSim.reset != "function" || typeof e._setSource != "function" || (e.pathSim.reset(), e._setSource(e.pathSim));
|
|
67460
67587
|
}
|
|
67461
|
-
function
|
|
67588
|
+
function un(e = null) {
|
|
67462
67589
|
e?.onFrame === M && (e.onFrame = void 0), M = null;
|
|
67463
67590
|
}
|
|
67464
|
-
function
|
|
67591
|
+
function dn() {
|
|
67465
67592
|
return typeof window < "u" && N !== 0 && window.cancelAnimationFrame(N), N = 0, P = 0, !0;
|
|
67466
67593
|
}
|
|
67467
|
-
function
|
|
67594
|
+
function fn() {
|
|
67468
67595
|
if (typeof window > "u" || typeof window.requestAnimationFrame != "function") return !1;
|
|
67469
|
-
|
|
67596
|
+
dn();
|
|
67470
67597
|
let e = (t) => {
|
|
67471
67598
|
if (!l.value || u.value) {
|
|
67472
67599
|
N = 0, P = 0;
|
|
@@ -67474,37 +67601,37 @@ function YW(e = {}) {
|
|
|
67474
67601
|
}
|
|
67475
67602
|
if (!(P > 0)) P = t;
|
|
67476
67603
|
else {
|
|
67477
|
-
let e = Math.max(0, (t - P) / 1e3), n =
|
|
67604
|
+
let e = Math.max(0, (t - P) / 1e3), n = Pe(p.value);
|
|
67478
67605
|
P = t, m.value += e * n;
|
|
67479
67606
|
}
|
|
67480
67607
|
N = window.requestAnimationFrame(e);
|
|
67481
67608
|
};
|
|
67482
67609
|
return N = window.requestAnimationFrame(e), !0;
|
|
67483
67610
|
}
|
|
67484
|
-
function
|
|
67611
|
+
function pn(e = null) {
|
|
67485
67612
|
return e ? (M = () => {
|
|
67486
|
-
let t =
|
|
67487
|
-
h.value = n,
|
|
67613
|
+
let t = At(e), n = Ae(t, e), r = je();
|
|
67614
|
+
h.value = n, _t(t), yt(t, r);
|
|
67488
67615
|
}, e.onFrame = M, !0) : !1;
|
|
67489
67616
|
}
|
|
67490
|
-
function
|
|
67491
|
-
|
|
67617
|
+
function mn(e = null) {
|
|
67618
|
+
un(e), dn(), l.value = !1, u.value = !1, m.value = 0, h.value = 0, oe = null, dt(), mt(), Tt(null), U = null, v.value = {};
|
|
67492
67619
|
}
|
|
67493
|
-
function
|
|
67494
|
-
let r =
|
|
67620
|
+
function hn(e, t, n = []) {
|
|
67621
|
+
let r = en();
|
|
67495
67622
|
if (!r) return !1;
|
|
67496
67623
|
let i = r[e];
|
|
67497
|
-
if (typeof i != "function") return
|
|
67624
|
+
if (typeof i != "function") return Ze(`水漫延操作失败:控制对象缺少 ${e} 方法`), !1;
|
|
67498
67625
|
try {
|
|
67499
67626
|
return i.call(r, ...n), se(t), W(t), !0;
|
|
67500
67627
|
} catch (e) {
|
|
67501
|
-
return
|
|
67628
|
+
return Ze(`水漫延操作失败:${K(e)}`), !1;
|
|
67502
67629
|
}
|
|
67503
67630
|
}
|
|
67504
|
-
function
|
|
67505
|
-
if (!Array.isArray(
|
|
67631
|
+
function gn() {
|
|
67632
|
+
if (!Array.isArray(z) || z.length === 0) return z = [], !1;
|
|
67506
67633
|
let t = !1;
|
|
67507
|
-
return
|
|
67634
|
+
return z.forEach((n) => {
|
|
67508
67635
|
n && (n.traverse?.((e) => {
|
|
67509
67636
|
if (Array.isArray(e.material)) {
|
|
67510
67637
|
e.material.forEach((e) => {
|
|
@@ -67514,9 +67641,9 @@ function YW(e = {}) {
|
|
|
67514
67641
|
}
|
|
67515
67642
|
e.material?.map?.dispose?.();
|
|
67516
67643
|
}), n.parent?.remove?.(n), e.disposeThreeObject?.(n), t = !0);
|
|
67517
|
-
}),
|
|
67644
|
+
}), z = [], t ? (cj(), !0) : !1;
|
|
67518
67645
|
}
|
|
67519
|
-
function
|
|
67646
|
+
function _n(t = {}) {
|
|
67520
67647
|
let { text: n = e.analysisLocationMarkerText || "分析地点", position: r } = t ?? {};
|
|
67521
67648
|
if (!e.isVectorLike?.(r)) return null;
|
|
67522
67649
|
let i = {
|
|
@@ -67532,44 +67659,44 @@ function YW(e = {}) {
|
|
|
67532
67659
|
markerType: "water-simulation-analysis-location",
|
|
67533
67660
|
markerText: String(n),
|
|
67534
67661
|
markerPosition: i
|
|
67535
|
-
},
|
|
67662
|
+
}, z = [...z, a], cj(), a) : null;
|
|
67536
67663
|
}
|
|
67537
|
-
function
|
|
67538
|
-
return
|
|
67539
|
-
|
|
67540
|
-
text:
|
|
67664
|
+
function vn() {
|
|
67665
|
+
return gn(), !Array.isArray(S.value) || S.value.length === 0 ? !1 : (S.value.forEach((e, t) => {
|
|
67666
|
+
_n({
|
|
67667
|
+
text: Ce(t),
|
|
67541
67668
|
position: e.relativePosition
|
|
67542
67669
|
});
|
|
67543
67670
|
}), !0);
|
|
67544
67671
|
}
|
|
67545
|
-
function
|
|
67672
|
+
function yn() {
|
|
67546
67673
|
let e = S.value.length > 0;
|
|
67547
|
-
return S.value = [],
|
|
67674
|
+
return S.value = [], ct(), lt({ preserveKeyLocation: !0 }), gn(), j.value = "", V?.hasLocationSelection && Tt({
|
|
67548
67675
|
timeSelections: V.timeSelections,
|
|
67549
67676
|
hasLocationSelection: !0
|
|
67550
67677
|
}), e;
|
|
67551
67678
|
}
|
|
67552
|
-
function
|
|
67553
|
-
return e.focusAbsolutePoint?.(
|
|
67679
|
+
function bn() {
|
|
67680
|
+
return e.focusAbsolutePoint?.(jt(), n) ?? !1;
|
|
67554
67681
|
}
|
|
67555
|
-
function
|
|
67682
|
+
function xn(e) {
|
|
67556
67683
|
let t = e?.point;
|
|
67557
67684
|
if (!(!t || !Number.isFinite(t.x) || !Number.isFinite(t.y) || !Number.isFinite(t.z))) {
|
|
67558
67685
|
try {
|
|
67559
67686
|
window.lr3dapp?.editor?.manager?.modules?.waterSimulation?.endSelect?.();
|
|
67560
67687
|
} catch {}
|
|
67561
|
-
|
|
67688
|
+
wn();
|
|
67562
67689
|
}
|
|
67563
67690
|
}
|
|
67564
|
-
function
|
|
67691
|
+
function Sn(t) {
|
|
67565
67692
|
if (!t) return !1;
|
|
67566
67693
|
let n = e.accidentRangeSelectionCenterRelative?.value, r = e.accidentRangeSelectionPickObject?.value;
|
|
67567
67694
|
return e.isVectorLike?.(n) ? r ? (t.selectObjs = [{
|
|
67568
67695
|
point: new ((e.getThreeGlobal?.())).Vector3(Number(n.x), Number(n.y), Number(n.z)),
|
|
67569
67696
|
object: r
|
|
67570
|
-
}], !0) : (
|
|
67697
|
+
}], !0) : (Ze("事故点已生成,但未命中有效巷道对象,暂时无法开始水漫延分析"), !1) : (Ze("请先完成事故选点,再开始水漫延分析"), !1);
|
|
67571
67698
|
}
|
|
67572
|
-
function
|
|
67699
|
+
function Cn() {
|
|
67573
67700
|
let t = e.accidentRangeSelectionCenterRelative?.value;
|
|
67574
67701
|
if (!e.isVectorLike?.(t)) return !1;
|
|
67575
67702
|
try {
|
|
@@ -67584,93 +67711,93 @@ function YW(e = {}) {
|
|
|
67584
67711
|
e.updateAccidentRangeSelectionMarkerSize?.();
|
|
67585
67712
|
}, Number(e.viewRestoreTransitionDurationMs) || 900), G(`水漫延视口已拉近至事故点附近,原距离:${Math.round(c)} 米`), !0;
|
|
67586
67713
|
} catch (e) {
|
|
67587
|
-
return G(`水漫延视口拉近失败:${
|
|
67714
|
+
return G(`水漫延视口拉近失败:${K(e)}`), !1;
|
|
67588
67715
|
}
|
|
67589
67716
|
}
|
|
67590
|
-
function
|
|
67591
|
-
let n =
|
|
67717
|
+
function wn(t = {}) {
|
|
67718
|
+
let n = en();
|
|
67592
67719
|
if (!n) return !1;
|
|
67593
|
-
if (typeof n.start != "function") return
|
|
67594
|
-
if (!
|
|
67720
|
+
if (typeof n.start != "function") return Ze("水漫延操作失败:控制对象缺少 start 方法"), !1;
|
|
67721
|
+
if (!Sn(n)) return !1;
|
|
67595
67722
|
try {
|
|
67596
|
-
return m.value = 0, h.value = 0, oe = null,
|
|
67723
|
+
return m.value = 0, h.value = 0, oe = null, an(n), un(n), n.start(), an(n), ln(n), pn(n), l.value = !0, u.value = !1, fn(), t.skipAutoLocationAnalysis !== !0 && Ot(n), se("已开始水漫延演示"), W(e.workfacePanelStatus?.value ?? ""), !0;
|
|
67597
67724
|
} catch (e) {
|
|
67598
|
-
return
|
|
67725
|
+
return un(n), Ze(`水漫延操作失败:${K(e)}`), !1;
|
|
67599
67726
|
}
|
|
67600
67727
|
}
|
|
67601
|
-
function
|
|
67602
|
-
let e =
|
|
67603
|
-
return e && (
|
|
67728
|
+
function Tn() {
|
|
67729
|
+
let e = hn("pause", "已暂停水漫延演示");
|
|
67730
|
+
return e && (dn(), l.value = !0, u.value = !0), e;
|
|
67604
67731
|
}
|
|
67605
|
-
function
|
|
67606
|
-
let e =
|
|
67607
|
-
return e && (l.value = !0, u.value = !1,
|
|
67732
|
+
function En() {
|
|
67733
|
+
let e = hn("resume", "已继续水漫延演示");
|
|
67734
|
+
return e && (l.value = !0, u.value = !1, fn()), e;
|
|
67608
67735
|
}
|
|
67609
|
-
function
|
|
67610
|
-
return l.value ? u.value ?
|
|
67736
|
+
function Dn() {
|
|
67737
|
+
return l.value ? u.value ? En() : Tn() : wn();
|
|
67611
67738
|
}
|
|
67612
|
-
function
|
|
67613
|
-
let t =
|
|
67739
|
+
function On() {
|
|
67740
|
+
let t = en();
|
|
67614
67741
|
if (!t) return !1;
|
|
67615
|
-
if (typeof t.clear != "function") return
|
|
67742
|
+
if (typeof t.clear != "function") return Ze("水漫延操作失败:控制对象缺少 clear 方法"), !1;
|
|
67616
67743
|
let n = !1;
|
|
67617
67744
|
try {
|
|
67618
67745
|
typeof t.endSelect == "function" && t.endSelect(), t.clear(), n = !0, se("已取消水漫延演示并清除效果"), W(e.workfacePanelStatus?.value ?? "");
|
|
67619
67746
|
} catch (e) {
|
|
67620
|
-
|
|
67747
|
+
Ze(`水漫延操作失败:${K(e)}`);
|
|
67621
67748
|
}
|
|
67622
|
-
return n && (
|
|
67749
|
+
return n && (Ut({ updateStatus: !1 }), st(), X(), mn(t), j.value = ""), n;
|
|
67623
67750
|
}
|
|
67624
|
-
function
|
|
67751
|
+
function kn(t) {
|
|
67625
67752
|
return e.resolveOverlayScreenStyle?.(t?.position, { positionMode: "relative" }) ?? null;
|
|
67626
67753
|
}
|
|
67627
|
-
function
|
|
67754
|
+
function An() {
|
|
67628
67755
|
if (e.initState?.value !== "ready") {
|
|
67629
67756
|
v.value = {};
|
|
67630
67757
|
return;
|
|
67631
67758
|
}
|
|
67632
|
-
if (
|
|
67759
|
+
if (at.value.length === 0) {
|
|
67633
67760
|
v.value = {};
|
|
67634
67761
|
return;
|
|
67635
67762
|
}
|
|
67636
67763
|
let t = {};
|
|
67637
|
-
|
|
67638
|
-
let n =
|
|
67764
|
+
at.value.forEach((e) => {
|
|
67765
|
+
let n = kn(e);
|
|
67639
67766
|
n && (t[e.key] = n);
|
|
67640
67767
|
}), v.value = t;
|
|
67641
67768
|
}
|
|
67642
|
-
function
|
|
67643
|
-
if (!
|
|
67769
|
+
function jn() {
|
|
67770
|
+
if (!ge()) return !1;
|
|
67644
67771
|
let t = !c.value;
|
|
67645
|
-
return t && !
|
|
67772
|
+
return t && !en() ? !1 : (c.value = t, t || (Ut({ updateStatus: !1 }), st(), X(), yn()), se(c.value ? "水漫延控制面板已显示" : "水漫延控制面板已隐藏"), W(e.workfacePanelStatus?.value ?? ""), !0);
|
|
67646
67773
|
}
|
|
67647
|
-
function
|
|
67648
|
-
return
|
|
67774
|
+
function Mn() {
|
|
67775
|
+
return ge() ? c.value ? !0 : jn() : !1;
|
|
67649
67776
|
}
|
|
67650
|
-
function
|
|
67651
|
-
return
|
|
67777
|
+
function Nn() {
|
|
67778
|
+
return ge() ? c.value ? jn() : !0 : !1;
|
|
67652
67779
|
}
|
|
67653
|
-
function
|
|
67780
|
+
function Pn() {
|
|
67654
67781
|
let e = typeof window < "u" ? window.lr3dapp?.editor?.manager?.modules?.waterSimulation : null;
|
|
67655
67782
|
try {
|
|
67656
67783
|
e?.endSelect?.();
|
|
67657
67784
|
} catch {}
|
|
67658
|
-
return
|
|
67785
|
+
return Ut({ updateStatus: !1 }), st({ restoreRangeSelection: !1 }), hn("startSelect", "已进入水漫延选点流程", [xn]);
|
|
67659
67786
|
}
|
|
67660
|
-
function
|
|
67661
|
-
return
|
|
67787
|
+
function Fn() {
|
|
67788
|
+
return Pn();
|
|
67662
67789
|
}
|
|
67663
|
-
function
|
|
67664
|
-
return
|
|
67790
|
+
function In() {
|
|
67791
|
+
return hn("endSelect", "已结束水漫延选点流程");
|
|
67665
67792
|
}
|
|
67666
|
-
function
|
|
67667
|
-
return
|
|
67793
|
+
function Ln() {
|
|
67794
|
+
return In();
|
|
67668
67795
|
}
|
|
67669
|
-
function
|
|
67670
|
-
return
|
|
67796
|
+
function Rn() {
|
|
67797
|
+
return wn();
|
|
67671
67798
|
}
|
|
67672
|
-
function
|
|
67673
|
-
return
|
|
67799
|
+
function zn() {
|
|
67800
|
+
return On();
|
|
67674
67801
|
}
|
|
67675
67802
|
return {
|
|
67676
67803
|
isWaterSimulationPanelVisible: c,
|
|
@@ -67679,12 +67806,12 @@ function YW(e = {}) {
|
|
|
67679
67806
|
waterSimulationFlowRate: d,
|
|
67680
67807
|
waterSimulationDrainageRate: f,
|
|
67681
67808
|
waterSimulationPlaybackMultiplier: p,
|
|
67682
|
-
waterSimulationDurationText:
|
|
67683
|
-
waterSimulationDisplayDurationText:
|
|
67684
|
-
waterSimulationAnalysisButtonText:
|
|
67685
|
-
waterSimulationControlButtonText:
|
|
67686
|
-
isWaterSimulationControlButtonDisabled:
|
|
67687
|
-
waterSimulationPredictionRenderItems:
|
|
67809
|
+
waterSimulationDurationText: rt,
|
|
67810
|
+
waterSimulationDisplayDurationText: it,
|
|
67811
|
+
waterSimulationAnalysisButtonText: Qe,
|
|
67812
|
+
waterSimulationControlButtonText: et,
|
|
67813
|
+
isWaterSimulationControlButtonDisabled: $e,
|
|
67814
|
+
waterSimulationPredictionRenderItems: at,
|
|
67688
67815
|
waterSimulationAnalysisSelectedPresetMinutes: y,
|
|
67689
67816
|
waterSimulationAnalysisHour: b,
|
|
67690
67817
|
waterSimulationAnalysisMinute: x,
|
|
@@ -67693,31 +67820,31 @@ function YW(e = {}) {
|
|
|
67693
67820
|
isWaterSimulationTunnelInfoPicking: O,
|
|
67694
67821
|
isWaterSimulationAnalysisLoading: k,
|
|
67695
67822
|
waterSimulationAnalysisResult: j,
|
|
67696
|
-
clearWaterSimulationAnalysisLocationPick:
|
|
67697
|
-
clearWaterSimulationAnalysisLocations:
|
|
67698
|
-
clearWaterSimulationAnalysisLoading:
|
|
67699
|
-
removeWaterSimulationAnalysisLocationMarker:
|
|
67700
|
-
resetWaterSimulationRuntimeState:
|
|
67701
|
-
toggleWaterSimulationAnalysisRenderItem:
|
|
67702
|
-
updateWaterSimulationPredictionRenderStyles:
|
|
67703
|
-
toggleWaterSimulationPanel:
|
|
67704
|
-
showWaterSimulationPanel:
|
|
67705
|
-
hideWaterSimulationPanel:
|
|
67706
|
-
handleWaterSimulationParameterInput:
|
|
67707
|
-
handleWaterSimulationParameterChange:
|
|
67708
|
-
handleWaterSimulationAnalysisTimeInput:
|
|
67709
|
-
setWaterSimulationAnalysisPreset:
|
|
67710
|
-
handleWaterSimulationAnalysisHourInput:
|
|
67711
|
-
startWaterSimulationAnalysisLocationPick:
|
|
67712
|
-
startWaterSimulationTunnelInfoPick:
|
|
67713
|
-
focusWaterSimulationKeyLocation:
|
|
67714
|
-
handleWaterSimulationAnalysisSubmit:
|
|
67715
|
-
handleWaterSimulationPrimaryAction:
|
|
67716
|
-
handleWaterSimulationCancel:
|
|
67717
|
-
startWaterSimulationSelect:
|
|
67718
|
-
endWaterSimulationSelect:
|
|
67719
|
-
startWaterSimulation:
|
|
67720
|
-
clearWaterSimulation:
|
|
67823
|
+
clearWaterSimulationAnalysisLocationPick: st,
|
|
67824
|
+
clearWaterSimulationAnalysisLocations: yn,
|
|
67825
|
+
clearWaterSimulationAnalysisLoading: X,
|
|
67826
|
+
removeWaterSimulationAnalysisLocationMarker: gn,
|
|
67827
|
+
resetWaterSimulationRuntimeState: mn,
|
|
67828
|
+
toggleWaterSimulationAnalysisRenderItem: vt,
|
|
67829
|
+
updateWaterSimulationPredictionRenderStyles: An,
|
|
67830
|
+
toggleWaterSimulationPanel: jn,
|
|
67831
|
+
showWaterSimulationPanel: Mn,
|
|
67832
|
+
hideWaterSimulationPanel: Nn,
|
|
67833
|
+
handleWaterSimulationParameterInput: on,
|
|
67834
|
+
handleWaterSimulationParameterChange: sn,
|
|
67835
|
+
handleWaterSimulationAnalysisTimeInput: bt,
|
|
67836
|
+
setWaterSimulationAnalysisPreset: xt,
|
|
67837
|
+
handleWaterSimulationAnalysisHourInput: St,
|
|
67838
|
+
startWaterSimulationAnalysisLocationPick: Kt,
|
|
67839
|
+
startWaterSimulationTunnelInfoPick: qt,
|
|
67840
|
+
focusWaterSimulationKeyLocation: bn,
|
|
67841
|
+
handleWaterSimulationAnalysisSubmit: $t,
|
|
67842
|
+
handleWaterSimulationPrimaryAction: Dn,
|
|
67843
|
+
handleWaterSimulationCancel: On,
|
|
67844
|
+
startWaterSimulationSelect: Fn,
|
|
67845
|
+
endWaterSimulationSelect: Ln,
|
|
67846
|
+
startWaterSimulation: Rn,
|
|
67847
|
+
clearWaterSimulation: zn
|
|
67721
67848
|
};
|
|
67722
67849
|
}
|
|
67723
67850
|
r(() => isWaterSimulationStarted.value ? "重新分析" : "开始分析"), r(() => !isWaterSimulationStarted.value);
|
|
@@ -67946,7 +68073,7 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
67946
68073
|
s("pre", DG, F(e.debugActionLog), 1)
|
|
67947
68074
|
])) : a("", !0);
|
|
67948
68075
|
}
|
|
67949
|
-
}, [["__scopeId", "data-v-
|
|
68076
|
+
}, [["__scopeId", "data-v-8c5f3fb8"]]), kG = {
|
|
67950
68077
|
key: 0,
|
|
67951
68078
|
class: "lr3d-water-panel lr3d-water-panel--exit-path"
|
|
67952
68079
|
}, AG = { class: "lr3d-water-panel__actions lr3d-water-panel__actions--exit-path" }, jG = ["disabled"], MG = ["disabled"], NG = ["disabled"], PG = ["disabled"], FG = ["disabled"], IG = ["disabled"], LG = { class: "lr3d-water-panel__status" }, RG = /* @__PURE__ */ $M({
|
|
@@ -68035,7 +68162,7 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
68035
68162
|
])
|
|
68036
68163
|
])) : a("", !0);
|
|
68037
68164
|
}
|
|
68038
|
-
}, [["__scopeId", "data-v-
|
|
68165
|
+
}, [["__scopeId", "data-v-a02932ae"]]), zG = {
|
|
68039
68166
|
key: 0,
|
|
68040
68167
|
class: "lr3d-range-panel"
|
|
68041
68168
|
}, BG = { class: "lr3d-range-panel__header" }, VG = ["aria-label", "title"], HG = {
|
|
@@ -68142,7 +68269,7 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
68142
68269
|
onClick: n[0] ||= (e) => i("clear")
|
|
68143
68270
|
}, " 清除范围 ", 8, QG)])]))])) : a("", !0);
|
|
68144
68271
|
}
|
|
68145
|
-
}, [["__scopeId", "data-v-
|
|
68272
|
+
}, [["__scopeId", "data-v-3e78ad7b"]]), eK = { class: "lr3d-workface-panel__header" }, tK = {
|
|
68146
68273
|
key: 0,
|
|
68147
68274
|
class: "lr3d-workface-panel__body"
|
|
68148
68275
|
}, nK = { class: "lr3d-workface-panel__meta" }, rK = { class: "lr3d-workface-panel__actions" }, iK = { class: "lr3d-workface-panel__status" }, aK = {
|
|
@@ -68254,7 +68381,7 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
68254
68381
|
}, null, 40, hK), s("span", null, F(t.displayName), 1)])]))), 128))])])) : a("", !0)])) : (O(), o("div", aK, " 暂无可控制的区域要素或巷道 "))
|
|
68255
68382
|
])) : a("", !0)], 2)) : a("", !0);
|
|
68256
68383
|
}
|
|
68257
|
-
}, [["__scopeId", "data-v-
|
|
68384
|
+
}, [["__scopeId", "data-v-4013c1ba"]]), _K = {
|
|
68258
68385
|
key: 0,
|
|
68259
68386
|
class: "lr3d-viewpoint-panel"
|
|
68260
68387
|
}, vK = { class: "lr3d-viewpoint-panel__list" }, yK = ["onClick"], bK = { class: "lr3d-viewpoint-panel__status" }, xK = /* @__PURE__ */ $M({
|
|
@@ -68291,7 +68418,7 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
68291
68418
|
s("p", bK, "当前视角:" + F(e.activeViewPointName), 1)
|
|
68292
68419
|
])) : a("", !0);
|
|
68293
68420
|
}
|
|
68294
|
-
}, [["__scopeId", "data-v-
|
|
68421
|
+
}, [["__scopeId", "data-v-8a47de75"]]), SK = {
|
|
68295
68422
|
key: 0,
|
|
68296
68423
|
class: "lr3d-water-panel lr3d-water-panel--wide"
|
|
68297
68424
|
}, CK = { class: "lr3d-water-panel__header" }, wK = { class: "lr3d-water-panel__parameter-grid" }, TK = { class: "lr3d-water-panel__meta-card" }, EK = { class: "lr3d-water-panel__meta-value" }, DK = { class: "lr3d-water-panel__slider lr3d-water-panel__slider--compact" }, OK = { class: "lr3d-water-panel__slider-header" }, kK = [
|
|
@@ -68566,10 +68693,10 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
68566
68693
|
s("div", JK, [s("div", YK, [
|
|
68567
68694
|
s("button", {
|
|
68568
68695
|
type: "button",
|
|
68569
|
-
class: "lr3d-water-panel__button lr3d-water-panel__button--compact",
|
|
68696
|
+
class: S(["lr3d-water-panel__button lr3d-water-panel__button--compact", { "lr3d-water-panel__button--danger": e.isAnalysisLocationPicking }]),
|
|
68570
68697
|
disabled: e.isAnalysisLoading,
|
|
68571
68698
|
onClick: l[15] ||= (e) => r("pick-analysis-location")
|
|
68572
|
-
}, F(e.isAnalysisLocationPicking ? "结束地点拾取" : "选择分析地点"),
|
|
68699
|
+
}, F(e.isAnalysisLocationPicking ? "结束地点拾取" : "选择分析地点"), 11, XK),
|
|
68573
68700
|
s("button", {
|
|
68574
68701
|
type: "button",
|
|
68575
68702
|
class: "lr3d-water-panel__button lr3d-water-panel__button--secondary lr3d-water-panel__button--compact",
|
|
@@ -68607,7 +68734,7 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
68607
68734
|
])
|
|
68608
68735
|
])) : a("", !0);
|
|
68609
68736
|
}
|
|
68610
|
-
}, [["__scopeId", "data-v-
|
|
68737
|
+
}, [["__scopeId", "data-v-32fa7c48"]]), sq = { class: "lr3d-viewer" }, cq = { class: "lr3d-viewer__stage" }, lq = { class: "lr3d-viewer__canvas" }, uq = ["id"], dq = {
|
|
68611
68738
|
key: 0,
|
|
68612
68739
|
class: "lr3d-scene-quick-menu"
|
|
68613
68740
|
}, fq = { class: "lr3d-placement-tip__content" }, pq = { key: 0 }, mq = {
|
|
@@ -68750,7 +68877,7 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
68750
68877
|
}, IY = {
|
|
68751
68878
|
key: 12,
|
|
68752
68879
|
class: "lr3d-viewer__placeholder lr3d-viewer__placeholder--error"
|
|
68753
|
-
}, LY = 10, RY = 400, zY = "全景俯视", BY = "全景俯视", VY = 900, HY = .01, UY = 1.26, WY = .42, GY = 800, KY = 100, qY = 2e3, JY = 50, YY = 160, XY =
|
|
68880
|
+
}, LY = 10, RY = 400, zY = "全景俯视", BY = "全景俯视", VY = 900, HY = .01, UY = 1.26, WY = .42, GY = 800, KY = 100, qY = 2e3, JY = 50, YY = 160, XY = "monitor-range-selection", ZY = "monitor-range-selection-marker", QY = "accident-range-selection", $Y = "accident-range-selection-marker", eX = 48, tX = 18, nX = 900, rX = -10, iX = 1e3, aX = .18, oX = .72, sX = 8, cX = 14, lX = 10, uX = 18, dX = "因涌水阻挡,无法生成避灾线路", fX = "window[\"lr3dapp\"].editor.manager.modules.waterSimulation", pX = 100, mX = 0, hX = 0, gX = 500, _X = 10, vX = 500, yX = 100, bX = 1e3, xX = 100, SX = 1200, CX = 450, wX = 220, TX = 1200, EX = 1, DX = "window[\"lr3dapp\"].editor.manager.modules.exitPath", OX = 1, kX = .06, AX = "分析地点", jX = "610204006", MX = 30, NX = 56, PX = 1.25, FX = 10, IX = 64, LX = 24, RX = 16, zX = 78, BX = 32, VX = 24, HX = "rgba(8, 33, 74, 0.78)", UX = "rgba(120, 190, 255, 0.92)", WX = 4, GX = "monitor-point-placement-preview", KX = "安全监测", qX = "水文监测", JX = "束管监测", YX = "人员定位", XX = "矿压监测", ZX = "车辆定位", QX = "广播", $X = "视频", eZ = /* @__PURE__ */ $M({
|
|
68754
68881
|
__name: "Lr3dViewer",
|
|
68755
68882
|
props: {
|
|
68756
68883
|
config: {
|
|
@@ -68787,10 +68914,10 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
68787
68914
|
r: 1,
|
|
68788
68915
|
g: .26,
|
|
68789
68916
|
b: .26
|
|
68790
|
-
}), u =
|
|
68791
|
-
x:
|
|
68792
|
-
y:
|
|
68793
|
-
z:
|
|
68917
|
+
}), u = CX, d = wX, f = Object.freeze({
|
|
68918
|
+
x: 37403084.94,
|
|
68919
|
+
y: 4278051.49,
|
|
68920
|
+
z: 969.04
|
|
68794
68921
|
}), p = Object.freeze({
|
|
68795
68922
|
x: 36573217.69,
|
|
68796
68923
|
y: 3896989.57,
|
|
@@ -68830,8 +68957,8 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
68830
68957
|
[_.DEFAULT]: {
|
|
68831
68958
|
actionLabel: "范围选点",
|
|
68832
68959
|
summaryLabel: "范围",
|
|
68833
|
-
sphereLayerName:
|
|
68834
|
-
markerLayerName:
|
|
68960
|
+
sphereLayerName: XY,
|
|
68961
|
+
markerLayerName: ZY,
|
|
68835
68962
|
sphereColor: "#ff6c00",
|
|
68836
68963
|
sphereOpacity: .3,
|
|
68837
68964
|
markerColor: 16777215
|
|
@@ -68839,8 +68966,8 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
68839
68966
|
[_.ACCIDENT]: {
|
|
68840
68967
|
actionLabel: "事故选点",
|
|
68841
68968
|
summaryLabel: "事故点",
|
|
68842
|
-
sphereLayerName:
|
|
68843
|
-
markerLayerName:
|
|
68969
|
+
sphereLayerName: QY,
|
|
68970
|
+
markerLayerName: $Y,
|
|
68844
68971
|
sphereColor: "#ef4444",
|
|
68845
68972
|
sphereOpacity: .26,
|
|
68846
68973
|
markerColor: 16766164
|
|
@@ -68982,7 +69109,7 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
68982
69109
|
EXIT_PATH: "exitPath",
|
|
68983
69110
|
VIEW: "view",
|
|
68984
69111
|
REGION: "region"
|
|
68985
|
-
}), N = e, P = Tz(UR()), ee = A(
|
|
69112
|
+
}), N = e, P = Tz(UR()), ee = A(Eo()), te = r(() => ee.value.scene.containerId), I = A(null), H = A("eval_route_gene"), U = A("#041D4B"), re = A(!1), ie = A(!1), ae = A(!1), oe = A("等待操作"), se = A(null), W = A(null), G = A(null), ce = A(null), le = A(() => {}), ue = A(null), de = A({
|
|
68986
69113
|
key: "",
|
|
68987
69114
|
timestamp: 0
|
|
68988
69115
|
}), fe = A({
|
|
@@ -69024,30 +69151,30 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
69024
69151
|
"0106020009": "积水区",
|
|
69025
69152
|
"0202030004": "回采工作面",
|
|
69026
69153
|
"0202030006": "采空区"
|
|
69027
|
-
}, _e = null, q = null, ve = null, ye =
|
|
69028
|
-
function
|
|
69154
|
+
}, _e = null, q = null, ve = null, ye = null, be = null;
|
|
69155
|
+
function J() {
|
|
69029
69156
|
let e = ij(), t = e?.manager?.modules?.interaction?.onDblClick;
|
|
69030
69157
|
return !e || typeof e.off != "function" || typeof t != "function" ? !1 : (e.off("dblclick", t), !0);
|
|
69031
69158
|
}
|
|
69032
|
-
let { initState:
|
|
69159
|
+
let { initState: xe, debugActionLog: Se, setDebugLog: Ce, appendDebugLog: we, initializeScene: Te, applySceneRuntimeResize: Ee, destroySceneRuntime: De } = AW({
|
|
69033
69160
|
viewerHost: I,
|
|
69034
69161
|
containerId: te,
|
|
69035
|
-
resolveErrorMessage:
|
|
69162
|
+
resolveErrorMessage: Ns,
|
|
69036
69163
|
onSceneCreated: () => {
|
|
69037
|
-
|
|
69164
|
+
Bs(), tc();
|
|
69038
69165
|
},
|
|
69039
69166
|
onSceneReady: async () => {
|
|
69040
|
-
if (
|
|
69041
|
-
await
|
|
69167
|
+
if (J(), za(), bs.value) try {
|
|
69168
|
+
await uc({ trigger: "auto" });
|
|
69042
69169
|
} catch (e) {
|
|
69043
|
-
|
|
69170
|
+
Ce(`场景初始化成功,自动加载失败:${Ns(e)}`);
|
|
69044
69171
|
}
|
|
69045
|
-
else
|
|
69172
|
+
else Ce("场景初始化成功,未开启自动云数据加载");
|
|
69046
69173
|
},
|
|
69047
69174
|
onSceneError: () => {
|
|
69048
|
-
|
|
69175
|
+
lr([]), ur([]), mr();
|
|
69049
69176
|
}
|
|
69050
|
-
}), { activeViewPointKey:
|
|
69177
|
+
}), { activeViewPointKey: Oe, overviewViewPoint: ke, panelViewPoints: Ae, activeViewPointName: je, stopViewRestoreAnimation: Y, applyViewRestoreFrame: Me, animateRestoreView: Ne, resolveLr3dCamera: Pe, resolveLr3dControls: Fe, getThreeGlobal: Ie, isVectorLike: Le, toAbsolutePosition: Re, toRelativePosition: ze, resolvePositionWithLaneTopoZ: Be, getViewPointList: Ve, getCurrentViewInfo: He, applyViewInfo: Ue, switchToViewPoint: We, switchToOverviewViewPoint: Ge, applyTrackPlaybackOverviewViewPoint: Ke, applyDefaultInitialViewPoint: qe, focusAbsolutePoint: Je, moveView: Ye } = JW({
|
|
69051
69178
|
mineId: r(() => N.mineId),
|
|
69052
69179
|
defaultViewPointName: r(() => N.defaultViewPointName),
|
|
69053
69180
|
defaultInitialViewPointName: zY,
|
|
@@ -69055,308 +69182,305 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
69055
69182
|
monitorPointFocusDistance: RY,
|
|
69056
69183
|
viewRestoreTransitionDurationMs: VY,
|
|
69057
69184
|
viewRestoreMinDistance: HY,
|
|
69058
|
-
normalizeToken:
|
|
69059
|
-
resolveErrorMessage:
|
|
69060
|
-
setDebugLog:
|
|
69061
|
-
appendDebugLog:
|
|
69185
|
+
normalizeToken: zs,
|
|
69186
|
+
resolveErrorMessage: Ns,
|
|
69187
|
+
setDebugLog: Ce,
|
|
69188
|
+
appendDebugLog: we,
|
|
69062
69189
|
workfacePanelStatus: oe
|
|
69063
|
-
}), { personMonitorPanelMode:
|
|
69190
|
+
}), { personMonitorPanelMode: Xe, carMonitorPanelMode: Ze, demoPersonPosition: Qe, isDemoPersonMoving: $e, isPersonPositionMovementEnabled: et, isCarPositionMovementEnabled: tt, personPanelItems: nt, personPositionInitSummary: rt, personTrackPanelState: it, carPanelItems: at, carPositionInitSummary: ot, carTrackPanelState: st, personTrackPanelTitle: ct, personTrackPanelStatusText: lt, personTrackPanelPlayableCount: ut, isPersonTrackPanelPlaying: dt, isPersonTrackPanelPaused: ft, canStartPersonTrackPlayback: pt, carTrackPanelTitle: mt, carTrackPanelStatusText: ht, carTrackPanelPlayableCount: gt, isCarTrackPanelPlaying: _t, isCarTrackPanelPaused: vt, canStartCarTrackPlayback: yt, prependTestCarPositionItem: X, createTrackedPersonRuntimeItems: bt, createTrackedCarRuntimeItems: xt, startPersonPositionPolling: St, startCarPositionPolling: Ct, stopPersonPositionPolling: wt, stopCarPositionPolling: Tt, logPersonPosition: Et, logCarPosition: Dt, openPersonTrackPanel: Ot, closePersonTrackPanel: kt, startPersonTrackPanelPlayback: At, pausePersonTrackPanelPlayback: jt, resumePersonTrackPanelPlayback: Mt, togglePersonTrackFollow: Nt, followPersonTrack: Pt, stopPersonTrackFollow: Ft, openCarTrackPanel: It, closeCarTrackPanel: Lt, startCarTrackPanelPlayback: Rt, pauseCarTrackPanelPlayback: zt, resumeCarTrackPanelPlayback: Bt, toggleCarTrackFollow: Vt, followCarTrack: Ht, stopCarTrackFollow: Ut, handlePersonPositionMovementToggle: Wt, handleCarPositionMovementToggle: Gt, initializeDemoPerson: Kt, startDemoPersonMotion: qt, stopDemoPersonMotion: Jt, toggleDemoPersonMotion: Yt, focusDemoPerson: Xt, movePerson: Zt, moveCar: Qt, clearDemoPersonMovement: $t, clearCarMovement: en, resetTrackManagerState: tn } = HW({
|
|
69064
69191
|
markerStore: P,
|
|
69065
69192
|
mineId: r(() => N.mineId),
|
|
69066
69193
|
apiPrefix: r(() => N.apiPrefix),
|
|
69067
69194
|
workfacePanelStatus: oe,
|
|
69068
|
-
resolvePositionWithLaneTopoZ:
|
|
69069
|
-
focusAbsolutePoint:
|
|
69070
|
-
resolveLr3dControls:
|
|
69071
|
-
getThreeGlobal:
|
|
69072
|
-
stopViewRestoreAnimation:
|
|
69073
|
-
applyViewRestoreFrame:
|
|
69074
|
-
applyTrackPlaybackOverviewViewPoint:
|
|
69075
|
-
normalizeToken:
|
|
69076
|
-
resolveErrorMessage:
|
|
69077
|
-
setDebugLog:
|
|
69078
|
-
appendDebugLog:
|
|
69079
|
-
}), { rangeSelectionState:
|
|
69195
|
+
resolvePositionWithLaneTopoZ: Be,
|
|
69196
|
+
focusAbsolutePoint: Je,
|
|
69197
|
+
resolveLr3dControls: Fe,
|
|
69198
|
+
getThreeGlobal: Ie,
|
|
69199
|
+
stopViewRestoreAnimation: Y,
|
|
69200
|
+
applyViewRestoreFrame: Me,
|
|
69201
|
+
applyTrackPlaybackOverviewViewPoint: Ke,
|
|
69202
|
+
normalizeToken: zs,
|
|
69203
|
+
resolveErrorMessage: Ns,
|
|
69204
|
+
setDebugLog: Ce,
|
|
69205
|
+
appendDebugLog: we
|
|
69206
|
+
}), { rangeSelectionState: nn, rangeSelectionPickMode: rn, activeRangeSelectionType: an, rangeSelectionRadius: on, rangeSelectionCenterRelative: sn, rangeSelectionLaneInfo: cn, rangeSelectionSource: ln, rangeSelectionPickObject: un, rangeSelectionSphereObject: dn, rangeSelectionMarkerObject: fn, accidentRangeSelectionRadius: pn, accidentRangeSelectionCenterRelative: mn, accidentRangeSelectionLaneInfo: hn, accidentRangeSelectionSource: gn, accidentRangeSelectionPickObject: _n, accidentRangeSelectionSphereObject: vn, accidentRangeSelectionMarkerObject: yn, rangeSelectionCenterAbsolute: bn, accidentRangeSelectionCenterAbsolute: xn, hasRangeSelection: Sn, hasAccidentRangeSelection: Cn, rangeSelectionStatusText: wn, normalRangeSelectionSummaryText: Tn, accidentRangeSelectionSummaryText: En, resolveRangeSelectionType: Dn, resolveRangeSelectionBinding: On, resolveRangeSelectionActionLabel: kn, clearRangeSelectionInteraction: An, isMonitorPointWithinStoredRangeSelection: jn, isMonitorPointWithinRangeSelection: Mn, getRangeSelectionResult: Nn, registerRangeSelectionChange: Pn, registerRangeSelectionResultChange: Fn, registerRangeSelectionCoordinatePick: In, applyRangeSelection: Ln, startRangeSelectionByMode: Rn, startRangeSelection: zn, startContinuousRangeSelection: Bn, startAccidentRangeSelection: Vn, startContinuousAccidentRangeSelection: Hn, cancelRangeSelection: Un, setRangeSelection: Wn, setRangeSelectionByCoordinate: Gn, setAccidentRangeSelection: Kn, setAccidentRangeSelectionByCoordinate: qn, startRangeSelectionCoordinatePick: Jn, setRangeSelectionRadius: Yn, clearRangeSelection: Xn, clearAccidentRangeSelection: Zn, updateAccidentRangeSelectionMarkerSize: Qn } = DW({
|
|
69080
69207
|
viewerHost: I,
|
|
69081
69208
|
workfacePanelStatus: oe,
|
|
69082
69209
|
getRangeSelectionVisibleMonitorItems: () => q?.value ?? [],
|
|
69083
69210
|
cancelMonitorPointPlacement: (...e) => ve?.(...e),
|
|
69084
|
-
toAbsolutePosition:
|
|
69085
|
-
toRelativePosition:
|
|
69086
|
-
resolveLr3dCamera:
|
|
69087
|
-
getThreeGlobal:
|
|
69088
|
-
resolveModelInfoPayload:
|
|
69211
|
+
toAbsolutePosition: Re,
|
|
69212
|
+
toRelativePosition: ze,
|
|
69213
|
+
resolveLr3dCamera: Pe,
|
|
69214
|
+
getThreeGlobal: Ie,
|
|
69215
|
+
resolveModelInfoPayload: Ys,
|
|
69089
69216
|
syncHighlightedLaneNameMarkers: () => _e?.(),
|
|
69090
69217
|
warningPositionImageUrl: cG,
|
|
69091
|
-
setDebugLog:
|
|
69092
|
-
appendDebugLog:
|
|
69093
|
-
resolveErrorMessage:
|
|
69218
|
+
setDebugLog: Ce,
|
|
69219
|
+
appendDebugLog: we,
|
|
69220
|
+
resolveErrorMessage: Ns,
|
|
69094
69221
|
defaultRadius: GY,
|
|
69095
69222
|
minRadius: KY,
|
|
69096
69223
|
maxRadius: qY,
|
|
69097
69224
|
rangeSelectionTypes: _,
|
|
69098
69225
|
rangeSelectionPickModes: g,
|
|
69099
69226
|
rangeSelectionTypeMeta: v,
|
|
69100
|
-
markerVerticalOffset:
|
|
69101
|
-
markerCoreRadius:
|
|
69102
|
-
markerGlowRadius:
|
|
69103
|
-
accidentMarkerWorldWidth:
|
|
69104
|
-
accidentMarkerMinSize:
|
|
69105
|
-
accidentMarkerScaleDistance:
|
|
69106
|
-
accidentMarkerZOffset:
|
|
69227
|
+
markerVerticalOffset: cX,
|
|
69228
|
+
markerCoreRadius: lX,
|
|
69229
|
+
markerGlowRadius: uX,
|
|
69230
|
+
accidentMarkerWorldWidth: eX,
|
|
69231
|
+
accidentMarkerMinSize: tX,
|
|
69232
|
+
accidentMarkerScaleDistance: nX,
|
|
69233
|
+
accidentMarkerZOffset: rX,
|
|
69107
69234
|
accidentPulseColor: l,
|
|
69108
|
-
accidentPulseDurationMs:
|
|
69109
|
-
accidentPulseScaleAmplitude:
|
|
69110
|
-
accidentPulseMinOpacity:
|
|
69111
|
-
}),
|
|
69235
|
+
accidentPulseDurationMs: iX,
|
|
69236
|
+
accidentPulseScaleAmplitude: aX,
|
|
69237
|
+
accidentPulseMinOpacity: oX
|
|
69238
|
+
}), $n = r(() => nn.value === "picking" && an.value === _.DEFAULT), { regionItems: er, regionVisibilityMap: tr, laneItems: nr, laneVisibilityMap: rr, areRegionsVisible: ir, areLanesVisible: ar, filteredRegionItems: or, groupedRegionItems: sr, hasVisibilityItems: cr, syncRegionList: lr, syncLaneList: ur, clearLaneNameMarkers: dr, syncLaneNameMarkers: fr, syncHighlightedLaneNameMarkers: pr, removeWellheadTextMarker: mr, syncWellheadTextMarker: hr, clearLaneGlassMaterialRetryTimer: gr, clearLaneGlassMaterialSceneGraphHandler: _r, scheduleLaneGlassMaterialApply: vr, handleRegionVisibilityChange: yr, handleLaneVisibilityChange: br, toggleLanesVisibility: xr, toggleRegionsVisibility: Sr } = OW({
|
|
69112
69239
|
mineId: r(() => N.mineId),
|
|
69113
|
-
isVectorLike:
|
|
69114
|
-
toRelativePosition:
|
|
69115
|
-
getThreeGlobal:
|
|
69116
|
-
normalizeToken:
|
|
69117
|
-
resolveNonEmptyValue:
|
|
69118
|
-
resolveRangeSelectionScene:
|
|
69119
|
-
disposeThreeObject:
|
|
69120
|
-
rangeSelectionPickObject:
|
|
69121
|
-
accidentRangeSelectionPickObject:
|
|
69122
|
-
rangeSelectionLaneInfo:
|
|
69123
|
-
accidentRangeSelectionLaneInfo:
|
|
69124
|
-
setDebugLog:
|
|
69125
|
-
resolveErrorMessage:
|
|
69240
|
+
isVectorLike: Le,
|
|
69241
|
+
toRelativePosition: ze,
|
|
69242
|
+
getThreeGlobal: Ie,
|
|
69243
|
+
normalizeToken: zs,
|
|
69244
|
+
resolveNonEmptyValue: qs,
|
|
69245
|
+
resolveRangeSelectionScene: Vs,
|
|
69246
|
+
disposeThreeObject: Hs,
|
|
69247
|
+
rangeSelectionPickObject: un,
|
|
69248
|
+
accidentRangeSelectionPickObject: _n,
|
|
69249
|
+
rangeSelectionLaneInfo: cn,
|
|
69250
|
+
accidentRangeSelectionLaneInfo: hn,
|
|
69251
|
+
setDebugLog: Ce,
|
|
69252
|
+
resolveErrorMessage: Ns,
|
|
69126
69253
|
workfacePanelStatus: oe,
|
|
69127
69254
|
regionTypeOrder: K,
|
|
69128
69255
|
regionTypeLabelMap: ge,
|
|
69129
69256
|
laneGlassMaterialRetryDelayMs: YY,
|
|
69130
|
-
onLaneGlassMaterialReady: () => {
|
|
69131
|
-
|
|
69132
|
-
},
|
|
69133
|
-
wellheadTextMarkerTargetMineId: MX,
|
|
69257
|
+
onLaneGlassMaterialReady: () => {},
|
|
69258
|
+
wellheadTextMarkerTargetMineId: jX,
|
|
69134
69259
|
wellheadTextMarkerItems: k,
|
|
69135
|
-
wellheadTextMarkerVerticalOffset:
|
|
69136
|
-
wellheadTextMarkerWorldHeight:
|
|
69137
|
-
laneNameMarkerScale:
|
|
69138
|
-
laneNameMarkerVerticalOffset:
|
|
69139
|
-
laneNameMarkerFontSize:
|
|
69140
|
-
laneNameMarkerPadding:
|
|
69141
|
-
laneNameMarkerWorldHeight:
|
|
69142
|
-
laneNameMarkerSelectedFontSize:
|
|
69143
|
-
laneNameMarkerSelectedPadding:
|
|
69144
|
-
laneNameMarkerSelectedWorldHeight:
|
|
69145
|
-
laneNameMarkerSelectedBackgroundColor:
|
|
69146
|
-
laneNameMarkerSelectedBorderColor:
|
|
69147
|
-
laneNameMarkerSelectedBorderWidth:
|
|
69260
|
+
wellheadTextMarkerVerticalOffset: MX,
|
|
69261
|
+
wellheadTextMarkerWorldHeight: NX,
|
|
69262
|
+
laneNameMarkerScale: PX,
|
|
69263
|
+
laneNameMarkerVerticalOffset: FX,
|
|
69264
|
+
laneNameMarkerFontSize: IX,
|
|
69265
|
+
laneNameMarkerPadding: LX,
|
|
69266
|
+
laneNameMarkerWorldHeight: RX,
|
|
69267
|
+
laneNameMarkerSelectedFontSize: zX,
|
|
69268
|
+
laneNameMarkerSelectedPadding: BX,
|
|
69269
|
+
laneNameMarkerSelectedWorldHeight: VX,
|
|
69270
|
+
laneNameMarkerSelectedBackgroundColor: HX,
|
|
69271
|
+
laneNameMarkerSelectedBorderColor: UX,
|
|
69272
|
+
laneNameMarkerSelectedBorderWidth: WX
|
|
69148
69273
|
});
|
|
69149
|
-
_e =
|
|
69150
|
-
let { isWaterSimulationPanelVisible:
|
|
69151
|
-
initState:
|
|
69274
|
+
_e = pr;
|
|
69275
|
+
let { isWaterSimulationPanelVisible: Cr, isWaterSimulationStarted: wr, isWaterSimulationPaused: Tr, waterSimulationFlowRate: Er, waterSimulationDrainageRate: Dr, waterSimulationPlaybackMultiplier: Or, waterSimulationDurationText: kr, waterSimulationDisplayDurationText: Ar, waterSimulationAnalysisButtonText: jr, waterSimulationControlButtonText: Z, isWaterSimulationControlButtonDisabled: Mr, waterSimulationPredictionRenderItems: Nr, waterSimulationAnalysisSelectedPresetMinutes: Pr, waterSimulationAnalysisHour: Q, waterSimulationAnalysisMinute: Fr, waterSimulationAnalysisLocationCount: Ir, isWaterSimulationAnalysisLocationPicking: Lr, isWaterSimulationTunnelInfoPicking: Rr, isWaterSimulationAnalysisLoading: zr, waterSimulationAnalysisResult: Br, clearWaterSimulationAnalysisLocationPick: Vr, clearWaterSimulationAnalysisLocations: Hr, clearWaterSimulationAnalysisLoading: Ur, removeWaterSimulationAnalysisLocationMarker: Wr, resetWaterSimulationRuntimeState: Gr, toggleWaterSimulationAnalysisRenderItem: Kr, updateWaterSimulationPredictionRenderStyles: qr, toggleWaterSimulationPanel: Jr, showWaterSimulationPanel: Yr, hideWaterSimulationPanel: Xr, handleWaterSimulationParameterInput: Zr, handleWaterSimulationParameterChange: Qr, handleWaterSimulationAnalysisTimeInput: $r, setWaterSimulationAnalysisPreset: ei, handleWaterSimulationAnalysisHourInput: ti, startWaterSimulationAnalysisLocationPick: ni, startWaterSimulationTunnelInfoPick: ri, focusWaterSimulationKeyLocation: ii, handleWaterSimulationAnalysisSubmit: ai, handleWaterSimulationPrimaryAction: oi, handleWaterSimulationCancel: si, startWaterSimulationSelect: ci, endWaterSimulationSelect: li, startWaterSimulation: ui, clearWaterSimulation: di } = YW({
|
|
69276
|
+
initState: xe,
|
|
69152
69277
|
workfacePanelStatus: oe,
|
|
69153
|
-
isWaterToolEnabled: () =>
|
|
69154
|
-
rangeSelectionState:
|
|
69155
|
-
activeRangeSelectionType:
|
|
69156
|
-
rangeSelectionPickMode:
|
|
69157
|
-
rangeSelectionRadius:
|
|
69158
|
-
accidentRangeSelectionRadius:
|
|
69278
|
+
isWaterToolEnabled: () => Es.value,
|
|
69279
|
+
rangeSelectionState: nn,
|
|
69280
|
+
activeRangeSelectionType: an,
|
|
69281
|
+
rangeSelectionPickMode: rn,
|
|
69282
|
+
rangeSelectionRadius: on,
|
|
69283
|
+
accidentRangeSelectionRadius: pn,
|
|
69159
69284
|
rangeSelectionTypes: _,
|
|
69160
69285
|
rangeSelectionPickModes: g,
|
|
69161
|
-
resolveRangeSelectionType:
|
|
69162
|
-
resolveRangeSelectionBinding:
|
|
69163
|
-
clearRangeSelectionInteraction:
|
|
69164
|
-
startRangeSelectionByMode:
|
|
69286
|
+
resolveRangeSelectionType: Dn,
|
|
69287
|
+
resolveRangeSelectionBinding: On,
|
|
69288
|
+
clearRangeSelectionInteraction: An,
|
|
69289
|
+
startRangeSelectionByMode: Rn,
|
|
69165
69290
|
cancelMonitorPointPlacement: (...e) => ve?.(...e),
|
|
69166
|
-
accidentRangeSelectionCenterRelative:
|
|
69167
|
-
accidentRangeSelectionPickObject:
|
|
69168
|
-
isVectorLike:
|
|
69169
|
-
toAbsolutePosition:
|
|
69170
|
-
toRelativePosition:
|
|
69291
|
+
accidentRangeSelectionCenterRelative: mn,
|
|
69292
|
+
accidentRangeSelectionPickObject: _n,
|
|
69293
|
+
isVectorLike: Le,
|
|
69294
|
+
toAbsolutePosition: Re,
|
|
69295
|
+
toRelativePosition: ze,
|
|
69171
69296
|
getLr3dEditor: ij,
|
|
69172
|
-
resolveLr3dCamera:
|
|
69173
|
-
resolveLr3dControls:
|
|
69174
|
-
getThreeGlobal:
|
|
69175
|
-
animateRestoreView:
|
|
69176
|
-
focusAbsolutePoint:
|
|
69177
|
-
updateAccidentRangeSelectionMarkerSize:
|
|
69178
|
-
addLr3dTextMarker:
|
|
69179
|
-
clearLr3dTextMarkers:
|
|
69180
|
-
disposeThreeObject:
|
|
69181
|
-
resolveOverlayScreenStyle:
|
|
69182
|
-
setDebugLog:
|
|
69183
|
-
appendDebugLog:
|
|
69184
|
-
resolveErrorMessage:
|
|
69185
|
-
modulePath:
|
|
69186
|
-
defaultFlowRate:
|
|
69187
|
-
defaultDrainageRate:
|
|
69188
|
-
minFlowRate:
|
|
69189
|
-
maxFlowRate:
|
|
69190
|
-
defaultPlaybackMultiplier:
|
|
69191
|
-
minPlaybackMultiplier:
|
|
69192
|
-
maxPlaybackMultiplier:
|
|
69193
|
-
analysisLoadingDelayMs:
|
|
69194
|
-
timeAnalysisStepSeconds:
|
|
69195
|
-
focusDistanceThreshold:
|
|
69196
|
-
focusCameraDistance:
|
|
69197
|
-
focusCameraHeight:
|
|
69297
|
+
resolveLr3dCamera: Pe,
|
|
69298
|
+
resolveLr3dControls: Fe,
|
|
69299
|
+
getThreeGlobal: Ie,
|
|
69300
|
+
animateRestoreView: Ne,
|
|
69301
|
+
focusAbsolutePoint: Je,
|
|
69302
|
+
updateAccidentRangeSelectionMarkerSize: Qn,
|
|
69303
|
+
addLr3dTextMarker: As,
|
|
69304
|
+
clearLr3dTextMarkers: js,
|
|
69305
|
+
disposeThreeObject: Hs,
|
|
69306
|
+
resolveOverlayScreenStyle: Rs,
|
|
69307
|
+
setDebugLog: Ce,
|
|
69308
|
+
appendDebugLog: we,
|
|
69309
|
+
resolveErrorMessage: Ns,
|
|
69310
|
+
modulePath: fX,
|
|
69311
|
+
defaultFlowRate: pX,
|
|
69312
|
+
defaultDrainageRate: mX,
|
|
69313
|
+
minFlowRate: hX,
|
|
69314
|
+
maxFlowRate: gX,
|
|
69315
|
+
defaultPlaybackMultiplier: vX,
|
|
69316
|
+
minPlaybackMultiplier: yX,
|
|
69317
|
+
maxPlaybackMultiplier: bX,
|
|
69318
|
+
analysisLoadingDelayMs: TX,
|
|
69319
|
+
timeAnalysisStepSeconds: EX,
|
|
69320
|
+
focusDistanceThreshold: SX,
|
|
69321
|
+
focusCameraDistance: CX,
|
|
69322
|
+
focusCameraHeight: wX,
|
|
69198
69323
|
analysisTimeOptions: h,
|
|
69199
|
-
analysisLocationMarkerText:
|
|
69324
|
+
analysisLocationMarkerText: AX,
|
|
69200
69325
|
viewRestoreMinDistance: HY,
|
|
69201
69326
|
viewRestoreTransitionDurationMs: VY,
|
|
69202
|
-
|
|
69203
|
-
|
|
69204
|
-
restoreExitPathByAccident: (...e) => Di(...e),
|
|
69327
|
+
getExitPathPickInterferenceObjects: (...e) => Di(...e),
|
|
69328
|
+
isExitPathPickInterferenceObject: (...e) => Oi(...e),
|
|
69205
69329
|
notifyWaterSimulationParameterChange: (e) => ce.value?.(e)
|
|
69206
69330
|
});
|
|
69207
|
-
function
|
|
69208
|
-
return !e || e.isInteractive !== !0 ? !1 :
|
|
69331
|
+
function fi(e) {
|
|
69332
|
+
return !e || e.isInteractive !== !0 ? !1 : Kr(e.key);
|
|
69209
69333
|
}
|
|
69210
|
-
let { isExitPathPanelVisible:
|
|
69334
|
+
let { isExitPathPanelVisible: pi, isExitPathComputing: mi, isExitPathGenerated: hi, showExitPathPanel: gi, hideExitPathPanel: _i, toggleExitPathPanel: vi, startExitPathRoutePick: yi, startExitPathObstaclePick: bi, computeExitPath: xi, computeExitPathByCoordinates: Si, pauseExitPath: Ci, resumeExitPath: wi, clearExitPath: Ti, handleExitPathGenerateByAccident: Ei, getExitPathPickInterferenceObjects: Di, isExitPathPickInterferenceObject: Oi, cleanupExitPathRuntime: ki } = jW({
|
|
69211
69335
|
workfacePanelStatus: oe,
|
|
69212
|
-
isExitPathToolEnabled: () =>
|
|
69213
|
-
accidentRangeSelectionCenterRelative:
|
|
69214
|
-
isVectorLike:
|
|
69215
|
-
toAbsolutePosition:
|
|
69216
|
-
toRelativePosition:
|
|
69217
|
-
applyViewInfo:
|
|
69218
|
-
getThreeGlobal:
|
|
69219
|
-
addLr3dTextMarker:
|
|
69220
|
-
clearLr3dTextMarkers:
|
|
69221
|
-
resolveRangeSelectionScene:
|
|
69222
|
-
disposeThreeObject:
|
|
69223
|
-
parseCoordinateText:
|
|
69224
|
-
resolveScenePickObjectByPosition:
|
|
69225
|
-
formatRangeSelectionPosition:
|
|
69226
|
-
setDebugLog:
|
|
69227
|
-
appendDebugLog:
|
|
69228
|
-
resolveErrorMessage:
|
|
69229
|
-
modulePath:
|
|
69336
|
+
isExitPathToolEnabled: () => Ds.value,
|
|
69337
|
+
accidentRangeSelectionCenterRelative: mn,
|
|
69338
|
+
isVectorLike: Le,
|
|
69339
|
+
toAbsolutePosition: Re,
|
|
69340
|
+
toRelativePosition: ze,
|
|
69341
|
+
applyViewInfo: Ue,
|
|
69342
|
+
getThreeGlobal: Ie,
|
|
69343
|
+
addLr3dTextMarker: As,
|
|
69344
|
+
clearLr3dTextMarkers: js,
|
|
69345
|
+
resolveRangeSelectionScene: Vs,
|
|
69346
|
+
disposeThreeObject: Hs,
|
|
69347
|
+
parseCoordinateText: Oo,
|
|
69348
|
+
resolveScenePickObjectByPosition: Ks,
|
|
69349
|
+
formatRangeSelectionPosition: Fs,
|
|
69350
|
+
setDebugLog: Ce,
|
|
69351
|
+
appendDebugLog: we,
|
|
69352
|
+
resolveErrorMessage: Ns,
|
|
69353
|
+
modulePath: DX,
|
|
69230
69354
|
defaultTolerance: 16,
|
|
69231
69355
|
defaultAccidentPointAbsolutePosition: f,
|
|
69232
69356
|
defaultExitPathAccidentRoutePointAbsolutePosition: p,
|
|
69233
69357
|
customRouteStyles: E,
|
|
69234
69358
|
fixedExitPathViewInfo: m
|
|
69235
|
-
}), { monitorPointItems:
|
|
69359
|
+
}), { monitorPointItems: Ai, monitorPointLoadState: ji, monitorPointLoadError: Mi, monitorPointRenderStyleMap: Ni, hiddenMonitorPointTypes: Pi, monitorPointTabsRef: Fi, activeMonitorPointId: Ii, activeMonitorPointType: Li, activeVideoMonitorIdSet: Ri, highlightedVideoMonitorId: zi, monitorPointCurrentPage: Bi, isMonitorPanelVisible: Vi, selectedMonitorPointTypeLabel: Hi, monitorPointKeyword: Ui, monitorPointPlacementState: Wi, monitorPointTabs: Gi, allMonitorPointItems: Ki, activeMonitorPointTypeFilterOptions: qi, activeMonitorPointItems: Ji, hasActiveMonitorPointItems: Yi, isPersonMonitorPointTabActive: Xi, isCarMonitorPointTabActive: Zi, isPersonTrackPanelMode: Qi, isCarTrackPanelMode: $i, shouldShowMonitorPointFilters: ea, activeMonitorPointEmptyText: ta, shouldShowMonitorPointLoadingState: na, shouldShowMonitorPointLoadingHint: ra, pagedActiveMonitorPointItems: ia, monitorPointTotalPages: aa, activeMonitorPointItem: oa, activeMonitorPointIconMeta: sa, activeMonitorPointDataEntries: ca, shouldShowActiveMonitorPointPopup: la, monitorPointPlacementTargetName: ua, monitorPointPlacementStatusText: da, renderableMonitorPointItems: fa, rangeSelectionVisibleMonitorItems: pa, areAllMonitorPointTypesVisible: ma, monitorPointLegendItems: ha, monitorPointRenderItems: ga, setMonitorPointTabRef: _a, handleMonitorPointTabsPointerDown: va, handleMonitorPointTabsPointerMove: ya, handleMonitorPointTabsPointerEnd: ba, handleMonitorPointTabClick: xa, handleMonitorPointTypeFilterChange: Sa, handleMonitorPointKeywordChange: Ca, toggleMonitorPanel: wa, toggleAllMonitorPointTypeVisibility: Ta, toggleMonitorPointTypeVisibility: Ea, handleMonitorPointPopupClose: Da, handleMonitorPointIconClick: Oa, handleMonitorPointPanelClick: ka, cancelMonitorPointPlacement: Aa, startMonitorPointPlacement: ja, handleMonitorPointPlacementButtonClick: Ma, confirmMonitorPointPlacement: Na, stopMonitorPointRenderLoop: Pa, setActiveVideoMonitorIds: Fa, highlightVideoMonitor: Ia, clearVideoMonitorHighlight: La, clearMonitorPoints: Ra, initMonitorPoints: za, queryMonitorPointList: Ba, reloadMonitorPoints: Va, loadMonitorPointPanelData: Ha, resolveExternalMonitorPointTargetItem: Ua, focusMonitorPoint: Wa } = EW({
|
|
69236
69360
|
markerStore: P,
|
|
69237
69361
|
mineId: r(() => N.mineId),
|
|
69238
69362
|
apiPrefix: r(() => N.apiPrefix),
|
|
69239
69363
|
show3dMarkerPopup: r(() => N.show3dMarkerPopup),
|
|
69240
|
-
isMonitorToolEnabled: () =>
|
|
69241
|
-
initState:
|
|
69364
|
+
isMonitorToolEnabled: () => ws.value,
|
|
69365
|
+
initState: xe,
|
|
69242
69366
|
viewerHost: I,
|
|
69243
69367
|
workfacePanelStatus: oe,
|
|
69244
|
-
personPanelItems:
|
|
69245
|
-
carPanelItems:
|
|
69246
|
-
personPositionInitSummary:
|
|
69247
|
-
carPositionInitSummary:
|
|
69248
|
-
personMonitorPanelMode:
|
|
69249
|
-
carMonitorPanelMode:
|
|
69250
|
-
rangeSelectionState:
|
|
69251
|
-
rangeSelectionPickMode:
|
|
69252
|
-
activeRangeSelectionType:
|
|
69253
|
-
hasRangeSelection: () =>
|
|
69368
|
+
personPanelItems: nt,
|
|
69369
|
+
carPanelItems: at,
|
|
69370
|
+
personPositionInitSummary: rt,
|
|
69371
|
+
carPositionInitSummary: ot,
|
|
69372
|
+
personMonitorPanelMode: Xe,
|
|
69373
|
+
carMonitorPanelMode: Ze,
|
|
69374
|
+
rangeSelectionState: nn,
|
|
69375
|
+
rangeSelectionPickMode: rn,
|
|
69376
|
+
activeRangeSelectionType: an,
|
|
69377
|
+
hasRangeSelection: () => Sn.value,
|
|
69254
69378
|
rangeSelectionTypes: _,
|
|
69255
69379
|
rangeSelectionPickModes: g,
|
|
69256
|
-
isMonitorPointWithinRangeSelection:
|
|
69257
|
-
isMonitorPointWithinStoredRangeSelection:
|
|
69258
|
-
applyRangeSelection:
|
|
69259
|
-
clearRangeSelectionInteraction: () =>
|
|
69260
|
-
toAbsolutePosition:
|
|
69261
|
-
toRelativePosition:
|
|
69262
|
-
focusAbsolutePoint:
|
|
69263
|
-
resolveLr3dCamera:
|
|
69264
|
-
getThreeGlobal:
|
|
69265
|
-
normalizeToken:
|
|
69266
|
-
resolveErrorMessage:
|
|
69267
|
-
setDebugLog:
|
|
69268
|
-
appendDebugLog:
|
|
69269
|
-
dispatchPointClick:
|
|
69270
|
-
dispatchVideoMonitorClick:
|
|
69271
|
-
resolveModelInfoPayload:
|
|
69272
|
-
resolveSceneIntersection:
|
|
69273
|
-
closePersonTrackPanel:
|
|
69274
|
-
closeCarTrackPanel:
|
|
69275
|
-
prependTestCarPositionItem:
|
|
69276
|
-
createTrackedPersonRuntimeItems:
|
|
69277
|
-
createTrackedCarRuntimeItems:
|
|
69278
|
-
startPersonPositionPolling:
|
|
69279
|
-
startCarPositionPolling:
|
|
69280
|
-
stopPersonPositionPolling:
|
|
69281
|
-
stopCarPositionPolling:
|
|
69282
|
-
logPersonPosition:
|
|
69283
|
-
logCarPosition:
|
|
69380
|
+
isMonitorPointWithinRangeSelection: Mn,
|
|
69381
|
+
isMonitorPointWithinStoredRangeSelection: jn,
|
|
69382
|
+
applyRangeSelection: Ln,
|
|
69383
|
+
clearRangeSelectionInteraction: () => An(),
|
|
69384
|
+
toAbsolutePosition: Re,
|
|
69385
|
+
toRelativePosition: ze,
|
|
69386
|
+
focusAbsolutePoint: Je,
|
|
69387
|
+
resolveLr3dCamera: Pe,
|
|
69388
|
+
getThreeGlobal: Ie,
|
|
69389
|
+
normalizeToken: zs,
|
|
69390
|
+
resolveErrorMessage: Ns,
|
|
69391
|
+
setDebugLog: Ce,
|
|
69392
|
+
appendDebugLog: we,
|
|
69393
|
+
dispatchPointClick: Qs,
|
|
69394
|
+
dispatchVideoMonitorClick: $s,
|
|
69395
|
+
resolveModelInfoPayload: Ys,
|
|
69396
|
+
resolveSceneIntersection: Gs,
|
|
69397
|
+
closePersonTrackPanel: kt,
|
|
69398
|
+
closeCarTrackPanel: Lt,
|
|
69399
|
+
prependTestCarPositionItem: X,
|
|
69400
|
+
createTrackedPersonRuntimeItems: bt,
|
|
69401
|
+
createTrackedCarRuntimeItems: xt,
|
|
69402
|
+
startPersonPositionPolling: St,
|
|
69403
|
+
startCarPositionPolling: Ct,
|
|
69404
|
+
stopPersonPositionPolling: wt,
|
|
69405
|
+
stopCarPositionPolling: Tt,
|
|
69406
|
+
logPersonPosition: Et,
|
|
69407
|
+
logCarPosition: Dt,
|
|
69284
69408
|
bundleTubeDisplayLimit: LY,
|
|
69285
69409
|
monitorPointOverlayMaxScale: UY,
|
|
69286
69410
|
monitorPointOverlayMinScaleReduction: WY,
|
|
69287
69411
|
handleExtraOverlayRenderFrame: () => {
|
|
69288
|
-
|
|
69412
|
+
qr(), Qn() && cj();
|
|
69289
69413
|
}
|
|
69290
69414
|
});
|
|
69291
|
-
q =
|
|
69292
|
-
let
|
|
69415
|
+
q = pa, ve = Aa;
|
|
69416
|
+
let Ga = A(null), Ka = A(!1), qa = A(!1), Ja = A(0), Ya = A(null), Xa = A(!1), Za = A({
|
|
69293
69417
|
x: 0,
|
|
69294
69418
|
y: 0
|
|
69295
|
-
}),
|
|
69419
|
+
}), Qa = A(!1), $a = {
|
|
69296
69420
|
active: !1,
|
|
69297
69421
|
pointerId: null,
|
|
69298
69422
|
startX: 0,
|
|
69299
69423
|
startY: 0,
|
|
69300
69424
|
didDrag: !1
|
|
69301
|
-
},
|
|
69302
|
-
function
|
|
69303
|
-
return
|
|
69425
|
+
}, eo = null, to = null, no = r(() => !qa.value || Ka.value || Ja.value <= 0 ? {} : { maxHeight: `${Ja.value}px` }), ro = r(() => nn.value === "picking" && an.value === _.ACCIDENT);
|
|
69426
|
+
function io(e) {
|
|
69427
|
+
return Le(e) ? {
|
|
69304
69428
|
x: Number(e.x),
|
|
69305
69429
|
y: Number(e.y),
|
|
69306
69430
|
z: Number(e.z)
|
|
69307
69431
|
} : null;
|
|
69308
69432
|
}
|
|
69309
|
-
function
|
|
69433
|
+
function ao(e, t) {
|
|
69310
69434
|
return !e || !t ? e === t : Math.abs(Number(e.x) - Number(t.x)) < .001 && Math.abs(Number(e.y) - Number(t.y)) < .001 && Math.abs(Number(e.z) - Number(t.z)) < .001;
|
|
69311
69435
|
}
|
|
69312
|
-
function
|
|
69313
|
-
let t =
|
|
69314
|
-
return t ? (
|
|
69436
|
+
function oo(e = mn.value) {
|
|
69437
|
+
let t = io(e);
|
|
69438
|
+
return t ? (be = {
|
|
69315
69439
|
previousPosition: t,
|
|
69316
|
-
shouldRegenerateExitPath:
|
|
69317
|
-
shouldClearWaterSimulation:
|
|
69318
|
-
}, !0) : (
|
|
69319
|
-
}
|
|
69320
|
-
function oo(e = {}) {
|
|
69321
|
-
ao(ro(hn.value));
|
|
69322
|
-
let t = Hn(e);
|
|
69323
|
-
return t || (J = null), t;
|
|
69440
|
+
shouldRegenerateExitPath: hi.value === !0,
|
|
69441
|
+
shouldClearWaterSimulation: wr.value === !0
|
|
69442
|
+
}, !0) : (be = null, !1);
|
|
69324
69443
|
}
|
|
69325
69444
|
function so(e = {}) {
|
|
69326
|
-
|
|
69327
|
-
let t =
|
|
69328
|
-
return t || (
|
|
69445
|
+
oo(io(mn.value));
|
|
69446
|
+
let t = Vn(e);
|
|
69447
|
+
return t || (be = null), t;
|
|
69329
69448
|
}
|
|
69330
|
-
|
|
69331
|
-
|
|
69332
|
-
|
|
69449
|
+
function co(e = {}) {
|
|
69450
|
+
oo(io(mn.value));
|
|
69451
|
+
let t = Hn(e);
|
|
69452
|
+
return t || (be = null), t;
|
|
69333
69453
|
}
|
|
69334
|
-
|
|
69335
|
-
|
|
69336
|
-
return
|
|
69454
|
+
async function lo(e) {
|
|
69455
|
+
let t = be;
|
|
69456
|
+
return be = null, !t || !io(e) || ao(e, t.previousPosition) ? !1 : (t.shouldClearWaterSimulation && di(), t.shouldRegenerateExitPath && (await Promise.resolve(Ti()), await Promise.resolve(Ei())), !0);
|
|
69337
69457
|
}
|
|
69458
|
+
let uo = r(() => ro.value ? String(wn.value || "事故选点中,请在三维场景内单击目标位置") : ""), fo = r(() => Qa.value);
|
|
69338
69459
|
function po() {
|
|
69339
|
-
|
|
69340
|
-
|
|
69341
|
-
|
|
69460
|
+
return to !== null && typeof window < "u" && (window.clearTimeout(to), to = null), Qa.value = !1, !0;
|
|
69461
|
+
}
|
|
69462
|
+
function mo() {
|
|
69463
|
+
let e = Ga.value;
|
|
69464
|
+
if (!e || ea.value !== !0) {
|
|
69465
|
+
qa.value = !1, Ja.value = 0, Ka.value = !1;
|
|
69342
69466
|
return;
|
|
69343
69467
|
}
|
|
69344
69468
|
let t = Array.from(e.querySelectorAll(".lr3d-monitor-panel__filter-chip"));
|
|
69345
69469
|
if (t.length === 0) {
|
|
69346
|
-
|
|
69470
|
+
qa.value = !1, Ja.value = 0, Ka.value = !1;
|
|
69347
69471
|
return;
|
|
69348
69472
|
}
|
|
69349
69473
|
let n = e.getBoundingClientRect(), r = t[0].getBoundingClientRect(), i = Math.round(r.top - n.top), a = Math.round(r.bottom - n.top);
|
|
69350
69474
|
t.forEach((e) => {
|
|
69351
69475
|
let t = e.getBoundingClientRect();
|
|
69352
69476
|
Math.round(t.top - n.top) === i && (a = Math.max(a, Math.round(t.bottom - n.top)));
|
|
69353
|
-
}),
|
|
69354
|
-
}
|
|
69355
|
-
function mo() {
|
|
69356
|
-
return Ya.value ? (Ya.value = !1, !0) : !1;
|
|
69477
|
+
}), Ja.value = Math.max(0, a), qa.value = e.scrollHeight > a + 1, qa.value || (Ka.value = !1);
|
|
69357
69478
|
}
|
|
69358
69479
|
function ho() {
|
|
69359
|
-
|
|
69480
|
+
return Xa.value ? (Xa.value = !1, !0) : !1;
|
|
69481
|
+
}
|
|
69482
|
+
function go() {
|
|
69483
|
+
$a = {
|
|
69360
69484
|
active: !1,
|
|
69361
69485
|
pointerId: null,
|
|
69362
69486
|
startX: 0,
|
|
@@ -69364,248 +69488,248 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
69364
69488
|
didDrag: !1
|
|
69365
69489
|
};
|
|
69366
69490
|
}
|
|
69367
|
-
function
|
|
69368
|
-
return
|
|
69491
|
+
function _o() {
|
|
69492
|
+
return ho(), so();
|
|
69369
69493
|
}
|
|
69370
|
-
function
|
|
69371
|
-
return e.button === 2 ? (
|
|
69494
|
+
function vo(e) {
|
|
69495
|
+
return e.button === 2 ? ($a = {
|
|
69372
69496
|
active: !0,
|
|
69373
69497
|
pointerId: e.pointerId ?? null,
|
|
69374
69498
|
startX: Number(e.clientX) || 0,
|
|
69375
69499
|
startY: Number(e.clientY) || 0,
|
|
69376
69500
|
didDrag: !1
|
|
69377
|
-
}, !0) : (e.button === 0 &&
|
|
69501
|
+
}, !0) : (e.button === 0 && ho(), !1);
|
|
69378
69502
|
}
|
|
69379
|
-
function
|
|
69380
|
-
if (
|
|
69381
|
-
let t = (Number(e.clientX) || 0) -
|
|
69382
|
-
return Math.sqrt(t * t + n * n) >=
|
|
69503
|
+
function yo(e) {
|
|
69504
|
+
if (!$a.active || $a.pointerId !== null && e.pointerId !== void 0 && $a.pointerId !== e.pointerId) return !1;
|
|
69505
|
+
let t = (Number(e.clientX) || 0) - $a.startX, n = (Number(e.clientY) || 0) - $a.startY;
|
|
69506
|
+
return Math.sqrt(t * t + n * n) >= sX && ($a.didDrag = !0), $a.didDrag;
|
|
69383
69507
|
}
|
|
69384
|
-
function
|
|
69385
|
-
return
|
|
69508
|
+
function bo() {
|
|
69509
|
+
return go(), !0;
|
|
69386
69510
|
}
|
|
69387
|
-
function
|
|
69511
|
+
function xo(e) {
|
|
69388
69512
|
if (!I.value) return !1;
|
|
69389
69513
|
e.preventDefault?.();
|
|
69390
|
-
let t =
|
|
69391
|
-
if (
|
|
69514
|
+
let t = !$a.didDrag && !ro.value;
|
|
69515
|
+
if (go(), !t) return ho(), !1;
|
|
69392
69516
|
let n = I.value.getBoundingClientRect();
|
|
69393
|
-
return
|
|
69517
|
+
return Za.value = {
|
|
69394
69518
|
x: Math.max(8, Math.min(n.width - 8, Number(e.clientX) - n.left)),
|
|
69395
69519
|
y: Math.max(8, Math.min(n.height - 8, Number(e.clientY) - n.top))
|
|
69396
|
-
},
|
|
69520
|
+
}, Xa.value = !0, !0;
|
|
69397
69521
|
}
|
|
69398
|
-
function
|
|
69399
|
-
return !
|
|
69522
|
+
function So(e) {
|
|
69523
|
+
return !Xa.value || Ya.value?.contains?.(e.target) ? !1 : (ho(), !0);
|
|
69400
69524
|
}
|
|
69401
|
-
function
|
|
69525
|
+
function Co() {
|
|
69402
69526
|
x(() => {
|
|
69403
|
-
|
|
69527
|
+
mo();
|
|
69404
69528
|
});
|
|
69405
69529
|
}
|
|
69406
|
-
function Co() {
|
|
69407
|
-
$a?.disconnect?.(), $a = null, !(typeof ResizeObserver > "u" || !Wa.value) && ($a = new ResizeObserver(() => {
|
|
69408
|
-
po();
|
|
69409
|
-
}), $a.observe(Wa.value));
|
|
69410
|
-
}
|
|
69411
69530
|
function wo() {
|
|
69412
|
-
|
|
69531
|
+
eo?.disconnect?.(), eo = null, !(typeof ResizeObserver > "u" || !Ga.value) && (eo = new ResizeObserver(() => {
|
|
69532
|
+
mo();
|
|
69533
|
+
}), eo.observe(Ga.value));
|
|
69534
|
+
}
|
|
69535
|
+
function To() {
|
|
69536
|
+
return qa.value ? (Ka.value = !Ka.value, !0) : !1;
|
|
69413
69537
|
}
|
|
69414
69538
|
Object.freeze([
|
|
69539
|
+
KX,
|
|
69415
69540
|
qX,
|
|
69416
69541
|
JX,
|
|
69417
|
-
|
|
69418
|
-
|
|
69419
|
-
eZ
|
|
69542
|
+
ZX,
|
|
69543
|
+
$X
|
|
69420
69544
|
]);
|
|
69421
|
-
function
|
|
69545
|
+
function Eo(e = N.config) {
|
|
69422
69546
|
return IT({
|
|
69423
69547
|
...e ?? {},
|
|
69424
69548
|
resourcePrefix: N.resourcePrefix
|
|
69425
69549
|
});
|
|
69426
69550
|
}
|
|
69427
69551
|
ne(() => [N.config, N.resourcePrefix], ([e]) => {
|
|
69428
|
-
ee.value =
|
|
69552
|
+
ee.value = Eo(e ?? {}), PT(ee.value);
|
|
69429
69553
|
}, {
|
|
69430
69554
|
deep: !0,
|
|
69431
69555
|
immediate: !0
|
|
69432
69556
|
}), ne(() => N.mineId, (e, t) => {
|
|
69433
69557
|
let n = e !== t;
|
|
69434
|
-
n &&
|
|
69435
|
-
}, { immediate: !0 }), ne(() =>
|
|
69436
|
-
|
|
69437
|
-
}), ne(() =>
|
|
69558
|
+
n && mr(), !(!n && (nt.value.length || at.value.length)) && (Oe.value = "", tn({ clearItems: !0 }), xe.value === "ready" && (Ra(), ji.value = "idle", Mi.value = "", za({ forceReload: !0 }), Ce(`已切换 mineId=${String(e || "").trim()} 的接口数据`)));
|
|
69559
|
+
}, { immediate: !0 }), ne(() => Ga.value, () => {
|
|
69560
|
+
wo(), Co();
|
|
69561
|
+
}), ne(() => ro.value, (e, t) => {
|
|
69438
69562
|
if (e) {
|
|
69439
|
-
|
|
69563
|
+
ho(), oo();
|
|
69440
69564
|
return;
|
|
69441
69565
|
}
|
|
69442
|
-
t &&
|
|
69443
|
-
}), ne(() =>
|
|
69444
|
-
x:
|
|
69445
|
-
y:
|
|
69446
|
-
z:
|
|
69566
|
+
t && be && ao(io(mn.value), be.previousPosition) && (be = null);
|
|
69567
|
+
}), ne(() => mn.value ? {
|
|
69568
|
+
x: mn.value.x,
|
|
69569
|
+
y: mn.value.y,
|
|
69570
|
+
z: mn.value.z
|
|
69447
69571
|
} : null, (e) => {
|
|
69448
|
-
|
|
69572
|
+
lo(e);
|
|
69449
69573
|
}, { deep: !0 }), ne(() => String(oe.value || ""), (e) => {
|
|
69450
|
-
if (e !==
|
|
69451
|
-
|
|
69574
|
+
if (e !== dX) {
|
|
69575
|
+
po();
|
|
69452
69576
|
return;
|
|
69453
69577
|
}
|
|
69454
|
-
|
|
69455
|
-
|
|
69578
|
+
Qa.value = !0, to !== null && typeof window < "u" && (window.clearTimeout(to), to = null), typeof window < "u" && (to = window.setTimeout(() => {
|
|
69579
|
+
to = null, Qa.value = !1;
|
|
69456
69580
|
}, 3e3));
|
|
69457
69581
|
}), ne(() => [
|
|
69458
|
-
|
|
69459
|
-
|
|
69460
|
-
|
|
69461
|
-
|
|
69582
|
+
Vi.value,
|
|
69583
|
+
ea.value,
|
|
69584
|
+
Li.value,
|
|
69585
|
+
qi.value.length
|
|
69462
69586
|
], () => {
|
|
69463
|
-
|
|
69587
|
+
Ka.value = !1, Co();
|
|
69464
69588
|
});
|
|
69465
|
-
function
|
|
69466
|
-
|
|
69589
|
+
function Do() {
|
|
69590
|
+
mo();
|
|
69467
69591
|
}
|
|
69468
|
-
function
|
|
69592
|
+
function Oo(e) {
|
|
69469
69593
|
return Array.isArray(e) ? e.map((e) => Number(e)) : e && typeof e == "object" ? [
|
|
69470
69594
|
e.x,
|
|
69471
69595
|
e.y,
|
|
69472
69596
|
e.z
|
|
69473
69597
|
].map((e) => Number(e)) : typeof e == "string" ? e.split(",").map((e) => Number(String(e).trim())) : [];
|
|
69474
69598
|
}
|
|
69475
|
-
function Oo(e) {
|
|
69476
|
-
return typeof e?.type == "string" && e.type.trim() ? e.type.trim() : "监测点";
|
|
69477
|
-
}
|
|
69478
69599
|
function ko(e) {
|
|
69479
|
-
return
|
|
69600
|
+
return typeof e?.type == "string" && e.type.trim() ? e.type.trim() : "监测点";
|
|
69480
69601
|
}
|
|
69481
69602
|
function Ao(e) {
|
|
69482
|
-
|
|
69603
|
+
return [["设备编号", Fo(e?.sb_code)]];
|
|
69604
|
+
}
|
|
69605
|
+
function jo(e) {
|
|
69606
|
+
if (Le(e?.position)) return {
|
|
69483
69607
|
x: Number(e.position.x),
|
|
69484
69608
|
y: Number(e.position.y),
|
|
69485
69609
|
z: Number(e.position.z)
|
|
69486
69610
|
};
|
|
69487
69611
|
let t = e?.x ?? e?.X, n = e?.y ?? e?.Y, r = e?.z ?? e?.Z ?? e?.altitude;
|
|
69488
|
-
if (!
|
|
69612
|
+
if (!Po(t) && !Po(n) && Number.isFinite(Number(t)) && Number.isFinite(Number(n))) return {
|
|
69489
69613
|
x: Number(t),
|
|
69490
69614
|
y: Number(n),
|
|
69491
69615
|
z: Number.isFinite(Number(r)) ? Number(r) : 0
|
|
69492
69616
|
};
|
|
69493
|
-
let [i, a, o] =
|
|
69617
|
+
let [i, a, o] = Oo(e?.coordinates);
|
|
69494
69618
|
return !Number.isFinite(i) || !Number.isFinite(a) ? null : {
|
|
69495
69619
|
x: i,
|
|
69496
69620
|
y: a,
|
|
69497
69621
|
z: Number.isFinite(o) ? o : 0
|
|
69498
69622
|
};
|
|
69499
69623
|
}
|
|
69500
|
-
function jo(e) {
|
|
69501
|
-
return Re(Ao(e));
|
|
69502
|
-
}
|
|
69503
69624
|
function Mo(e) {
|
|
69504
|
-
return
|
|
69625
|
+
return Le(jo(e));
|
|
69505
69626
|
}
|
|
69506
69627
|
function No(e) {
|
|
69507
|
-
return e == null
|
|
69628
|
+
return e == null ? "" : typeof e == "object" ? JSON.stringify(e) : String(e);
|
|
69508
69629
|
}
|
|
69509
69630
|
function Po(e) {
|
|
69510
|
-
return
|
|
69631
|
+
return e == null || String(e).trim() === "";
|
|
69511
69632
|
}
|
|
69512
69633
|
function Fo(e) {
|
|
69513
|
-
return
|
|
69634
|
+
return Po(e) ? "--" : String(e).trim();
|
|
69514
69635
|
}
|
|
69515
69636
|
function Io(e) {
|
|
69516
|
-
return
|
|
69637
|
+
return ko(e) === KX;
|
|
69517
69638
|
}
|
|
69518
69639
|
function Lo(e) {
|
|
69519
|
-
return
|
|
69640
|
+
return ko(e) === qX;
|
|
69520
69641
|
}
|
|
69521
69642
|
function Ro(e) {
|
|
69522
|
-
return
|
|
69643
|
+
return ko(e) === JX;
|
|
69523
69644
|
}
|
|
69524
|
-
function zo() {
|
|
69525
|
-
|
|
69645
|
+
function zo(e) {
|
|
69646
|
+
return ko(e) === YX;
|
|
69647
|
+
}
|
|
69648
|
+
function Bo() {
|
|
69649
|
+
let e = it.value;
|
|
69526
69650
|
return !e.visible || !e.sceneId || ![
|
|
69527
69651
|
"playing",
|
|
69528
69652
|
"paused",
|
|
69529
69653
|
"completed"
|
|
69530
|
-
].includes(e.playState) ? "" : `${
|
|
69531
|
-
}
|
|
69532
|
-
function Bo(e) {
|
|
69533
|
-
return Oo(e) === XX && String(e?.viewId ?? "") === zo();
|
|
69654
|
+
].includes(e.playState) ? "" : `${YX}-${String(e.sceneId)}`;
|
|
69534
69655
|
}
|
|
69535
69656
|
function Vo(e) {
|
|
69536
|
-
|
|
69657
|
+
return ko(e) === YX && String(e?.viewId ?? "") === Bo();
|
|
69658
|
+
}
|
|
69659
|
+
function Ho(e) {
|
|
69660
|
+
let t = ko(e);
|
|
69537
69661
|
return [
|
|
69662
|
+
KX,
|
|
69538
69663
|
qX,
|
|
69539
69664
|
JX,
|
|
69540
|
-
YX,
|
|
69541
|
-
ZX,
|
|
69542
69665
|
XX,
|
|
69543
|
-
|
|
69544
|
-
$X
|
|
69666
|
+
YX,
|
|
69667
|
+
$X,
|
|
69668
|
+
QX
|
|
69545
69669
|
].includes(t);
|
|
69546
69670
|
}
|
|
69547
|
-
function Ho(e) {
|
|
69548
|
-
let t = Oo(e), n = e?.rawData && typeof e.rawData == "object" ? e.rawData : e;
|
|
69549
|
-
return t === qX ? No(n?.mine_id) || No(n?.sensor_id) ? "缺少 mine_id 或 sensor_id" : "" : t === YX || t === JX ? No(n?.id) ? "缺少 id" : "" : t === ZX ? No(n?.mine_id) || No(n?.sensor_id) ? "缺少 mine_id 或 sensor_id" : "" : t === XX ? No(n?.rydw) || No(n?.mine_id) || No(n?.station_id) ? "缺少 rydw、mine_id 或 station_id" : "" : t === eZ ? No(n?.mine_id) || No(n?.sb_code) ? "缺少 mine_id 或 sb_code" : "" : t === $X ? No(n?.mine_id) || No(n?.v_code) ? "缺少 mine_id 或 v_code" : "" : "当前业务类型不支持布点";
|
|
69550
|
-
}
|
|
69551
69671
|
function Uo(e) {
|
|
69552
|
-
|
|
69672
|
+
let t = ko(e), n = e?.rawData && typeof e.rawData == "object" ? e.rawData : e;
|
|
69673
|
+
return t === KX ? Po(n?.mine_id) || Po(n?.sensor_id) ? "缺少 mine_id 或 sensor_id" : "" : t === JX || t === qX ? Po(n?.id) ? "缺少 id" : "" : t === XX ? Po(n?.mine_id) || Po(n?.sensor_id) ? "缺少 mine_id 或 sensor_id" : "" : t === YX ? Po(n?.rydw) || Po(n?.mine_id) || Po(n?.station_id) ? "缺少 rydw、mine_id 或 station_id" : "" : t === $X ? Po(n?.mine_id) || Po(n?.sb_code) ? "缺少 mine_id 或 sb_code" : "" : t === QX ? Po(n?.mine_id) || Po(n?.v_code) ? "缺少 mine_id 或 v_code" : "" : "当前业务类型不支持布点";
|
|
69553
69674
|
}
|
|
69554
69675
|
function Wo(e) {
|
|
69555
|
-
return
|
|
69676
|
+
return Ho(e) && !Uo(e);
|
|
69556
69677
|
}
|
|
69557
69678
|
function Go(e) {
|
|
69558
|
-
return
|
|
69679
|
+
return Io(e) || Lo(e) || Ro(e) || Ko(e) || Yo(e) || Jo(e);
|
|
69559
69680
|
}
|
|
69560
69681
|
function Ko(e) {
|
|
69561
|
-
return
|
|
69682
|
+
return ko(e) === XX;
|
|
69562
69683
|
}
|
|
69563
69684
|
function qo(e) {
|
|
69564
|
-
return
|
|
69685
|
+
return ko(e) === ZX;
|
|
69565
69686
|
}
|
|
69566
69687
|
function Jo(e) {
|
|
69567
|
-
return
|
|
69688
|
+
return ko(e) === QX;
|
|
69568
69689
|
}
|
|
69569
69690
|
function Yo(e) {
|
|
69570
|
-
|
|
69571
|
-
return t == null ? "" : String(t).trim();
|
|
69691
|
+
return ko(e) === $X;
|
|
69572
69692
|
}
|
|
69573
69693
|
function Xo(e) {
|
|
69574
|
-
|
|
69694
|
+
let t = e?.id;
|
|
69695
|
+
return t == null ? "" : String(t).trim();
|
|
69575
69696
|
}
|
|
69576
69697
|
function Zo(e) {
|
|
69577
|
-
return Ro(e) ?
|
|
69698
|
+
return Io(e) && !Po(e?.v_value_at_dict_sensor_type) ? String(e.v_value_at_dict_sensor_type).trim() : Lo(e) && !Po(e?.zd1xmc) ? String(e.zd1xmc).trim() : Lo(e) && !Po(e?.zdlxmc) ? String(e.zdlxmc).trim() : Ro(e) && !Po(e?.v_value_at_dict_sensor_type) ? String(e.v_value_at_dict_sensor_type).trim() : Ko(e) && !Po(e?.v_value_at_dict_sensor_type ?? e?.dict_pressure_type ?? e?.sensor_type) ? String(e?.v_value_at_dict_sensor_type ?? e?.dict_pressure_type ?? e?.sensor_type).trim() : qo(e) && !Po(e?.device_type) ? String(e.device_type).trim() : Yo(e) && !Po(e?.v_server_name ?? e?.v_server_type) ? String(e.v_server_name ?? e.v_server_type).trim() : ko(e);
|
|
69578
69699
|
}
|
|
69579
69700
|
function Qo(e) {
|
|
69580
|
-
|
|
69581
|
-
return t === "--" ? t : n ? `${t}${n}` : t;
|
|
69701
|
+
return zo(e) ? "" : Zo(e);
|
|
69582
69702
|
}
|
|
69583
69703
|
function $o(e) {
|
|
69584
|
-
|
|
69704
|
+
let t = Fo(e?.val), n = Po(e?.unit) ? "" : String(e.unit).trim();
|
|
69705
|
+
return t === "--" ? t : n ? `${t}${n}` : t;
|
|
69585
69706
|
}
|
|
69586
69707
|
function es(e) {
|
|
69587
|
-
|
|
69588
|
-
return t === "--" ? t : n ? `${t}${n}` : t;
|
|
69708
|
+
return [["测点值", $o(e)], ["数据更新时间", Fo(e?.data_time)]];
|
|
69589
69709
|
}
|
|
69590
69710
|
function ts(e) {
|
|
69711
|
+
let t = Fo(e?.val ?? e?.jcvl), n = Po(e?.dw) ? "" : String(e.dw).trim();
|
|
69712
|
+
return t === "--" ? t : n ? `${t}${n}` : t;
|
|
69713
|
+
}
|
|
69714
|
+
function ns(e) {
|
|
69591
69715
|
return [
|
|
69592
|
-
["监测值",
|
|
69593
|
-
["数据时间",
|
|
69594
|
-
["状态",
|
|
69716
|
+
["监测值", ts(e)],
|
|
69717
|
+
["数据时间", Fo(e?.data_time ?? e?.sj)],
|
|
69718
|
+
["状态", Fo(e?.state)]
|
|
69595
69719
|
];
|
|
69596
69720
|
}
|
|
69597
|
-
function
|
|
69598
|
-
let t =
|
|
69721
|
+
function rs(e) {
|
|
69722
|
+
let t = Fo(e?.val ?? e?.jcvl ?? e?.value), n = Po(e?.unit ?? e?.dw) ? "" : String(e?.unit ?? e?.dw).trim();
|
|
69599
69723
|
return t === "--" ? t : n ? `${t}${n}` : t;
|
|
69600
69724
|
}
|
|
69601
|
-
function
|
|
69725
|
+
function is(e) {
|
|
69602
69726
|
return [
|
|
69603
|
-
["监测值",
|
|
69604
|
-
["数据时间",
|
|
69605
|
-
["状态",
|
|
69727
|
+
["监测值", rs(e)],
|
|
69728
|
+
["数据时间", Fo(e?.data_time ?? e?.sj ?? e?.time)],
|
|
69729
|
+
["状态", Fo(e?.state ?? e?.status)]
|
|
69606
69730
|
];
|
|
69607
69731
|
}
|
|
69608
|
-
function
|
|
69732
|
+
function as(e) {
|
|
69609
69733
|
return [
|
|
69610
69734
|
["位置", "location"],
|
|
69611
69735
|
["数据时间", "data_time"],
|
|
@@ -69618,128 +69742,128 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
69618
69742
|
["乙烯", "c2h4_val"],
|
|
69619
69743
|
["乙烷", "c2h6_val"],
|
|
69620
69744
|
["丙烷", "c3h8_val"]
|
|
69621
|
-
].map(([t, n]) => [t,
|
|
69622
|
-
}
|
|
69623
|
-
function as(e) {
|
|
69624
|
-
return is(e).slice(1, 2);
|
|
69745
|
+
].map(([t, n]) => [t, Fo(e?.[n])]);
|
|
69625
69746
|
}
|
|
69626
69747
|
function os(e) {
|
|
69627
|
-
return
|
|
69748
|
+
return as(e).slice(1, 2);
|
|
69628
69749
|
}
|
|
69629
69750
|
function ss(e) {
|
|
69751
|
+
return as(e).slice(2);
|
|
69752
|
+
}
|
|
69753
|
+
function cs(e) {
|
|
69630
69754
|
return [
|
|
69631
|
-
["姓名",
|
|
69632
|
-
["部门",
|
|
69633
|
-
["职务",
|
|
69634
|
-
["分站名称",
|
|
69635
|
-
["入井时间",
|
|
69636
|
-
["是否领导",
|
|
69755
|
+
["姓名", Fo(e?.person_name ?? e?.name)],
|
|
69756
|
+
["部门", Fo(e?.dept)],
|
|
69757
|
+
["职务", Fo(e?.duty)],
|
|
69758
|
+
["分站名称", Fo(e?.station_name)],
|
|
69759
|
+
["入井时间", Fo(e?.time_in_well)],
|
|
69760
|
+
["是否领导", Fo(e?.is_leader)]
|
|
69637
69761
|
];
|
|
69638
69762
|
}
|
|
69639
|
-
function
|
|
69640
|
-
let t =
|
|
69763
|
+
function ls(e) {
|
|
69764
|
+
let t = Fo(e?.person_name ?? e?.name), n = Fo(e?.duty);
|
|
69641
69765
|
return t === "--" && n === "--" ? "未命名人员" : t === "--" ? `-- / ${n}` : n === "--" ? `${t} / --` : `${t} / ${n}`;
|
|
69642
69766
|
}
|
|
69643
|
-
function
|
|
69767
|
+
function us(e) {
|
|
69644
69768
|
return [
|
|
69645
|
-
["部门",
|
|
69646
|
-
["分站名称",
|
|
69647
|
-
["入井时间",
|
|
69648
|
-
["是否领导",
|
|
69769
|
+
["部门", Fo(e?.dept)],
|
|
69770
|
+
["分站名称", Fo(e?.station_name)],
|
|
69771
|
+
["入井时间", Fo(e?.time_in_well)],
|
|
69772
|
+
["是否领导", Fo(e?.is_leader)]
|
|
69649
69773
|
];
|
|
69650
69774
|
}
|
|
69651
|
-
function us(e) {
|
|
69652
|
-
let t = Po(e?.monitor_val ?? e?.val ?? e?.jcvl ?? e?.value ?? e?.pressure_value), n = No(e?.unit ?? e?.dw) ? "" : String(e?.unit ?? e?.dw).trim();
|
|
69653
|
-
return t === "--" ? t : n ? `${t}${n}` : t;
|
|
69654
|
-
}
|
|
69655
69775
|
function ds(e) {
|
|
69656
|
-
|
|
69657
|
-
|
|
69658
|
-
["数据时间", Po(e?.data_time ?? e?.sj ?? e?.time)],
|
|
69659
|
-
["状态", Po(e?.state ?? e?.status)]
|
|
69660
|
-
];
|
|
69776
|
+
let t = Fo(e?.monitor_val ?? e?.val ?? e?.jcvl ?? e?.value ?? e?.pressure_value), n = Po(e?.unit ?? e?.dw) ? "" : String(e?.unit ?? e?.dw).trim();
|
|
69777
|
+
return t === "--" ? t : n ? `${t}${n}` : t;
|
|
69661
69778
|
}
|
|
69662
69779
|
function fs(e) {
|
|
69663
69780
|
return [
|
|
69664
|
-
["
|
|
69665
|
-
["
|
|
69666
|
-
["
|
|
69667
|
-
["班次", Po(e?.class_code)],
|
|
69668
|
-
["站点名称", Po(e?.station_name)],
|
|
69669
|
-
["站点编码", Po(e?.station_code)],
|
|
69670
|
-
["区域名称", Po(e?.area_name)],
|
|
69671
|
-
["区域进入时间", Po(e?.area_entertime)],
|
|
69672
|
-
["站点进入时间", Po(e?.station_entertime)],
|
|
69673
|
-
["入井时间", Po(e?.mine_entertime)],
|
|
69674
|
-
["数据时间", Po(e?.data_time)]
|
|
69781
|
+
["监测值", ds(e)],
|
|
69782
|
+
["数据时间", Fo(e?.data_time ?? e?.sj ?? e?.time)],
|
|
69783
|
+
["状态", Fo(e?.state ?? e?.status)]
|
|
69675
69784
|
];
|
|
69676
69785
|
}
|
|
69677
69786
|
function ps(e) {
|
|
69678
69787
|
return [
|
|
69679
|
-
["
|
|
69680
|
-
["
|
|
69681
|
-
["出入井状态",
|
|
69682
|
-
["
|
|
69683
|
-
["
|
|
69684
|
-
["
|
|
69685
|
-
["
|
|
69686
|
-
["
|
|
69687
|
-
["
|
|
69688
|
-
["
|
|
69788
|
+
["定位卡号", Fo(e?.person_card)],
|
|
69789
|
+
["车辆类型", Fo(e?.typem_name)],
|
|
69790
|
+
["出入井状态", Fo(e?.enter_flag_name)],
|
|
69791
|
+
["班次", Fo(e?.class_code)],
|
|
69792
|
+
["站点名称", Fo(e?.station_name)],
|
|
69793
|
+
["站点编码", Fo(e?.station_code)],
|
|
69794
|
+
["区域名称", Fo(e?.area_name)],
|
|
69795
|
+
["区域进入时间", Fo(e?.area_entertime)],
|
|
69796
|
+
["站点进入时间", Fo(e?.station_entertime)],
|
|
69797
|
+
["入井时间", Fo(e?.mine_entertime)],
|
|
69798
|
+
["数据时间", Fo(e?.data_time)]
|
|
69689
69799
|
];
|
|
69690
69800
|
}
|
|
69691
69801
|
function ms(e) {
|
|
69692
69802
|
return [
|
|
69693
|
-
["
|
|
69694
|
-
["
|
|
69695
|
-
["
|
|
69696
|
-
["
|
|
69803
|
+
["车辆类型", Fo(e?.typem_name)],
|
|
69804
|
+
["班次", Fo(e?.class_code)],
|
|
69805
|
+
["出入井状态", Fo(e?.enter_flag_name)],
|
|
69806
|
+
["站点名称", Fo(e?.station_name)],
|
|
69807
|
+
["站点编码", Fo(e?.station_code)],
|
|
69808
|
+
["区域名称", Fo(e?.area_name)],
|
|
69809
|
+
["区域进入时间", Fo(e?.area_entertime)],
|
|
69810
|
+
["站点进入时间", Fo(e?.station_entertime)],
|
|
69811
|
+
["入井时间", Fo(e?.mine_entertime)],
|
|
69812
|
+
["数据时间", Fo(e?.data_time)]
|
|
69697
69813
|
];
|
|
69698
69814
|
}
|
|
69699
69815
|
function hs(e) {
|
|
69700
69816
|
return [
|
|
69701
|
-
["
|
|
69702
|
-
["
|
|
69703
|
-
["
|
|
69704
|
-
["
|
|
69705
|
-
["所属系统", Po(e?.system_name)],
|
|
69706
|
-
["经纬度", Po(e?.lat_lng)],
|
|
69707
|
-
["三维坐标", Po(e?.coordinates)]
|
|
69817
|
+
["视频编码", Fo(e?.v_camera_indexcode ?? e?.indexcode)],
|
|
69818
|
+
["视频名称", Fo(e?.v_camera_name ?? e?.name)],
|
|
69819
|
+
["视频平台", Fo(e?.v_server_name)],
|
|
69820
|
+
["在线状态", Fo(e?.online)]
|
|
69708
69821
|
];
|
|
69709
69822
|
}
|
|
69710
69823
|
function gs(e) {
|
|
69711
|
-
return [
|
|
69824
|
+
return [
|
|
69825
|
+
["广播名称", Fo(e?.v_name ?? e?.name)],
|
|
69826
|
+
["广播编码", Fo(e?.v_code)],
|
|
69827
|
+
["矿井名称", Fo(e?.mine_name)],
|
|
69828
|
+
["所属区域", Fo(e?.v_area_name)],
|
|
69829
|
+
["所属系统", Fo(e?.system_name)],
|
|
69830
|
+
["经纬度", Fo(e?.lat_lng)],
|
|
69831
|
+
["三维坐标", Fo(e?.coordinates)]
|
|
69832
|
+
];
|
|
69712
69833
|
}
|
|
69713
69834
|
function _s(e) {
|
|
69714
|
-
return [["
|
|
69835
|
+
return [["广播编码", Fo(e?.v_code)]];
|
|
69715
69836
|
}
|
|
69716
69837
|
function vs(e) {
|
|
69838
|
+
return [["所属区域", Fo(e?.v_area_name)], ["所属系统", Fo(e?.system_name)]];
|
|
69839
|
+
}
|
|
69840
|
+
function ys(e) {
|
|
69717
69841
|
return e?.data && typeof e.data == "object" && !Array.isArray(e.data) ? e.data : e && typeof e == "object" ? e : {};
|
|
69718
69842
|
}
|
|
69719
|
-
let
|
|
69843
|
+
let bs = r(() => ee.value?.dataSource?.type === "cloud" && ee.value?.dataSource?.autoLoad === !0), xs = r(() => {
|
|
69720
69844
|
let e = {};
|
|
69721
69845
|
return (Array.isArray(N.toolbarTools) ? N.toolbarTools : []).forEach((t) => {
|
|
69722
69846
|
let n = typeof t == "string" ? t.trim() : "";
|
|
69723
69847
|
n && (e[n] = !0);
|
|
69724
69848
|
}), e;
|
|
69725
69849
|
});
|
|
69726
|
-
function
|
|
69727
|
-
return !!
|
|
69850
|
+
function Ss(e) {
|
|
69851
|
+
return !!xs.value[e];
|
|
69728
69852
|
}
|
|
69729
|
-
let
|
|
69853
|
+
let Cs = r(() => Ss(j.DEBUG)), ws = r(() => Ss(j.MONITOR)), Ts = r(() => Ss(j.RANGE)), Es = r(() => Ss(j.WATER)), Ds = r(() => Ss(j.EXIT_PATH)), Os = r(() => Ss(j.VIEW)), ks = r(() => Ss(j.REGION));
|
|
69730
69854
|
ne(() => ({
|
|
69731
|
-
debug:
|
|
69732
|
-
monitor:
|
|
69733
|
-
range:
|
|
69734
|
-
water:
|
|
69735
|
-
exitPath:
|
|
69736
|
-
view:
|
|
69737
|
-
region:
|
|
69855
|
+
debug: Cs.value,
|
|
69856
|
+
monitor: ws.value,
|
|
69857
|
+
range: Ts.value,
|
|
69858
|
+
water: Es.value,
|
|
69859
|
+
exitPath: Ds.value,
|
|
69860
|
+
view: Os.value,
|
|
69861
|
+
region: ks.value
|
|
69738
69862
|
}), (e) => {
|
|
69739
|
-
e.debug || (pe.value = !1), e.monitor || (
|
|
69863
|
+
e.debug || (pe.value = !1), e.monitor || (Vi.value = !1), e.range || nn.value === "picking" && An(), e.water || (Cr.value = !1), e.exitPath || (pi.value = !1), e.view || (me.value = !1), e.region || (ae.value = !1);
|
|
69740
69864
|
}, { immediate: !0 });
|
|
69741
|
-
function
|
|
69742
|
-
let { text: t, position: n, height: r =
|
|
69865
|
+
function As(e) {
|
|
69866
|
+
let { text: t, position: n, height: r = OX, scale: i = kX } = e ?? {};
|
|
69743
69867
|
if (!n || !Number.isFinite(n.x) || !Number.isFinite(n.y) || !Number.isFinite(n.z)) return null;
|
|
69744
69868
|
let a = window.lr3dapp?.editor?.manager?.modules?.marker;
|
|
69745
69869
|
if (!a || typeof a.addTextSprite != "function") return null;
|
|
@@ -69756,40 +69880,40 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
69756
69880
|
});
|
|
69757
69881
|
return o?.scale?.multiplyScalar(i), o;
|
|
69758
69882
|
}
|
|
69759
|
-
function
|
|
69883
|
+
function js() {
|
|
69760
69884
|
let e = window.lr3dapp?.editor?.manager?.modules?.marker;
|
|
69761
69885
|
return !e || typeof e.removeAllTextSprite != "function" ? !1 : (e.removeAllTextSprite(), !0);
|
|
69762
69886
|
}
|
|
69763
|
-
function
|
|
69887
|
+
function Ms() {
|
|
69764
69888
|
try {
|
|
69765
|
-
|
|
69889
|
+
Bs(U.value), Ce(`背景颜色已更新:${U.value}`);
|
|
69766
69890
|
} catch (e) {
|
|
69767
|
-
|
|
69891
|
+
Ce(`背景颜色更新失败:${Ns(e)}`);
|
|
69768
69892
|
}
|
|
69769
69893
|
}
|
|
69770
|
-
function Ms(e) {
|
|
69771
|
-
return e instanceof Error ? e.message : "未知错误";
|
|
69772
|
-
}
|
|
69773
69894
|
function Ns(e) {
|
|
69774
|
-
return e
|
|
69895
|
+
return e instanceof Error ? e.message : "未知错误";
|
|
69775
69896
|
}
|
|
69776
69897
|
function Ps(e) {
|
|
69777
69898
|
return e ? `X ${Number(e.x).toFixed(2)} / Y ${Number(e.y).toFixed(2)} / Z ${Number(e.z).toFixed(2)}` : "--";
|
|
69778
69899
|
}
|
|
69779
69900
|
function Fs(e) {
|
|
69780
|
-
return
|
|
69901
|
+
return e ? `X ${Number(e.x).toFixed(2)} / Y ${Number(e.y).toFixed(2)} / Z ${Number(e.z).toFixed(2)}` : "--";
|
|
69781
69902
|
}
|
|
69782
|
-
function Is(e
|
|
69903
|
+
function Is(e) {
|
|
69904
|
+
return Io(e) ? es(e) : Lo(e) ? ns(e) : Ro(e) ? is(e) : zo(e) ? cs(e) : Ko(e) ? fs(e) : qo(e) ? ps(e) : Yo(e) ? hs(e) : Jo(e) ? gs(e) : Object.entries(ys(e)).map(([e, t]) => [e, No(t)]);
|
|
69905
|
+
}
|
|
69906
|
+
function Ls(e, t = {}) {
|
|
69783
69907
|
let { positionMode: n = "absolute" } = t, r = n === "relative" ? {
|
|
69784
69908
|
x: Number(e?.x),
|
|
69785
69909
|
y: Number(e?.y),
|
|
69786
69910
|
z: Number(e?.z)
|
|
69787
|
-
} :
|
|
69911
|
+
} : ze(e), i = Pe();
|
|
69788
69912
|
if (!r || !i || !I.value) return null;
|
|
69789
69913
|
let a = I.value.getBoundingClientRect();
|
|
69790
69914
|
if (a.width <= 0 || a.height <= 0) return null;
|
|
69791
69915
|
try {
|
|
69792
|
-
let e =
|
|
69916
|
+
let e = Ie(), t = new e.Vector3(Number(r.x), Number(r.y), Number(r.z)), n = new e.Vector3(Number(i.position?.x ?? 0), Number(i.position?.y ?? 0), Number(i.position?.z ?? 0));
|
|
69793
69917
|
if (i.updateProjectionMatrix?.(), i.updateMatrixWorld?.(!0), t.project(i), !Number.isFinite(t.x) || !Number.isFinite(t.y) || !Number.isFinite(t.z) || t.z < -1 || t.z > 1) return null;
|
|
69794
69918
|
let o = (t.x * .5 + .5) * a.width, s = (-t.y * .5 + .5) * a.height;
|
|
69795
69919
|
if (o < -48 || o > a.width + 48 || s < -48 || s > a.height + 48) return null;
|
|
@@ -69803,24 +69927,24 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
69803
69927
|
return null;
|
|
69804
69928
|
}
|
|
69805
69929
|
}
|
|
69806
|
-
function
|
|
69807
|
-
let { enableScale: n = !0 } = t, r =
|
|
69930
|
+
function Rs(e, t = {}) {
|
|
69931
|
+
let { enableScale: n = !0 } = t, r = Ls(e, t);
|
|
69808
69932
|
if (!r) return null;
|
|
69809
69933
|
let i = `translate(${r.x}px, ${r.y}px) translate(-50%, -100%)`;
|
|
69810
69934
|
return { transform: n ? `${i} scale(${r.scale.toFixed(3)})` : i };
|
|
69811
69935
|
}
|
|
69812
|
-
function
|
|
69936
|
+
function zs(e) {
|
|
69813
69937
|
return e == null ? "" : String(e).trim().toLowerCase();
|
|
69814
69938
|
}
|
|
69815
|
-
function
|
|
69939
|
+
function Bs(e = U.value) {
|
|
69816
69940
|
let t = ij(), n = typeof e == "string" && e.trim() ? e.trim() : "#041D4B";
|
|
69817
69941
|
t?.signals?.sceneBackgroundChanged?.dispatch?.("Gradientcolor", null, null, null, null, n, n);
|
|
69818
69942
|
}
|
|
69819
|
-
function
|
|
69943
|
+
function Vs() {
|
|
69820
69944
|
let e = ij(), t = rj();
|
|
69821
69945
|
return [e?.scene, t?.scene].find((e) => e && typeof e.add == "function") ?? null;
|
|
69822
69946
|
}
|
|
69823
|
-
function
|
|
69947
|
+
function Hs(e) {
|
|
69824
69948
|
e && e.traverse?.((e) => {
|
|
69825
69949
|
if (e.geometry?.dispose?.(), Array.isArray(e.material)) {
|
|
69826
69950
|
e.material.forEach((e) => e?.dispose?.());
|
|
@@ -69829,37 +69953,37 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
69829
69953
|
e.material?.dispose?.();
|
|
69830
69954
|
});
|
|
69831
69955
|
}
|
|
69832
|
-
function
|
|
69956
|
+
function Us(e) {
|
|
69833
69957
|
let t = e;
|
|
69834
69958
|
for (; t;) {
|
|
69835
|
-
if (t.name ===
|
|
69959
|
+
if (t.name === XY || t.name === ZY || t.name === QY || t.name === $Y || t.name === GX || t.name === "TransformControlHelper") return !0;
|
|
69836
69960
|
t = t.parent ?? null;
|
|
69837
69961
|
}
|
|
69838
69962
|
return !1;
|
|
69839
69963
|
}
|
|
69840
|
-
function
|
|
69964
|
+
function Ws(e) {
|
|
69841
69965
|
let t = e?.info;
|
|
69842
69966
|
return !t || typeof t != "object" || Array.isArray(t) ? !1 : Object.prototype.hasOwnProperty.call(t, "水平") && Object.prototype.hasOwnProperty.call(t, "采区");
|
|
69843
69967
|
}
|
|
69844
|
-
function
|
|
69968
|
+
function Gs(e) {
|
|
69845
69969
|
if (!I.value) return null;
|
|
69846
|
-
let t =
|
|
69970
|
+
let t = Vs(), n = Pe();
|
|
69847
69971
|
if (!t || !n) return null;
|
|
69848
69972
|
let r = I.value.getBoundingClientRect();
|
|
69849
69973
|
if (r.width <= 0 || r.height <= 0) return null;
|
|
69850
|
-
let i =
|
|
69974
|
+
let i = Ie(), a = new i.Vector2((e.clientX - r.left) / r.width * 2 - 1, -((e.clientY - r.top) / r.height) * 2 + 1), o = new i.Raycaster();
|
|
69851
69975
|
return n.updateProjectionMatrix?.(), n.updateMatrixWorld?.(!0), t.updateMatrixWorld?.(!0), o.setFromCamera(a, n), o.intersectObjects(t.children, !0).find((e) => {
|
|
69852
69976
|
let t = e?.object;
|
|
69853
|
-
return !t?.visible ||
|
|
69977
|
+
return !t?.visible || Us(t) || !Ws(t) ? !1 : Le(e?.point);
|
|
69854
69978
|
}) ?? null;
|
|
69855
69979
|
}
|
|
69856
|
-
function
|
|
69857
|
-
if (!
|
|
69858
|
-
let t =
|
|
69980
|
+
function Ks(e) {
|
|
69981
|
+
if (!Le(e)) return null;
|
|
69982
|
+
let t = Vs();
|
|
69859
69983
|
if (!t) return null;
|
|
69860
|
-
let n =
|
|
69984
|
+
let n = Ie(), 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;
|
|
69861
69985
|
return t.updateMatrixWorld?.(!0), t.traverse?.((e) => {
|
|
69862
|
-
if (!e?.visible ||
|
|
69986
|
+
if (!e?.visible || Us(e) || !Ws(e) || !e.geometry || (e.geometry.computeBoundingBox?.(), !e.geometry.boundingBox)) return;
|
|
69863
69987
|
i.copy(e.geometry.boundingBox), i.applyMatrix4(e.matrixWorld), i.getSize(a);
|
|
69864
69988
|
let t = Math.max(a.x, 0) * Math.max(a.y, 0) * Math.max(a.z, 0);
|
|
69865
69989
|
if (i.containsPoint(r)) {
|
|
@@ -69871,11 +69995,11 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
69871
69995
|
n < u && (u = n, l = e);
|
|
69872
69996
|
}), s ?? l;
|
|
69873
69997
|
}
|
|
69874
|
-
function
|
|
69998
|
+
function qs(...e) {
|
|
69875
69999
|
for (let t of e) if (t != null && String(t).trim()) return t;
|
|
69876
70000
|
return "";
|
|
69877
70001
|
}
|
|
69878
|
-
function
|
|
70002
|
+
function Js(e) {
|
|
69879
70003
|
let t = {
|
|
69880
70004
|
ids: [],
|
|
69881
70005
|
names: [],
|
|
@@ -69888,24 +70012,24 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
69888
70012
|
}
|
|
69889
70013
|
return t;
|
|
69890
70014
|
}
|
|
69891
|
-
function
|
|
70015
|
+
function Ys(e, t = "selection") {
|
|
69892
70016
|
let n = e?.object ?? e ?? null;
|
|
69893
70017
|
if (!n || typeof n != "object") return null;
|
|
69894
|
-
let r =
|
|
70018
|
+
let r = Js(n), i = n?.position, a = i && Number.isFinite(Number(i.x)) ? {
|
|
69895
70019
|
x: Number(i.x),
|
|
69896
70020
|
y: Number(i.y),
|
|
69897
70021
|
z: Number(i.z)
|
|
69898
70022
|
} : null;
|
|
69899
70023
|
return {
|
|
69900
|
-
id:
|
|
69901
|
-
name:
|
|
69902
|
-
layerName:
|
|
70024
|
+
id: qs(...r.ids) || null,
|
|
70025
|
+
name: qs(...r.names) || null,
|
|
70026
|
+
layerName: qs(...r.layerNames) || null,
|
|
69903
70027
|
position: a
|
|
69904
70028
|
};
|
|
69905
70029
|
}
|
|
69906
|
-
function
|
|
70030
|
+
function Xs(e, t = "icon") {
|
|
69907
70031
|
if (!e || typeof e != "object") return null;
|
|
69908
|
-
let n =
|
|
70032
|
+
let n = Le(e.position) ? {
|
|
69909
70033
|
x: Number(e.position.x),
|
|
69910
70034
|
y: Number(e.position.y),
|
|
69911
70035
|
z: Number(e.position.z)
|
|
@@ -69921,28 +70045,28 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
69921
70045
|
rawData: i
|
|
69922
70046
|
};
|
|
69923
70047
|
}
|
|
69924
|
-
function
|
|
69925
|
-
if (!
|
|
69926
|
-
let n =
|
|
70048
|
+
function Zs(e, t = "icon") {
|
|
70049
|
+
if (!Yo(e)) return null;
|
|
70050
|
+
let n = Xs(e, t);
|
|
69927
70051
|
return n ? {
|
|
69928
70052
|
...n,
|
|
69929
|
-
videoId:
|
|
70053
|
+
videoId: Xo(e)
|
|
69930
70054
|
} : null;
|
|
69931
70055
|
}
|
|
69932
|
-
function
|
|
69933
|
-
let n = W.value, r =
|
|
70056
|
+
function Qs(e, t = "icon") {
|
|
70057
|
+
let n = W.value, r = Xs(e, t);
|
|
69934
70058
|
return typeof n != "function" || !r ? !1 : (n(r), !0);
|
|
69935
70059
|
}
|
|
69936
|
-
function
|
|
69937
|
-
let n = G.value, r =
|
|
70060
|
+
function $s(e, t = "icon") {
|
|
70061
|
+
let n = G.value, r = Zs(e, t);
|
|
69938
70062
|
if (typeof n != "function" || !r) return !1;
|
|
69939
70063
|
try {
|
|
69940
70064
|
return n(r), !0;
|
|
69941
70065
|
} catch (e) {
|
|
69942
|
-
return
|
|
70066
|
+
return we(`视频测点点击回调执行失败:${Ns(e)}`), !1;
|
|
69943
70067
|
}
|
|
69944
70068
|
}
|
|
69945
|
-
function
|
|
70069
|
+
function ec(e) {
|
|
69946
70070
|
let t = se.value;
|
|
69947
70071
|
if (typeof t != "function" || !e) return !1;
|
|
69948
70072
|
let n = [
|
|
@@ -69956,7 +70080,7 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
69956
70080
|
timestamp: r
|
|
69957
70081
|
}, t(e), !0);
|
|
69958
70082
|
}
|
|
69959
|
-
function
|
|
70083
|
+
function tc() {
|
|
69960
70084
|
le.value?.();
|
|
69961
70085
|
let e = [];
|
|
69962
70086
|
if (I.value) {
|
|
@@ -69964,8 +70088,8 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
69964
70088
|
ue.value !== null && window.clearTimeout(ue.value), ue.value = window.setTimeout(() => {
|
|
69965
70089
|
ue.value = null;
|
|
69966
70090
|
try {
|
|
69967
|
-
let e =
|
|
69968
|
-
|
|
70091
|
+
let e = Ys(ij()?.selected, "click-fallback");
|
|
70092
|
+
ec(e) && Ce(`模型信息查询触发:${e?.name || e?.id || "未命名对象"}`);
|
|
69969
70093
|
} catch {}
|
|
69970
70094
|
}, 0);
|
|
69971
70095
|
};
|
|
@@ -69975,214 +70099,206 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
69975
70099
|
e.forEach((e) => e()), ue.value !== null && (window.clearTimeout(ue.value), ue.value = null);
|
|
69976
70100
|
};
|
|
69977
70101
|
}
|
|
69978
|
-
function
|
|
70102
|
+
function nc(e) {
|
|
69979
70103
|
if (e != null && typeof e != "function") throw Error("模型信息查询回调必须是函数");
|
|
69980
70104
|
return se.value = typeof e == "function" ? e : null, se.value !== null;
|
|
69981
70105
|
}
|
|
69982
|
-
function
|
|
70106
|
+
function rc(e) {
|
|
69983
70107
|
if (e != null && typeof e != "function") throw Error("监测点点击回调必须是函数");
|
|
69984
70108
|
return W.value = typeof e == "function" ? e : null, W.value !== null;
|
|
69985
70109
|
}
|
|
69986
|
-
function
|
|
70110
|
+
function ic(e) {
|
|
69987
70111
|
if (e != null && typeof e != "function") throw Error("视频测点点击回调必须是函数");
|
|
69988
70112
|
return G.value = typeof e == "function" ? e : null, G.value !== null;
|
|
69989
70113
|
}
|
|
69990
|
-
function
|
|
70114
|
+
function ac(e) {
|
|
69991
70115
|
if (e != null && typeof e != "function") throw Error("水漫延参数变更回调必须是函数");
|
|
69992
70116
|
return ce.value = typeof e == "function" ? e : null, ce.value !== null;
|
|
69993
70117
|
}
|
|
69994
|
-
function ac() {
|
|
69995
|
-
return !Ds.value || je.value.length === 0 ? !1 : (me.value = !me.value, oe.value = me.value ? "视角面板已显示" : "视角面板已隐藏", we(oe.value), !0);
|
|
69996
|
-
}
|
|
69997
70118
|
function oc() {
|
|
69998
|
-
|
|
69999
|
-
|
|
70119
|
+
return !Os.value || Ae.value.length === 0 ? !1 : (me.value = !me.value, oe.value = me.value ? "视角面板已显示" : "视角面板已隐藏", Ce(oe.value), !0);
|
|
70120
|
+
}
|
|
70121
|
+
function sc() {
|
|
70122
|
+
let e = mn.value;
|
|
70123
|
+
if (!Le(e)) return oe.value = "请先完成事故选点", Ce("事故点视角切换失败:当前没有事故点"), !1;
|
|
70000
70124
|
try {
|
|
70001
|
-
let t = ij(), n =
|
|
70125
|
+
let t = ij(), n = Pe(), r = Fe(), i = Ie();
|
|
70002
70126
|
if (!t?.camera?.position || !n?.position || !r?.center && !r?.target) throw Error("当前 SDK 未提供完整相机或控制器");
|
|
70003
70127
|
let a = new i.Vector3(Number(e.x), Number(e.y), Number(e.z)), o = n.position.clone?.() ?? new i.Vector3(Number(n.position.x ?? 0), Number(n.position.y ?? 0), Number(n.position.z ?? 0)), s = r?.center ?? r?.target, c = s?.clone?.() ?? new i.Vector3(Number(s?.x ?? a.x), Number(s?.y ?? a.y), Number(s?.z ?? a.z)), l = o.clone().sub(c);
|
|
70004
|
-
return l.length() <= HY && l.set(1, -1, .45), l.z = Math.max(l.z, d), l.normalize().multiplyScalar(u), l.z = Math.max(l.z, d),
|
|
70005
|
-
|
|
70128
|
+
return l.length() <= HY && l.set(1, -1, .45), l.z = Math.max(l.z, d), l.normalize().multiplyScalar(u), l.z = Math.max(l.z, d), Ne(t, r, a.clone().add(l), a.clone(), i, () => {
|
|
70129
|
+
Oe.value = "", oe.value = "已切换视角:事故点", Ce(`已切换到事故点视角:${Fs(a)}`), Qn();
|
|
70006
70130
|
}), !0;
|
|
70007
70131
|
} catch (e) {
|
|
70008
|
-
return oe.value = `事故点视角切换失败:${
|
|
70132
|
+
return oe.value = `事故点视角切换失败:${Ns(e)}`, Ce(`事故点视角切换失败:${Ns(e)}`), !1;
|
|
70009
70133
|
}
|
|
70010
70134
|
}
|
|
70011
|
-
function sc() {
|
|
70012
|
-
return wn.value || Jn(f, { coordinateSpace: "absolute" }) ? oc() : !1;
|
|
70013
|
-
}
|
|
70014
70135
|
function cc() {
|
|
70015
|
-
return
|
|
70016
|
-
be = null, lc();
|
|
70017
|
-
}, XY), !0);
|
|
70136
|
+
return Cn.value || qn(f, { coordinateSpace: "absolute" }) ? sc() : !1;
|
|
70018
70137
|
}
|
|
70019
|
-
async function lc() {
|
|
70020
|
-
return ye ? !1 : (await x(), sc() ? await Promise.resolve(Di()) ? (ye = !0, Te("场景默认初始化已完成:事故点与避灾线路已自动显示"), !0) : (Te("场景默认避灾线路初始化失败:事故点已生成,但避灾线路未显示"), !1) : (Te("场景默认事故点初始化失败:未能生成或聚焦事故点"), !1));
|
|
70021
|
-
}
|
|
70022
|
-
async function uc(e) {
|
|
70138
|
+
async function lc(e) {
|
|
70023
70139
|
let t = XW[e] ?? e, n = fe.value[e];
|
|
70024
70140
|
if (!n) throw Error(`未找到手动加载类型: ${e}`);
|
|
70025
70141
|
if (n.loading) {
|
|
70026
|
-
|
|
70142
|
+
Ce(`${t}正在加载,已忽略重复请求`);
|
|
70027
70143
|
return;
|
|
70028
70144
|
}
|
|
70029
70145
|
if (n.loaded) {
|
|
70030
|
-
|
|
70146
|
+
Ce(`${t}已加载,跳过重复请求`);
|
|
70031
70147
|
return;
|
|
70032
70148
|
}
|
|
70033
|
-
n.loading = !0,
|
|
70149
|
+
n.loading = !0, Ce(`开始手动加载:${t}`);
|
|
70034
70150
|
try {
|
|
70035
70151
|
let t = await sG(e);
|
|
70036
|
-
n.loaded = t.loaded,
|
|
70152
|
+
n.loaded = t.loaded, Ce(t.summary);
|
|
70037
70153
|
} finally {
|
|
70038
70154
|
n.loading = !1;
|
|
70039
70155
|
}
|
|
70040
70156
|
}
|
|
70041
|
-
async function
|
|
70042
|
-
if (re.value) return
|
|
70043
|
-
if (ie.value && !t) return
|
|
70157
|
+
async function uc({ trigger: e = "manual", forceReload: t = !1 } = {}) {
|
|
70158
|
+
if (re.value) return Ce("数据源正在加载,已忽略重复请求"), null;
|
|
70159
|
+
if (ie.value && !t) return Ce("区域要素与巷道已加载,跳过重复请求"), null;
|
|
70044
70160
|
let n = e === "auto" ? "自动" : "手动";
|
|
70045
|
-
re.value = !0,
|
|
70161
|
+
re.value = !0, Ce(`${n}加载开始:区域要素与巷道`);
|
|
70046
70162
|
try {
|
|
70047
70163
|
let e = await oG();
|
|
70048
|
-
return ie.value = !0,
|
|
70164
|
+
return ie.value = !0, lr(e.regionItems), ur(e.laneItems), $t(), en(), ir.value = e.regionItems.length > 0, ar.value = e.laneItems.length > 0, (e.regionItems.length > 0 || e.laneItems.length > 0) && qe(), fr(e.laneItems), hr(), vr(e.laneItems), Ce(`${n}加载完成:${e.summary}`), e.result;
|
|
70049
70165
|
} finally {
|
|
70050
70166
|
re.value = !1;
|
|
70051
70167
|
}
|
|
70052
70168
|
}
|
|
70053
|
-
async function
|
|
70169
|
+
async function dc(e) {
|
|
70054
70170
|
try {
|
|
70055
70171
|
if (e === "resize") {
|
|
70056
|
-
|
|
70172
|
+
Ee(), Ce("已触发场景 resize");
|
|
70057
70173
|
return;
|
|
70058
70174
|
}
|
|
70059
70175
|
if (e === "editor") {
|
|
70060
|
-
|
|
70176
|
+
Ce(`editor 可用,当前 selected id: ${ij()?.selected?.id ?? "none"}`);
|
|
70061
70177
|
return;
|
|
70062
70178
|
}
|
|
70063
70179
|
if (e === "interfaces") {
|
|
70064
70180
|
let e = aj();
|
|
70065
|
-
|
|
70181
|
+
Ce(`interfaces 可用,activingTool 字段存在: ${Object.prototype.hasOwnProperty.call(e, "activingTool")}`);
|
|
70066
70182
|
return;
|
|
70067
70183
|
}
|
|
70068
70184
|
if (e === "sdkViewState") {
|
|
70069
70185
|
let e = ij(), t = e?.camera?.position?.clone?.(), n = e?.controls?.center?.clone?.();
|
|
70070
70186
|
if (!t || !n) throw Error("当前 SDK 未提供可读取的 camera.position 或 controls.center");
|
|
70071
|
-
|
|
70187
|
+
Ce(`SDK 视口参数读取成功:camera ${Fs(t)},center ${Fs(n)}`);
|
|
70072
70188
|
return;
|
|
70073
70189
|
}
|
|
70074
70190
|
if (e === "refresh") {
|
|
70075
|
-
cj(),
|
|
70191
|
+
cj(), Ce("已触发 sceneGraphChanged 刷新");
|
|
70076
70192
|
return;
|
|
70077
70193
|
}
|
|
70078
70194
|
if (e === "tool") {
|
|
70079
70195
|
let e = H.value.trim();
|
|
70080
70196
|
if (!e) throw Error("请先输入工具名称");
|
|
70081
|
-
await lj(e),
|
|
70197
|
+
await lj(e), Ce(`activeTool 调用完成: ${e}`);
|
|
70082
70198
|
return;
|
|
70083
70199
|
}
|
|
70084
70200
|
if (e === "datasource") {
|
|
70085
|
-
await
|
|
70201
|
+
await uc({ trigger: "manual" });
|
|
70086
70202
|
return;
|
|
70087
70203
|
}
|
|
70088
70204
|
if (e === "regionAssist") {
|
|
70089
|
-
await
|
|
70205
|
+
await lc("regionAssist");
|
|
70090
70206
|
return;
|
|
70091
70207
|
}
|
|
70092
70208
|
if (e === "coalResvers") {
|
|
70093
|
-
await
|
|
70209
|
+
await lc("coalResvers");
|
|
70094
70210
|
return;
|
|
70095
70211
|
}
|
|
70096
70212
|
if (e === "boundary") {
|
|
70097
|
-
await
|
|
70213
|
+
await lc("boundary");
|
|
70098
70214
|
return;
|
|
70099
70215
|
}
|
|
70100
70216
|
if (e === "geology") {
|
|
70101
|
-
await
|
|
70217
|
+
await lc("geology");
|
|
70102
70218
|
return;
|
|
70103
70219
|
}
|
|
70104
70220
|
if (e === "pointSymbol") {
|
|
70105
|
-
await
|
|
70221
|
+
await lc("pointSymbol");
|
|
70106
70222
|
return;
|
|
70107
70223
|
}
|
|
70108
70224
|
if (e === "coal") {
|
|
70109
|
-
await
|
|
70225
|
+
await lc("coal");
|
|
70110
70226
|
return;
|
|
70111
70227
|
}
|
|
70112
70228
|
if (e === "geofault") {
|
|
70113
|
-
await
|
|
70229
|
+
await lc("geofault");
|
|
70114
70230
|
return;
|
|
70115
70231
|
}
|
|
70116
70232
|
} catch (e) {
|
|
70117
|
-
|
|
70233
|
+
Ce(`调试失败: ${Ns(e)}`);
|
|
70118
70234
|
}
|
|
70119
70235
|
}
|
|
70120
70236
|
return T(() => {
|
|
70121
|
-
typeof window < "u" && (window.addEventListener("resize",
|
|
70237
|
+
typeof window < "u" && (window.addEventListener("resize", Do), window.addEventListener("pointerdown", So, !0)), I.value?.addEventListener("pointerdown", vo, !0), I.value?.addEventListener("pointermove", yo, !0), I.value?.addEventListener("pointercancel", bo, !0), I.value?.addEventListener("contextmenu", xo, !0), Te();
|
|
70122
70238
|
}), D(() => {
|
|
70123
|
-
|
|
70239
|
+
eo?.disconnect?.(), eo = null, typeof window < "u" && (window.removeEventListener("resize", Do), window.removeEventListener("pointerdown", So, !0), ye !== null && (window.clearTimeout(ye), ye = null)), Gr(typeof window < "u" ? window.lr3dapp?.editor?.manager?.modules?.waterSimulation : null), Ii.value = "", Ai.value = [], ji.value = "idle", Mi.value = "", Ni.value = {}, Pa(), Y(), ki(), gr(), _r(), le.value?.(), po(), Vr({ restoreRangeSelection: !1 }), Ur(), Wr(), Aa({ preserveStatus: !0 }), Xn({ preserveStatus: !0 }), Zn({ preserveStatus: !0 }), tn({ clearItems: !0 }), lr([]), ur([]), dr(), mr(), I.value?.removeEventListener("pointerdown", vo, !0), I.value?.removeEventListener("pointermove", yo, !0), I.value?.removeEventListener("pointercancel", bo, !0), I.value?.removeEventListener("contextmenu", xo, !0), De();
|
|
70124
70240
|
}), n({
|
|
70125
|
-
initMonitorPoints:
|
|
70126
|
-
queryMonitorPointList:
|
|
70127
|
-
reloadMonitorPoints:
|
|
70128
|
-
getViewPointList:
|
|
70129
|
-
switchToViewPoint:
|
|
70130
|
-
getCurrentViewInfo:
|
|
70131
|
-
applyViewInfo:
|
|
70132
|
-
initializeDemoPerson:
|
|
70133
|
-
startDemoPersonMotion:
|
|
70134
|
-
stopDemoPersonMotion:
|
|
70135
|
-
toggleDemoPersonMotion:
|
|
70136
|
-
focusDemoPerson:
|
|
70137
|
-
showWaterSimulationPanel:
|
|
70138
|
-
hideWaterSimulationPanel:
|
|
70139
|
-
toggleWaterSimulationPanel:
|
|
70140
|
-
startWaterSimulationSelect:
|
|
70141
|
-
endWaterSimulationSelect:
|
|
70142
|
-
startWaterSimulation:
|
|
70143
|
-
clearWaterSimulation:
|
|
70144
|
-
showExitPathPanel:
|
|
70145
|
-
hideExitPathPanel:
|
|
70146
|
-
toggleExitPathPanel:
|
|
70147
|
-
startExitPathRoutePick:
|
|
70148
|
-
startExitPathObstaclePick:
|
|
70149
|
-
computeExitPath:
|
|
70150
|
-
computeExitPathByCoordinates:
|
|
70151
|
-
pauseExitPath:
|
|
70152
|
-
resumeExitPath:
|
|
70153
|
-
clearExitPath:
|
|
70154
|
-
startRangeSelection:
|
|
70155
|
-
startContinuousRangeSelection:
|
|
70156
|
-
startAccidentRangeSelection:
|
|
70157
|
-
startContinuousAccidentRangeSelection:
|
|
70158
|
-
cancelRangeSelection:
|
|
70159
|
-
setRangeSelection:
|
|
70160
|
-
setRangeSelectionByCoordinate:
|
|
70161
|
-
setAccidentRangeSelection:
|
|
70162
|
-
setAccidentRangeSelectionByCoordinate:
|
|
70163
|
-
setRangeSelectionRadius:
|
|
70164
|
-
clearRangeSelection:
|
|
70165
|
-
getRangeSelectionResult:
|
|
70166
|
-
registerRangeSelectionChange:
|
|
70167
|
-
registerRangeSelectionResultChange:
|
|
70168
|
-
registerRangeSelectionCoordinatePick:
|
|
70169
|
-
startRangeSelectionCoordinatePick:
|
|
70170
|
-
startMonitorPointPlacement:
|
|
70171
|
-
focusMonitorPoint:
|
|
70172
|
-
movePerson:
|
|
70173
|
-
moveCar:
|
|
70174
|
-
followPersonTrack:
|
|
70175
|
-
stopPersonTrackFollow:
|
|
70176
|
-
followCarTrack:
|
|
70177
|
-
stopCarTrackFollow:
|
|
70178
|
-
moveView:
|
|
70179
|
-
registerModelInfoQuery:
|
|
70180
|
-
registerPointClick:
|
|
70181
|
-
registerVideoMonitorClick:
|
|
70182
|
-
registerWaterSimulationParameterChange:
|
|
70183
|
-
setActiveVideoMonitorIds:
|
|
70184
|
-
highlightVideoMonitor:
|
|
70185
|
-
clearVideoMonitorHighlight:
|
|
70241
|
+
initMonitorPoints: za,
|
|
70242
|
+
queryMonitorPointList: Ba,
|
|
70243
|
+
reloadMonitorPoints: Va,
|
|
70244
|
+
getViewPointList: Ve,
|
|
70245
|
+
switchToViewPoint: We,
|
|
70246
|
+
getCurrentViewInfo: He,
|
|
70247
|
+
applyViewInfo: Ue,
|
|
70248
|
+
initializeDemoPerson: Kt,
|
|
70249
|
+
startDemoPersonMotion: qt,
|
|
70250
|
+
stopDemoPersonMotion: Jt,
|
|
70251
|
+
toggleDemoPersonMotion: Yt,
|
|
70252
|
+
focusDemoPerson: Xt,
|
|
70253
|
+
showWaterSimulationPanel: Yr,
|
|
70254
|
+
hideWaterSimulationPanel: Xr,
|
|
70255
|
+
toggleWaterSimulationPanel: Jr,
|
|
70256
|
+
startWaterSimulationSelect: ci,
|
|
70257
|
+
endWaterSimulationSelect: li,
|
|
70258
|
+
startWaterSimulation: ui,
|
|
70259
|
+
clearWaterSimulation: di,
|
|
70260
|
+
showExitPathPanel: gi,
|
|
70261
|
+
hideExitPathPanel: _i,
|
|
70262
|
+
toggleExitPathPanel: vi,
|
|
70263
|
+
startExitPathRoutePick: yi,
|
|
70264
|
+
startExitPathObstaclePick: bi,
|
|
70265
|
+
computeExitPath: xi,
|
|
70266
|
+
computeExitPathByCoordinates: Si,
|
|
70267
|
+
pauseExitPath: Ci,
|
|
70268
|
+
resumeExitPath: wi,
|
|
70269
|
+
clearExitPath: Ti,
|
|
70270
|
+
startRangeSelection: zn,
|
|
70271
|
+
startContinuousRangeSelection: Bn,
|
|
70272
|
+
startAccidentRangeSelection: so,
|
|
70273
|
+
startContinuousAccidentRangeSelection: co,
|
|
70274
|
+
cancelRangeSelection: Un,
|
|
70275
|
+
setRangeSelection: Wn,
|
|
70276
|
+
setRangeSelectionByCoordinate: Gn,
|
|
70277
|
+
setAccidentRangeSelection: Kn,
|
|
70278
|
+
setAccidentRangeSelectionByCoordinate: qn,
|
|
70279
|
+
setRangeSelectionRadius: Yn,
|
|
70280
|
+
clearRangeSelection: Xn,
|
|
70281
|
+
getRangeSelectionResult: Nn,
|
|
70282
|
+
registerRangeSelectionChange: Pn,
|
|
70283
|
+
registerRangeSelectionResultChange: Fn,
|
|
70284
|
+
registerRangeSelectionCoordinatePick: In,
|
|
70285
|
+
startRangeSelectionCoordinatePick: Jn,
|
|
70286
|
+
startMonitorPointPlacement: ja,
|
|
70287
|
+
focusMonitorPoint: Wa,
|
|
70288
|
+
movePerson: Zt,
|
|
70289
|
+
moveCar: Qt,
|
|
70290
|
+
followPersonTrack: Pt,
|
|
70291
|
+
stopPersonTrackFollow: Ft,
|
|
70292
|
+
followCarTrack: Ht,
|
|
70293
|
+
stopCarTrackFollow: Ut,
|
|
70294
|
+
moveView: Ye,
|
|
70295
|
+
registerModelInfoQuery: nc,
|
|
70296
|
+
registerPointClick: rc,
|
|
70297
|
+
registerVideoMonitorClick: ic,
|
|
70298
|
+
registerWaterSimulationParameterChange: ac,
|
|
70299
|
+
setActiveVideoMonitorIds: Fa,
|
|
70300
|
+
highlightVideoMonitor: Ia,
|
|
70301
|
+
clearVideoMonitorHighlight: La
|
|
70186
70302
|
}), (e, n) => (O(), o("section", sq, [s("div", cq, [s("div", lq, [
|
|
70187
70303
|
s("div", {
|
|
70188
70304
|
id: te.value,
|
|
@@ -70190,33 +70306,33 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
70190
70306
|
ref: I,
|
|
70191
70307
|
class: "lr3d-viewer__host"
|
|
70192
70308
|
}, null, 8, uq),
|
|
70193
|
-
R(
|
|
70309
|
+
R(xe) === "ready" && Xa.value ? (O(), o("div", dq, [s("div", {
|
|
70194
70310
|
ref_key: "sceneQuickMenuRef",
|
|
70195
|
-
ref:
|
|
70311
|
+
ref: Ya,
|
|
70196
70312
|
class: "lr3d-scene-quick-menu__panel",
|
|
70197
|
-
style: C({ transform: `translate(${
|
|
70313
|
+
style: C({ transform: `translate(${Za.value.x}px, ${Za.value.y}px)` }),
|
|
70198
70314
|
onPointerdown: n[0] ||= V(() => {}, ["stop"]),
|
|
70199
70315
|
onContextmenu: n[1] ||= V(() => {}, ["prevent"])
|
|
70200
70316
|
}, [s("button", {
|
|
70201
70317
|
type: "button",
|
|
70202
70318
|
class: "lr3d-scene-quick-menu__item",
|
|
70203
|
-
onClick:
|
|
70319
|
+
onClick: _o
|
|
70204
70320
|
}, " 重新选择事故点 ")], 36)])) : a("", !0),
|
|
70205
|
-
R(
|
|
70321
|
+
R(Wi).status === "idle" ? a("", !0) : (O(), o("div", {
|
|
70206
70322
|
key: 1,
|
|
70207
|
-
class: S(["lr3d-placement-tip", { "lr3d-placement-tip--error": R(
|
|
70323
|
+
class: S(["lr3d-placement-tip", { "lr3d-placement-tip--error": R(Wi).errorMessage }])
|
|
70208
70324
|
}, [s("div", fq, [
|
|
70209
|
-
s("strong", null, F(R(
|
|
70210
|
-
s("span", null, F(R(
|
|
70211
|
-
R(
|
|
70325
|
+
s("strong", null, F(R(ua)), 1),
|
|
70326
|
+
s("span", null, F(R(da)), 1),
|
|
70327
|
+
R(Wi).errorMessage ? (O(), o("em", pq, F(R(Wi).errorMessage), 1)) : a("", !0)
|
|
70212
70328
|
]), s("button", {
|
|
70213
70329
|
type: "button",
|
|
70214
70330
|
class: "lr3d-placement-tip__cancel",
|
|
70215
|
-
onClick: n[2] ||= (...e) => R(
|
|
70331
|
+
onClick: n[2] ||= (...e) => R(Aa) && R(Aa)(...e)
|
|
70216
70332
|
}, " 取消 ")], 2)),
|
|
70217
|
-
|
|
70218
|
-
|
|
70219
|
-
R(
|
|
70333
|
+
uo.value ? (O(), o("div", mq, [s("div", hq, [n[36] ||= s("strong", null, "事故选点", -1), s("span", null, F(uo.value), 1)])])) : a("", !0),
|
|
70334
|
+
fo.value ? (O(), o("div", gq, [s("div", { class: "lr3d-placement-tip__content" }, [n[37] ||= s("strong", null, "避灾线路生成失败", -1), s("span", null, F(dX))])])) : a("", !0),
|
|
70335
|
+
R(xe) === "ready" && R(Nr).length > 0 ? (O(), o("div", _q, [(O(!0), o(t, null, M(R(Nr), (e) => (O(), o("div", {
|
|
70220
70336
|
key: `water-prediction-${e.key}`,
|
|
70221
70337
|
class: S(["lr3d-water-prediction-overlay__point", [
|
|
70222
70338
|
`lr3d-water-prediction-overlay__point--${e.level}`,
|
|
@@ -70225,23 +70341,23 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
70225
70341
|
]]),
|
|
70226
70342
|
style: C(e.screenStyle ?? { display: "none" }),
|
|
70227
70343
|
title: e.variant === "runtime-head" ? e.label : `${e.label}预测点`,
|
|
70228
|
-
onClick: (t) =>
|
|
70344
|
+
onClick: (t) => fi(e)
|
|
70229
70345
|
}, [n[38] ||= s("span", { class: "lr3d-water-prediction-overlay__pulse" }, null, -1), s("span", yq, [s("span", bq, [(O(!0), o(t, null, M(e.displayLines ?? [e.shortLabel], (t, n) => (O(), o("span", {
|
|
70230
70346
|
key: `${e.key}-line-${n}`,
|
|
70231
70347
|
class: S(["lr3d-water-prediction-overlay__label", { "lr3d-water-prediction-overlay__label--secondary": n > 0 }])
|
|
70232
70348
|
}, F(t), 3))), 128))])])], 14, vq))), 128))])) : a("", !0),
|
|
70233
|
-
R(
|
|
70349
|
+
R(xe) === "ready" && R(ga).length > 0 ? (O(), o("div", xq, [(O(!0), o(t, null, M(R(ga), (e) => (O(), o("div", {
|
|
70234
70350
|
key: `monitor-point-${e.viewId}`,
|
|
70235
70351
|
class: S(["lr3d-monitor-overlay__point", [e.iconMeta.modifierClass, {
|
|
70236
|
-
"lr3d-monitor-overlay__point--active": e.isActive ||
|
|
70352
|
+
"lr3d-monitor-overlay__point--active": e.isActive || Vo(e),
|
|
70237
70353
|
"lr3d-monitor-overlay__point--video-active": e.isActiveVideoMonitor,
|
|
70238
70354
|
"lr3d-monitor-overlay__point--video-highlighted": e.isHighlightedVideoMonitor
|
|
70239
70355
|
}]]),
|
|
70240
70356
|
style: C(e.screenStyle ?? { display: "none" }),
|
|
70241
|
-
onClick: V((t) => R(
|
|
70357
|
+
onClick: V((t) => R(Oa)(e), ["stop"])
|
|
70242
70358
|
}, [
|
|
70243
70359
|
n[44] ||= s("span", { class: "lr3d-monitor-overlay__pulse" }, null, -1),
|
|
70244
|
-
(e.isActive ||
|
|
70360
|
+
(e.isActive || Vo(e)) && e.name ? (O(), o("span", Cq, F(e.name), 1)) : a("", !0),
|
|
70245
70361
|
s("span", {
|
|
70246
70362
|
class: "lr3d-monitor-overlay__badge",
|
|
70247
70363
|
"aria-label": e.type
|
|
@@ -70336,22 +70452,22 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
70336
70452
|
"stroke-linejoin": "round",
|
|
70337
70453
|
"stroke-width": "1.8"
|
|
70338
70454
|
}, null, -1)
|
|
70339
|
-
]])) : (O(), o("svg", Aq, [...n[43] ||= [c("<circle cx=\"12\" cy=\"12\" r=\"4\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" data-v-
|
|
70340
|
-
R(
|
|
70455
|
+
]])) : (O(), o("svg", Aq, [...n[43] ||= [c("<circle cx=\"12\" cy=\"12\" r=\"4\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" data-v-ce8dcf83></circle><path d=\"M12 4V7\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" data-v-ce8dcf83></path><path d=\"M12 17V20\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" data-v-ce8dcf83></path><path d=\"M4 12H7\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" data-v-ce8dcf83></path><path d=\"M17 12H20\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" data-v-ce8dcf83></path>", 5)]]))], 8, wq),
|
|
70456
|
+
R(la) && e.isActive && R(oa) ? (O(), i(bN, {
|
|
70341
70457
|
key: 1,
|
|
70342
|
-
title: R(
|
|
70343
|
-
"type-label":
|
|
70344
|
-
"position-text":
|
|
70345
|
-
"position-label": R(
|
|
70346
|
-
"position-meta": R(
|
|
70347
|
-
"data-entries": R(
|
|
70348
|
-
"icon-class": R(
|
|
70349
|
-
"show-confirm-action": R(
|
|
70458
|
+
title: R(oa).name,
|
|
70459
|
+
"type-label": Qo(R(oa)),
|
|
70460
|
+
"position-text": Ps(R(oa).position),
|
|
70461
|
+
"position-label": R(oa).isPlacementPreview ? "候选位置" : "空间位置",
|
|
70462
|
+
"position-meta": R(oa).isPlacementPreview ? "待保存坐标" : "三维坐标",
|
|
70463
|
+
"data-entries": R(ca),
|
|
70464
|
+
"icon-class": R(sa).modifierClass,
|
|
70465
|
+
"show-confirm-action": R(oa).isPlacementPreview === !0,
|
|
70350
70466
|
"confirm-text": "确认布点",
|
|
70351
|
-
"confirm-disabled": R(
|
|
70352
|
-
"confirm-loading": R(
|
|
70353
|
-
onClose: R(
|
|
70354
|
-
onConfirm: R(
|
|
70467
|
+
"confirm-disabled": R(Wi).status !== "preview",
|
|
70468
|
+
"confirm-loading": R(Wi).status === "saving",
|
|
70469
|
+
onClose: R(Da),
|
|
70470
|
+
onConfirm: R(Na)
|
|
70355
70471
|
}, null, 8, [
|
|
70356
70472
|
"title",
|
|
70357
70473
|
"type-label",
|
|
@@ -70367,17 +70483,17 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
70367
70483
|
"onConfirm"
|
|
70368
70484
|
])) : a("", !0)
|
|
70369
70485
|
], 14, Sq))), 128))])) : a("", !0),
|
|
70370
|
-
R(
|
|
70486
|
+
R(xe) === "ready" && R(ha).length > 0 ? (O(), o("div", jq, [s("button", {
|
|
70371
70487
|
type: "button",
|
|
70372
|
-
class: S(["lr3d-monitor-legend__item lr3d-monitor-legend__item--all", { "lr3d-monitor-legend__item--inactive": !R(
|
|
70373
|
-
"aria-pressed": R(
|
|
70374
|
-
onClick: n[3] ||= (...e) => R(
|
|
70375
|
-
}, [s("span", Nq, F(R(
|
|
70488
|
+
class: S(["lr3d-monitor-legend__item lr3d-monitor-legend__item--all", { "lr3d-monitor-legend__item--inactive": !R(ma) }]),
|
|
70489
|
+
"aria-pressed": R(ma) ? "true" : "false",
|
|
70490
|
+
onClick: n[3] ||= (...e) => R(Ta) && R(Ta)(...e)
|
|
70491
|
+
}, [s("span", Nq, F(R(ma) ? "全不选" : "全选"), 1)], 10, Mq), (O(!0), o(t, null, M(R(ha), (e) => (O(), o("button", {
|
|
70376
70492
|
key: `monitor-legend-${e.type}`,
|
|
70377
70493
|
type: "button",
|
|
70378
70494
|
class: S(["lr3d-monitor-legend__item", [e.iconMeta.modifierClass, { "lr3d-monitor-legend__item--inactive": !e.visible }]]),
|
|
70379
70495
|
"aria-pressed": e.visible ? "true" : "false",
|
|
70380
|
-
onClick: (t) => R(
|
|
70496
|
+
onClick: (t) => R(Ea)(e.type)
|
|
70381
70497
|
}, [
|
|
70382
70498
|
e.iconMeta.iconType === "image" && (e.iconMeta.legendImageUrl || e.iconMeta.imageUrl) ? (O(), o("img", {
|
|
70383
70499
|
key: 0,
|
|
@@ -70389,19 +70505,19 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
70389
70505
|
s("span", Lq, F(e.label), 1),
|
|
70390
70506
|
s("span", Rq, F(e.count), 1)
|
|
70391
70507
|
], 10, Pq))), 128))])) : a("", !0),
|
|
70392
|
-
R(
|
|
70508
|
+
R(xe) === "ready" && Ts.value ? (O(), i($G, {
|
|
70393
70509
|
key: 7,
|
|
70394
70510
|
visible: he.value,
|
|
70395
|
-
radius: R(
|
|
70511
|
+
radius: R(on),
|
|
70396
70512
|
"min-radius": KY,
|
|
70397
70513
|
"max-radius": qY,
|
|
70398
70514
|
step: JY,
|
|
70399
|
-
"is-picking":
|
|
70400
|
-
"has-range-selection": R(
|
|
70401
|
-
"onUpdate:radius": n[4] ||= (e) =>
|
|
70402
|
-
onStartPick: R(
|
|
70403
|
-
onCancelPick: R(
|
|
70404
|
-
onClear: R(
|
|
70515
|
+
"is-picking": $n.value,
|
|
70516
|
+
"has-range-selection": R(Sn),
|
|
70517
|
+
"onUpdate:radius": n[4] ||= (e) => on.value = e,
|
|
70518
|
+
onStartPick: R(Bn),
|
|
70519
|
+
onCancelPick: R(Un),
|
|
70520
|
+
onClear: R(Xn)
|
|
70405
70521
|
}, null, 8, [
|
|
70406
70522
|
"visible",
|
|
70407
70523
|
"radius",
|
|
@@ -70411,115 +70527,115 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
70411
70527
|
"onCancelPick",
|
|
70412
70528
|
"onClear"
|
|
70413
70529
|
])) : a("", !0),
|
|
70414
|
-
R(
|
|
70530
|
+
R(xe) === "ready" ? (O(), o("div", zq, [s("div", Bq, [s("button", {
|
|
70415
70531
|
type: "button",
|
|
70416
70532
|
class: "lr3d-accident-view-button",
|
|
70417
|
-
onClick:
|
|
70533
|
+
onClick: cc
|
|
70418
70534
|
}, " 事故点 "), s("nav", Vq, [
|
|
70419
|
-
|
|
70535
|
+
ws.value ? (O(), o("button", {
|
|
70420
70536
|
key: 0,
|
|
70421
70537
|
type: "button",
|
|
70422
|
-
class: S(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": R(
|
|
70423
|
-
"aria-pressed": R(
|
|
70424
|
-
onClick: n[5] ||= (...e) => R(
|
|
70538
|
+
class: S(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": R(Vi) }]),
|
|
70539
|
+
"aria-pressed": R(Vi) ? "true" : "false",
|
|
70540
|
+
onClick: n[5] ||= (...e) => R(wa) && R(wa)(...e)
|
|
70425
70541
|
}, " 监测点 ", 10, Hq)) : a("", !0),
|
|
70426
|
-
|
|
70542
|
+
Es.value ? (O(), o("button", {
|
|
70427
70543
|
key: 1,
|
|
70428
70544
|
type: "button",
|
|
70429
|
-
class: S(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": R(
|
|
70430
|
-
"aria-pressed": R(
|
|
70431
|
-
onClick: n[6] ||= (...e) => R(
|
|
70545
|
+
class: S(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": R(Cr) }]),
|
|
70546
|
+
"aria-pressed": R(Cr) ? "true" : "false",
|
|
70547
|
+
onClick: n[6] ||= (...e) => R(Jr) && R(Jr)(...e)
|
|
70432
70548
|
}, " 水漫延 ", 10, Uq)) : a("", !0),
|
|
70433
|
-
|
|
70549
|
+
Ds.value ? (O(), o("button", {
|
|
70434
70550
|
key: 2,
|
|
70435
70551
|
type: "button",
|
|
70436
|
-
class: S(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": R(
|
|
70437
|
-
"aria-pressed": R(
|
|
70438
|
-
disabled: R(
|
|
70439
|
-
onClick: n[7] ||= (...e) => R(
|
|
70440
|
-
}, F(R(
|
|
70441
|
-
|
|
70552
|
+
class: S(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": R(mi) || R(hi) }]),
|
|
70553
|
+
"aria-pressed": R(mi) || R(hi) ? "true" : "false",
|
|
70554
|
+
disabled: R(mi),
|
|
70555
|
+
onClick: n[7] ||= (...e) => R(Ei) && R(Ei)(...e)
|
|
70556
|
+
}, F(R(mi) ? "生成中" : R(hi) ? "清除线路" : "避灾线路"), 11, Wq)) : a("", !0),
|
|
70557
|
+
Os.value && R(Ae).length > 0 ? (O(), o("button", {
|
|
70442
70558
|
key: 3,
|
|
70443
70559
|
type: "button",
|
|
70444
70560
|
class: S(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": me.value }]),
|
|
70445
70561
|
"aria-pressed": me.value ? "true" : "false",
|
|
70446
|
-
onClick:
|
|
70562
|
+
onClick: oc
|
|
70447
70563
|
}, " 视角 ", 10, Gq)) : a("", !0),
|
|
70448
|
-
|
|
70564
|
+
Os.value && R(ke) ? (O(), o("button", {
|
|
70449
70565
|
key: 4,
|
|
70450
70566
|
type: "button",
|
|
70451
70567
|
class: "lr3d-toolbar__button",
|
|
70452
|
-
onClick: n[8] ||= (...e) => R(
|
|
70568
|
+
onClick: n[8] ||= (...e) => R(Ge) && R(Ge)(...e)
|
|
70453
70569
|
}, " 全景俯视 ")) : a("", !0)
|
|
70454
|
-
])]),
|
|
70455
|
-
|
|
70570
|
+
])]), Es.value && R(Cr) || Os.value && R(Ae).length > 0 && me.value || Ds.value && R(pi) ? (O(), o("div", Kq, [
|
|
70571
|
+
Os.value && R(Ae).length > 0 && me.value ? (O(), i(xK, {
|
|
70456
70572
|
key: 0,
|
|
70457
70573
|
visible: !0,
|
|
70458
|
-
"view-points": R(
|
|
70459
|
-
"active-view-point-key": R(
|
|
70460
|
-
"active-view-point-name": R(
|
|
70461
|
-
onSelect: R(
|
|
70574
|
+
"view-points": R(Ae),
|
|
70575
|
+
"active-view-point-key": R(Oe),
|
|
70576
|
+
"active-view-point-name": R(je),
|
|
70577
|
+
onSelect: R(We)
|
|
70462
70578
|
}, null, 8, [
|
|
70463
70579
|
"view-points",
|
|
70464
70580
|
"active-view-point-key",
|
|
70465
70581
|
"active-view-point-name",
|
|
70466
70582
|
"onSelect"
|
|
70467
70583
|
])) : a("", !0),
|
|
70468
|
-
|
|
70584
|
+
Es.value && R(Cr) ? (O(), i(oq, {
|
|
70469
70585
|
key: 1,
|
|
70470
70586
|
visible: !0,
|
|
70471
|
-
"flow-rate": R(
|
|
70472
|
-
"drainage-rate": R(
|
|
70473
|
-
"playback-multiplier": R(
|
|
70474
|
-
"min-flow-rate":
|
|
70475
|
-
"max-flow-rate":
|
|
70476
|
-
"flow-rate-step":
|
|
70477
|
-
"min-playback-multiplier":
|
|
70478
|
-
"max-playback-multiplier":
|
|
70479
|
-
"playback-multiplier-step":
|
|
70480
|
-
"display-duration-text": R(
|
|
70587
|
+
"flow-rate": R(Er),
|
|
70588
|
+
"drainage-rate": R(Dr),
|
|
70589
|
+
"playback-multiplier": R(Or),
|
|
70590
|
+
"min-flow-rate": hX,
|
|
70591
|
+
"max-flow-rate": gX,
|
|
70592
|
+
"flow-rate-step": _X,
|
|
70593
|
+
"min-playback-multiplier": yX,
|
|
70594
|
+
"max-playback-multiplier": bX,
|
|
70595
|
+
"playback-multiplier-step": xX,
|
|
70596
|
+
"display-duration-text": R(Ar),
|
|
70481
70597
|
"analysis-time-options": R(h),
|
|
70482
|
-
"analysis-selected-preset-minutes": R(
|
|
70483
|
-
"analysis-hour": R(
|
|
70484
|
-
"analysis-location-count": R(
|
|
70485
|
-
"is-analysis-location-picking": R(
|
|
70486
|
-
"is-tunnel-info-picking": R(
|
|
70487
|
-
"is-analysis-loading": R(
|
|
70488
|
-
"analysis-result": R(
|
|
70489
|
-
"analysis-button-text": R(
|
|
70490
|
-
"control-button-text": R(
|
|
70491
|
-
"is-control-button-disabled": R(
|
|
70492
|
-
"onUpdate:flowRate": n[9] ||= (e) =>
|
|
70493
|
-
"onUpdate:drainageRate": n[10] ||= (e) =>
|
|
70494
|
-
"onUpdate:playbackMultiplier": n[11] ||= (e) =>
|
|
70495
|
-
"onUpdate:analysisHour": n[12] ||= (e) =>
|
|
70496
|
-
onParameterInput: R(
|
|
70497
|
-
onParameterChange: R(
|
|
70498
|
-
onSelectAnalysisPreset: R(
|
|
70499
|
-
onAnalysisHourInput: R(
|
|
70500
|
-
onPickAnalysisLocation: R(
|
|
70501
|
-
onPickTunnelInfo: R(
|
|
70502
|
-
onFocusKeyLocation: R(
|
|
70503
|
-
onClearAnalysisLocations: R(
|
|
70504
|
-
onSubmitAnalysis: R(
|
|
70505
|
-
onPrimaryAction: R(
|
|
70506
|
-
onCancel: R(
|
|
70507
|
-
onClosePanel: R(
|
|
70598
|
+
"analysis-selected-preset-minutes": R(Pr),
|
|
70599
|
+
"analysis-hour": R(Q),
|
|
70600
|
+
"analysis-location-count": R(Ir),
|
|
70601
|
+
"is-analysis-location-picking": R(Lr),
|
|
70602
|
+
"is-tunnel-info-picking": R(Rr),
|
|
70603
|
+
"is-analysis-loading": R(zr),
|
|
70604
|
+
"analysis-result": R(Br),
|
|
70605
|
+
"analysis-button-text": R(jr),
|
|
70606
|
+
"control-button-text": R(Z),
|
|
70607
|
+
"is-control-button-disabled": R(Mr),
|
|
70608
|
+
"onUpdate:flowRate": n[9] ||= (e) => Er.value = e,
|
|
70609
|
+
"onUpdate:drainageRate": n[10] ||= (e) => Dr.value = e,
|
|
70610
|
+
"onUpdate:playbackMultiplier": n[11] ||= (e) => Or.value = e,
|
|
70611
|
+
"onUpdate:analysisHour": n[12] ||= (e) => Q.value = e,
|
|
70612
|
+
onParameterInput: R(Zr),
|
|
70613
|
+
onParameterChange: R(Qr),
|
|
70614
|
+
onSelectAnalysisPreset: R(ei),
|
|
70615
|
+
onAnalysisHourInput: R(ti),
|
|
70616
|
+
onPickAnalysisLocation: R(ni),
|
|
70617
|
+
onPickTunnelInfo: R(ri),
|
|
70618
|
+
onFocusKeyLocation: R(ii),
|
|
70619
|
+
onClearAnalysisLocations: R(Hr),
|
|
70620
|
+
onSubmitAnalysis: R(ai),
|
|
70621
|
+
onPrimaryAction: R(oi),
|
|
70622
|
+
onCancel: R(si),
|
|
70623
|
+
onClosePanel: R(Xr)
|
|
70508
70624
|
}, null, 8, /* @__PURE__ */ "flow-rate.drainage-rate.playback-multiplier.display-duration-text.analysis-time-options.analysis-selected-preset-minutes.analysis-hour.analysis-location-count.is-analysis-location-picking.is-tunnel-info-picking.is-analysis-loading.analysis-result.analysis-button-text.control-button-text.is-control-button-disabled.onParameterInput.onParameterChange.onSelectAnalysisPreset.onAnalysisHourInput.onPickAnalysisLocation.onPickTunnelInfo.onFocusKeyLocation.onClearAnalysisLocations.onSubmitAnalysis.onPrimaryAction.onCancel.onClosePanel".split("."))) : a("", !0),
|
|
70509
|
-
|
|
70625
|
+
Ds.value && R(pi) ? (O(), i(RG, {
|
|
70510
70626
|
key: 2,
|
|
70511
70627
|
visible: !0,
|
|
70512
|
-
"is-computing": R(
|
|
70513
|
-
"is-generated": R(
|
|
70514
|
-
"has-accident-range-selection": R(
|
|
70515
|
-
"accident-range-selection-summary-text": R(
|
|
70628
|
+
"is-computing": R(mi),
|
|
70629
|
+
"is-generated": R(hi),
|
|
70630
|
+
"has-accident-range-selection": R(Cn),
|
|
70631
|
+
"accident-range-selection-summary-text": R(En),
|
|
70516
70632
|
"workface-panel-status": oe.value,
|
|
70517
|
-
onPickRoute: R(
|
|
70518
|
-
onPickObstacle: R(
|
|
70519
|
-
onCompute: R(
|
|
70520
|
-
onPause: R(
|
|
70521
|
-
onResume: R(
|
|
70522
|
-
onClear: R(
|
|
70633
|
+
onPickRoute: R(yi),
|
|
70634
|
+
onPickObstacle: R(bi),
|
|
70635
|
+
onCompute: R(xi),
|
|
70636
|
+
onPause: R(Ci),
|
|
70637
|
+
onResume: R(wi),
|
|
70638
|
+
onClear: R(Ti)
|
|
70523
70639
|
}, null, 8, [
|
|
70524
70640
|
"is-computing",
|
|
70525
70641
|
"is-generated",
|
|
@@ -70534,25 +70650,25 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
70534
70650
|
"onClear"
|
|
70535
70651
|
])) : a("", !0)
|
|
70536
70652
|
])) : a("", !0)])) : a("", !0),
|
|
70537
|
-
R(
|
|
70653
|
+
R(xe) === "ready" && (ks.value || ws.value) ? (O(), o("div", qq, [ks.value && R(xe) === "ready" ? (O(), i(gK, {
|
|
70538
70654
|
key: 0,
|
|
70539
70655
|
visible: !0,
|
|
70540
70656
|
expanded: ae.value,
|
|
70541
|
-
"filtered-region-count": R(
|
|
70542
|
-
"lane-count": R(
|
|
70543
|
-
"are-regions-visible": R(
|
|
70544
|
-
"are-lanes-visible": R(
|
|
70657
|
+
"filtered-region-count": R(or).length,
|
|
70658
|
+
"lane-count": R(nr).length,
|
|
70659
|
+
"are-regions-visible": R(ir),
|
|
70660
|
+
"are-lanes-visible": R(ar),
|
|
70545
70661
|
"status-text": oe.value,
|
|
70546
|
-
"has-visibility-items": R(
|
|
70547
|
-
"grouped-region-items": R(
|
|
70548
|
-
"lane-items": R(
|
|
70549
|
-
"region-visibility-map": R(
|
|
70550
|
-
"lane-visibility-map": R(
|
|
70662
|
+
"has-visibility-items": R(cr),
|
|
70663
|
+
"grouped-region-items": R(sr),
|
|
70664
|
+
"lane-items": R(nr),
|
|
70665
|
+
"region-visibility-map": R(tr),
|
|
70666
|
+
"lane-visibility-map": R(rr),
|
|
70551
70667
|
"onUpdate:expanded": n[13] ||= (e) => ae.value = e,
|
|
70552
|
-
onToggleRegions: R(
|
|
70553
|
-
onToggleLanes: R(
|
|
70554
|
-
onRegionVisibilityChange: R(
|
|
70555
|
-
onLaneVisibilityChange: R(
|
|
70668
|
+
onToggleRegions: R(Sr),
|
|
70669
|
+
onToggleLanes: R(xr),
|
|
70670
|
+
onRegionVisibilityChange: R(yr),
|
|
70671
|
+
onLaneVisibilityChange: R(br)
|
|
70556
70672
|
}, null, 8, [
|
|
70557
70673
|
"expanded",
|
|
70558
70674
|
"filtered-region-count",
|
|
@@ -70569,172 +70685,172 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
70569
70685
|
"onToggleLanes",
|
|
70570
70686
|
"onRegionVisibilityChange",
|
|
70571
70687
|
"onLaneVisibilityChange"
|
|
70572
|
-
])) : a("", !0),
|
|
70688
|
+
])) : a("", !0), ws.value && R(Vi) ? (O(), o("aside", Jq, [
|
|
70573
70689
|
s("div", {
|
|
70574
70690
|
ref_key: "monitorPointTabsRef",
|
|
70575
|
-
ref:
|
|
70691
|
+
ref: Fi,
|
|
70576
70692
|
class: "lr3d-monitor-panel__tabs",
|
|
70577
|
-
onPointerdown: n[14] ||= (...e) => R(
|
|
70578
|
-
onPointermove: n[15] ||= (...e) => R(
|
|
70579
|
-
onPointerup: n[16] ||= (...e) => R(
|
|
70580
|
-
onPointercancel: n[17] ||= (...e) => R(
|
|
70581
|
-
onPointerleave: n[18] ||= (...e) => R(
|
|
70582
|
-
}, [(O(!0), o(t, null, M(R(
|
|
70693
|
+
onPointerdown: n[14] ||= (...e) => R(va) && R(va)(...e),
|
|
70694
|
+
onPointermove: n[15] ||= (...e) => R(ya) && R(ya)(...e),
|
|
70695
|
+
onPointerup: n[16] ||= (...e) => R(ba) && R(ba)(...e),
|
|
70696
|
+
onPointercancel: n[17] ||= (...e) => R(ba) && R(ba)(...e),
|
|
70697
|
+
onPointerleave: n[18] ||= (...e) => R(ba) && R(ba)(...e)
|
|
70698
|
+
}, [(O(!0), o(t, null, M(R(Gi), (e) => (O(), o("button", {
|
|
70583
70699
|
key: e.type,
|
|
70584
70700
|
ref_for: !0,
|
|
70585
|
-
ref: (t) => R(
|
|
70701
|
+
ref: (t) => R(_a)(e.type, t),
|
|
70586
70702
|
type: "button",
|
|
70587
|
-
class: S(["lr3d-monitor-panel__tab", { "lr3d-monitor-panel__tab--active": R(
|
|
70588
|
-
onClick: (t) => R(
|
|
70703
|
+
class: S(["lr3d-monitor-panel__tab", { "lr3d-monitor-panel__tab--active": R(Li) === e.type }]),
|
|
70704
|
+
onClick: (t) => R(xa)(e.type)
|
|
70589
70705
|
}, F(e.label), 11, Yq))), 128))], 544),
|
|
70590
|
-
R(
|
|
70706
|
+
R(Xi) || R(Zi) ? (O(), o("div", Xq, [R(Xi) ? (O(), o("label", Zq, [
|
|
70591
70707
|
B(s("input", {
|
|
70592
|
-
"onUpdate:modelValue": n[19] ||= (e) => y(
|
|
70708
|
+
"onUpdate:modelValue": n[19] ||= (e) => y(et) ? et.value = e : null,
|
|
70593
70709
|
class: "lr3d-monitor-panel__switch-input",
|
|
70594
70710
|
type: "checkbox",
|
|
70595
|
-
onChange: n[20] ||= (...e) => R(
|
|
70596
|
-
}, null, 544), [[z, R(
|
|
70711
|
+
onChange: n[20] ||= (...e) => R(Wt) && R(Wt)(...e)
|
|
70712
|
+
}, null, 544), [[z, R(et)]]),
|
|
70597
70713
|
n[45] ||= s("span", { class: "lr3d-monitor-panel__switch-text" }, "人员移动动画", -1),
|
|
70598
|
-
s("span", Qq, F(R(
|
|
70714
|
+
s("span", Qq, F(R(et) ? "开" : "关"), 1)
|
|
70599
70715
|
])) : (O(), o("label", $q, [
|
|
70600
70716
|
B(s("input", {
|
|
70601
|
-
"onUpdate:modelValue": n[21] ||= (e) => y(
|
|
70717
|
+
"onUpdate:modelValue": n[21] ||= (e) => y(tt) ? tt.value = e : null,
|
|
70602
70718
|
class: "lr3d-monitor-panel__switch-input",
|
|
70603
70719
|
type: "checkbox",
|
|
70604
|
-
onChange: n[22] ||= (...e) => R(
|
|
70605
|
-
}, null, 544), [[z, R(
|
|
70720
|
+
onChange: n[22] ||= (...e) => R(Gt) && R(Gt)(...e)
|
|
70721
|
+
}, null, 544), [[z, R(tt)]]),
|
|
70606
70722
|
n[46] ||= s("span", { class: "lr3d-monitor-panel__switch-text" }, "车辆移动", -1),
|
|
70607
|
-
s("span", eJ, F(R(
|
|
70608
|
-
])), R(
|
|
70723
|
+
s("span", eJ, F(R(tt) ? "开" : "关"), 1)
|
|
70724
|
+
])), R(Qi) || R($i) ? (O(), o("button", {
|
|
70609
70725
|
key: 2,
|
|
70610
70726
|
type: "button",
|
|
70611
70727
|
class: "lr3d-monitor-panel__back-button",
|
|
70612
|
-
onClick: n[23] ||= (e) => R(
|
|
70728
|
+
onClick: n[23] ||= (e) => R(Qi) ? R(kt)() : R(Lt)()
|
|
70613
70729
|
}, " 返回 ")) : a("", !0)])) : a("", !0),
|
|
70614
|
-
R(
|
|
70730
|
+
R(ea) ? (O(), o("div", tJ, [
|
|
70615
70731
|
s("div", nJ, [n[47] ||= s("span", { class: "lr3d-monitor-panel__filter-label" }, "名称", -1), s("input", {
|
|
70616
|
-
value: R(
|
|
70732
|
+
value: R(Ui),
|
|
70617
70733
|
type: "text",
|
|
70618
70734
|
class: "lr3d-monitor-panel__filter-input",
|
|
70619
70735
|
placeholder: "输入名称关键字",
|
|
70620
|
-
onInput: n[24] ||= (e) => R(
|
|
70736
|
+
onInput: n[24] ||= (e) => R(Ca)(e.target.value)
|
|
70621
70737
|
}, null, 40, rJ)]),
|
|
70622
|
-
s("div", iJ, [n[48] ||= s("span", { class: "lr3d-monitor-panel__filter-label" }, "类型", -1),
|
|
70738
|
+
s("div", iJ, [n[48] ||= s("span", { class: "lr3d-monitor-panel__filter-label" }, "类型", -1), qa.value ? (O(), o("button", {
|
|
70623
70739
|
key: 0,
|
|
70624
70740
|
type: "button",
|
|
70625
70741
|
class: "lr3d-monitor-panel__filter-toggle",
|
|
70626
|
-
onClick:
|
|
70627
|
-
}, F(
|
|
70742
|
+
onClick: To
|
|
70743
|
+
}, F(Ka.value ? "收起" : "展开"), 1)) : a("", !0)]),
|
|
70628
70744
|
s("div", {
|
|
70629
70745
|
ref_key: "monitorPointTypeFilterOptionsRef",
|
|
70630
|
-
ref:
|
|
70631
|
-
class: S(["lr3d-monitor-panel__filter-options", { "lr3d-monitor-panel__filter-options--expanded":
|
|
70632
|
-
style: C(
|
|
70746
|
+
ref: Ga,
|
|
70747
|
+
class: S(["lr3d-monitor-panel__filter-options", { "lr3d-monitor-panel__filter-options--expanded": Ka.value }]),
|
|
70748
|
+
style: C(no.value)
|
|
70633
70749
|
}, [s("button", {
|
|
70634
70750
|
type: "button",
|
|
70635
|
-
class: S(["lr3d-monitor-panel__filter-chip", { "lr3d-monitor-panel__filter-chip--active": !R(
|
|
70636
|
-
onClick: n[25] ||= (e) => R(
|
|
70637
|
-
}, " 全部 ", 2), (O(!0), o(t, null, M(R(
|
|
70638
|
-
key: `${R(
|
|
70751
|
+
class: S(["lr3d-monitor-panel__filter-chip", { "lr3d-monitor-panel__filter-chip--active": !R(Hi) }]),
|
|
70752
|
+
onClick: n[25] ||= (e) => R(Sa)("")
|
|
70753
|
+
}, " 全部 ", 2), (O(!0), o(t, null, M(R(qi), (e) => (O(), o("button", {
|
|
70754
|
+
key: `${R(Li)}-${e}`,
|
|
70639
70755
|
type: "button",
|
|
70640
|
-
class: S(["lr3d-monitor-panel__filter-chip", { "lr3d-monitor-panel__filter-chip--active": R(
|
|
70641
|
-
onClick: (t) => R(
|
|
70756
|
+
class: S(["lr3d-monitor-panel__filter-chip", { "lr3d-monitor-panel__filter-chip--active": R(Hi) === e }]),
|
|
70757
|
+
onClick: (t) => R(Sa)(e)
|
|
70642
70758
|
}, F(e), 11, aJ))), 128))], 6)
|
|
70643
70759
|
])) : a("", !0),
|
|
70644
|
-
s("div", oJ, [R(
|
|
70645
|
-
s("div", { class: S(["lr3d-monitor-panel__state", { "lr3d-monitor-panel__state--error": !!R(
|
|
70646
|
-
s("div", sJ, [s("strong", cJ, F(R(
|
|
70760
|
+
s("div", oJ, [R(Qi) ? (O(), o(t, { key: 0 }, [
|
|
70761
|
+
s("div", { class: S(["lr3d-monitor-panel__state", { "lr3d-monitor-panel__state--error": !!R(it).loadError }]) }, F(R(lt)), 3),
|
|
70762
|
+
s("div", sJ, [s("strong", cJ, F(R(ct)), 1), s("p", lJ, " 卡号 " + F(R(it).cardId || "--") + " · 原始 " + F(R(it).rawItems.length) + " 条 · 有效 " + F(R(ut)) + " 点 ", 1)]),
|
|
70647
70763
|
s("div", uJ, [
|
|
70648
70764
|
s("button", {
|
|
70649
70765
|
type: "button",
|
|
70650
70766
|
class: "lr3d-monitor-panel__item-action lr3d-person-track-panel__action",
|
|
70651
|
-
disabled: !R(
|
|
70652
|
-
onClick: n[26] ||= (...e) => R(
|
|
70767
|
+
disabled: !R(pt) || R(dt),
|
|
70768
|
+
onClick: n[26] ||= (...e) => R(At) && R(At)(...e)
|
|
70653
70769
|
}, " 播放 ", 8, dJ),
|
|
70654
70770
|
s("button", {
|
|
70655
70771
|
type: "button",
|
|
70656
70772
|
class: "lr3d-monitor-panel__item-action lr3d-person-track-panel__action",
|
|
70657
|
-
disabled: !R(
|
|
70658
|
-
onClick: n[27] ||= (e) => R(
|
|
70659
|
-
}, F(R(
|
|
70773
|
+
disabled: !R(dt) && !R(ft),
|
|
70774
|
+
onClick: n[27] ||= (e) => R(dt) ? R(jt)() : R(Mt)()
|
|
70775
|
+
}, F(R(dt) ? "暂停" : "继续"), 9, fJ),
|
|
70660
70776
|
s("button", {
|
|
70661
70777
|
type: "button",
|
|
70662
70778
|
class: "lr3d-monitor-panel__item-action lr3d-person-track-panel__action",
|
|
70663
|
-
disabled: !R(
|
|
70664
|
-
onClick: n[28] ||= (...e) => R(
|
|
70665
|
-
}, F(R(
|
|
70779
|
+
disabled: !R(it).sceneId || R(ut) < 1,
|
|
70780
|
+
onClick: n[28] ||= (...e) => R(Nt) && R(Nt)(...e)
|
|
70781
|
+
}, F(R(it).isFollowing ? "停止跟随" : "跟随"), 9, pJ)
|
|
70666
70782
|
]),
|
|
70667
|
-
R(
|
|
70668
|
-
key: `${R(
|
|
70669
|
-
class: S(["lr3d-person-track-panel__item", { "lr3d-person-track-panel__item--active": R(
|
|
70670
|
-
}, [s("div", hJ, [s("strong", null, F(
|
|
70671
|
-
s("div", _J, [n[49] ||= s("span", null, "停留时长", -1), s("strong", null, F(
|
|
70672
|
-
s("div", vJ, [n[50] ||= s("span", null, "站点编码", -1), s("strong", null, F(
|
|
70673
|
-
s("div", yJ, [n[51] ||= s("span", null, "位置名称", -1), s("strong", null, F(
|
|
70674
|
-
s("div", bJ, [n[52] ||= s("span", null, "三维坐标", -1), s("strong", null, F(
|
|
70783
|
+
R(it).rawItems.length > 0 ? (O(), o("div", mJ, [(O(!0), o(t, null, M(R(it).rawItems, (e, t) => (O(), o("article", {
|
|
70784
|
+
key: `${R(it).cardId}-${e.station_id || t}-${e.station_time || t}`,
|
|
70785
|
+
class: S(["lr3d-person-track-panel__item", { "lr3d-person-track-panel__item--active": R(it).currentRawIndex === t }])
|
|
70786
|
+
}, [s("div", hJ, [s("strong", null, F(Fo(e.station_name ?? e.location)), 1), s("span", null, F(Fo(e.station_time)), 1)]), s("div", gJ, [
|
|
70787
|
+
s("div", _J, [n[49] ||= s("span", null, "停留时长", -1), s("strong", null, F(Fo(e.duration)), 1)]),
|
|
70788
|
+
s("div", vJ, [n[50] ||= s("span", null, "站点编码", -1), s("strong", null, F(Fo(e.station_id)), 1)]),
|
|
70789
|
+
s("div", yJ, [n[51] ||= s("span", null, "位置名称", -1), s("strong", null, F(Fo(e.location)), 1)]),
|
|
70790
|
+
s("div", bJ, [n[52] ||= s("span", null, "三维坐标", -1), s("strong", null, F(Fo(e.coordinates)), 1)])
|
|
70675
70791
|
])], 2))), 128))])) : a("", !0)
|
|
70676
|
-
], 64)) : R(
|
|
70677
|
-
s("div", { class: S(["lr3d-monitor-panel__state", { "lr3d-monitor-panel__state--error": !!R(
|
|
70678
|
-
s("div", xJ, [s("strong", SJ, F(R(
|
|
70792
|
+
], 64)) : R($i) ? (O(), o(t, { key: 1 }, [
|
|
70793
|
+
s("div", { class: S(["lr3d-monitor-panel__state", { "lr3d-monitor-panel__state--error": !!R(st).loadError }]) }, F(R(ht)), 3),
|
|
70794
|
+
s("div", xJ, [s("strong", SJ, F(R(mt)), 1), s("p", CJ, " 卡号 " + F(R(st).personCard || "--") + " · 原始 " + F(R(st).rawItems.length) + " 条 · 有效 " + F(R(gt)) + " 点 ", 1)]),
|
|
70679
70795
|
s("div", wJ, [
|
|
70680
70796
|
s("button", {
|
|
70681
70797
|
type: "button",
|
|
70682
70798
|
class: "lr3d-monitor-panel__item-action",
|
|
70683
|
-
disabled: !R(
|
|
70684
|
-
onClick: n[29] ||= (...e) => R(
|
|
70799
|
+
disabled: !R(yt) || R(_t),
|
|
70800
|
+
onClick: n[29] ||= (...e) => R(Rt) && R(Rt)(...e)
|
|
70685
70801
|
}, " 播放 ", 8, TJ),
|
|
70686
70802
|
s("button", {
|
|
70687
70803
|
type: "button",
|
|
70688
70804
|
class: "lr3d-monitor-panel__item-action",
|
|
70689
|
-
disabled: !R(
|
|
70690
|
-
onClick: n[30] ||= (e) => R(
|
|
70691
|
-
}, F(R(
|
|
70805
|
+
disabled: !R(_t) && !R(vt),
|
|
70806
|
+
onClick: n[30] ||= (e) => R(_t) ? R(zt)() : R(Bt)()
|
|
70807
|
+
}, F(R(_t) ? "暂停" : "继续"), 9, EJ),
|
|
70692
70808
|
s("button", {
|
|
70693
70809
|
type: "button",
|
|
70694
70810
|
class: "lr3d-monitor-panel__item-action",
|
|
70695
|
-
disabled: !R(
|
|
70696
|
-
onClick: n[31] ||= (...e) => R(
|
|
70697
|
-
}, F(R(
|
|
70811
|
+
disabled: !R(st).sceneId || R(gt) < 1,
|
|
70812
|
+
onClick: n[31] ||= (...e) => R(Vt) && R(Vt)(...e)
|
|
70813
|
+
}, F(R(st).isFollowing ? "停止跟随" : "跟随"), 9, DJ)
|
|
70698
70814
|
]),
|
|
70699
|
-
R(
|
|
70700
|
-
key: `${R(
|
|
70701
|
-
class: S(["lr3d-person-track-panel__item", { "lr3d-person-track-panel__item--active": R(
|
|
70702
|
-
}, [s("div", kJ, [s("strong", null, F(
|
|
70703
|
-
s("div", jJ, [n[53] ||= s("span", null, "站点编码", -1), s("strong", null, F(
|
|
70704
|
-
s("div", MJ, [n[54] ||= s("span", null, "入库时间", -1), s("strong", null, F(
|
|
70705
|
-
s("div", NJ, [n[55] ||= s("span", null, "定位卡号", -1), s("strong", null, F(
|
|
70706
|
-
s("div", PJ, [n[56] ||= s("span", null, "三维坐标", -1), s("strong", null, F(
|
|
70815
|
+
R(st).rawItems.length > 0 ? (O(), o("div", OJ, [(O(!0), o(t, null, M(R(st).rawItems, (e, t) => (O(), o("article", {
|
|
70816
|
+
key: `${R(st).personCard}-${e.station_code || t}-${e.data_time || t}`,
|
|
70817
|
+
class: S(["lr3d-person-track-panel__item", { "lr3d-person-track-panel__item--active": R(st).currentRawIndex === t }])
|
|
70818
|
+
}, [s("div", kJ, [s("strong", null, F(Fo(e.station_name)), 1), s("span", null, F(Fo(e.data_time ?? e.station_entertime)), 1)]), s("div", AJ, [
|
|
70819
|
+
s("div", jJ, [n[53] ||= s("span", null, "站点编码", -1), s("strong", null, F(Fo(e.station_code)), 1)]),
|
|
70820
|
+
s("div", MJ, [n[54] ||= s("span", null, "入库时间", -1), s("strong", null, F(Fo(e.insert_time)), 1)]),
|
|
70821
|
+
s("div", NJ, [n[55] ||= s("span", null, "定位卡号", -1), s("strong", null, F(Fo(e.person_card)), 1)]),
|
|
70822
|
+
s("div", PJ, [n[56] ||= s("span", null, "三维坐标", -1), s("strong", null, F(Fo(`${e.x},${e.y},${e.z}`)), 1)])
|
|
70707
70823
|
])], 2))), 128))])) : a("", !0)
|
|
70708
|
-
], 64)) : R(
|
|
70824
|
+
], 64)) : R(na) ? (O(), o("div", FJ, " 正在读取监测点数据... ")) : R(ji) === "error" ? (O(), o("div", IJ, " 监测点数据加载失败:" + F(R(Mi)), 1)) : R(Yi) ? (O(), o(t, { key: 5 }, [R(ra) ? (O(), o("div", RJ, " 其余监测点数据仍在加载,已返回的数据先展示。 ")) : a("", !0), s("ul", zJ, [(O(!0), o(t, null, M(R(ia), (e) => (O(), o("li", {
|
|
70709
70825
|
key: e.viewId,
|
|
70710
70826
|
class: "lr3d-monitor-panel__item lr3d-monitor-panel__item--clickable",
|
|
70711
|
-
onClick: (t) => R(
|
|
70827
|
+
onClick: (t) => R(ka)(e)
|
|
70712
70828
|
}, [
|
|
70713
|
-
s("div", VJ, [s("strong", null, F(
|
|
70714
|
-
|
|
70829
|
+
s("div", VJ, [s("strong", null, F(zo(e) ? ls(e) : e.name), 1), s("div", HJ, [
|
|
70830
|
+
zo(e) ? (O(), o("button", {
|
|
70715
70831
|
key: 0,
|
|
70716
70832
|
type: "button",
|
|
70717
70833
|
class: "lr3d-monitor-panel__compact-button lr3d-monitor-panel__compact-button--track",
|
|
70718
|
-
disabled: !e.cardId || R(
|
|
70834
|
+
disabled: !e.cardId || R(it).loading,
|
|
70719
70835
|
title: e.cardId ? "查询并打开当前人员轨迹面板" : "当前人员缺少卡号,无法查询轨迹",
|
|
70720
|
-
onClick: V((t) => R(
|
|
70721
|
-
}, F(R(
|
|
70722
|
-
|
|
70836
|
+
onClick: V((t) => R(Ot)(e), ["stop"])
|
|
70837
|
+
}, F(R(it).loading && R(it).sceneId === String(e.personSceneId) ? "查询中" : "轨迹播放"), 9, UJ)) : a("", !0),
|
|
70838
|
+
qo(e) ? (O(), o("button", {
|
|
70723
70839
|
key: 1,
|
|
70724
70840
|
type: "button",
|
|
70725
70841
|
class: "lr3d-monitor-panel__compact-button lr3d-monitor-panel__compact-button--track",
|
|
70726
|
-
disabled: !e.personCard || R(
|
|
70842
|
+
disabled: !e.personCard || R(st).loading,
|
|
70727
70843
|
title: e.personCard ? "查询并打开当前车辆轨迹面板" : "当前车辆缺少定位卡号,无法查询轨迹",
|
|
70728
|
-
onClick: V((t) => R(
|
|
70729
|
-
}, F(R(
|
|
70730
|
-
|
|
70844
|
+
onClick: V((t) => R(It)(e), ["stop"])
|
|
70845
|
+
}, F(R(st).loading && R(st).sceneId === String(e.carSceneId) ? "查询中" : "轨迹播放"), 9, WJ)) : a("", !0),
|
|
70846
|
+
Go(e) ? (O(), o("button", {
|
|
70731
70847
|
key: 2,
|
|
70732
70848
|
type: "button",
|
|
70733
|
-
class: S(["lr3d-monitor-panel__placement-button", [
|
|
70734
|
-
"aria-label":
|
|
70735
|
-
disabled: !
|
|
70736
|
-
title:
|
|
70737
|
-
onClick: V((t) => R(
|
|
70849
|
+
class: S(["lr3d-monitor-panel__placement-button", [Mo(e) ? "lr3d-monitor-panel__placement-button--placed" : "lr3d-monitor-panel__placement-button--empty", { "lr3d-monitor-panel__placement-button--active": R(Wi).targetItem?.viewId === e.viewId && R(Wi).status !== "idle" }]]),
|
|
70850
|
+
"aria-label": Mo(e) ? "重新布点" : "布点",
|
|
70851
|
+
disabled: !Wo(e),
|
|
70852
|
+
title: Uo(e) || (Mo(e) ? "重新布点" : "布点"),
|
|
70853
|
+
onClick: V((t) => R(Ma)(e), ["stop"])
|
|
70738
70854
|
}, [...n[57] ||= [s("svg", {
|
|
70739
70855
|
viewBox: "0 0 24 24",
|
|
70740
70856
|
"aria-hidden": "true"
|
|
@@ -70751,71 +70867,71 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
70751
70867
|
fill: "currentColor"
|
|
70752
70868
|
})], -1)]], 10, GJ)) : a("", !0)
|
|
70753
70869
|
])]),
|
|
70754
|
-
!
|
|
70755
|
-
|
|
70870
|
+
!zo(e) && !Yo(e) ? (O(), o("p", KJ, F(Zo(e)), 1)) : a("", !0),
|
|
70871
|
+
Io(e) ? (O(), o("div", qJ, [s("div", JJ, [n[58] ||= s("span", { class: "lr3d-monitor-panel__safety-label" }, "测点值", -1), s("strong", YJ, F($o(e)), 1)]), s("div", XJ, [n[59] ||= s("span", { class: "lr3d-monitor-panel__safety-label" }, "更新时间", -1), s("strong", ZJ, F(Fo(e.data_time)), 1)])])) : Lo(e) ? (O(), o("div", QJ, [s("div", $J, [n[60] ||= s("span", { class: "lr3d-monitor-panel__hydrology-label" }, "监测值", -1), s("strong", eY, F(ts(e)), 1)]), s("div", tY, [s("div", nY, [n[61] ||= s("span", null, "数据时间", -1), s("strong", null, F(Fo(e.data_time ?? e.sj)), 1)]), s("div", rY, [n[62] ||= s("span", null, "状态", -1), s("strong", iY, F(Fo(e.state)), 1)])])])) : zo(e) ? (O(), o("div", aY, [s("div", oY, [(O(!0), o(t, null, M(us(e), ([t, n]) => (O(), o("div", {
|
|
70756
70872
|
key: `${e.viewId}-${t}`,
|
|
70757
70873
|
class: "lr3d-monitor-panel__person-metric"
|
|
70758
|
-
}, [s("span", sY, F(t), 1), s("strong", cY, F(n), 1)]))), 128))])])) :
|
|
70874
|
+
}, [s("span", sY, F(t), 1), s("strong", cY, F(n), 1)]))), 128))])])) : Yo(e) ? (O(), o("div", lY, [(O(!0), o(t, null, M(Ao(e), ([t, n]) => (O(), o("span", {
|
|
70759
70875
|
key: `${e.viewId}-${t}`,
|
|
70760
70876
|
class: "lr3d-monitor-panel__item-chip"
|
|
70761
|
-
}, F(t) + ":" + F(n), 1))), 128))])) :
|
|
70877
|
+
}, F(t) + ":" + F(n), 1))), 128))])) : Ro(e) ? (O(), o("div", uY, [s("div", dY, [(O(!0), o(t, null, M(os(e), ([t, n]) => (O(), o("div", {
|
|
70762
70878
|
key: `${e.viewId}-${t}`,
|
|
70763
70879
|
class: "lr3d-monitor-panel__bundle-summary-item"
|
|
70764
|
-
}, [s("span", fY, F(t), 1), s("strong", pY, F(n), 1)]))), 128))]), s("div", mY, [(O(!0), o(t, null, M(
|
|
70880
|
+
}, [s("span", fY, F(t), 1), s("strong", pY, F(n), 1)]))), 128))]), s("div", mY, [(O(!0), o(t, null, M(ss(e), ([t, n]) => (O(), o("div", {
|
|
70765
70881
|
key: `${e.viewId}-${t}`,
|
|
70766
70882
|
class: "lr3d-monitor-panel__bundle-metric"
|
|
70767
|
-
}, [s("span", hY, F(t), 1), s("strong", gY, F(n), 1)]))), 128))])])) :
|
|
70883
|
+
}, [s("span", hY, F(t), 1), s("strong", gY, F(n), 1)]))), 128))])])) : qo(e) ? (O(), o("div", _Y, [s("div", vY, [(O(!0), o(t, null, M(ms(e), ([t, n]) => (O(), o("div", {
|
|
70768
70884
|
key: `${e.viewId}-${t}`,
|
|
70769
70885
|
class: "lr3d-monitor-panel__car-metric"
|
|
70770
|
-
}, [s("span", yY, F(t), 1), s("strong", bY, F(n), 1)]))), 128))])])) :
|
|
70886
|
+
}, [s("span", yY, F(t), 1), s("strong", bY, F(n), 1)]))), 128))])])) : Jo(e) ? (O(), o("div", xY, [s("div", SY, [(O(!0), o(t, null, M(_s(e), ([t, n]) => (O(), o("div", {
|
|
70771
70887
|
key: `${e.viewId}-${t}`,
|
|
70772
70888
|
class: "lr3d-monitor-panel__broadcast-summary-item"
|
|
70773
|
-
}, [s("span", CY, F(t), 1), s("strong", wY, F(n), 1)]))), 128))]), s("div", TY, [(O(!0), o(t, null, M(
|
|
70889
|
+
}, [s("span", CY, F(t), 1), s("strong", wY, F(n), 1)]))), 128))]), s("div", TY, [(O(!0), o(t, null, M(vs(e), ([t, n]) => (O(), o("div", {
|
|
70774
70890
|
key: `${e.viewId}-${t}`,
|
|
70775
70891
|
class: "lr3d-monitor-panel__broadcast-metric"
|
|
70776
|
-
}, [s("span", EY, F(t), 1), s("strong", DY, F(n), 1)]))), 128))])])) : (O(), o("div", OY, [(O(!0), o(t, null, M(
|
|
70892
|
+
}, [s("span", EY, F(t), 1), s("strong", DY, F(n), 1)]))), 128))])])) : (O(), o("div", OY, [(O(!0), o(t, null, M(Is(e), ([t, n]) => (O(), o("span", {
|
|
70777
70893
|
key: `${e.viewId}-${t}`,
|
|
70778
70894
|
class: "lr3d-monitor-panel__item-chip"
|
|
70779
70895
|
}, F(t) + ":" + F(n), 1))), 128))]))
|
|
70780
|
-
], 8, BJ))), 128))])], 64)) : (O(), o("div", LJ, F(R(
|
|
70781
|
-
s("div", kY, [s("span", AY, F(R(
|
|
70896
|
+
], 8, BJ))), 128))])], 64)) : (O(), o("div", LJ, F(R(ta)), 1))]),
|
|
70897
|
+
s("div", kY, [s("span", AY, F(R(Qi) ? `当前轨迹 ${R(it).rawItems.length} 条` : R($i) ? `当前轨迹 ${R(st).rawItems.length} 条` : `共 ${R(Ji).length} 个测点`), 1), !R(Qi) && !R($i) && R(aa) > 1 ? (O(), o("div", jY, [
|
|
70782
70898
|
s("button", {
|
|
70783
70899
|
type: "button",
|
|
70784
70900
|
class: "lr3d-monitor-panel__page-btn",
|
|
70785
|
-
disabled: R(
|
|
70786
|
-
onClick: n[32] ||= (e) => --
|
|
70901
|
+
disabled: R(Bi) <= 1,
|
|
70902
|
+
onClick: n[32] ||= (e) => --Bi.value
|
|
70787
70903
|
}, " 上一页 ", 8, MY),
|
|
70788
|
-
s("span", NY, F(R(
|
|
70904
|
+
s("span", NY, F(R(Bi)) + " / " + F(R(aa)), 1),
|
|
70789
70905
|
s("button", {
|
|
70790
70906
|
type: "button",
|
|
70791
70907
|
class: "lr3d-monitor-panel__page-btn",
|
|
70792
|
-
disabled: R(
|
|
70793
|
-
onClick: n[33] ||= (e) =>
|
|
70908
|
+
disabled: R(Bi) >= R(aa),
|
|
70909
|
+
onClick: n[33] ||= (e) => Bi.value += 1
|
|
70794
70910
|
}, " 下一页 ", 8, PY)
|
|
70795
70911
|
])) : a("", !0)])
|
|
70796
70912
|
])) : a("", !0)])) : a("", !0),
|
|
70797
|
-
|
|
70913
|
+
Cs.value && pe.value ? (O(), i(OG, {
|
|
70798
70914
|
key: 10,
|
|
70799
70915
|
visible: !0,
|
|
70800
70916
|
"debug-scene-background-color": U.value,
|
|
70801
70917
|
"manual-load-state": fe.value,
|
|
70802
70918
|
"debug-tool-name": H.value,
|
|
70803
|
-
"debug-action-log": R(
|
|
70919
|
+
"debug-action-log": R(Se),
|
|
70804
70920
|
"onUpdate:debugSceneBackgroundColor": n[34] ||= (e) => U.value = e,
|
|
70805
70921
|
"onUpdate:debugToolName": n[35] ||= (e) => H.value = e,
|
|
70806
|
-
onSceneBackgroundInput:
|
|
70807
|
-
onExecuteAction:
|
|
70922
|
+
onSceneBackgroundInput: Ms,
|
|
70923
|
+
onExecuteAction: dc
|
|
70808
70924
|
}, null, 8, [
|
|
70809
70925
|
"debug-scene-background-color",
|
|
70810
70926
|
"manual-load-state",
|
|
70811
70927
|
"debug-tool-name",
|
|
70812
70928
|
"debug-action-log"
|
|
70813
70929
|
])) : a("", !0),
|
|
70814
|
-
R(
|
|
70815
|
-
R(
|
|
70930
|
+
R(xe) === "idle" || R(xe) === "loading" ? (O(), o("div", FY, [...n[63] ||= [s("p", null, "正在准备三维场景", -1), s("small", null, "SDK 脚本加载完成后会在当前容器内创建最小场景实例", -1)]])) : a("", !0),
|
|
70931
|
+
R(xe) === "error" ? (O(), o("div", IY, [...n[64] ||= [s("p", null, "最小初始化未完成", -1), s("small", null, "请根据状态信息检查 SDK 依赖或资源路径", -1)]])) : a("", !0)
|
|
70816
70932
|
])])]));
|
|
70817
70933
|
}
|
|
70818
|
-
}, [["__scopeId", "data-v-
|
|
70934
|
+
}, [["__scopeId", "data-v-ce8dcf83"]]), tZ = { class: "lr-map-viewer" }, nZ = { class: "lr-map-viewer__stack" }, rZ = /* @__PURE__ */ $M({
|
|
70819
70935
|
__name: "LrMapViewer",
|
|
70820
70936
|
props: {
|
|
70821
70937
|
mode: {
|
|
@@ -71287,7 +71403,7 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
71287
71403
|
setActiveVideoMonitorIds: dt,
|
|
71288
71404
|
highlightVideoMonitor: ft,
|
|
71289
71405
|
clearVideoMonitorHighlight: pt
|
|
71290
|
-
}), (t, n) => (O(), o("section",
|
|
71406
|
+
}), (t, n) => (O(), o("section", tZ, [s("div", nZ, [ee.value ? (O(), o("div", {
|
|
71291
71407
|
key: 0,
|
|
71292
71408
|
class: S(["lr-map-viewer__layer", ae("2d")])
|
|
71293
71409
|
}, [oe("2d") && D.value === "ready" ? (O(), i(vU, {
|
|
@@ -71305,7 +71421,7 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
71305
71421
|
}, [s("p", null, F(V("2d")), 1), s("small", null, F(H("2d")), 1)], 2)) : a("", !0)], 2)) : a("", !0), te.value ? (O(), o("div", {
|
|
71306
71422
|
key: 1,
|
|
71307
71423
|
class: S(["lr-map-viewer__layer", ae("3d")])
|
|
71308
|
-
}, [oe("3d") && j.value === "ready" ? (O(), i(
|
|
71424
|
+
}, [oe("3d") && j.value === "ready" ? (O(), i(eZ, {
|
|
71309
71425
|
key: 0,
|
|
71310
71426
|
ref_key: "lr3dViewerRef",
|
|
71311
71427
|
ref: d,
|
|
@@ -71329,10 +71445,10 @@ var cG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAA
|
|
|
71329
71445
|
class: S(["lr-map-viewer__placeholder", { "lr-map-viewer__placeholder--error": j.value === "error" }])
|
|
71330
71446
|
}, [s("p", null, F(V("3d")), 1), s("small", null, F(H("3d")), 1)], 2)) : a("", !0)], 2)) : a("", !0)])]));
|
|
71331
71447
|
}
|
|
71332
|
-
}, [["__scopeId", "data-v-e838ebad"]]),
|
|
71333
|
-
function
|
|
71334
|
-
!e || typeof e.component != "function" || (WR(e), e.component(
|
|
71448
|
+
}, [["__scopeId", "data-v-e838ebad"]]), iZ = "LrMapViewer";
|
|
71449
|
+
function aZ(e) {
|
|
71450
|
+
!e || typeof e.component != "function" || (WR(e), e.component(iZ, rZ));
|
|
71335
71451
|
}
|
|
71336
|
-
var
|
|
71452
|
+
var oZ = { install: aZ };
|
|
71337
71453
|
//#endregion
|
|
71338
|
-
export { vU as Lr2dViewer,
|
|
71454
|
+
export { vU as Lr2dViewer, eZ as Lr3dViewer, rZ as LrMapViewer, bN as LrMonitorPointPopupPanel, cM as canSwitchMapMode, sT as createLr2dAdapter, tj as createLr3dInstance, oZ as default, lT as destroyLr2dAdapter, ej as destroyLr3dInstance, Zw as getDefaultLr2dConfig, OT as getDefaultLr3dConfig, cT as getLr2dAdapterInstance, Qw as getLr2dConfig, $w as getLr2dMapOptions, rj as getLr3dApp, kT as getLr3dConfig, ij as getLr3dEditor, JA as getLr3dGlobal, QA as getLr3dInstance, aj as getLr3dInterfaces, Jw as getMissingLr2dOptionFields, qw as getRequiredLr2dOptionFields, iM as getSupportedMapModes, XW as gisManualLoadLabels, aZ as install, Yw as isLr2dConfigReady, oG as loadGisCloudDataSource, sG as loadGisManualData, Vj as loadLr3dBoundaryData, Rj as loadLr3dCloudDataSource, Wj as loadLr3dCoalData, Bj as loadLr3dCoalResversData, Gj as loadLr3dGeoFaultData, Hj as loadLr3dGeologyData, Uj as loadLr3dPointSymbolData, zj as loadLr3dRegionAssistData, YA as loadLr3dSdk, aM as normalizeMapMode, cj as refreshLr3dSceneGraph, tT as resetLr2dConfig, FT as resetLr3dConfig, uT as resizeLr2dAdapter, oj as resizeLr3d, $A as resizeLr3dInstance, sM as resolveInitialMapMode, nT as resolveLr2dConfig, IT as resolveLr3dConfig, oM as resolveMapModes, lj as runLr3dTool, eT as setLr2dConfig, PT as setLr3dConfig };
|