@zhangdali1996/lr-map-viewer 0.0.11 → 0.0.12

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.
@@ -52690,7 +52690,12 @@ var Ck = class {
52690
52690
  "0202030004": "回采工作面",
52691
52691
  "0202030006": "采空区"
52692
52692
  }, Ek = /* @__PURE__ */ new Map(), Dk = null;
52693
- function Ok(e = mw().globalNames) {
52693
+ function Ok() {
52694
+ if (typeof window > "u") return;
52695
+ let e = window.lr3dapp ?? Dk;
52696
+ e && typeof e.onWindowResize == "function" && e.onWindowResize();
52697
+ }
52698
+ function kk(e = mw().globalNames) {
52694
52699
  if (typeof window > "u") return null;
52695
52700
  for (let t of e) if (window[t]) return {
52696
52701
  name: t,
@@ -52698,7 +52703,7 @@ function Ok(e = mw().globalNames) {
52698
52703
  };
52699
52704
  return null;
52700
52705
  }
52701
- function kk(e = []) {
52706
+ function Ak(e = []) {
52702
52707
  if (typeof window > "u") return null;
52703
52708
  for (let t of e) if (window[t]) return {
52704
52709
  name: t,
@@ -52706,7 +52711,7 @@ function kk(e = []) {
52706
52711
  };
52707
52712
  return null;
52708
52713
  }
52709
- async function Ak(e, t = {}) {
52714
+ async function jk(e, t = {}) {
52710
52715
  let { src: n, globalNames: r = [] } = e;
52711
52716
  if (!n) throw Error("存在未配置脚本地址的 SDK 前置依赖");
52712
52717
  try {
@@ -52714,18 +52719,18 @@ async function Ak(e, t = {}) {
52714
52719
  } catch {
52715
52720
  throw Error(`SDK 前置依赖加载失败: ${n}`);
52716
52721
  }
52717
- if (r.length > 0 && !kk(r)) throw Error(`SDK 前置依赖已加载,但未检测到全局对象: ${r.join(", ")} (${n})`);
52722
+ if (r.length > 0 && !Ak(r)) throw Error(`SDK 前置依赖已加载,但未检测到全局对象: ${r.join(", ")} (${n})`);
52718
52723
  }
52719
- function jk(e = mw().globalNames) {
52720
- return Ok(e);
52724
+ function Mk(e = mw().globalNames) {
52725
+ return kk(e);
52721
52726
  }
52722
- async function Mk(e = {}) {
52727
+ async function Nk(e = {}) {
52723
52728
  let t = mw(), n = t.scriptSrc, r = t.globalNames, i = t.dependencies ?? [], { src: a = n, globalNames: o = r, dependencies: s = i, validateGlobal: c = !0, scriptOptions: l = {} } = e, u = `${a}::${s.map(({ src: e }) => e).join("|")}`;
52724
52729
  if (Ek.has(u)) return Ek.get(u);
52725
52730
  let d = (async () => {
52726
- for (let e of s) await Ak(e, l);
52731
+ for (let e of s) await jk(e, l);
52727
52732
  await ZC(a, l);
52728
- let e = Ok(o);
52733
+ let e = kk(o);
52729
52734
  if (c && !e) throw Error(`龙软 GIS SDK 脚本已加载,但未检测到全局对象: ${o.join(", ")}`);
52730
52735
  return {
52731
52736
  src: a,
@@ -52739,7 +52744,7 @@ async function Mk(e = {}) {
52739
52744
  throw Ek.delete(u), e;
52740
52745
  }
52741
52746
  }
52742
- function Nk(e) {
52747
+ function Pk(e) {
52743
52748
  return [
52744
52749
  e?.value?.EditorApp,
52745
52750
  e?.value,
@@ -52747,67 +52752,67 @@ function Nk(e) {
52747
52752
  window.EditorApp
52748
52753
  ].find((e) => typeof e == "function") ?? null;
52749
52754
  }
52750
- function Pk(e) {
52755
+ function Fk(e) {
52751
52756
  e && e.replaceChildren();
52752
52757
  }
52753
- function Fk() {
52758
+ function Ik() {
52754
52759
  return Dk;
52755
52760
  }
52756
- function Ik() {
52757
- Dk && typeof Dk.onWindowResize == "function" && Dk.onWindowResize();
52761
+ function Lk() {
52762
+ Ok();
52758
52763
  }
52759
- function Lk(e = null) {
52760
- typeof window < "u" && Dk && typeof Dk.onWindowResize == "function" && window.removeEventListener("resize", Dk.onWindowResize, !1), typeof window < "u" && window.lr3dapp === Dk && delete window.lr3dapp, Pk(e), Dk = null;
52764
+ function Rk(e = null) {
52765
+ typeof window < "u" && window.removeEventListener("resize", Ok, !1), typeof window < "u" && window.lr3dapp === Dk && delete window.lr3dapp, Fk(e), Dk = null;
52761
52766
  }
52762
- async function Rk(e, t = {}) {
52767
+ async function zk(e, t = {}) {
52763
52768
  let n = hw(), r = gw();
52764
52769
  if (!e) throw Error(`未找到场景容器: ${n.containerId}`);
52765
- Lk(e);
52766
- let { initOptions: i = {}, autoResize: a = n.autoResize } = t, { global: o } = await Mk(), s = Nk(o);
52770
+ Rk(e);
52771
+ let { initOptions: i = {}, autoResize: a = n.autoResize } = t, { global: o } = await Nk(), s = Pk(o);
52767
52772
  if (!s) throw Error("未检测到可用的 EditorApp 构造器");
52768
52773
  return Dk = new s({
52769
52774
  ...r,
52770
52775
  ...i,
52771
52776
  dom: e
52772
- }), typeof window < "u" && (window.lr3dapp = Dk), a && Ik(), {
52777
+ }), typeof window < "u" && (window.lr3dapp = Dk), a && (typeof window < "u" && (window.removeEventListener("resize", Ok, !1), window.addEventListener("resize", Ok, !1)), Lk()), {
52773
52778
  instance: Dk,
52774
52779
  globalName: o?.name ?? "未知"
52775
52780
  };
52776
52781
  }
52777
- function zk() {
52778
- let e = Fk();
52782
+ function Bk() {
52783
+ let e = Ik();
52779
52784
  if (!e) throw Error("龙软 GIS 三维实例不存在,请先完成场景初始化");
52780
52785
  return e;
52781
52786
  }
52782
- function Bk() {
52783
- return zk();
52784
- }
52785
52787
  function Vk() {
52786
- let e = zk();
52788
+ return Bk();
52789
+ }
52790
+ function Hk() {
52791
+ let e = Bk();
52787
52792
  if (!e.editor) throw Error("当前三维实例缺少 editor 对象");
52788
52793
  return e.editor;
52789
52794
  }
52790
- function Hk() {
52791
- let e = zk();
52795
+ function Uk() {
52796
+ let e = Bk();
52792
52797
  if (!e.interfaces) throw Error("当前三维实例缺少 interfaces 对象");
52793
52798
  return e.interfaces;
52794
52799
  }
52795
- function Uk() {
52796
- Ik();
52800
+ function Wk() {
52801
+ Lk();
52797
52802
  }
52798
- function Wk(e) {
52803
+ function Gk(e) {
52799
52804
  e?.interfaces?.signals?.sceneGraphChanged?.dispatch?.(), e?.editor?.signals?.sceneGraphChanged?.dispatch?.();
52800
52805
  }
52801
- function Gk() {
52802
- Wk(zk());
52806
+ function Kk() {
52807
+ Gk(Bk());
52803
52808
  }
52804
- async function Kk(e, t = null) {
52809
+ async function qk(e, t = null) {
52805
52810
  if (!e || typeof e != "string") throw Error("toolName 必须是非空字符串");
52806
- let n = zk();
52811
+ let n = Bk();
52807
52812
  if (typeof n.activeTool != "function") throw Error("当前三维实例不支持 activeTool 接口");
52808
52813
  return n.activeTool(e, t);
52809
52814
  }
52810
- function qk(e) {
52815
+ function Jk(e) {
52811
52816
  if (Array.isArray(e)) {
52812
52817
  let t = e.map((e) => Number(e));
52813
52818
  if (t.length >= 4 && t.slice(0, 4).every((e) => Number.isFinite(e))) return {
@@ -52829,14 +52834,14 @@ function qk(e) {
52829
52834
  };
52830
52835
  throw Error("云 GIS 数据源配置错误: basePoint 必须为包含 x/y/z 的对象");
52831
52836
  }
52832
- function Jk(e) {
52837
+ function Yk(e) {
52833
52838
  let t = Number(e?.laneSize?.width), n = Number(e?.laneSize?.height);
52834
52839
  return {
52835
52840
  width: Number.isFinite(t) && t > 0 ? t : 10,
52836
52841
  height: Number.isFinite(n) && n > 0 ? n : 10
52837
52842
  };
52838
52843
  }
52839
- function Yk(e = {}) {
52844
+ function Xk(e = {}) {
52840
52845
  let t = _w(), n = e.loadMode ?? t?.loadMode ?? "all", r = e.regionFeatureTypes ?? t?.cloud?.regionFeatureTypes ?? wk, i = e.enableLane ?? t?.cloud?.enableLane ?? !1, a = {
52841
52846
  ...t?.cloud ?? {},
52842
52847
  ...e,
@@ -52863,8 +52868,8 @@ function Yk(e = {}) {
52863
52868
  ...a,
52864
52869
  loadMode: n,
52865
52870
  enableLane: !!a.enableLane,
52866
- basePoint: qk(a.basePoint),
52867
- laneSize: Jk(a),
52871
+ basePoint: Jk(a.basePoint),
52872
+ laneSize: Yk(a),
52868
52873
  coalLayers: a.coalLayers.map((e) => typeof e == "string" ? e.trim() : "").filter(Boolean),
52869
52874
  layers: (a.layers ?? []).map((e) => typeof e == "string" ? e.trim() : "").filter(Boolean),
52870
52875
  geofaultLayers: (a.geofaultLayers ?? []).map((e) => typeof e == "string" ? e.trim() : "").filter(Boolean),
@@ -52872,30 +52877,30 @@ function Yk(e = {}) {
52872
52877
  workfaceFeatureTypes: o
52873
52878
  };
52874
52879
  }
52875
- function Xk(e) {
52880
+ function Zk(e) {
52876
52881
  return e?.attributes?.FEATURETYPE?.data ?? e?.attributes?.FeatureType?.data ?? "";
52877
52882
  }
52878
- function Zk(e, t) {
52883
+ function Qk(e, t) {
52879
52884
  let n = e?.attributes?.[t]?.data;
52880
52885
  return typeof n == "string" ? n.trim() : "";
52881
52886
  }
52882
- function Qk(e) {
52883
- return Zk(e, "工作面名称") || Zk(e, "FEATUREID") || Zk(e, "名称") || Zk(e, "FEATURENAME") || "";
52884
- }
52885
52887
  function $k(e) {
52888
+ return Qk(e, "工作面名称") || Qk(e, "FEATUREID") || Qk(e, "名称") || Qk(e, "FEATURENAME") || "";
52889
+ }
52890
+ function eA(e) {
52886
52891
  return Tk[e] ?? `类型 ${e || "未知"}`;
52887
52892
  }
52888
- function eA(e, t) {
52889
- return t === "0202030030" ? Qk(e) : Zk(e, "FEATUREID") || Zk(e, "名称") || Zk(e, "FEATURENAME") || Zk(e, "工作面名称") || "";
52893
+ function tA(e, t) {
52894
+ return t === "0202030030" ? $k(e) : Qk(e, "FEATUREID") || Qk(e, "名称") || Qk(e, "FEATURENAME") || Qk(e, "工作面名称") || "";
52890
52895
  }
52891
- function tA(e) {
52892
- let t = gA(e), n = [];
52896
+ function nA(e) {
52897
+ let t = _A(e), n = [];
52893
52898
  return t.forEach((e) => {
52894
52899
  let t = typeof e?.layer == "string" ? e.layer : "";
52895
52900
  !t || !Array.isArray(e?.features) || e.features.forEach((e) => {
52896
52901
  let r = String(e?.id ?? "").trim();
52897
52902
  if (!r) return;
52898
- let i = String(Xk(e)).trim(), a = Zk(e, "FEATUREID"), o = Zk(e, "FEATURENAME"), s = Zk(e, "工作面名称"), c = $k(i), l = eA(e, i) || `${c}-${r}`, u = `${t}::${r}`;
52903
+ let i = String(Zk(e)).trim(), a = Qk(e, "FEATUREID"), o = Qk(e, "FEATURENAME"), s = Qk(e, "工作面名称"), c = eA(i), l = tA(e, i) || `${c}-${r}`, u = `${t}::${r}`;
52899
52904
  n.push({
52900
52905
  key: u,
52901
52906
  featureType: i,
@@ -52910,10 +52915,10 @@ function tA(e) {
52910
52915
  });
52911
52916
  }), n;
52912
52917
  }
52913
- function nA(e) {
52914
- return Zk(e, "FEATURENAME") || Zk(e, "名称") || Zk(e, "ID") || Zk(e, "FEATUREID") || "";
52915
- }
52916
52918
  function rA(e) {
52919
+ return Qk(e, "FEATURENAME") || Qk(e, "名称") || Qk(e, "ID") || Qk(e, "FEATUREID") || "";
52920
+ }
52921
+ function iA(e) {
52917
52922
  if (e?.geometry?.type === "Point" && Array.isArray(e?.geometry?.coordinates)) {
52918
52923
  let [t, n, r] = e.geometry.coordinates;
52919
52924
  return [{
@@ -52928,14 +52933,14 @@ function rA(e) {
52928
52933
  z: Number(n)
52929
52934
  })) : [];
52930
52935
  }
52931
- function iA(e) {
52932
- let t = gA(e), n = [];
52936
+ function aA(e) {
52937
+ let t = _A(e), n = [];
52933
52938
  return t.forEach((e) => {
52934
52939
  let t = typeof e?.layer == "string" ? e.layer : "";
52935
52940
  !t || !Array.isArray(e?.features) || e.features.forEach((e) => {
52936
52941
  let r = String(e?.id ?? "").trim();
52937
52942
  if (!r) return;
52938
- let i = Zk(e, "FEATUREID"), a = Zk(e, "FEATURENAME"), o = String(Xk(e)).trim(), s = nA(e) || `巷道-${r}`, c = `${t}::${r}`;
52943
+ let i = Qk(e, "FEATUREID"), a = Qk(e, "FEATURENAME"), o = String(Zk(e)).trim(), s = rA(e) || `巷道-${r}`, c = `${t}::${r}`;
52939
52944
  n.push({
52940
52945
  key: c,
52941
52946
  layerName: t,
@@ -52945,12 +52950,12 @@ function iA(e) {
52945
52950
  featureType: o,
52946
52951
  typeLabel: "巷道",
52947
52952
  displayName: s,
52948
- coordinates: rA(e)
52953
+ coordinates: iA(e)
52949
52954
  });
52950
52955
  });
52951
52956
  }), n;
52952
52957
  }
52953
- function aA(e, t = []) {
52958
+ function oA(e, t = []) {
52954
52959
  let n = new Set(t), r = e?.data?.featureGroups;
52955
52960
  if (!Array.isArray(r)) return {
52956
52961
  ...e ?? {},
@@ -52961,7 +52966,7 @@ function aA(e, t = []) {
52961
52966
  }
52962
52967
  };
52963
52968
  let i = r.map((e) => {
52964
- let t = Array.isArray(e?.features) ? e.features.filter((e) => n.has(String(Xk(e)).trim())) : [];
52969
+ let t = Array.isArray(e?.features) ? e.features.filter((e) => n.has(String(Zk(e)).trim())) : [];
52965
52970
  return {
52966
52971
  ...e,
52967
52972
  features: t
@@ -52975,7 +52980,7 @@ function aA(e, t = []) {
52975
52980
  }
52976
52981
  };
52977
52982
  }
52978
- function oA(e, t = []) {
52983
+ function sA(e, t = []) {
52979
52984
  let n = new Set(t.map((e) => typeof e == "string" ? e.trim() : "").filter(Boolean)), r = e?.data?.featureGroups;
52980
52985
  if (n.size === 0) return e;
52981
52986
  if (!Array.isArray(r)) return {
@@ -52996,16 +53001,16 @@ function oA(e, t = []) {
52996
53001
  }
52997
53002
  };
52998
53003
  }
52999
- function sA(e, t) {
53000
- return aA(e, t);
53004
+ function cA(e, t) {
53005
+ return oA(e, t);
53001
53006
  }
53002
- function cA(e) {
53007
+ function lA(e) {
53003
53008
  return e.reduce((e, t) => e + (Array.isArray(t?.features) ? t.features.length : 0), 0);
53004
53009
  }
53005
- function lA(e, t) {
53010
+ function uA(e, t) {
53006
53011
  e && (e.basePoint && typeof e.basePoint.copy == "function" ? e.basePoint.copy(t) : e.basePoint = { ...t }, e.isSetBasePoint = !0);
53007
53012
  }
53008
- function uA(e, t) {
53013
+ function dA(e, t) {
53009
53014
  !e || typeof e.getLayerGroup != "function" || t.forEach((t) => {
53010
53015
  let n = t?.layer;
53011
53016
  if (typeof n != "string" || !n) return;
@@ -53013,17 +53018,17 @@ function uA(e, t) {
53013
53018
  r && (r.visible = !0);
53014
53019
  });
53015
53020
  }
53016
- function dA(e) {
53021
+ function fA(e) {
53017
53022
  return e?.editor?.manager?.modules?.regionmodule ?? e?.interfaces?.manager?.modules?.regionmodule;
53018
53023
  }
53019
- function fA(e) {
53024
+ function pA(e) {
53020
53025
  return e?.editor?.manager?.modules?.lanemodulen ?? e?.interfaces?.manager?.modules?.lanemodulen;
53021
53026
  }
53022
- function pA(e) {
53027
+ function mA(e) {
53023
53028
  return [...new Set(e.map((e) => e?.layer).filter((e) => typeof e == "string" && e))];
53024
53029
  }
53025
- function mA(e, t, n, r = 1500, i = 50) {
53026
- let a = pA(n);
53030
+ function hA(e, t, n, r = 1500, i = 50) {
53031
+ let a = mA(n);
53027
53032
  if (a.length === 0) return Promise.resolve(!1);
53028
53033
  let o = Date.now();
53029
53034
  return new Promise((n) => {
@@ -53045,7 +53050,7 @@ function mA(e, t, n, r = 1500, i = 50) {
53045
53050
  s();
53046
53051
  });
53047
53052
  }
53048
- function hA() {
53053
+ function gA() {
53049
53054
  return new Promise((e) => {
53050
53055
  if (typeof requestAnimationFrame == "function") {
53051
53056
  requestAnimationFrame(() => e());
@@ -53054,26 +53059,26 @@ function hA() {
53054
53059
  setTimeout(e, 16);
53055
53060
  });
53056
53061
  }
53057
- function gA(e) {
53062
+ function _A(e) {
53058
53063
  return Array.isArray(e?.data?.featureGroups) ? e.data.featureGroups : [];
53059
53064
  }
53060
- function _A(e) {
53061
- let t = gA(e);
53065
+ function vA(e) {
53066
+ let t = _A(e);
53062
53067
  return {
53063
53068
  featureGroupCount: t.length,
53064
- featureCount: cA(t),
53069
+ featureCount: lA(t),
53065
53070
  featureGroups: t
53066
53071
  };
53067
53072
  }
53068
- async function vA(e) {
53073
+ async function yA(e) {
53069
53074
  let t = await e.queryFeatureDict();
53070
53075
  t?.code === 0 && Array.isArray(t?.data?.Features) && (e.featureDict = t.data.Features);
53071
53076
  }
53072
- async function yA(e, t = !0) {
53073
- t && (Wk(e), await hA()), e.editor && typeof e.editor.focusScene == "function" && e.editor.focusScene();
53077
+ async function bA(e, t = !0) {
53078
+ t && (Gk(e), await gA()), e.editor && typeof e.editor.focusScene == "function" && e.editor.focusScene();
53074
53079
  }
53075
- async function bA(e = {}) {
53076
- let t = zk(), n = Yk(e), r = new Ck({
53080
+ async function xA(e = {}) {
53081
+ let t = Bk(), n = Xk(e), r = new Ck({
53077
53082
  server: n.server,
53078
53083
  username: n.username,
53079
53084
  password: n.password,
@@ -53084,7 +53089,7 @@ async function bA(e = {}) {
53084
53089
  typeof window < "u" && (window.lr3dLoader = r);
53085
53090
  let i = await r.getDatasource();
53086
53091
  if (!i) throw Error("云 GIS 数据源认证失败或未返回数据源列表");
53087
- return lA(t, n.basePoint), {
53092
+ return uA(t, n.basePoint), {
53088
53093
  app: t,
53089
53094
  config: n,
53090
53095
  datasource: i,
@@ -53092,18 +53097,18 @@ async function bA(e = {}) {
53092
53097
  basePoint: n.basePoint
53093
53098
  };
53094
53099
  }
53095
- async function xA(e = {}) {
53096
- let { app: t, config: n, datasource: r, loader: i, basePoint: a } = await bA(e);
53100
+ async function SA(e = {}) {
53101
+ let { app: t, config: n, datasource: r, loader: i, basePoint: a } = await xA(e);
53097
53102
  if (n.loadMode === "workfaceOnly") {
53098
- let e = oA(aA(await i.queryRegionData(), n.regionFeatureTypes), n.layers), o = gA(e), s = gA(sA(e, n.workfaceFeatureTypes)), c = tA(e), l = new Set(n.workfaceFeatureTypes), u = c.filter((e) => l.has(e.featureType)), d = {
53103
+ let e = sA(oA(await i.queryRegionData(), n.regionFeatureTypes), n.layers), o = _A(e), s = _A(cA(e, n.workfaceFeatureTypes)), c = nA(e), l = new Set(n.workfaceFeatureTypes), u = c.filter((e) => l.has(e.featureType)), d = {
53099
53104
  featureGroupCount: s.length,
53100
- featureCount: cA(s),
53105
+ featureCount: lA(s),
53101
53106
  featureTypes: n.workfaceFeatureTypes,
53102
53107
  items: u,
53103
53108
  renderReady: !1
53104
53109
  }, f = {
53105
53110
  featureGroupCount: o.length,
53106
- featureCount: cA(o),
53111
+ featureCount: lA(o),
53107
53112
  featureTypes: n.regionFeatureTypes,
53108
53113
  items: c
53109
53114
  }, p = {
@@ -53113,11 +53118,11 @@ async function xA(e = {}) {
53113
53118
  items: [],
53114
53119
  renderReady: !1
53115
53120
  };
53116
- if (f.featureGroupCount > 0 && (await i.addRegionData(e), d.renderReady = await mA(dA, t, o) && d.featureGroupCount > 0, uA(dA(t), o)), n.enableLane) {
53117
- let e = oA(await i.queryLaneData(), n.layers), r = gA(e);
53118
- p.featureGroupCount = r.length, p.featureCount = cA(r), p.items = iA(e), p.featureGroupCount > 0 && (await i.addLaneData(e), p.renderReady = await mA(fA, t, r), uA(fA(t), r));
53121
+ if (f.featureGroupCount > 0 && (await i.addRegionData(e), d.renderReady = await hA(fA, t, o) && d.featureGroupCount > 0, dA(fA(t), o)), n.enableLane) {
53122
+ let e = sA(await i.queryLaneData(), n.layers), r = _A(e);
53123
+ p.featureGroupCount = r.length, p.featureCount = lA(r), p.items = aA(e), p.featureGroupCount > 0 && (await i.addLaneData(e), p.renderReady = await hA(pA, t, r), dA(pA(t), r));
53119
53124
  }
53120
- return await yA(t, f.featureGroupCount > 0 || p.featureGroupCount > 0), {
53125
+ return await bA(t, f.featureGroupCount > 0 || p.featureGroupCount > 0), {
53121
53126
  loadMode: n.loadMode,
53122
53127
  datasource: r,
53123
53128
  regions: f,
@@ -53129,7 +53134,7 @@ async function xA(e = {}) {
53129
53134
  i.coalLayers = n.coalLayers, i.geofaultLayers = n.geofaultLayers;
53130
53135
  let o = await i.load();
53131
53136
  if (!o) throw Error("云 GIS 数据加载失败");
53132
- return await yA(t, !0), {
53137
+ return await bA(t, !0), {
53133
53138
  loadMode: n.loadMode,
53134
53139
  layers: o,
53135
53140
  datasource: r,
@@ -53137,9 +53142,9 @@ async function xA(e = {}) {
53137
53142
  geofaultLayers: n.geofaultLayers
53138
53143
  };
53139
53144
  }
53140
- async function SA(e = {}) {
53141
- let { app: t, datasource: n, loader: r, basePoint: i } = await bA(e), a = await r.queryRegionAssistData(), { featureGroupCount: o, featureCount: s } = _A(a);
53142
- return o > 0 && await r.addRegionAssistData(a), await yA(t, o > 0), {
53145
+ async function CA(e = {}) {
53146
+ let { app: t, datasource: n, loader: r, basePoint: i } = await xA(e), a = await r.queryRegionAssistData(), { featureGroupCount: o, featureCount: s } = vA(a);
53147
+ return o > 0 && await r.addRegionAssistData(a), await bA(t, o > 0), {
53143
53148
  datasource: n,
53144
53149
  basePoint: i,
53145
53150
  featureGroupCount: o,
@@ -53147,11 +53152,11 @@ async function SA(e = {}) {
53147
53152
  loadSuccess: o > 0
53148
53153
  };
53149
53154
  }
53150
- async function CA(e = {}) {
53151
- let { app: t, datasource: n, loader: r, basePoint: i } = await bA(e);
53152
- await vA(r);
53153
- let a = await r.queryCoalResversData(), { featureGroupCount: o, featureCount: s } = _A(a);
53154
- return o > 0 && await r.addCoalResversData(a), await yA(t, o > 0), {
53155
+ async function wA(e = {}) {
53156
+ let { app: t, datasource: n, loader: r, basePoint: i } = await xA(e);
53157
+ await yA(r);
53158
+ let a = await r.queryCoalResversData(), { featureGroupCount: o, featureCount: s } = vA(a);
53159
+ return o > 0 && await r.addCoalResversData(a), await bA(t, o > 0), {
53155
53160
  datasource: n,
53156
53161
  basePoint: i,
53157
53162
  featureGroupCount: o,
@@ -53159,9 +53164,9 @@ async function CA(e = {}) {
53159
53164
  loadSuccess: o > 0
53160
53165
  };
53161
53166
  }
53162
- async function wA(e = {}) {
53163
- let { app: t, datasource: n, loader: r, basePoint: i } = await bA(e), a = await r.queryBoundaryData(), { featureGroupCount: o, featureCount: s } = _A(a);
53164
- return o > 0 && await r.addBoundaryData(a), await yA(t, o > 0), {
53167
+ async function TA(e = {}) {
53168
+ let { app: t, datasource: n, loader: r, basePoint: i } = await xA(e), a = await r.queryBoundaryData(), { featureGroupCount: o, featureCount: s } = vA(a);
53169
+ return o > 0 && await r.addBoundaryData(a), await bA(t, o > 0), {
53165
53170
  datasource: n,
53166
53171
  basePoint: i,
53167
53172
  featureGroupCount: o,
@@ -53169,9 +53174,9 @@ async function wA(e = {}) {
53169
53174
  loadSuccess: o > 0
53170
53175
  };
53171
53176
  }
53172
- async function TA(e = {}) {
53173
- let { app: t, datasource: n, loader: r, basePoint: i } = await bA(e), a = await r.queryGeologyData(), { featureGroupCount: o, featureCount: s } = _A(a);
53174
- return o > 0 && await r.addGeologyData(a), await yA(t, o > 0), {
53177
+ async function EA(e = {}) {
53178
+ let { app: t, datasource: n, loader: r, basePoint: i } = await xA(e), a = await r.queryGeologyData(), { featureGroupCount: o, featureCount: s } = vA(a);
53179
+ return o > 0 && await r.addGeologyData(a), await bA(t, o > 0), {
53175
53180
  datasource: n,
53176
53181
  basePoint: i,
53177
53182
  featureGroupCount: o,
@@ -53179,9 +53184,9 @@ async function TA(e = {}) {
53179
53184
  loadSuccess: o > 0
53180
53185
  };
53181
53186
  }
53182
- async function EA(e = {}) {
53183
- let { app: t, datasource: n, loader: r, basePoint: i } = await bA(e), a = await r.queryPointSymbolData(), { featureGroupCount: o, featureCount: s } = _A(a);
53184
- return o > 0 && await r.addPointSymbolData(a), await yA(t, o > 0), {
53187
+ async function DA(e = {}) {
53188
+ let { app: t, datasource: n, loader: r, basePoint: i } = await xA(e), a = await r.queryPointSymbolData(), { featureGroupCount: o, featureCount: s } = vA(a);
53189
+ return o > 0 && await r.addPointSymbolData(a), await bA(t, o > 0), {
53185
53190
  datasource: n,
53186
53191
  basePoint: i,
53187
53192
  featureGroupCount: o,
@@ -53189,13 +53194,13 @@ async function EA(e = {}) {
53189
53194
  loadSuccess: o > 0
53190
53195
  };
53191
53196
  }
53192
- async function DA(e = {}) {
53193
- let { app: t, config: n, datasource: r, loader: i, basePoint: a } = await bA(e), o = n.coalLayers, s = [];
53197
+ async function OA(e = {}) {
53198
+ let { app: t, config: n, datasource: r, loader: i, basePoint: a } = await xA(e), o = n.coalLayers, s = [];
53194
53199
  for (let e of o) {
53195
53200
  let t = await i.queryCoalData(e);
53196
53201
  t?.data?.attributes && (await i.addCoalData(t, e), s.push(e));
53197
53202
  }
53198
- return await yA(t, s.length > 0), {
53203
+ return await bA(t, s.length > 0), {
53199
53204
  datasource: r,
53200
53205
  basePoint: a,
53201
53206
  configuredLayerNames: o,
@@ -53205,13 +53210,13 @@ async function DA(e = {}) {
53205
53210
  loadSuccess: s.length > 0
53206
53211
  };
53207
53212
  }
53208
- async function OA(e = {}) {
53209
- let { app: t, config: n, datasource: r, loader: i, basePoint: a } = await bA(e), o = n.geofaultLayers, s = [];
53213
+ async function kA(e = {}) {
53214
+ let { app: t, config: n, datasource: r, loader: i, basePoint: a } = await xA(e), o = n.geofaultLayers, s = [];
53210
53215
  for (let e of o) {
53211
53216
  let t = await i.queryGeoFaultData(e);
53212
53217
  t?.data?.attributes && (await i.addGeoFaultData(t, e), s.push(e));
53213
53218
  }
53214
- return await yA(t, s.length > 0), {
53219
+ return await bA(t, s.length > 0), {
53215
53220
  datasource: r,
53216
53221
  basePoint: a,
53217
53222
  configuredLayerNames: o,
@@ -53223,44 +53228,44 @@ async function OA(e = {}) {
53223
53228
  }
53224
53229
  //#endregion
53225
53230
  //#region packages/lr-map-viewer/src/core/mode-manager.js
53226
- var kA = "3d", AA = ["2d", "3d"];
53227
- function jA() {
53228
- return [...AA];
53231
+ var AA = "3d", jA = ["2d", "3d"];
53232
+ function MA() {
53233
+ return [...jA];
53229
53234
  }
53230
- function MA(e) {
53231
- if (typeof e != "string") return kA;
53235
+ function NA(e) {
53236
+ if (typeof e != "string") return AA;
53232
53237
  let t = e.trim().toLowerCase();
53233
- return AA.includes(t) ? t : kA;
53238
+ return jA.includes(t) ? t : AA;
53234
53239
  }
53235
- function NA(e = []) {
53236
- if (!Array.isArray(e) || e.length === 0) return [kA];
53240
+ function PA(e = []) {
53241
+ if (!Array.isArray(e) || e.length === 0) return [AA];
53237
53242
  let t = [];
53238
53243
  return e.forEach((e) => {
53239
53244
  if (typeof e != "string") return;
53240
53245
  let n = e.trim().toLowerCase();
53241
- AA.includes(n) && (t.includes(n) || t.push(n));
53242
- }), t.length > 0 ? t : [kA];
53246
+ jA.includes(n) && (t.includes(n) || t.push(n));
53247
+ }), t.length > 0 ? t : [AA];
53243
53248
  }
53244
- function PA(e, t = []) {
53245
- let n = NA(t), r = MA(e);
53249
+ function FA(e, t = []) {
53250
+ let n = PA(t), r = NA(e);
53246
53251
  return n.includes(r) ? r : n[0];
53247
53252
  }
53248
- function FA(e, t = []) {
53249
- return NA(t).includes(MA(e));
53253
+ function IA(e, t = []) {
53254
+ return PA(t).includes(NA(e));
53250
53255
  }
53251
53256
  //#endregion
53252
53257
  //#region \0plugin-vue:export-helper
53253
- var IA = (e, t) => {
53258
+ var LA = (e, t) => {
53254
53259
  let n = e.__vccOpts || e;
53255
53260
  for (let [e, r] of t) n[e] = r;
53256
53261
  return n;
53257
- }, LA = { class: "lr2d-viewer" }, RA = {
53262
+ }, RA = { class: "lr2d-viewer" }, zA = {
53258
53263
  key: 0,
53259
53264
  class: "lr2d-viewer__error"
53260
- }, zA = {
53265
+ }, BA = {
53261
53266
  key: 1,
53262
53267
  class: "lr2d-viewer__placeholder"
53263
- }, BA = /* @__PURE__ */ IA({
53268
+ }, VA = /* @__PURE__ */ LA({
53264
53269
  __name: "Lr2dViewer",
53265
53270
  props: { config: {
53266
53271
  type: Object,
@@ -53280,14 +53285,14 @@ var IA = (e, t) => {
53280
53285
  }
53281
53286
  return _(() => {
53282
53287
  KC();
53283
- }), (e, t) => (b(), o("section", LA, [d.value ? (b(), o("div", RA, w(d.value), 1)) : a("", !0), u.value ? (b(), o("div", zA, [...t[0] ||= [s("p", null, "2D 地图配置待补充", -1), s("small", null, "请通过 `map2dConfig.options` 传入云 GIS 图纸所需参数。", -1)]])) : (b(), i(T(lC), {
53288
+ }), (e, t) => (b(), o("section", RA, [d.value ? (b(), o("div", zA, w(d.value), 1)) : a("", !0), u.value ? (b(), o("div", BA, [...t[0] ||= [s("p", null, "2D 地图配置待补充", -1), s("small", null, "请通过 `map2dConfig.options` 传入云 GIS 图纸所需参数。", -1)]])) : (b(), i(T(lC), {
53284
53289
  key: 2,
53285
53290
  class: "lr2d-viewer__map",
53286
53291
  options: c.value,
53287
53292
  onInitMap: f
53288
53293
  }, null, 8, ["options"]))]));
53289
53294
  }
53290
- }, [["__scopeId", "data-v-34a88c66"]]), VA = [{
53295
+ }, [["__scopeId", "data-v-34a88c66"]]), HA = [{
53291
53296
  name: "张伟",
53292
53297
  duty: "技术员",
53293
53298
  pointsHistory: [
@@ -53580,47 +53585,60 @@ var IA = (e, t) => {
53580
53585
  time: "2026-04-16T03:31:56.843Z"
53581
53586
  }
53582
53587
  ]
53583
- }], HA = [
53588
+ }], UA = [
53584
53589
  {
53585
53590
  name: "井口",
53586
53591
  cameraPos: {
53587
- x: -2295.5068430022657,
53588
- y: 2354.7598353675053,
53589
- z: 509.58195441814155
53592
+ x: -222.50867394842857,
53593
+ y: 1333.6799085672044,
53594
+ z: 916.6257026321281
53590
53595
  },
53591
53596
  viewCenter: {
53592
- x: -1674.9033167579005,
53593
- y: 2216.4996577247534,
53594
- z: -168.2849624825353
53597
+ x: -1050.7970801823271,
53598
+ y: 1364.847377831599,
53599
+ z: 171.26775241090573
53595
53600
  }
53596
53601
  },
53597
53602
  {
53598
- name: "全景俯视",
53603
+ name: "大巷视角1",
53599
53604
  cameraPos: {
53600
- x: 544.1863184740616,
53601
- y: -537.6415802209602,
53602
- z: 7627.824882726642
53605
+ x: -347.93833859154967,
53606
+ y: 262.7950973924324,
53607
+ z: 483.5026337126541
53603
53608
  },
53604
53609
  viewCenter: {
53605
- x: 544.1806455896027,
53606
- y: -537.6354907984443,
53607
- z: -694.2258090444168
53610
+ x: -750.8317286981078,
53611
+ y: 682.4696911761305,
53612
+ z: -70.31755206706745
53608
53613
  }
53609
53614
  },
53610
53615
  {
53611
- name: "主干巷道",
53616
+ name: "大巷视角2",
53612
53617
  cameraPos: {
53613
- x: -208.1691426283992,
53614
- y: -146.36500815606308,
53615
- z: 297.2633430428543
53618
+ x: -1141.15440089829,
53619
+ y: 1293.0759887433967,
53620
+ z: 606.6627569371431
53616
53621
  },
53617
53622
  viewCenter: {
53618
- x: -552.5058385884714,
53619
- y: 483.93908593795413,
53620
- z: -386.46528137655486
53623
+ x: -784.6231214011284,
53624
+ y: 930.2098848001822,
53625
+ z: 265.4664928444996
53626
+ }
53627
+ },
53628
+ {
53629
+ name: "全景俯视",
53630
+ cameraPos: {
53631
+ x: 544.1851491847899,
53632
+ y: -537.6403250752808,
53633
+ z: 5912.492116189484
53634
+ },
53635
+ viewCenter: {
53636
+ x: 544.1806455896027,
53637
+ y: -537.6354907984443,
53638
+ z: -694.2258090444168
53621
53639
  }
53622
53640
  }
53623
- ], UA = {
53641
+ ], WA = {
53624
53642
  regionAssist: "掘进辅助",
53625
53643
  coalResvers: "储量块段",
53626
53644
  boundary: "矿井边界",
@@ -53628,31 +53646,31 @@ var IA = (e, t) => {
53628
53646
  pointSymbol: "点符号",
53629
53647
  coal: "煤层",
53630
53648
  geofault: "断层"
53631
- }, WA = {
53632
- regionAssist: SA,
53633
- coalResvers: CA,
53634
- boundary: wA,
53635
- geology: TA,
53636
- pointSymbol: EA,
53637
- coal: DA,
53638
- geofault: OA
53649
+ }, GA = {
53650
+ regionAssist: CA,
53651
+ coalResvers: wA,
53652
+ boundary: TA,
53653
+ geology: EA,
53654
+ pointSymbol: DA,
53655
+ coal: OA,
53656
+ geofault: kA
53639
53657
  };
53640
- function GA(e) {
53658
+ function KA(e) {
53641
53659
  return e == null ? "" : String(e).trim().toLowerCase();
53642
53660
  }
53643
- function KA(e) {
53644
- let t = GA(e?.layerName), n = GA(e?.entityId), r = GA(e?.featureId), i = GA(e?.displayName);
53661
+ function qA(e) {
53662
+ let t = KA(e?.layerName), n = KA(e?.entityId), r = KA(e?.featureId), i = KA(e?.displayName);
53645
53663
  return t && r ? `layer-feature::${t}::${r}` : t && i ? `layer-name::${t}::${i}` : t && n ? `layer-entity::${t}::${n}` : "";
53646
53664
  }
53647
- function qA(e) {
53648
- let t = GA(e?.layerName), n = GA(e?.entityId), r = GA(e?.featureId), i = GA(e?.displayName);
53665
+ function JA(e) {
53666
+ let t = KA(e?.layerName), n = KA(e?.entityId), r = KA(e?.featureId), i = KA(e?.displayName);
53649
53667
  return t && r ? `lane-feature::${t}::${r}` : t && i ? `lane-name::${t}::${i}` : t && n ? `lane-entity::${t}::${n}` : "";
53650
53668
  }
53651
- function JA(e) {
53669
+ function YA(e) {
53652
53670
  if (!Array.isArray(e) || e.length === 0) return [];
53653
53671
  let t = [], n = /* @__PURE__ */ new Set();
53654
53672
  return e.forEach((e) => {
53655
- let r = KA(e);
53673
+ let r = qA(e);
53656
53674
  if (!r) {
53657
53675
  t.push(e);
53658
53676
  return;
@@ -53660,11 +53678,11 @@ function JA(e) {
53660
53678
  n.has(r) || (n.add(r), t.push(e));
53661
53679
  }), t;
53662
53680
  }
53663
- function YA(e) {
53681
+ function XA(e) {
53664
53682
  if (!Array.isArray(e) || e.length === 0) return [];
53665
53683
  let t = [], n = /* @__PURE__ */ new Set();
53666
53684
  return e.forEach((e) => {
53667
- let r = qA(e);
53685
+ let r = JA(e);
53668
53686
  if (!r) {
53669
53687
  t.push(e);
53670
53688
  return;
@@ -53672,61 +53690,61 @@ function YA(e) {
53672
53690
  n.has(r) || (n.add(r), t.push(e));
53673
53691
  }), t;
53674
53692
  }
53675
- function XA(e) {
53693
+ function ZA(e) {
53676
53694
  return e?.data?.featureGroups?.length ?? 0;
53677
53695
  }
53678
- function ZA(e) {
53696
+ function QA(e) {
53679
53697
  if (e.loadMode === "workfaceOnly") {
53680
53698
  let t = e.regions?.featureGroupCount ?? 0, n = e.regions?.featureCount ?? 0, r = e.workface?.featureGroupCount ?? 0, i = e.workface?.featureCount ?? 0, a = e.workface?.featureTypes?.join(", ") ?? "", o = e.workface?.renderReady === !0 ? "是" : "否", s = e.lane?.enabled === !0, c = e.lane?.featureGroupCount ?? 0, l = e.lane?.featureCount ?? 0, u = e.lane?.renderReady === !0 ? "是" : "否", d = s ? `巷道 图层组 ${c},要素 ${l},渲染就绪 ${u}` : "巷道 未启用";
53681
53699
  return `区域要素 图层组 ${t},要素 ${n};工作面 图层组 ${r},要素 ${i},要素编码 ${a || "未配置"},渲染就绪 ${o};${d}`;
53682
53700
  }
53683
- let t = XA(e.layers?.laneData), n = XA(e.layers?.regionAssistData), r = XA(e.layers?.regionData), i = XA(e.layers?.coalResversData), a = XA(e.layers?.boundaryData), o = XA(e.layers?.geologyData), s = XA(e.layers?.pointSymbolData), c = Array.isArray(e.layers?.coalData) ? e.layers.coalData.length : 0, l = Array.isArray(e.layers?.geofaultData) ? e.layers.geofaultData.length : 0;
53701
+ let t = ZA(e.layers?.laneData), n = ZA(e.layers?.regionAssistData), r = ZA(e.layers?.regionData), i = ZA(e.layers?.coalResversData), a = ZA(e.layers?.boundaryData), o = ZA(e.layers?.geologyData), s = ZA(e.layers?.pointSymbolData), c = Array.isArray(e.layers?.coalData) ? e.layers.coalData.length : 0, l = Array.isArray(e.layers?.geofaultData) ? e.layers.geofaultData.length : 0;
53684
53702
  return `云GIS全量加载完成:巷道组 ${t},工作面辅助组 ${n},区域组 ${r},煤量组 ${i},边界组 ${a},地质体组 ${o},点符号组 ${s},煤层 ${c}(配置煤层 ${Array.isArray(e.coalLayers) ? e.coalLayers.length : 0}),断层 ${l}(配置断层 ${Array.isArray(e.geofaultLayers) ? e.geofaultLayers.length : 0})`;
53685
53703
  }
53686
- function QA(e, t) {
53687
- let n = UA[e] ?? e;
53704
+ function $A(e, t) {
53705
+ let n = WA[e] ?? e;
53688
53706
  if (e === "coal" || e === "geofault") {
53689
53707
  let e = t?.configuredLayerCount ?? 0, r = t?.loadedLayerCount ?? 0;
53690
53708
  return e === 0 ? `${n}未加载:未配置图层名` : `${n}加载完成:已加载图层 ${r}/${e}`;
53691
53709
  }
53692
53710
  return `${n}加载完成:图层组 ${t?.featureGroupCount ?? 0},要素 ${t?.featureCount ?? 0},加载成功 ${t?.loadSuccess === !0 ? "是" : "否"}`;
53693
53711
  }
53694
- async function $A(e = {}) {
53695
- let t = await xA(e);
53712
+ async function ej(e = {}) {
53713
+ let t = await SA(e);
53696
53714
  return {
53697
53715
  result: t,
53698
- regionItems: JA(t?.regions?.items ?? []),
53699
- laneItems: YA(t?.lane?.items ?? []),
53700
- summary: ZA(t)
53716
+ regionItems: YA(t?.regions?.items ?? []),
53717
+ laneItems: XA(t?.lane?.items ?? []),
53718
+ summary: QA(t)
53701
53719
  };
53702
53720
  }
53703
- async function ej(e, t = {}) {
53704
- let n = WA[e];
53721
+ async function tj(e, t = {}) {
53722
+ let n = GA[e];
53705
53723
  if (!n) throw Error(`未找到手动加载类型: ${e}`);
53706
53724
  let r = await n(t);
53707
53725
  return {
53708
53726
  result: r,
53709
53727
  loaded: r?.loadSuccess === !0,
53710
- summary: QA(e, r)
53728
+ summary: $A(e, r)
53711
53729
  };
53712
53730
  }
53713
53731
  //#endregion
53714
53732
  //#region packages/lr-map-viewer/src/services/monitor-point.js
53715
- var tj = Object.freeze([
53733
+ var nj = Object.freeze([
53716
53734
  "安全监测",
53717
53735
  "人员定位",
53718
53736
  "水文检测",
53719
53737
  "束管监测点"
53720
- ]), nj = new Set(tj);
53721
- function rj(e) {
53738
+ ]), rj = new Set(nj);
53739
+ function ij(e) {
53722
53740
  let t = Number(e);
53723
53741
  return Number.isFinite(t) ? t : null;
53724
53742
  }
53725
- function ij(e) {
53743
+ function aj(e) {
53726
53744
  return !e || typeof e != "object" || Array.isArray(e) ? {} : Object.entries(e).reduce((e, [t, n]) => (n == null || String(n).trim() === "" || (e[String(t)] = String(n)), e), {});
53727
53745
  }
53728
- function aj(e, t) {
53729
- let n = typeof e?.id == "string" && e.id.trim() ? e.id.trim() : `mock-monitor-point-${t + 1}`, r = typeof e?.type == "string" && nj.has(e.type.trim()) ? e.type.trim() : tj[0], i = typeof e?.name == "string" && e.name.trim() ? e.name.trim() : `${r}-${t + 1}`, a = rj(e?.position?.x), o = rj(e?.position?.y), s = rj(e?.position?.z);
53746
+ function oj(e, t) {
53747
+ let n = typeof e?.id == "string" && e.id.trim() ? e.id.trim() : `mock-monitor-point-${t + 1}`, r = typeof e?.type == "string" && rj.has(e.type.trim()) ? e.type.trim() : nj[0], i = typeof e?.name == "string" && e.name.trim() ? e.name.trim() : `${r}-${t + 1}`, a = ij(e?.position?.x), o = ij(e?.position?.y), s = ij(e?.position?.z);
53730
53748
  return a === null || o === null || s === null ? null : {
53731
53749
  id: n,
53732
53750
  type: r,
@@ -53736,72 +53754,72 @@ function aj(e, t) {
53736
53754
  y: o,
53737
53755
  z: s
53738
53756
  },
53739
- data: ij(e?.data)
53757
+ data: aj(e?.data)
53740
53758
  };
53741
53759
  }
53742
- async function oj() {
53743
- let e = await import("./monitor-points-DbPD8qrq.js"), t = Array.isArray(e?.default?.items) ? e.default.items : [];
53760
+ async function sj() {
53761
+ let e = await import("./monitor-points-CdIaI2Nx.js"), t = Array.isArray(e?.default?.items) ? e.default.items : [];
53744
53762
  return await new Promise((e) => {
53745
53763
  globalThis.setTimeout(e, 180);
53746
- }), t.map((e, t) => aj(e, t)).filter(Boolean);
53764
+ }), t.map((e, t) => oj(e, t)).filter(Boolean);
53747
53765
  }
53748
53766
  //#endregion
53749
53767
  //#region packages/lr-map-viewer/src/components/Lr3dViewer.vue
53750
- var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = ["id"], uj = {
53768
+ var cj = { class: "lr3d-viewer" }, lj = { class: "lr3d-viewer__canvas" }, uj = ["id"], dj = {
53751
53769
  key: 0,
53752
53770
  class: "lr3d-monitor-overlay"
53753
- }, dj = ["onClick"], fj = { class: "lr3d-monitor-overlay__badge" }, pj = { class: "lr3d-monitor-overlay__popup-header" }, mj = { class: "lr3d-monitor-overlay__popup-title" }, hj = { class: "lr3d-monitor-overlay__popup-type" }, gj = { class: "lr3d-monitor-overlay__popup-position" }, _j = { class: "lr3d-monitor-overlay__popup-data" }, vj = {
53771
+ }, fj = ["onClick"], pj = { class: "lr3d-monitor-overlay__badge" }, mj = { class: "lr3d-monitor-overlay__popup-header" }, hj = { class: "lr3d-monitor-overlay__popup-title" }, gj = { class: "lr3d-monitor-overlay__popup-type" }, _j = { class: "lr3d-monitor-overlay__popup-position" }, vj = { class: "lr3d-monitor-overlay__popup-data" }, yj = {
53754
53772
  key: 1,
53755
53773
  class: "lr3d-panel-rail"
53756
- }, yj = {
53774
+ }, bj = {
53757
53775
  class: "lr3d-toolbar",
53758
53776
  "aria-label": "三维工具栏"
53759
- }, bj = ["aria-pressed"], xj = ["aria-pressed"], Sj = ["aria-pressed"], Cj = {
53777
+ }, xj = ["aria-pressed"], Sj = ["aria-pressed"], Cj = ["aria-pressed"], wj = {
53760
53778
  key: 0,
53761
53779
  class: "lr3d-viewpoint-panel"
53762
- }, wj = { class: "lr3d-viewpoint-panel__header" }, Tj = { class: "lr3d-viewpoint-panel__meta" }, Ej = { class: "lr3d-viewpoint-panel__list" }, Dj = ["onClick"], Oj = { class: "lr3d-viewpoint-panel__status" }, kj = {
53780
+ }, Tj = { class: "lr3d-viewpoint-panel__header" }, Ej = { class: "lr3d-viewpoint-panel__meta" }, Dj = { class: "lr3d-viewpoint-panel__list" }, Oj = ["onClick"], kj = { class: "lr3d-viewpoint-panel__status" }, Aj = {
53763
53781
  key: 2,
53764
53782
  class: "lr3d-left-rail"
53765
- }, Aj = { class: "lr3d-workface-panel__header" }, jj = {
53783
+ }, jj = { class: "lr3d-workface-panel__header" }, Mj = {
53766
53784
  key: 0,
53767
53785
  class: "lr3d-workface-panel__body"
53768
- }, Mj = { class: "lr3d-workface-panel__meta" }, Nj = { class: "lr3d-workface-panel__actions" }, Pj = { class: "lr3d-workface-panel__status" }, Fj = {
53786
+ }, Nj = { class: "lr3d-workface-panel__meta" }, Pj = { class: "lr3d-workface-panel__actions" }, Fj = { class: "lr3d-workface-panel__status" }, Ij = {
53769
53787
  key: 0,
53770
53788
  class: "lr3d-workface-panel__empty"
53771
- }, Ij = {
53789
+ }, Lj = {
53772
53790
  key: 1,
53773
53791
  class: "lr3d-workface-panel__groups"
53774
- }, Lj = { class: "lr3d-workface-panel__group-title" }, Rj = { class: "lr3d-workface-panel__list" }, zj = { class: "lr3d-workface-panel__label" }, Bj = ["checked", "onChange"], Vj = {
53792
+ }, Rj = { class: "lr3d-workface-panel__group-title" }, zj = { class: "lr3d-workface-panel__list" }, Bj = { class: "lr3d-workface-panel__label" }, Vj = ["checked", "onChange"], Hj = {
53775
53793
  key: 0,
53776
53794
  class: "lr3d-workface-panel__group"
53777
- }, Hj = { class: "lr3d-workface-panel__group-title" }, Uj = { class: "lr3d-workface-panel__list" }, Wj = { class: "lr3d-workface-panel__label" }, Gj = ["checked", "onChange"], Kj = {
53795
+ }, Uj = { class: "lr3d-workface-panel__group-title" }, Wj = { class: "lr3d-workface-panel__list" }, Gj = { class: "lr3d-workface-panel__label" }, Kj = ["checked", "onChange"], qj = {
53778
53796
  key: 1,
53779
53797
  class: "lr3d-monitor-panel"
53780
- }, qj = { class: "lr3d-monitor-panel__header" }, Jj = ["disabled"], Yj = { class: "lr3d-monitor-panel__tabs" }, Xj = ["onClick"], Zj = {
53798
+ }, Jj = { class: "lr3d-monitor-panel__header" }, Yj = ["disabled"], Xj = { class: "lr3d-monitor-panel__tabs" }, Zj = ["onClick"], Qj = {
53781
53799
  key: 0,
53782
53800
  class: "lr3d-monitor-panel__state"
53783
- }, Qj = {
53801
+ }, $j = {
53784
53802
  key: 1,
53785
53803
  class: "lr3d-monitor-panel__state lr3d-monitor-panel__state--error"
53786
- }, $j = {
53804
+ }, eM = {
53787
53805
  key: 2,
53788
53806
  class: "lr3d-monitor-panel__list"
53789
- }, eM = { class: "lr3d-monitor-panel__item-header" }, tM = { class: "lr3d-monitor-panel__item-position" }, nM = { class: "lr3d-monitor-panel__item-position" }, rM = { class: "lr3d-monitor-panel__item-position" }, iM = { class: "lr3d-monitor-panel__item-actions" }, aM = ["onClick"], oM = ["disabled", "onClick"], sM = {
53807
+ }, tM = { class: "lr3d-monitor-panel__item-header" }, nM = { class: "lr3d-monitor-panel__item-position" }, rM = { class: "lr3d-monitor-panel__item-position" }, iM = { class: "lr3d-monitor-panel__item-position" }, aM = { class: "lr3d-monitor-panel__item-actions" }, oM = ["onClick"], sM = ["disabled", "onClick"], cM = {
53790
53808
  key: 3,
53791
53809
  class: "lr3d-monitor-panel__state"
53792
- }, cM = {
53810
+ }, lM = {
53793
53811
  key: 4,
53794
53812
  class: "lr3d-monitor-panel__list"
53795
- }, lM = ["onClick"], uM = { class: "lr3d-monitor-panel__item-header" }, dM = { class: "lr3d-monitor-panel__item-type" }, fM = { class: "lr3d-monitor-panel__item-position" }, pM = { class: "lr3d-monitor-panel__item-data" }, mM = {
53813
+ }, uM = ["onClick"], dM = { class: "lr3d-monitor-panel__item-header" }, fM = { class: "lr3d-monitor-panel__item-type" }, pM = { class: "lr3d-monitor-panel__item-position" }, mM = { class: "lr3d-monitor-panel__item-data" }, hM = {
53796
53814
  key: 3,
53797
53815
  class: "lr3d-debug-panel"
53798
- }, hM = { class: "lr3d-debug-panel__group" }, gM = { class: "lr3d-debug-panel__actions" }, _M = { class: "lr3d-debug-panel__group" }, vM = { class: "lr3d-debug-panel__actions" }, yM = ["disabled"], bM = ["disabled"], xM = ["disabled"], SM = ["disabled"], CM = ["disabled"], wM = ["disabled"], TM = ["disabled"], EM = { class: "lr3d-debug-panel__group lr3d-debug-panel__group--tool" }, DM = { class: "lr3d-debug-panel__tool" }, OM = { class: "lr3d-debug-panel__log" }, kM = {
53816
+ }, gM = { class: "lr3d-debug-panel__group" }, _M = { class: "lr3d-debug-panel__actions" }, vM = { class: "lr3d-debug-panel__group" }, yM = { class: "lr3d-debug-panel__actions" }, bM = ["disabled"], xM = ["disabled"], SM = ["disabled"], CM = ["disabled"], wM = ["disabled"], TM = ["disabled"], EM = ["disabled"], DM = { class: "lr3d-debug-panel__group lr3d-debug-panel__group--tool" }, OM = { class: "lr3d-debug-panel__tool" }, kM = { class: "lr3d-debug-panel__log" }, AM = {
53799
53817
  key: 4,
53800
53818
  class: "lr3d-viewer__placeholder"
53801
- }, AM = {
53819
+ }, jM = {
53802
53820
  key: 5,
53803
53821
  class: "lr3d-viewer__placeholder lr3d-viewer__placeholder--error"
53804
- }, jM = 18e3, MM = 1800, NM = 600, PM = 100, FM = 5e3, IM = 900, LM = "demo-person", RM = 10001, zM = /* @__PURE__ */ IA({
53822
+ }, MM = 18e3, NM = 1800, PM = 600, FM = 100, IM = 5e3, LM = 900, RM = "井口", zM = "demo-person", BM = 10001, VM = /* @__PURE__ */ LA({
53805
53823
  __name: "Lr3dViewer",
53806
53824
  props: {
53807
53825
  config: {
@@ -53854,7 +53872,7 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
53854
53872
  loading: !1,
53855
53873
  loaded: !1
53856
53874
  }
53857
- }), ie = x([]), ae = x({}), I = x([]), oe = x({}), R = x([]), z = x("idle"), se = x(""), ce = x({}), le = x(0), ue = x(""), de = x(tj[0] ?? ""), fe = x(i.showMonitorPanel), B = x(i.showDebugPanel), pe = x(!0), me = x(""), he = x(!1), ge = x(Le()), V = [
53875
+ }), ie = x([]), ae = x({}), I = x([]), oe = x({}), R = x([]), z = x("idle"), se = x(""), ce = x({}), le = x(0), ue = x(""), de = x(nj[0] ?? ""), fe = x(i.showMonitorPanel), B = x(i.showDebugPanel), pe = x(!0), me = x(""), he = x(!1), ge = x(Le()), V = [
53858
53876
  "0202030030",
53859
53877
  "0106020009",
53860
53878
  "0202030004",
@@ -53913,7 +53931,7 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
53913
53931
  let n = V.indexOf(e.featureType), r = V.indexOf(t.featureType), i = n === -1 ? 2 ** 53 - 1 : n, a = r === -1 ? 2 ** 53 - 1 : r;
53914
53932
  return i === a ? e.typeLabel.localeCompare(t.typeLabel, "zh-CN") : i - a;
53915
53933
  }), t;
53916
- }), Se = r(() => xe.value.length > 0 || I.value.length > 0), Ce = r(() => tj.map((e) => ({
53934
+ }), Se = r(() => xe.value.length > 0 || I.value.length > 0), Ce = r(() => nj.map((e) => ({
53917
53935
  type: e,
53918
53936
  label: e,
53919
53937
  count: e === "人员定位" ? ge.value.length : R.value.filter((t) => t.type === e).length
@@ -53938,7 +53956,7 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
53938
53956
  });
53939
53957
  function ke(e, t) {
53940
53958
  if (!e || typeof e != "object") return null;
53941
- let n = Nt(e?.cameraPos?.x, e?.cameraPos?.y, e?.cameraPos?.z), r = Nt(e?.viewCenter?.x, e?.viewCenter?.y, e?.viewCenter?.z);
53959
+ let n = It(e?.cameraPos?.x, e?.cameraPos?.y, e?.cameraPos?.z), r = It(e?.viewCenter?.x, e?.viewCenter?.y, e?.viewCenter?.z);
53942
53960
  return !n || !r ? null : {
53943
53961
  ...e,
53944
53962
  key: `view-point-${t}`,
@@ -53947,7 +53965,7 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
53947
53965
  viewCenter: r
53948
53966
  };
53949
53967
  }
53950
- let Ae = r(() => Array.isArray(HA) ? HA.map((e, t) => ke(e, t)).filter(Boolean) : []), je = r(() => me.value ? Ae.value.find((e) => e.key === me.value)?.name ?? "未切换" : "未切换"), Me = r(() => ge.value.length > 0);
53968
+ let Ae = r(() => Array.isArray(UA) ? UA.map((e, t) => ke(e, t)).filter(Boolean) : []), je = r(() => me.value ? Ae.value.find((e) => e.key === me.value)?.name ?? "未切换" : "未切换"), Me = r(() => ge.value.length > 0);
53951
53969
  r(() => ge.value.filter((e) => e.isMoving).length);
53952
53970
  function G(e) {
53953
53971
  p.value = `${(/* @__PURE__ */ new Date()).toLocaleTimeString()} - ${e}`;
@@ -53981,13 +53999,13 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
53981
53999
  }).filter(Boolean).sort((e, t) => e.timestamp - t.timestamp) : [];
53982
54000
  }
53983
54001
  function Ie() {
53984
- return Array.isArray(VA) ? VA.map((e, t) => {
54002
+ return Array.isArray(HA) ? HA.map((e, t) => {
53985
54003
  let n = Fe(e?.pointsHistory);
53986
54004
  if (n.length === 0) return null;
53987
54005
  let r = typeof e?.name == "string" && e.name.trim() ? e.name.trim() : `人员 ${t + 1}`, i = typeof e?.duty == "string" && e.duty.trim() ? e.duty.trim() : "未设置岗位";
53988
54006
  return {
53989
54007
  key: `tracked-person-${t}`,
53990
- sceneId: RM + t,
54008
+ sceneId: BM + t,
53991
54009
  name: r,
53992
54010
  duty: i,
53993
54011
  pointsHistory: n,
@@ -54020,7 +54038,7 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
54020
54038
  return ue.value = "", !0;
54021
54039
  }
54022
54040
  function He(e, { focus: t = !1 } = {}) {
54023
- return e?.id ? (ue.value = e.id, t ? Ht(e.position, e.name) : !0) : !1;
54041
+ return e?.id ? (ue.value = e.id, t ? Gt(e.position, e.name) : !0) : !1;
54024
54042
  }
54025
54043
  function q(e) {
54026
54044
  return He(e, { focus: !0 });
@@ -54029,7 +54047,7 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
54029
54047
  return He(e, { focus: !0 });
54030
54048
  }
54031
54049
  function We(e) {
54032
- let t = Rt(e?.position), n = zt();
54050
+ let t = Vt(e?.position), n = Ht();
54033
54051
  if (!t || !n || !u.value) return null;
54034
54052
  let r = u.value.getBoundingClientRect();
54035
54053
  if (r.width <= 0 || r.height <= 0) return null;
@@ -54074,7 +54092,7 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
54074
54092
  return window.THREE;
54075
54093
  }
54076
54094
  function Xe() {
54077
- Vk()?.signals?.sceneBackgroundChanged?.dispatch?.("Gradientcolor", null, null, null, null, "#696969", "#696969");
54095
+ Hk()?.signals?.sceneBackgroundChanged?.dispatch?.("Gradientcolor", null, null, null, null, "#696969", "#696969");
54078
54096
  }
54079
54097
  function Ze(e) {
54080
54098
  let t = [], n = e?.userData ?? {}, r = n?.attrs ?? n?.info ?? n ?? {};
@@ -54148,7 +54166,7 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
54148
54166
  re.value !== null && window.clearTimeout(re.value), re.value = window.setTimeout(() => {
54149
54167
  re.value = null;
54150
54168
  try {
54151
- let e = et(Vk()?.selected, "click-fallback");
54169
+ let e = et(Hk()?.selected, "click-fallback");
54152
54170
  tt(e) && G(`模型信息查询触发:${e?.name || e?.id || "未命名对象"}`);
54153
54171
  } catch {}
54154
54172
  }, 0);
@@ -54186,14 +54204,14 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
54186
54204
  let t = U + 1;
54187
54205
  U = t, z.value = "loading", se.value = "";
54188
54206
  try {
54189
- let e = await oj();
54190
- return U === t ? (R.value = e, tj.includes(de.value) || (de.value = tj[0] ?? ""), z.value = "ready", G(`监测点 mock 数据已加载:${e.length} 个`), e) : null;
54207
+ let e = await sj();
54208
+ return U === t ? (R.value = e, nj.includes(de.value) || (de.value = nj[0] ?? ""), z.value = "ready", G(`监测点 mock 数据已加载:${e.length} 个`), e) : null;
54191
54209
  } catch (e) {
54192
54210
  return U === t ? (R.value = [], z.value = "error", se.value = Re(e), G(`监测点 mock 数据加载失败:${se.value}`), null) : null;
54193
54211
  }
54194
54212
  }
54195
54213
  function st() {
54196
- let e = Vk()?.PersonModuleInterfaces;
54214
+ let e = Hk()?.PersonModuleInterfaces;
54197
54215
  if (!e) throw Error("当前三维实例缺少人员定位接口");
54198
54216
  return e;
54199
54217
  }
@@ -54224,7 +54242,20 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
54224
54242
  }
54225
54243
  };
54226
54244
  }
54227
- function pt() {
54245
+ function pt(e, t, n = e.currentTimeLabel) {
54246
+ return {
54247
+ id: e.sceneId,
54248
+ x: t.x,
54249
+ y: t.y,
54250
+ z: t.z,
54251
+ info: {
54252
+ 姓名: e.name,
54253
+ 岗位: e.duty,
54254
+ 时间: n
54255
+ }
54256
+ };
54257
+ }
54258
+ function mt() {
54228
54259
  let e = ct();
54229
54260
  if (!e?.currentPosition) {
54230
54261
  M.value = null, ee.value = !1;
@@ -54232,41 +54263,55 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
54232
54263
  }
54233
54264
  M.value = { ...e.currentPosition }, ee.value = e.isMoving === !0;
54234
54265
  }
54235
- function mt(e) {
54266
+ function ht(e) {
54236
54267
  let t = ve.get(e);
54237
54268
  t !== void 0 && (window.clearTimeout(t), ve.delete(e));
54238
54269
  let n = H.get(e);
54239
54270
  n !== void 0 && (window.clearTimeout(n), H.delete(e));
54240
54271
  }
54241
- function ht() {
54272
+ function gt() {
54242
54273
  let e = new Set([...ve.keys(), ...H.keys()]);
54243
54274
  Array.from(e).forEach((e) => {
54244
- mt(e);
54275
+ ht(e);
54245
54276
  });
54246
54277
  }
54247
- function gt() {
54278
+ function _t() {
54248
54279
  if (!ge.value.some((e) => e.isMoving)) try {
54249
54280
  st().stopPerLoop?.();
54250
54281
  } catch {}
54251
54282
  }
54252
- function _t({ resetPositions: e = !1 } = {}) {
54283
+ function vt({ resetPositions: e = !1 } = {}) {
54253
54284
  if (!Me.value) return !1;
54254
54285
  let t = st();
54255
- return ht(), e && dt(), t.stopPerLoop?.(), t.deletePersonAll?.(LM), t.addPersons(ge.value.map((e) => ft(e)), LM), he.value = !0, pt(), !0;
54286
+ return gt(), e && dt(), t.stopPerLoop?.(), t.deletePersonAll?.(zM), t.addPersons(ge.value.map((e) => ft(e)), zM), he.value = !0, mt(), !0;
54256
54287
  }
54257
- function vt({ resetPositions: e = !1 } = {}) {
54258
- return Me.value ? !he.value || e ? _t({ resetPositions: e }) : !0 : !1;
54288
+ function yt({ resetPositions: e = !1 } = {}) {
54289
+ return Me.value ? !he.value || e ? vt({ resetPositions: e }) : !0 : !1;
54290
+ }
54291
+ function bt(e, t, n = {}) {
54292
+ return e.currentPosition = { ...t }, e.currentPointIndex = n.pointIndex ?? e.currentPointIndex, typeof n.timeLabel == "string" && n.timeLabel && (e.currentTimeLabel = n.timeLabel), typeof n.isMoving == "boolean" && (e.isMoving = n.isMoving), typeof n.status == "string" && n.status && (e.status = n.status), mt(), !0;
54293
+ }
54294
+ function xt(e, t, n = {}) {
54295
+ let r = lt(e);
54296
+ if (!r || !t) return !1;
54297
+ let i = st(), a = typeof n.timeLabel == "string" && n.timeLabel ? n.timeLabel : r.currentTimeLabel;
54298
+ return typeof i.updatePersons == "function" ? i.updatePersons([pt(r, t, a)], 0) : i.updatePersonByTween?.({
54299
+ id: r.sceneId,
54300
+ x: t.x,
54301
+ y: t.y,
54302
+ z: t.z
54303
+ }), bt(r, t, n);
54259
54304
  }
54260
- function yt(e, t, n = {}) {
54305
+ function St(e, t, n = {}) {
54261
54306
  let r = lt(e);
54262
54307
  return !r || !t ? !1 : (st().updatePersonByTween({
54263
54308
  id: r.sceneId,
54264
54309
  x: t.x,
54265
54310
  y: t.y,
54266
54311
  z: t.z
54267
- }), r.currentPosition = { ...t }, r.currentPointIndex = n.pointIndex ?? r.currentPointIndex, typeof n.timeLabel == "string" && n.timeLabel && (r.currentTimeLabel = n.timeLabel), typeof n.isMoving == "boolean" && (r.isMoving = n.isMoving), typeof n.status == "string" && n.status && (r.status = n.status), pt(), !0);
54312
+ }), bt(r, t, n));
54268
54313
  }
54269
- function bt(e) {
54314
+ function Ct(e) {
54270
54315
  let t = e?.pointsHistory?.length - 1;
54271
54316
  if (!Number.isFinite(t) || t <= 0) return [];
54272
54317
  let n = [];
@@ -54275,77 +54320,77 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
54275
54320
  n.push(Math.max(r - i, 0));
54276
54321
  }
54277
54322
  let r = n.reduce((e, t) => e + t, 0);
54278
- if (r <= 0) return n.map(() => MM);
54279
- let i = Math.min(Math.max(t * MM, 6e3), jM);
54323
+ if (r <= 0) return n.map(() => NM);
54324
+ let i = Math.min(Math.max(t * NM, 6e3), MM);
54280
54325
  return n.map((e) => {
54281
54326
  let t = Math.round(e / r * i);
54282
- return Math.min(FM, Math.max(NM, t));
54327
+ return Math.min(IM, Math.max(PM, t));
54283
54328
  });
54284
54329
  }
54285
- function xt(e) {
54330
+ function wt(e) {
54286
54331
  let t = lt(e);
54287
54332
  if (!t) {
54288
- gt();
54333
+ _t();
54289
54334
  return;
54290
54335
  }
54291
- t.isMoving = !1, t.status = `移动完成:${t.currentTimeLabel}`, pt(), gt();
54336
+ t.isMoving = !1, t.status = `移动完成:${t.currentTimeLabel}`, mt(), _t();
54292
54337
  }
54293
- function St(e, t, n) {
54338
+ function Tt(e, t, n) {
54294
54339
  let r = lt(e);
54295
54340
  if (!r) return;
54296
54341
  if (t >= r.pointsHistory.length - 1) {
54297
54342
  let t = window.setTimeout(() => {
54298
- H.delete(e), xt(e);
54299
- }, IM);
54343
+ H.delete(e), wt(e);
54344
+ }, LM);
54300
54345
  H.set(e, t);
54301
54346
  return;
54302
54347
  }
54303
- let i = t === 0 ? 0 : n[t - 1] ?? MM, a = window.setTimeout(() => {
54348
+ let i = t === 0 ? 0 : n[t - 1] ?? NM, a = window.setTimeout(() => {
54304
54349
  ve.delete(e);
54305
54350
  let r = lt(e);
54306
54351
  if (!r) return;
54307
54352
  let i = t + 1, a = r.pointsHistory[i];
54308
54353
  if (!a) {
54309
- xt(e);
54354
+ wt(e);
54310
54355
  return;
54311
54356
  }
54312
- yt(e, a.point, {
54357
+ St(e, a.point, {
54313
54358
  pointIndex: i,
54314
54359
  timeLabel: a.timeLabel,
54315
54360
  isMoving: !0,
54316
54361
  status: `移动中:${a.timeLabel}(${i + 1}/${r.pointsHistory.length})`
54317
- }), St(e, t + 1, n);
54362
+ }), Tt(e, t + 1, n);
54318
54363
  }, i);
54319
54364
  ve.set(e, a);
54320
54365
  }
54321
- function Ct(e) {
54366
+ function Et(e) {
54322
54367
  let t = lt(e);
54323
- return t ? t.pointsHistory.length < 2 ? (t.status = "无轨迹可播放", !1) : (vt(), mt(e), ut(t), yt(e, t.startPoint, {
54368
+ return t ? t.pointsHistory.length < 2 ? (t.status = "无轨迹可播放", !1) : (yt(), ht(e), ut(t), xt(e, t.startPoint, {
54324
54369
  pointIndex: 0,
54325
54370
  timeLabel: t.startTimeLabel,
54326
54371
  isMoving: !1,
54327
54372
  status: "准备开始移动"
54328
- }), st().initPerLoop?.(), t.isMoving = !0, t.status = `开始移动:${t.startTimeLabel}`, pt(), Ne(`人员移动开始:${t.name},轨迹点 ${t.pointsHistory.length} 个`), St(e, 0, bt(t)), !0) : !1;
54373
+ }), st().initPerLoop?.(), t.isMoving = !0, t.status = `开始移动:${t.startTimeLabel}`, mt(), Ne(`人员移动开始:${t.name},轨迹点 ${t.pointsHistory.length} 个`), Tt(e, 0, Ct(t)), !0) : !1;
54329
54374
  }
54330
- function wt(e, t = "已停止移动") {
54375
+ function Dt(e, t = "已停止移动") {
54331
54376
  let n = lt(e);
54332
- return n ? (mt(e), n.isMoving = !1, n.status = t, pt(), gt(), !0) : !1;
54377
+ return n ? (ht(e), n.isMoving = !1, n.status = t, mt(), _t(), !0) : !1;
54333
54378
  }
54334
- function Tt(e) {
54335
- return e?.currentPosition ? Ht(e.currentPosition, e.name) : !1;
54379
+ function Ot(e) {
54380
+ return e?.currentPosition ? Gt(e.currentPosition, e.name) : !1;
54336
54381
  }
54337
- function Et(e) {
54382
+ function kt(e) {
54338
54383
  return e ? `X ${Number(e.x).toFixed(2)} / Y ${Number(e.y).toFixed(2)} / Z ${Number(e.z).toFixed(2)}` : "--";
54339
54384
  }
54340
- function Dt() {
54341
- j.value !== null && (window.clearInterval(j.value), j.value = null), ht(), dt(), he.value = !1, ee.value = !1, M.value = null;
54385
+ function At() {
54386
+ j.value !== null && (window.clearInterval(j.value), j.value = null), gt(), dt(), he.value = !1, ee.value = !1, M.value = null;
54342
54387
  try {
54343
54388
  let e = st();
54344
- e.stopPerLoop?.(), e.deletePersonAll?.(LM);
54389
+ e.stopPerLoop?.(), e.deletePersonAll?.(zM);
54345
54390
  } catch {}
54346
54391
  }
54347
- function Ot() {
54348
- if (Me.value && _t({ resetPositions: !0 })) {
54392
+ function jt() {
54393
+ if (Me.value && vt({ resetPositions: !0 })) {
54349
54394
  N.value = `已初始化 ${ge.value.length} 名人员`, G(`人员面板初始化完成:${ge.value.length} 名人员`);
54350
54395
  return;
54351
54396
  }
@@ -54354,9 +54399,9 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
54354
54399
  N.value = "演示人员未初始化:缺少起始坐标配置", G("演示人员未初始化:缺少起始坐标配置");
54355
54400
  return;
54356
54401
  }
54357
- j.value !== null && (window.clearInterval(j.value), j.value = null), e.stopPerLoop?.(), e.deletePersonAll?.(LM);
54402
+ j.value !== null && (window.clearInterval(j.value), j.value = null), e.stopPerLoop?.(), e.deletePersonAll?.(zM);
54358
54403
  let n = {
54359
- id: RM,
54404
+ id: BM,
54360
54405
  x: t.x,
54361
54406
  y: t.y,
54362
54407
  z: t.z,
@@ -54369,28 +54414,28 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
54369
54414
  x: n.x,
54370
54415
  y: n.y,
54371
54416
  z: n.z
54372
- }, e.addPersons([n], LM), Ne(`演示人员已初始化:起点 x=${n.x.toFixed(2)}, y=${n.y.toFixed(2)}, z=${n.z.toFixed(2)}`), N.value = "演示人员已初始化,可开始移动";
54417
+ }, e.addPersons([n], zM), Ne(`演示人员已初始化:起点 x=${n.x.toFixed(2)}, y=${n.y.toFixed(2)}, z=${n.z.toFixed(2)}`), N.value = "演示人员已初始化,可开始移动";
54373
54418
  }
54374
- function kt(e) {
54419
+ function Mt(e) {
54375
54420
  if (Me.value) {
54376
54421
  let t = ct();
54377
54422
  if (!t) return !1;
54378
- let n = Pt(e);
54423
+ let n = Lt(e);
54379
54424
  if (!n) return N.value = "目标坐标无效,无法开始移动", G("目标坐标无效,无法开始移动"), !1;
54380
- vt(), wt(t.sceneId, "已停止上一段移动"), st().initPerLoop?.(), yt(t.sceneId, n, {
54425
+ yt(), Dt(t.sceneId, "已停止上一段移动"), st().initPerLoop?.(), St(t.sceneId, n, {
54381
54426
  isMoving: !0,
54382
54427
  status: `人员正在移动到目标点:${n.x.toFixed(2)}, ${n.y.toFixed(2)}, ${n.z.toFixed(2)}`
54383
54428
  }), t.isMoving = !0, N.value = t.status, G(`人员手动移动:${t.name}`);
54384
54429
  let r = window.setTimeout(() => {
54385
- H.delete(t.sceneId), t.isMoving = !1, t.status = "人员已到达目标点", pt(), gt();
54386
- }, IM);
54430
+ H.delete(t.sceneId), t.isMoving = !1, t.status = "人员已到达目标点", mt(), _t();
54431
+ }, LM);
54387
54432
  return H.set(t.sceneId, r), !0;
54388
54433
  }
54389
54434
  let t = st();
54390
54435
  if (!M.value) return N.value = "演示人员尚未初始化,无法开始移动", !1;
54391
- let n = Pt(e);
54436
+ let n = Lt(e);
54392
54437
  return n ? (j.value !== null && (window.clearInterval(j.value), j.value = null), t.initPerLoop(), t.updatePersonByTween({
54393
- id: RM,
54438
+ id: BM,
54394
54439
  x: n.x,
54395
54440
  y: n.y,
54396
54441
  z: n.z
@@ -54400,26 +54445,26 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
54400
54445
  z: n.z
54401
54446
  }, ee.value = !0, N.value = `演示人员正在移动到目标点:${n.x.toFixed(2)}, ${n.y.toFixed(2)}, ${n.z.toFixed(2)}`, G(`井下人员演示已启动移动:目标点 x=${n.x.toFixed(2)}, y=${n.y.toFixed(2)}, z=${n.z.toFixed(2)}`), !0) : (N.value = "目标坐标无效,无法开始移动", G("目标坐标无效,无法开始移动"), !1);
54402
54447
  }
54403
- function At() {
54448
+ function Nt() {
54404
54449
  if (Me.value) {
54405
54450
  let e = ct();
54406
54451
  if (!e) return !1;
54407
- let t = wt(e.sceneId);
54452
+ let t = Dt(e.sceneId);
54408
54453
  return N.value = t ? "人员已停止移动" : "停止移动失败", G(t ? `人员已停止移动:${e.name}` : "停止移动失败"), t;
54409
54454
  }
54410
54455
  j.value !== null && (window.clearInterval(j.value), j.value = null);
54411
54456
  try {
54412
- Vk()?.PersonModuleInterfaces?.stopPerLoop?.();
54457
+ Hk()?.PersonModuleInterfaces?.stopPerLoop?.();
54413
54458
  } catch {}
54414
54459
  return ee.value = !1, N.value = "演示人员已停止移动", G("井下人员演示已停止移动"), !0;
54415
54460
  }
54416
- function jt(e) {
54417
- return ee.value ? (At(), !0) : kt(e);
54461
+ function Pt(e) {
54462
+ return ee.value ? (Nt(), !0) : Mt(e);
54418
54463
  }
54419
- function Mt() {
54420
- return Ot(), Me.value ? he.value : M.value !== null;
54464
+ function Ft() {
54465
+ return jt(), Me.value ? he.value : M.value !== null;
54421
54466
  }
54422
- function Nt(e, t, n) {
54467
+ function It(e, t, n) {
54423
54468
  let r = Number(e), i = Number(t), a = Number(n);
54424
54469
  return !Number.isFinite(r) || !Number.isFinite(i) || !Number.isFinite(a) ? null : {
54425
54470
  x: r,
@@ -54427,17 +54472,17 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
54427
54472
  z: a
54428
54473
  };
54429
54474
  }
54430
- function Pt(e) {
54431
- return Array.isArray(e) ? Nt(e[0], e[1], e[2]) : e && typeof e == "object" ? Nt(e.x, e.y, e.z) : null;
54475
+ function Lt(e) {
54476
+ return Array.isArray(e) ? It(e[0], e[1], e[2]) : e && typeof e == "object" ? It(e.x, e.y, e.z) : null;
54432
54477
  }
54433
- function Ft(e) {
54478
+ function Rt(e) {
54434
54479
  return Number.isFinite(Number(e));
54435
54480
  }
54436
- function It(e) {
54437
- return e && Ft(e.x) && Ft(e.y) && Ft(e.z);
54481
+ function zt(e) {
54482
+ return e && Rt(e.x) && Rt(e.y) && Rt(e.z);
54438
54483
  }
54439
- function Lt() {
54440
- let e = Bk()?.basePoint ?? {
54484
+ function Bt() {
54485
+ let e = Vk()?.basePoint ?? {
54441
54486
  x: 0,
54442
54487
  y: 0,
54443
54488
  z: 0
@@ -54448,26 +54493,26 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
54448
54493
  z: Number(e.z ?? 0)
54449
54494
  };
54450
54495
  }
54451
- function Rt(e) {
54452
- if (!It(e)) return null;
54453
- let t = Lt();
54496
+ function Vt(e) {
54497
+ if (!zt(e)) return null;
54498
+ let t = Bt();
54454
54499
  return {
54455
54500
  x: Number(e.x) - t.x,
54456
54501
  y: Number(e.y) - t.y,
54457
54502
  z: Number(e.z) - t.z
54458
54503
  };
54459
54504
  }
54460
- function zt() {
54461
- let e = Bk(), t = Vk();
54505
+ function Ht() {
54506
+ let e = Vk(), t = Hk();
54462
54507
  return t?.camera ?? t?.viewportCamera ?? e?.camera ?? null;
54463
54508
  }
54464
- function Bt() {
54509
+ function Ut() {
54465
54510
  return N.value = "自定义视角保存功能已停用", G("自定义视角保存功能已停用"), null;
54466
54511
  }
54467
- function Vt(e) {
54512
+ function Wt(e) {
54468
54513
  let t = typeof e?.name == "string" && e.name.trim() ? e.name.trim() : "当前视角";
54469
54514
  try {
54470
- let n = Vk(), r = Ye(), i = Nt(e?.cameraPos?.x, e?.cameraPos?.y, e?.cameraPos?.z), a = Nt(e?.viewCenter?.x, e?.viewCenter?.y, e?.viewCenter?.z);
54515
+ let n = Hk(), r = Ye(), i = It(e?.cameraPos?.x, e?.cameraPos?.y, e?.cameraPos?.z), a = It(e?.viewCenter?.x, e?.viewCenter?.y, e?.viewCenter?.z);
54471
54516
  if (!i || !a) throw Error("视角参数缺少有效的 cameraPos 或 viewCenter");
54472
54517
  if (!n?.camera?.position || !n?.controls?.center) throw Error("当前 SDK 未提供可恢复视角的 camera.position 或 controls.center");
54473
54518
  let o = new r.Vector3(i.x, i.y, i.z), s = new r.Vector3(a.x, a.y, a.z);
@@ -54476,9 +54521,9 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
54476
54521
  return N.value = `${t}恢复失败:${Re(e)}`, G(`${t}恢复失败:${Re(e)}`), !1;
54477
54522
  }
54478
54523
  }
54479
- function Ht(e, t) {
54524
+ function Gt(e, t) {
54480
54525
  try {
54481
- let n = Ye(), r = Bk(), i = Vk(), a = r?.basePoint ?? {
54526
+ let n = Ye(), r = Vk(), i = Hk(), a = r?.basePoint ?? {
54482
54527
  x: 0,
54483
54528
  y: 0,
54484
54529
  z: 0
@@ -54486,8 +54531,8 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
54486
54531
  Ne(`准备聚焦${t}:绝对坐标(${Number(e.x).toFixed(2)}, ${Number(e.y).toFixed(2)}, ${Number(e.z).toFixed(2)}),basePoint(${Number(a.x ?? 0).toFixed(2)}, ${Number(a.y ?? 0).toFixed(2)}, ${Number(a.z ?? 0).toFixed(2)}),相对坐标(${o.x.toFixed(2)}, ${o.y.toFixed(2)}, ${o.z.toFixed(2)})`), N.value = `准备聚焦:${Number(e.x).toFixed(2)}, ${Number(e.y).toFixed(2)}, ${Number(e.z).toFixed(2)}`;
54487
54532
  let s = i?.signals?.boxFocused?.dispatch;
54488
54533
  if (typeof s == "function") {
54489
- let r = new n.Box3(), a = new n.Vector3(PM, PM, PM);
54490
- return r.setFromCenterAndSize(o.clone(), a), s.call(i.signals.boxFocused, r), N.value = `聚焦接口已调用:距离 ${PM}`, G(`已拉近聚焦到${t}:${Number(e.x).toFixed(2)}, ${Number(e.y).toFixed(2)}, ${Number(e.z).toFixed(2)},距离 ${PM}`), !0;
54534
+ let r = new n.Box3(), a = new n.Vector3(FM, FM, FM);
54535
+ return r.setFromCenterAndSize(o.clone(), a), s.call(i.signals.boxFocused, r), N.value = `聚焦接口已调用:距离 ${FM}`, G(`已拉近聚焦到${t}:${Number(e.x).toFixed(2)}, ${Number(e.y).toFixed(2)}, ${Number(e.z).toFixed(2)},距离 ${FM}`), !0;
54491
54536
  }
54492
54537
  if (typeof i?.focusPoint != "function") throw Error("editor.focusPoint 与 editor.signals.boxFocused 均不存在");
54493
54538
  return i.focusPoint(null, o), N.value = "聚焦接口已调用:使用默认聚焦", G(`已聚焦到${t}:${Number(e.x).toFixed(2)}, ${Number(e.y).toFixed(2)}, ${Number(e.z).toFixed(2)},当前环境未提供 boxFocused,已回退 focusPoint`), !0;
@@ -54495,31 +54540,40 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
54495
54540
  return N.value = `聚焦失败:${Re(e)}`, G(`聚焦${t}失败:${Re(e)}`), !1;
54496
54541
  }
54497
54542
  }
54498
- function Ut() {
54543
+ function Kt() {
54499
54544
  N.value = `点击聚焦按钮:${(/* @__PURE__ */ new Date()).toLocaleTimeString()}`;
54500
54545
  let e = ct()?.name || "演示人员";
54501
- return M.value ? Ht(M.value, e) : (N.value = `${e}尚未初始化,无法聚焦`, G(`${e}尚未初始化,无法聚焦`), !1);
54546
+ return M.value ? Gt(M.value, e) : (N.value = `${e}尚未初始化,无法聚焦`, G(`${e}尚未初始化,无法聚焦`), !1);
54502
54547
  }
54503
- function Wt(e, t, n) {
54548
+ function qt(e, t, n) {
54504
54549
  N.value = `点击移动视角:${(/* @__PURE__ */ new Date()).toLocaleTimeString()}`;
54505
- let r = Nt(e, t, n);
54506
- return r ? Ht(r, "目标点") : (N.value = "移动视角失败:坐标参数无效", G("移动视角失败:坐标参数无效"), !1);
54550
+ let r = It(e, t, n);
54551
+ return r ? Gt(r, "目标点") : (N.value = "移动视角失败:坐标参数无效", G("移动视角失败:坐标参数无效"), !1);
54507
54552
  }
54508
- function Gt(e) {
54509
- return Vt(e) ? (me.value = e.key, !0) : !1;
54553
+ function Jt(e) {
54554
+ return Wt(e) ? (me.value = e.key, !0) : !1;
54510
54555
  }
54511
- function Kt() {
54556
+ function Yt() {
54557
+ return Ae.value.length === 0 ? null : Ae.value.find((e) => e.name === RM) ?? Ae.value[0];
54558
+ }
54559
+ function Xt() {
54560
+ let e = Yt();
54561
+ if (!e) return Ne("区域要素与巷道加载完成,未配置默认视角,保留当前视图"), !1;
54562
+ let t = Jt(e);
54563
+ return t && Ne(`已应用默认视角:${e.name}`), t;
54564
+ }
54565
+ function Zt() {
54512
54566
  return Ae.value.length === 0 ? !1 : (pe.value = !pe.value, N.value = pe.value ? "视角面板已显示" : "视角面板已隐藏", G(N.value), !0);
54513
54567
  }
54514
- function qt() {
54568
+ function Qt() {
54515
54569
  return i.showMonitorPanel ? (fe.value = !fe.value, N.value = fe.value ? "监测点面板已显示" : "监测点面板已隐藏", G(N.value), !0) : !1;
54516
54570
  }
54517
- function Jt() {
54571
+ function $t() {
54518
54572
  return i.showDebugPanel ? (B.value = !B.value, N.value = B.value ? "调试面板已显示" : "调试面板已隐藏", G(N.value), !0) : !1;
54519
54573
  }
54520
- function Yt(e) {
54574
+ function en(e) {
54521
54575
  if (!Array.isArray(e) || e.length === 0) return;
54522
- let t = Vk()?.manager?.modules?.lanemodulen;
54576
+ let t = Hk()?.manager?.modules?.lanemodulen;
54523
54577
  if (!t || typeof t.toggleLaneMaterial != "function") throw Error("当前三维实例缺少巷道材质切换接口");
54524
54578
  [...new Set(e.map((e) => typeof e?.layerName == "string" ? e.layerName.trim() : "").filter(Boolean))].forEach((e) => {
54525
54579
  t.toggleLaneMaterial(e, "glass");
@@ -54529,10 +54583,10 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
54529
54583
  e && (e.transparent = !0, e.opacity = .4, e.needsUpdate = !0);
54530
54584
  });
54531
54585
  });
54532
- }), Gk();
54586
+ }), Kk();
54533
54587
  }
54534
- function Xt(e, t) {
54535
- let n = (Vk()?.manager?.modules?.regionmodule)?.getLayerGroup?.(e.layerName);
54588
+ function tn(e, t) {
54589
+ let n = (Hk()?.manager?.modules?.regionmodule)?.getLayerGroup?.(e.layerName);
54536
54590
  if (!n) return !1;
54537
54591
  let r = new Set(it(e)), i = !1;
54538
54592
  return n.traverse?.((e) => {
@@ -54541,22 +54595,22 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
54541
54595
  Ze(e).some((e) => r.has(e)) && (e.visible = t, i = !0);
54542
54596
  }), i;
54543
54597
  }
54544
- function Zt(e, t) {
54598
+ function nn(e, t) {
54545
54599
  if (!Array.isArray(e) || e.length === 0) return 0;
54546
54600
  let n = { ...ae.value }, r = 0;
54547
54601
  return e.forEach((e) => {
54548
- Xt(e, t) && (n[e.key] = t, r += 1);
54549
- }), ae.value = n, T.value = t, Gk(), r;
54602
+ tn(e, t) && (n[e.key] = t, r += 1);
54603
+ }), ae.value = n, T.value = t, Kk(), r;
54550
54604
  }
54551
- function Qt(e, t) {
54605
+ function rn(e, t) {
54552
54606
  let n = t?.target, r = n?.checked === !0, i = ae.value[e.key] !== !1;
54553
54607
  ae.value = {
54554
54608
  ...ae.value,
54555
54609
  [e.key]: r
54556
54610
  };
54557
54611
  try {
54558
- if (!Xt(e, r)) throw Error(`未找到区域对象: ${e.displayName}`);
54559
- Gk(), T.value = be.value.some((e) => ae.value[e.key] !== !1), G(`${e.typeLabel || "区域"}显隐已更新:${e.displayName} -> ${r ? "显示" : "隐藏"}`);
54612
+ if (!tn(e, r)) throw Error(`未找到区域对象: ${e.displayName}`);
54613
+ Kk(), T.value = be.value.some((e) => ae.value[e.key] !== !1), G(`${e.typeLabel || "区域"}显隐已更新:${e.displayName} -> ${r ? "显示" : "隐藏"}`);
54560
54614
  } catch (t) {
54561
54615
  ae.value = {
54562
54616
  ...ae.value,
@@ -54564,8 +54618,8 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
54564
54618
  }, n && (n.checked = i), G(`区域要素显隐更新失败:${Re(t)}`);
54565
54619
  }
54566
54620
  }
54567
- function $t(e, t) {
54568
- let n = (Vk()?.manager?.modules?.lanemodulen)?.getLayerGroup?.(e.layerName);
54621
+ function an(e, t) {
54622
+ let n = (Hk()?.manager?.modules?.lanemodulen)?.getLayerGroup?.(e.layerName);
54569
54623
  if (!n) return !1;
54570
54624
  t && (n.visible = !0);
54571
54625
  let r = new Set(it(e));
@@ -54577,15 +54631,15 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
54577
54631
  Ze(e).some((e) => r.has(e)) && (e.visible = t, i = !0);
54578
54632
  }), i ||= (n.visible = t, !0), i;
54579
54633
  }
54580
- function en(e, t) {
54634
+ function on(e, t) {
54581
54635
  let n = t?.target, r = n?.checked === !0, i = oe.value[e.key] !== !1;
54582
54636
  oe.value = {
54583
54637
  ...oe.value,
54584
54638
  [e.key]: r
54585
54639
  };
54586
54640
  try {
54587
- if (!$t(e, r)) throw Error(`未找到巷道对象: ${e.displayName}`);
54588
- Gk(), A.value = I.value.some((e) => oe.value[e.key] !== !1), G(`巷道显隐已更新:${e.displayName} -> ${r ? "显示" : "隐藏"}`);
54641
+ if (!an(e, r)) throw Error(`未找到巷道对象: ${e.displayName}`);
54642
+ Kk(), A.value = I.value.some((e) => oe.value[e.key] !== !1), G(`巷道显隐已更新:${e.displayName} -> ${r ? "显示" : "隐藏"}`);
54589
54643
  } catch (t) {
54590
54644
  oe.value = {
54591
54645
  ...oe.value,
@@ -54593,9 +54647,9 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
54593
54647
  }, n && (n.checked = i), G(`巷道显隐更新失败:${Re(t)}`);
54594
54648
  }
54595
54649
  }
54596
- function tn(e, t) {
54650
+ function sn(e, t) {
54597
54651
  if (!Array.isArray(e) || e.length === 0) return 0;
54598
- let n = Vk()?.manager?.modules?.lanemodulen, r = [...new Set(e.map((e) => typeof e?.layerName == "string" ? e.layerName.trim() : "").filter(Boolean))], i = 0;
54652
+ let n = Hk()?.manager?.modules?.lanemodulen, r = [...new Set(e.map((e) => typeof e?.layerName == "string" ? e.layerName.trim() : "").filter(Boolean))], i = 0;
54599
54653
  r.forEach((e) => {
54600
54654
  let r = n?.getLayerGroup?.(e);
54601
54655
  r && (r.traverse?.((e) => {
@@ -54605,26 +54659,26 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
54605
54659
  let a = { ...oe.value };
54606
54660
  return e.forEach((e) => {
54607
54661
  a[e.key] = t;
54608
- }), oe.value = a, A.value = t, Gk(), i;
54662
+ }), oe.value = a, A.value = t, Kk(), i;
54609
54663
  }
54610
- function nn() {
54664
+ function cn() {
54611
54665
  if (I.value.length === 0) {
54612
54666
  N.value = "当前没有可切换的巷道";
54613
54667
  return;
54614
54668
  }
54615
- let e = !A.value, t = tn(I.value, e);
54669
+ let e = !A.value, t = sn(I.value, e);
54616
54670
  N.value = e ? `已显示 ${t} 条巷道` : `已隐藏 ${t} 条巷道`, G(e ? `已批量显示巷道:${t} 条` : `已批量隐藏巷道:${t} 条`);
54617
54671
  }
54618
- function rn() {
54672
+ function ln() {
54619
54673
  if (be.value.length === 0) {
54620
54674
  N.value = "当前没有可切换的区域";
54621
54675
  return;
54622
54676
  }
54623
- let e = !T.value, t = Zt(be.value, e);
54677
+ let e = !T.value, t = nn(be.value, e);
54624
54678
  N.value = e ? `已显示 ${t} 个区域` : `已隐藏 ${t} 个区域,当前仅保留巷道显示`, G(e ? `已批量显示区域:${t} 个` : `已批量隐藏区域:${t} 个,保留巷道显示`);
54625
54679
  }
54626
- async function an(e) {
54627
- let t = UA[e] ?? e, n = F.value[e];
54680
+ async function un(e) {
54681
+ let t = WA[e] ?? e, n = F.value[e];
54628
54682
  if (!n) throw Error(`未找到手动加载类型: ${e}`);
54629
54683
  if (n.loading) {
54630
54684
  G(`${t}正在加载,已忽略重复请求`);
@@ -54636,92 +54690,92 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
54636
54690
  }
54637
54691
  n.loading = !0, G(`开始手动加载:${t}`);
54638
54692
  try {
54639
- let t = await ej(e);
54693
+ let t = await tj(e);
54640
54694
  n.loaded = t.loaded, G(t.summary);
54641
54695
  } finally {
54642
54696
  n.loading = !1;
54643
54697
  }
54644
54698
  }
54645
- async function on({ trigger: e = "manual", forceReload: t = !1 } = {}) {
54699
+ async function dn({ trigger: e = "manual", forceReload: t = !1 } = {}) {
54646
54700
  if (m.value) return G("数据源正在加载,已忽略重复请求"), null;
54647
54701
  if (_.value && !t) return G("区域要素与巷道已加载,跳过重复请求"), null;
54648
54702
  let n = e === "auto" ? "自动" : "手动";
54649
54703
  m.value = !0, G(`${n}加载开始:区域要素与巷道`);
54650
54704
  try {
54651
- let e = await $A();
54652
- return _.value = !0, at(e.regionItems), J(e.laneItems), Yt(e.laneItems), Dt(), vt({ resetPositions: !0 }), T.value = e.regionItems.length > 0, A.value = e.laneItems.length > 0, G(`${n}加载完成:${e.summary}`), e.result;
54705
+ let e = await ej();
54706
+ return _.value = !0, at(e.regionItems), J(e.laneItems), en(e.laneItems), At(), yt({ resetPositions: !0 }), T.value = e.regionItems.length > 0, A.value = e.laneItems.length > 0, (e.regionItems.length > 0 || e.laneItems.length > 0) && Xt(), G(`${n}加载完成:${e.summary}`), e.result;
54653
54707
  } finally {
54654
54708
  m.value = !1;
54655
54709
  }
54656
54710
  }
54657
- async function sn(e) {
54711
+ async function fn(e) {
54658
54712
  try {
54659
54713
  if (e === "resize") {
54660
- Uk(), G("已触发场景 resize");
54714
+ Wk(), G("已触发场景 resize");
54661
54715
  return;
54662
54716
  }
54663
54717
  if (e === "editor") {
54664
- G(`editor 可用,当前 selected id: ${Vk()?.selected?.id ?? "none"}`);
54718
+ G(`editor 可用,当前 selected id: ${Hk()?.selected?.id ?? "none"}`);
54665
54719
  return;
54666
54720
  }
54667
54721
  if (e === "interfaces") {
54668
- let e = Hk();
54722
+ let e = Uk();
54669
54723
  G(`interfaces 可用,activingTool 字段存在: ${Object.prototype.hasOwnProperty.call(e, "activingTool")}`);
54670
54724
  return;
54671
54725
  }
54672
54726
  if (e === "sdkViewState") {
54673
- let e = Bk(), t = Vk(), n = t?.camera?.position?.clone?.(), r = t?.controls?.center?.clone?.();
54727
+ let e = Vk(), t = Hk(), n = t?.camera?.position?.clone?.(), r = t?.controls?.center?.clone?.();
54674
54728
  if (!n || !r) throw Error("当前 SDK 未提供可读取的 camera.position 或 controls.center");
54675
54729
  console.log(n), console.log(r), G(`已打印 SDK 视口参数,window.lr3dapp 可用: ${e === window.lr3dapp}`);
54676
54730
  return;
54677
54731
  }
54678
54732
  if (e === "refresh") {
54679
- Gk(), G("已触发 sceneGraphChanged 刷新");
54733
+ Kk(), G("已触发 sceneGraphChanged 刷新");
54680
54734
  return;
54681
54735
  }
54682
54736
  if (e === "tool") {
54683
54737
  let e = f.value.trim();
54684
54738
  if (!e) throw Error("请先输入工具名称");
54685
- await Kk(e), G(`activeTool 调用完成: ${e}`);
54739
+ await qk(e), G(`activeTool 调用完成: ${e}`);
54686
54740
  return;
54687
54741
  }
54688
54742
  if (e === "datasource") {
54689
- await on({ trigger: "manual" });
54743
+ await dn({ trigger: "manual" });
54690
54744
  return;
54691
54745
  }
54692
54746
  if (e === "regionAssist") {
54693
- await an("regionAssist");
54747
+ await un("regionAssist");
54694
54748
  return;
54695
54749
  }
54696
54750
  if (e === "coalResvers") {
54697
- await an("coalResvers");
54751
+ await un("coalResvers");
54698
54752
  return;
54699
54753
  }
54700
54754
  if (e === "boundary") {
54701
- await an("boundary");
54755
+ await un("boundary");
54702
54756
  return;
54703
54757
  }
54704
54758
  if (e === "geology") {
54705
- await an("geology");
54759
+ await un("geology");
54706
54760
  return;
54707
54761
  }
54708
54762
  if (e === "pointSymbol") {
54709
- await an("pointSymbol");
54763
+ await un("pointSymbol");
54710
54764
  return;
54711
54765
  }
54712
54766
  if (e === "coal") {
54713
- await an("coal");
54767
+ await un("coal");
54714
54768
  return;
54715
54769
  }
54716
54770
  if (e === "geofault") {
54717
- await an("geofault");
54771
+ await un("geofault");
54718
54772
  return;
54719
54773
  }
54720
54774
  } catch (e) {
54721
54775
  G(`调试失败: ${Re(e)}`);
54722
54776
  }
54723
54777
  }
54724
- async function cn() {
54778
+ async function pn() {
54725
54779
  if (!u.value) {
54726
54780
  d.value = "error", G(`场景初始化失败:未找到场景容器 ${l.value}`);
54727
54781
  return;
@@ -54729,244 +54783,244 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
54729
54783
  d.value = "loading", G("开始加载龙软 GIS SDK 脚本");
54730
54784
  try {
54731
54785
  d.value = "initializing", G("SDK 脚本加载完成,开始创建 EditorApp 实例");
54732
- let { globalName: e } = await Rk(u.value);
54786
+ let { globalName: e } = await zk(u.value);
54733
54787
  if (Xe(), nt(), d.value = "ready", G(`场景初始化成功,检测到全局对象:${e}`), ot(), Ee.value) try {
54734
- await on({ trigger: "auto" });
54788
+ await dn({ trigger: "auto" });
54735
54789
  } catch (e) {
54736
54790
  G(`场景初始化成功,自动加载失败:${Re(e)}`);
54737
54791
  }
54738
- else G("场景初始化成功,未开启自动云数据加载"), vt({ resetPositions: !0 });
54739
- Me.value && !he.value && vt({ resetPositions: !0 });
54792
+ else G("场景初始化成功,未开启自动云数据加载"), yt({ resetPositions: !0 });
54793
+ Me.value && !he.value && yt({ resetPositions: !0 });
54740
54794
  } catch (e) {
54741
- d.value = "error", G(`场景初始化失败:${Re(e)}`), at([]), J([]), Lk(u.value);
54795
+ d.value = "error", G(`场景初始化失败:${Re(e)}`), at([]), J([]), Rk(u.value);
54742
54796
  }
54743
54797
  }
54744
54798
  return v(() => {
54745
- cn();
54799
+ pn();
54746
54800
  }), y(() => {
54747
- U += 1, ue.value = "", R.value = [], z.value = "idle", se.value = "", ce.value = {}, Ke(), ne.value?.(), Dt(), at([]), J([]), Lk(u.value);
54801
+ U += 1, ue.value = "", R.value = [], z.value = "idle", se.value = "", ce.value = {}, Ke(), ne.value?.(), At(), at([]), J([]), Rk(u.value);
54748
54802
  }), n({
54749
- initializeDemoPerson: Mt,
54750
- startDemoPersonMotion: kt,
54751
- stopDemoPersonMotion: At,
54752
- toggleDemoPersonMotion: jt,
54753
- focusDemoPerson: Ut,
54754
- saveView: Bt,
54755
- restoreView: Vt,
54756
- moveView: Wt,
54803
+ initializeDemoPerson: Ft,
54804
+ startDemoPersonMotion: Mt,
54805
+ stopDemoPersonMotion: Nt,
54806
+ toggleDemoPersonMotion: Pt,
54807
+ focusDemoPerson: Kt,
54808
+ saveView: Ut,
54809
+ restoreView: Wt,
54810
+ moveView: qt,
54757
54811
  registerModelInfoQuery: rt
54758
- }), (e, n) => (b(), o("section", sj, [s("div", { class: h(["lr3d-viewer__stage", { "lr3d-viewer__stage--with-debug": i.showDebugPanel && B.value }]) }, [s("div", cj, [
54812
+ }), (e, n) => (b(), o("section", cj, [s("div", { class: h(["lr3d-viewer__stage", { "lr3d-viewer__stage--with-debug": i.showDebugPanel && B.value }]) }, [s("div", lj, [
54759
54813
  s("div", {
54760
54814
  id: l.value,
54761
54815
  ref_key: "viewerHost",
54762
54816
  ref: u,
54763
54817
  class: "lr3d-viewer__host"
54764
- }, null, 8, lj),
54765
- d.value === "ready" && Te.value.length > 0 ? (b(), o("div", uj, [(b(!0), o(t, null, S(Te.value, (e) => (b(), o("div", {
54818
+ }, null, 8, uj),
54819
+ d.value === "ready" && Te.value.length > 0 ? (b(), o("div", dj, [(b(!0), o(t, null, S(Te.value, (e) => (b(), o("div", {
54766
54820
  key: `monitor-point-${e.id}`,
54767
54821
  class: h(["lr3d-monitor-overlay__point", [e.iconMeta.modifierClass, { "lr3d-monitor-overlay__point--active": e.isActive }]]),
54768
54822
  style: g(e.screenStyle ?? { display: "none" }),
54769
54823
  onClick: k((t) => q(e), ["stop"])
54770
54824
  }, [
54771
54825
  n[18] ||= s("span", { class: "lr3d-monitor-overlay__pulse" }, null, -1),
54772
- s("span", fj, w(e.iconMeta.shortLabel), 1),
54826
+ s("span", pj, w(e.iconMeta.shortLabel), 1),
54773
54827
  e.isActive && W.value ? (b(), o("div", {
54774
54828
  key: 0,
54775
54829
  class: "lr3d-monitor-overlay__popup",
54776
54830
  onClick: n[0] ||= k(() => {}, ["stop"])
54777
54831
  }, [
54778
- s("div", pj, [s("div", null, [s("h4", mj, w(W.value.name), 1), s("p", hj, w(W.value.type), 1)]), s("button", {
54832
+ s("div", mj, [s("div", null, [s("h4", hj, w(W.value.name), 1), s("p", gj, w(W.value.type), 1)]), s("button", {
54779
54833
  type: "button",
54780
54834
  class: "lr3d-monitor-overlay__popup-close",
54781
54835
  onClick: k(Ve, ["stop"])
54782
54836
  }, " 关闭 ")]),
54783
- s("p", gj, w(ze(W.value.position)), 1),
54784
- s("div", _j, [(b(!0), o(t, null, S(Be(W.value), ([e, t]) => (b(), o("div", {
54837
+ s("p", _j, w(ze(W.value.position)), 1),
54838
+ s("div", vj, [(b(!0), o(t, null, S(Be(W.value), ([e, t]) => (b(), o("div", {
54785
54839
  key: `${W.value.id}-${e}`,
54786
54840
  class: "lr3d-monitor-overlay__popup-row"
54787
54841
  }, [s("span", null, w(e), 1), s("strong", null, w(t), 1)]))), 128))])
54788
54842
  ])) : a("", !0)
54789
- ], 14, dj))), 128))])) : a("", !0),
54790
- d.value === "ready" && (Ae.value.length > 0 || i.showMonitorPanel || i.showDebugPanel) ? (b(), o("div", vj, [s("nav", yj, [
54843
+ ], 14, fj))), 128))])) : a("", !0),
54844
+ d.value === "ready" && (Ae.value.length > 0 || i.showMonitorPanel || i.showDebugPanel) ? (b(), o("div", yj, [s("nav", bj, [
54791
54845
  i.showDebugPanel ? (b(), o("button", {
54792
54846
  key: 0,
54793
54847
  type: "button",
54794
54848
  class: h(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": B.value }]),
54795
54849
  "aria-pressed": B.value ? "true" : "false",
54796
- onClick: Jt
54797
- }, " 调试 ", 10, bj)) : a("", !0),
54850
+ onClick: $t
54851
+ }, " 调试 ", 10, xj)) : a("", !0),
54798
54852
  i.showMonitorPanel ? (b(), o("button", {
54799
54853
  key: 1,
54800
54854
  type: "button",
54801
54855
  class: h(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": fe.value }]),
54802
54856
  "aria-pressed": fe.value ? "true" : "false",
54803
- onClick: qt
54804
- }, " 监测点 ", 10, xj)) : a("", !0),
54857
+ onClick: Qt
54858
+ }, " 监测点 ", 10, Sj)) : a("", !0),
54805
54859
  Ae.value.length > 0 ? (b(), o("button", {
54806
54860
  key: 2,
54807
54861
  type: "button",
54808
54862
  class: h(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": pe.value }]),
54809
54863
  "aria-pressed": pe.value ? "true" : "false",
54810
- onClick: Kt
54811
- }, " 视角 ", 10, Sj)) : a("", !0)
54812
- ]), Ae.value.length > 0 && pe.value ? (b(), o("aside", Cj, [
54813
- s("div", wj, [n[19] ||= s("h3", { class: "lr3d-viewpoint-panel__title" }, "视角控制", -1), s("span", Tj, w(Ae.value.length) + " 个固定视角", 1)]),
54814
- s("div", Ej, [(b(!0), o(t, null, S(Ae.value, (e) => (b(), o("button", {
54864
+ onClick: Zt
54865
+ }, " 视角 ", 10, Cj)) : a("", !0)
54866
+ ]), Ae.value.length > 0 && pe.value ? (b(), o("aside", wj, [
54867
+ s("div", Tj, [n[19] ||= s("h3", { class: "lr3d-viewpoint-panel__title" }, "视角控制", -1), s("span", Ej, w(Ae.value.length) + " 个固定视角", 1)]),
54868
+ s("div", Dj, [(b(!0), o(t, null, S(Ae.value, (e) => (b(), o("button", {
54815
54869
  key: e.key,
54816
54870
  type: "button",
54817
54871
  class: h(["lr3d-viewpoint-panel__button", { "lr3d-viewpoint-panel__button--active": me.value === e.key }]),
54818
- onClick: (t) => Gt(e)
54819
- }, w(e.name), 11, Dj))), 128))]),
54820
- s("p", Oj, "当前视角:" + w(je.value), 1)
54872
+ onClick: (t) => Jt(e)
54873
+ }, w(e.name), 11, Oj))), 128))]),
54874
+ s("p", kj, "当前视角:" + w(je.value), 1)
54821
54875
  ])) : a("", !0)])) : a("", !0),
54822
- d.value === "ready" && (i.showRegionPanel || i.showMonitorPanel) ? (b(), o("div", kj, [i.showRegionPanel && d.value === "ready" ? (b(), o("aside", {
54876
+ d.value === "ready" && (i.showRegionPanel || i.showMonitorPanel) ? (b(), o("div", Aj, [i.showRegionPanel && d.value === "ready" ? (b(), o("aside", {
54823
54877
  key: 0,
54824
54878
  class: h(["lr3d-workface-panel", { "lr3d-workface-panel--expanded": C.value }])
54825
- }, [s("div", Aj, [n[20] ||= s("h3", { class: "lr3d-workface-panel__title" }, "图层控制", -1), s("button", {
54879
+ }, [s("div", jj, [n[20] ||= s("h3", { class: "lr3d-workface-panel__title" }, "图层控制", -1), s("button", {
54826
54880
  type: "button",
54827
54881
  class: "lr3d-workface-panel__toggle",
54828
54882
  onClick: n[1] ||= (e) => C.value = !C.value
54829
- }, w(C.value ? "收起" : "展开"), 1)]), C.value ? (b(), o("div", jj, [
54830
- s("p", Mj, " 当前区域要素数量:" + w(be.value.length) + ",巷道数量:" + w(I.value.length), 1),
54831
- s("div", Nj, [s("button", {
54883
+ }, w(C.value ? "收起" : "展开"), 1)]), C.value ? (b(), o("div", Mj, [
54884
+ s("p", Nj, " 当前区域要素数量:" + w(be.value.length) + ",巷道数量:" + w(I.value.length), 1),
54885
+ s("div", Pj, [s("button", {
54832
54886
  type: "button",
54833
54887
  class: "lr3d-workface-panel__action lr3d-workface-panel__action--secondary",
54834
- onClick: rn
54888
+ onClick: ln
54835
54889
  }, w(T.value ? "隐藏区域" : "显示区域"), 1), s("button", {
54836
54890
  type: "button",
54837
54891
  class: "lr3d-workface-panel__action lr3d-workface-panel__action--secondary",
54838
- onClick: nn
54892
+ onClick: cn
54839
54893
  }, w(A.value ? "隐藏巷道" : "显示巷道"), 1)]),
54840
- s("p", Pj, w(N.value), 1),
54841
- Se.value ? (b(), o("div", Ij, [(b(!0), o(t, null, S(xe.value, (e) => (b(), o("section", {
54894
+ s("p", Fj, w(N.value), 1),
54895
+ Se.value ? (b(), o("div", Lj, [(b(!0), o(t, null, S(xe.value, (e) => (b(), o("section", {
54842
54896
  key: e.featureType,
54843
54897
  class: "lr3d-workface-panel__group"
54844
- }, [s("h4", Lj, w(e.typeLabel) + "(" + w(e.items.length) + ") ", 1), s("ul", Rj, [(b(!0), o(t, null, S(e.items, (e) => (b(), o("li", {
54898
+ }, [s("h4", Rj, w(e.typeLabel) + "(" + w(e.items.length) + ") ", 1), s("ul", zj, [(b(!0), o(t, null, S(e.items, (e) => (b(), o("li", {
54845
54899
  key: e.key,
54846
54900
  class: "lr3d-workface-panel__item"
54847
- }, [s("label", zj, [s("input", {
54901
+ }, [s("label", Bj, [s("input", {
54848
54902
  type: "checkbox",
54849
54903
  checked: ae.value[e.key] !== !1,
54850
- onChange: (t) => Qt(e, t)
54851
- }, null, 40, Bj), s("span", null, w(e.displayName), 1)])]))), 128))])]))), 128)), I.value.length > 0 ? (b(), o("section", Vj, [s("h4", Hj, " 巷道(" + w(I.value.length) + ") ", 1), s("ul", Uj, [(b(!0), o(t, null, S(I.value, (e) => (b(), o("li", {
54904
+ onChange: (t) => rn(e, t)
54905
+ }, null, 40, Vj), s("span", null, w(e.displayName), 1)])]))), 128))])]))), 128)), I.value.length > 0 ? (b(), o("section", Hj, [s("h4", Uj, " 巷道(" + w(I.value.length) + ") ", 1), s("ul", Wj, [(b(!0), o(t, null, S(I.value, (e) => (b(), o("li", {
54852
54906
  key: e.key,
54853
54907
  class: "lr3d-workface-panel__item"
54854
- }, [s("label", Wj, [s("input", {
54908
+ }, [s("label", Gj, [s("input", {
54855
54909
  type: "checkbox",
54856
54910
  checked: oe.value[e.key] !== !1,
54857
- onChange: (t) => en(e, t)
54858
- }, null, 40, Gj), s("span", null, w(e.displayName), 1)])]))), 128))])])) : a("", !0)])) : (b(), o("div", Fj, " 暂无可控制的区域要素或巷道 "))
54859
- ])) : a("", !0)], 2)) : a("", !0), i.showMonitorPanel && fe.value ? (b(), o("aside", Kj, [
54860
- s("div", qj, [n[21] ||= s("div", null, [s("h3", { class: "lr3d-monitor-panel__title" }, "监测点"), s("p", { class: "lr3d-monitor-panel__subtitle" }, "四类监测点 mock 数据面板")], -1), s("button", {
54911
+ onChange: (t) => on(e, t)
54912
+ }, null, 40, Kj), s("span", null, w(e.displayName), 1)])]))), 128))])])) : a("", !0)])) : (b(), o("div", Ij, " 暂无可控制的区域要素或巷道 "))
54913
+ ])) : a("", !0)], 2)) : a("", !0), i.showMonitorPanel && fe.value ? (b(), o("aside", qj, [
54914
+ s("div", Jj, [n[21] ||= s("div", null, [s("h3", { class: "lr3d-monitor-panel__title" }, "监测点"), s("p", { class: "lr3d-monitor-panel__subtitle" }, "四类监测点 mock 数据面板")], -1), s("button", {
54861
54915
  type: "button",
54862
54916
  class: "lr3d-monitor-panel__refresh",
54863
54917
  disabled: z.value === "loading",
54864
54918
  onClick: n[2] ||= (e) => ot({ forceReload: !0 })
54865
- }, w(z.value === "loading" ? "加载中" : "刷新"), 9, Jj)]),
54866
- s("div", Yj, [(b(!0), o(t, null, S(Ce.value, (e) => (b(), o("button", {
54919
+ }, w(z.value === "loading" ? "加载中" : "刷新"), 9, Yj)]),
54920
+ s("div", Xj, [(b(!0), o(t, null, S(Ce.value, (e) => (b(), o("button", {
54867
54921
  key: e.type,
54868
54922
  type: "button",
54869
54923
  class: h(["lr3d-monitor-panel__tab", { "lr3d-monitor-panel__tab--active": de.value === e.type }]),
54870
54924
  onClick: (t) => de.value = e.type
54871
- }, w(e.label) + "(" + w(e.count) + ") ", 11, Xj))), 128))]),
54872
- z.value === "loading" ? (b(), o("div", Zj, " 正在异步读取监测点 mock 数据... ")) : z.value === "error" ? (b(), o("div", Qj, " 监测点数据加载失败:" + w(se.value), 1)) : de.value === "人员定位" && Me.value ? (b(), o("ul", $j, [(b(!0), o(t, null, S(ge.value, (e) => (b(), o("li", {
54925
+ }, w(e.label) + "(" + w(e.count) + ") ", 11, Zj))), 128))]),
54926
+ z.value === "loading" ? (b(), o("div", Qj, " 正在异步读取监测点 mock 数据... ")) : z.value === "error" ? (b(), o("div", $j, " 监测点数据加载失败:" + w(se.value), 1)) : de.value === "人员定位" && Me.value ? (b(), o("ul", eM, [(b(!0), o(t, null, S(ge.value, (e) => (b(), o("li", {
54873
54927
  key: e.key,
54874
54928
  class: "lr3d-monitor-panel__item"
54875
54929
  }, [
54876
- s("div", eM, [s("strong", null, w(e.name), 1), s("span", null, w(e.duty), 1)]),
54930
+ s("div", tM, [s("strong", null, w(e.name), 1), s("span", null, w(e.duty), 1)]),
54877
54931
  n[22] ||= s("p", { class: "lr3d-monitor-panel__item-type" }, "人员定位", -1),
54878
- s("p", tM, " 当前位置:" + w(Et(e.currentPosition)), 1),
54879
- s("p", nM, " 当前时间:" + w(e.currentTimeLabel), 1),
54880
- s("p", rM, " 轨迹点:" + w(e.pointsHistory.length) + " 个,移动状态:" + w(e.status), 1),
54881
- s("div", iM, [s("button", {
54932
+ s("p", nM, " 当前位置:" + w(kt(e.currentPosition)), 1),
54933
+ s("p", rM, " 当前时间:" + w(e.currentTimeLabel), 1),
54934
+ s("p", iM, " 轨迹点:" + w(e.pointsHistory.length) + " 个,移动状态:" + w(e.status), 1),
54935
+ s("div", aM, [s("button", {
54882
54936
  type: "button",
54883
54937
  class: "lr3d-monitor-panel__item-action",
54884
- onClick: (t) => Tt(e)
54885
- }, " 人员定位 ", 8, aM), s("button", {
54938
+ onClick: (t) => Ot(e)
54939
+ }, " 人员定位 ", 8, oM), s("button", {
54886
54940
  type: "button",
54887
54941
  class: "lr3d-monitor-panel__item-action",
54888
54942
  disabled: e.pointsHistory.length < 2,
54889
- onClick: (t) => Ct(e.sceneId)
54890
- }, w(e.isMoving ? "重新播放" : "人员移动"), 9, oM)])
54891
- ]))), 128))])) : we.value.length === 0 ? (b(), o("div", sM, " 当前分类暂无监测点数据 ")) : (b(), o("ul", cM, [(b(!0), o(t, null, S(we.value, (e) => (b(), o("li", {
54943
+ onClick: (t) => Et(e.sceneId)
54944
+ }, w(e.isMoving ? "重新播放" : "人员移动"), 9, sM)])
54945
+ ]))), 128))])) : we.value.length === 0 ? (b(), o("div", cM, " 当前分类暂无监测点数据 ")) : (b(), o("ul", lM, [(b(!0), o(t, null, S(we.value, (e) => (b(), o("li", {
54892
54946
  key: e.id,
54893
54947
  class: h(["lr3d-monitor-panel__item lr3d-monitor-panel__item--clickable", { "lr3d-monitor-panel__item--active": ue.value === e.id }]),
54894
54948
  onClick: (t) => Ue(e)
54895
54949
  }, [
54896
- s("div", uM, [s("strong", null, w(e.name), 1), s("span", null, w(e.id), 1)]),
54897
- s("p", dM, w(e.type), 1),
54898
- s("p", fM, w(ze(e.position)), 1),
54899
- s("div", pM, [(b(!0), o(t, null, S(Be(e), ([t, n]) => (b(), o("span", {
54950
+ s("div", dM, [s("strong", null, w(e.name), 1), s("span", null, w(e.id), 1)]),
54951
+ s("p", fM, w(e.type), 1),
54952
+ s("p", pM, w(ze(e.position)), 1),
54953
+ s("div", mM, [(b(!0), o(t, null, S(Be(e), ([t, n]) => (b(), o("span", {
54900
54954
  key: `${e.id}-${t}`,
54901
54955
  class: "lr3d-monitor-panel__item-chip"
54902
54956
  }, w(t) + ":" + w(n), 1))), 128))])
54903
- ], 10, lM))), 128))]))
54957
+ ], 10, uM))), 128))]))
54904
54958
  ])) : a("", !0)])) : a("", !0),
54905
- i.showDebugPanel && B.value ? (b(), o("section", mM, [
54906
- s("div", hM, [n[23] ||= s("div", { class: "lr3d-debug-panel__header" }, [s("h2", null, "基础调试面板"), s("p", null, "用于验证基础 API 是否可调用")], -1), s("div", gM, [
54959
+ i.showDebugPanel && B.value ? (b(), o("section", hM, [
54960
+ s("div", gM, [n[23] ||= s("div", { class: "lr3d-debug-panel__header" }, [s("h2", null, "基础调试面板"), s("p", null, "用于验证基础 API 是否可调用")], -1), s("div", _M, [
54907
54961
  s("button", {
54908
54962
  type: "button",
54909
- onClick: n[3] ||= (e) => sn("resize")
54963
+ onClick: n[3] ||= (e) => fn("resize")
54910
54964
  }, "Resize 场景"),
54911
54965
  s("button", {
54912
54966
  type: "button",
54913
- onClick: n[4] ||= (e) => sn("refresh")
54967
+ onClick: n[4] ||= (e) => fn("refresh")
54914
54968
  }, "测试刷新(sceneGraphChanged)"),
54915
54969
  s("button", {
54916
54970
  type: "button",
54917
- onClick: n[5] ||= (e) => sn("editor")
54971
+ onClick: n[5] ||= (e) => fn("editor")
54918
54972
  }, "检查 editor"),
54919
54973
  s("button", {
54920
54974
  type: "button",
54921
- onClick: n[6] ||= (e) => sn("interfaces")
54975
+ onClick: n[6] ||= (e) => fn("interfaces")
54922
54976
  }, "检查 interfaces"),
54923
54977
  s("button", {
54924
54978
  type: "button",
54925
- onClick: n[7] ||= (e) => sn("sdkViewState")
54979
+ onClick: n[7] ||= (e) => fn("sdkViewState")
54926
54980
  }, "打印 SDK 视口参数"),
54927
54981
  s("button", {
54928
54982
  type: "button",
54929
- onClick: n[8] ||= (e) => sn("datasource")
54983
+ onClick: n[8] ||= (e) => fn("datasource")
54930
54984
  }, "手动重试加载区域+巷道")
54931
54985
  ])]),
54932
- s("div", _M, [n[24] ||= s("div", { class: "lr3d-debug-panel__header" }, [s("h2", null, "手动加载其他类型"), s("p", null, "默认不自动加载,按按钮逐项触发")], -1), s("div", vM, [
54986
+ s("div", vM, [n[24] ||= s("div", { class: "lr3d-debug-panel__header" }, [s("h2", null, "手动加载其他类型"), s("p", null, "默认不自动加载,按按钮逐项触发")], -1), s("div", yM, [
54933
54987
  s("button", {
54934
54988
  type: "button",
54935
54989
  disabled: F.value.regionAssist.loading,
54936
- onClick: n[9] ||= (e) => sn("regionAssist")
54937
- }, " 加载掘进辅助 ", 8, yM),
54990
+ onClick: n[9] ||= (e) => fn("regionAssist")
54991
+ }, " 加载掘进辅助 ", 8, bM),
54938
54992
  s("button", {
54939
54993
  type: "button",
54940
54994
  disabled: F.value.coalResvers.loading,
54941
- onClick: n[10] ||= (e) => sn("coalResvers")
54942
- }, " 加载储量块段 ", 8, bM),
54995
+ onClick: n[10] ||= (e) => fn("coalResvers")
54996
+ }, " 加载储量块段 ", 8, xM),
54943
54997
  s("button", {
54944
54998
  type: "button",
54945
54999
  disabled: F.value.boundary.loading,
54946
- onClick: n[11] ||= (e) => sn("boundary")
54947
- }, " 加载矿井边界 ", 8, xM),
55000
+ onClick: n[11] ||= (e) => fn("boundary")
55001
+ }, " 加载矿井边界 ", 8, SM),
54948
55002
  s("button", {
54949
55003
  type: "button",
54950
55004
  disabled: F.value.geology.loading,
54951
- onClick: n[12] ||= (e) => sn("geology")
54952
- }, " 加载地质体 ", 8, SM),
55005
+ onClick: n[12] ||= (e) => fn("geology")
55006
+ }, " 加载地质体 ", 8, CM),
54953
55007
  s("button", {
54954
55008
  type: "button",
54955
55009
  disabled: F.value.pointSymbol.loading,
54956
- onClick: n[13] ||= (e) => sn("pointSymbol")
54957
- }, " 加载点符号 ", 8, CM),
55010
+ onClick: n[13] ||= (e) => fn("pointSymbol")
55011
+ }, " 加载点符号 ", 8, wM),
54958
55012
  s("button", {
54959
55013
  type: "button",
54960
55014
  disabled: F.value.coal.loading,
54961
- onClick: n[14] ||= (e) => sn("coal")
54962
- }, " 加载煤层 ", 8, wM),
55015
+ onClick: n[14] ||= (e) => fn("coal")
55016
+ }, " 加载煤层 ", 8, TM),
54963
55017
  s("button", {
54964
55018
  type: "button",
54965
55019
  disabled: F.value.geofault.loading,
54966
- onClick: n[15] ||= (e) => sn("geofault")
54967
- }, " 加载断层 ", 8, TM)
55020
+ onClick: n[15] ||= (e) => fn("geofault")
55021
+ }, " 加载断层 ", 8, EM)
54968
55022
  ])]),
54969
- s("div", EM, [n[26] ||= s("div", { class: "lr3d-debug-panel__header" }, [s("h2", null, "工具命令"), s("p", null, "快速调用 SDK 内置 activeTool")], -1), s("div", DM, [
55023
+ s("div", DM, [n[26] ||= s("div", { class: "lr3d-debug-panel__header" }, [s("h2", null, "工具命令"), s("p", null, "快速调用 SDK 内置 activeTool")], -1), s("div", OM, [
54970
55024
  n[25] ||= s("label", { for: "lr3d-tool-input" }, "activeTool 名称", -1),
54971
55025
  O(s("input", {
54972
55026
  id: "lr3d-tool-input",
@@ -54976,16 +55030,16 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
54976
55030
  }, null, 512), [[E, f.value]]),
54977
55031
  s("button", {
54978
55032
  type: "button",
54979
- onClick: n[17] ||= (e) => sn("tool")
55033
+ onClick: n[17] ||= (e) => fn("tool")
54980
55034
  }, "执行 activeTool")
54981
55035
  ])]),
54982
- s("pre", OM, w(p.value), 1)
55036
+ s("pre", kM, w(p.value), 1)
54983
55037
  ])) : a("", !0),
54984
- d.value === "idle" || d.value === "loading" ? (b(), o("div", kM, [...n[27] ||= [s("p", null, "正在准备三维场景", -1), s("small", null, "SDK 脚本加载完成后会在当前容器内创建最小场景实例", -1)]])) : a("", !0),
54985
- d.value === "error" ? (b(), o("div", AM, [...n[28] ||= [s("p", null, "最小初始化未完成", -1), s("small", null, "请根据状态信息检查 SDK 依赖或资源路径", -1)]])) : a("", !0)
55038
+ d.value === "idle" || d.value === "loading" ? (b(), o("div", AM, [...n[27] ||= [s("p", null, "正在准备三维场景", -1), s("small", null, "SDK 脚本加载完成后会在当前容器内创建最小场景实例", -1)]])) : a("", !0),
55039
+ d.value === "error" ? (b(), o("div", jM, [...n[28] ||= [s("p", null, "最小初始化未完成", -1), s("small", null, "请根据状态信息检查 SDK 依赖或资源路径", -1)]])) : a("", !0)
54986
55040
  ])], 2)]));
54987
55041
  }
54988
- }, [["__scopeId", "data-v-d21c88c6"]]), BM = { class: "lr-map-viewer" }, VM = { class: "lr-map-viewer__stack" }, HM = /* @__PURE__ */ IA({
55042
+ }, [["__scopeId", "data-v-38700123"]]), HM = { class: "lr-map-viewer" }, UM = { class: "lr-map-viewer__stack" }, WM = /* @__PURE__ */ LA({
54989
55043
  __name: "LrMapViewer",
54990
55044
  props: {
54991
55045
  mode: {
@@ -55023,10 +55077,10 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
55023
55077
  },
55024
55078
  emits: ["mode-change"],
55025
55079
  setup(e, { expose: t, emit: n }) {
55026
- let c = e, l = n, u = x(PA(c.mode, c.modes)), d = x(null), f = x(null), p = x(zC(c.map2dConfig)), g = x(bw(c.lr3dConfig)), v = x({
55080
+ let c = e, l = n, u = x(FA(c.mode, c.modes)), d = x(null), f = x(null), p = x(zC(c.map2dConfig)), g = x(bw(c.lr3dConfig)), v = x({
55027
55081
  "2d": u.value === "2d",
55028
55082
  "3d": u.value === "3d"
55029
- }), y = x("idle"), S = x(""), C = x("idle"), T = x(""), E = 0, O = r(() => NA(c.modes)), k = r(() => O.value.includes("2d")), A = r(() => O.value.includes("3d"));
55083
+ }), y = x("idle"), S = x(""), C = x("idle"), T = x(""), E = 0, O = r(() => PA(c.modes)), k = r(() => O.value.includes("2d")), A = r(() => O.value.includes("3d"));
55030
55084
  function j(e) {
55031
55085
  return e instanceof Error ? e.message : String(e);
55032
55086
  }
@@ -55106,10 +55160,10 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
55106
55160
  qC();
55107
55161
  return;
55108
55162
  }
55109
- e === "3d" && Fk() && Uk();
55163
+ e === "3d" && Ik() && Wk();
55110
55164
  }
55111
55165
  function I(e) {
55112
- let t = PA(e, O.value);
55166
+ let t = FA(e, O.value);
55113
55167
  if (t === u.value) return u.value;
55114
55168
  P(t);
55115
55169
  let n = u.value;
@@ -55122,16 +55176,16 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
55122
55176
  return GC();
55123
55177
  }
55124
55178
  function z() {
55125
- return Fk();
55179
+ return Ik();
55126
55180
  }
55127
55181
  function se() {
55128
55182
  return u.value === "2d" ? R() : z();
55129
55183
  }
55130
55184
  function ce() {
55131
- return u.value === "2d" ? qC() : Fk() ? (Uk(), !0) : !1;
55185
+ return u.value === "2d" ? qC() : Ik() ? (Wk(), !0) : !1;
55132
55186
  }
55133
55187
  function le() {
55134
- return u.value !== "3d" || !Fk() ? !1 : (Gk(), !0);
55188
+ return u.value !== "3d" || !Ik() ? !1 : (Kk(), !0);
55135
55189
  }
55136
55190
  function ue(e, t, n) {
55137
55191
  return !d.value || typeof d.value.moveView != "function" ? !1 : d.value.moveView(e, t, n);
@@ -55179,7 +55233,7 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
55179
55233
  deep: !0,
55180
55234
  immediate: !0
55181
55235
  }), D(() => [c.mode, c.modes], ([e, t]) => {
55182
- let n = PA(e, t);
55236
+ let n = FA(e, t);
55183
55237
  if (n === u.value) return;
55184
55238
  P(n);
55185
55239
  let r = u.value;
@@ -55189,7 +55243,7 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
55189
55243
  }, { immediate: !0 }), D(d, (e) => {
55190
55244
  e && typeof e.registerModelInfoQuery == "function" && f.value && e.registerModelInfoQuery(f.value);
55191
55245
  }, { immediate: !0 }), _(() => {
55192
- KC(), Lk();
55246
+ KC(), Rk();
55193
55247
  }), t({
55194
55248
  switchMode: I,
55195
55249
  getCurrentMode: oe,
@@ -55207,10 +55261,10 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
55207
55261
  restoreView: fe,
55208
55262
  moveView: ue,
55209
55263
  registerModelInfoQuery: V
55210
- }), (t, n) => (b(), o("section", BM, [s("div", VM, [k.value ? (b(), o("div", {
55264
+ }), (t, n) => (b(), o("section", HM, [s("div", UM, [k.value ? (b(), o("div", {
55211
55265
  key: 0,
55212
55266
  class: h(["lr-map-viewer__layer", F("2d")])
55213
- }, [ie("2d") && y.value === "ready" ? (b(), i(BA, {
55267
+ }, [ie("2d") && y.value === "ready" ? (b(), i(VA, {
55214
55268
  key: 0,
55215
55269
  config: p.value
55216
55270
  }, null, 8, ["config"])) : ie("2d") ? (b(), o("div", {
@@ -55219,7 +55273,7 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
55219
55273
  }, [s("p", null, w(N("2d")), 1), s("small", null, w(te("2d")), 1)], 2)) : a("", !0)], 2)) : a("", !0), A.value ? (b(), o("div", {
55220
55274
  key: 1,
55221
55275
  class: h(["lr-map-viewer__layer", F("3d")])
55222
- }, [ie("3d") && C.value === "ready" ? (b(), i(zM, {
55276
+ }, [ie("3d") && C.value === "ready" ? (b(), i(VM, {
55223
55277
  key: 0,
55224
55278
  ref_key: "lr3dViewerRef",
55225
55279
  ref: d,
@@ -55237,10 +55291,10 @@ var sj = { class: "lr3d-viewer" }, cj = { class: "lr3d-viewer__canvas" }, lj = [
55237
55291
  class: h(["lr-map-viewer__placeholder", { "lr-map-viewer__placeholder--error": C.value === "error" }])
55238
55292
  }, [s("p", null, w(N("3d")), 1), s("small", null, w(te("3d")), 1)], 2)) : a("", !0)], 2)) : a("", !0)])]));
55239
55293
  }
55240
- }, [["__scopeId", "data-v-a3ea15dd"]]), UM = "LrMapViewer";
55241
- function WM(e) {
55242
- !e || typeof e.component != "function" || e.component(UM, HM);
55294
+ }, [["__scopeId", "data-v-a3ea15dd"]]), GM = "LrMapViewer";
55295
+ function KM(e) {
55296
+ !e || typeof e.component != "function" || e.component(GM, WM);
55243
55297
  }
55244
- var GM = { install: WM };
55298
+ var qM = { install: KM };
55245
55299
  //#endregion
55246
- export { BA as Lr2dViewer, zM as Lr3dViewer, HM as LrMapViewer, FA as canSwitchMapMode, WC as createLr2dAdapter, Rk as createLr3dInstance, GM as default, KC as destroyLr2dAdapter, Lk as destroyLr3dInstance, PC as getDefaultLr2dConfig, fw as getDefaultLr3dConfig, GC as getLr2dAdapterInstance, FC as getLr2dConfig, IC as getLr2dMapOptions, Bk as getLr3dApp, pw as getLr3dConfig, Vk as getLr3dEditor, jk as getLr3dGlobal, Fk as getLr3dInstance, Hk as getLr3dInterfaces, jC as getMissingLr2dOptionFields, AC as getRequiredLr2dOptionFields, jA as getSupportedMapModes, UA as gisManualLoadLabels, WM as install, MC as isLr2dConfigReady, $A as loadGisCloudDataSource, ej as loadGisManualData, wA as loadLr3dBoundaryData, xA as loadLr3dCloudDataSource, DA as loadLr3dCoalData, CA as loadLr3dCoalResversData, OA as loadLr3dGeoFaultData, TA as loadLr3dGeologyData, EA as loadLr3dPointSymbolData, SA as loadLr3dRegionAssistData, Mk as loadLr3dSdk, MA as normalizeMapMode, Gk as refreshLr3dSceneGraph, RC as resetLr2dConfig, yw as resetLr3dConfig, qC as resizeLr2dAdapter, Uk as resizeLr3d, Ik as resizeLr3dInstance, PA as resolveInitialMapMode, zC as resolveLr2dConfig, bw as resolveLr3dConfig, NA as resolveMapModes, Kk as runLr3dTool, LC as setLr2dConfig, vw as setLr3dConfig };
55300
+ export { VA as Lr2dViewer, VM as Lr3dViewer, WM as LrMapViewer, IA as canSwitchMapMode, WC as createLr2dAdapter, zk as createLr3dInstance, qM as default, KC as destroyLr2dAdapter, Rk as destroyLr3dInstance, PC as getDefaultLr2dConfig, fw as getDefaultLr3dConfig, GC as getLr2dAdapterInstance, FC as getLr2dConfig, IC as getLr2dMapOptions, Vk as getLr3dApp, pw as getLr3dConfig, Hk as getLr3dEditor, Mk as getLr3dGlobal, Ik as getLr3dInstance, Uk as getLr3dInterfaces, jC as getMissingLr2dOptionFields, AC as getRequiredLr2dOptionFields, MA as getSupportedMapModes, WA as gisManualLoadLabels, KM as install, MC as isLr2dConfigReady, ej as loadGisCloudDataSource, tj as loadGisManualData, TA as loadLr3dBoundaryData, SA as loadLr3dCloudDataSource, OA as loadLr3dCoalData, wA as loadLr3dCoalResversData, kA as loadLr3dGeoFaultData, EA as loadLr3dGeologyData, DA as loadLr3dPointSymbolData, CA as loadLr3dRegionAssistData, Nk as loadLr3dSdk, NA as normalizeMapMode, Kk as refreshLr3dSceneGraph, RC as resetLr2dConfig, yw as resetLr3dConfig, qC as resizeLr2dAdapter, Wk as resizeLr3d, Lk as resizeLr3dInstance, FA as resolveInitialMapMode, zC as resolveLr2dConfig, bw as resolveLr3dConfig, PA as resolveMapModes, qk as runLr3dTool, LC as setLr2dConfig, vw as setLr3dConfig };