@xtctwins/tctwins-bimx-engine 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { u as de, _ as ve, w as Te, h as Ce, i as Le, a as $e, r as ke, b as je, E as Oe, c as Me, d as Pe, e as He, f as ze, g as Fe, j as Q, k as qe, l as Re, s as Ve, m as Ue, n as We, o as X, p as Ne, T as we, q as Ye, t as Ge, v as Je, x as Qe } from "./index-DKHtwAZz.mjs";
2
- import { _ as Xe } from "./tallPanel-1CzQBBwR.mjs";
3
- import { _ as Ze } from "./panel.vue_vue_type_style_index_0_lang-DcZvptlN.mjs";
1
+ import { u as de, _ as ve, w as Te, h as Ce, i as Le, a as $e, r as ke, b as je, E as Oe, c as Me, d as Pe, e as He, f as ze, g as Fe, j as Q, k as qe, l as Re, s as Ve, m as Ue, n as We, o as X, p as Ne, T as we, q as Ye, t as Ge, v as Je, x as Qe } from "./index-CrYdrQmt.mjs";
2
+ import { _ as Xe } from "./tallPanel-9aSAu1ZV.mjs";
3
+ import { _ as Ze } from "./panel.vue_vue_type_style_index_0_lang-D6jJ0P3X.mjs";
4
4
  import { defineComponent as re, openBlock as K, createBlock as G, Transition as et, mergeProps as tt, unref as U, toHandlers as nt, withCtx as I, renderSlot as _e, reactive as ot, inject as se, h as xe, provide as he, ref as x, getCurrentInstance as Se, watch as M, nextTick as ye, resolveComponent as ee, withDirectives as W, createElementBlock as $, normalizeClass as P, withModifiers as Z, createElementVNode as _, normalizeStyle as st, resolveDynamicComponent as dt, createCommentVNode as ie, createVNode as S, Fragment as ce, renderList as ue, vShow as Y, shallowRef as De, onMounted as Ie, onUpdated as rt, computed as at, toDisplayString as q, onBeforeUnmount as it } from "vue";
5
5
  import { S as fe } from "./const-B1FlFgEN.mjs";
6
6
  import { Loading as lt, CaretRight as ct } from "@element-plus/icons-vue";
@@ -238,7 +238,7 @@ class te {
238
238
  if (!(this.shouldLoadData() && !this.store.checkDescendants)) {
239
239
  const { all: r, allWithoutDisable: i } = be(this.childNodes);
240
240
  !this.isLeaf && !r && i && (this.checked = !1, e = !1);
241
- const y = () => {
241
+ const p = () => {
242
242
  if (o) {
243
243
  const h = this.childNodes;
244
244
  for (let u = 0, g = h.length; u < g; u++) {
@@ -253,13 +253,13 @@ class te {
253
253
  };
254
254
  if (this.shouldLoadData()) {
255
255
  this.loadData(() => {
256
- y(), le(this);
256
+ p(), le(this);
257
257
  }, {
258
258
  checked: e !== !1
259
259
  });
260
260
  return;
261
261
  } else
262
- y();
262
+ p();
263
263
  }
264
264
  const d = this.parent;
265
265
  !d || d.level === 0 || s || le(d);
@@ -334,7 +334,7 @@ class vt {
334
334
  i.visible = o.call(i, e, i.data, i), n(i);
335
335
  }), !d.visible && r.length) {
336
336
  let i = !0;
337
- i = !r.some((y) => y.visible), d.root ? d.root.visible = i === !1 : d.visible = i === !1;
337
+ i = !r.some((p) => p.visible), d.root ? d.root.visible = i === !1 : d.visible = i === !1;
338
338
  }
339
339
  e && d.visible && !d.isLeaf && (!s || d.loaded) && d.expand();
340
340
  };
@@ -430,16 +430,16 @@ class vt {
430
430
  }
431
431
  }
432
432
  _setCheckedKeys(e, o = !1, s) {
433
- const n = this._getAllNodes().sort((y, h) => y.level - h.level), d = /* @__PURE__ */ Object.create(null), r = Object.keys(s);
434
- n.forEach((y) => y.setChecked(!1, !1));
435
- const i = (y) => {
436
- y.childNodes.forEach((h) => {
433
+ const n = this._getAllNodes().sort((p, h) => p.level - h.level), d = /* @__PURE__ */ Object.create(null), r = Object.keys(s);
434
+ n.forEach((p) => p.setChecked(!1, !1));
435
+ const i = (p) => {
436
+ p.childNodes.forEach((h) => {
437
437
  var c;
438
438
  d[h.data[e]] = !0, (c = h.childNodes) != null && c.length && i(h);
439
439
  });
440
440
  };
441
- for (let y = 0, h = n.length; y < h; y++) {
442
- const c = n[y], l = c.data[e].toString();
441
+ for (let p = 0, h = n.length; p < h; p++) {
442
+ const c = n[p], l = c.data[e].toString();
443
443
  if (!r.includes(l)) {
444
444
  c.checked && !d[l] && c.setChecked(!1, !1);
445
445
  continue;
@@ -569,8 +569,8 @@ function Nt({ props: t, ctx: e, el$: o, dropIndicator$: s, store: n }) {
569
569
  let A;
570
570
  const F = k ? E ? 0.25 : B ? 0.45 : 1 : -1, ne = B ? E ? 0.75 : k ? 0.55 : 0 : 1;
571
571
  let R = -9999;
572
- const v = c.clientY - L.top;
573
- v < L.height * F ? A = "before" : v > L.height * ne ? A = "after" : E ? A = "inner" : A = "none";
572
+ const y = c.clientY - L.top;
573
+ y < L.height * F ? A = "before" : y > L.height * ne ? A = "after" : E ? A = "inner" : A = "none";
574
574
  const D = u.$el.querySelector(`.${d.be("node", "expand-icon")}`).getBoundingClientRect(), T = s.value;
575
575
  A === "before" ? R = D.top - j.top : A === "after" && (R = D.bottom - j.top), T.style.top = `${R}px`, T.style.left = `${D.right - j.left}px`, A === "inner" ? je(u.$el, d.is("drop-inner")) : ke(u.$el, d.is("drop-inner")), r.value.showDropIndicator = A === "before" || A === "after", r.value.allowDrop = r.value.showDropIndicator || H, r.value.dropType = A, e.emit("node-drag-over", N.node, u.node, c);
576
576
  },
@@ -617,43 +617,43 @@ const Ct = re({
617
617
  },
618
618
  emits: ["node-expand"],
619
619
  setup(t, e) {
620
- const o = de("tree"), { broadcastExpanded: s } = Be(t), n = se("RootTree"), d = x(!1), r = x(!1), i = x(null), y = x(null), h = x(null), c = se(Ae), l = Se();
620
+ const o = de("tree"), { broadcastExpanded: s } = Be(t), n = se("RootTree"), d = x(!1), r = x(!1), i = x(null), p = x(null), h = x(null), c = se(Ae), l = Se();
621
621
  he("NodeInstance", l), n || Pe("Tree", "Can not find node's tree."), t.node.expanded && (d.value = !0, r.value = !0);
622
622
  const u = n.props.props.children || "children";
623
623
  M(() => {
624
- const v = t.node.data[u];
625
- return v && [...v];
624
+ const y = t.node.data[u];
625
+ return y && [...y];
626
626
  }, () => {
627
627
  t.node.updateChildren();
628
- }), M(() => t.node.indeterminate, (v) => {
629
- k(t.node.checked, v);
630
- }), M(() => t.node.checked, (v) => {
631
- k(v, t.node.indeterminate);
632
- }), M(() => t.node.childNodes.length, () => t.node.reInitChecked()), M(() => t.node.expanded, (v) => {
633
- ye(() => d.value = v), v && (r.value = !0);
628
+ }), M(() => t.node.indeterminate, (y) => {
629
+ k(t.node.checked, y);
630
+ }), M(() => t.node.checked, (y) => {
631
+ k(y, t.node.indeterminate);
632
+ }), M(() => t.node.childNodes.length, () => t.node.reInitChecked()), M(() => t.node.expanded, (y) => {
633
+ ye(() => d.value = y), y && (r.value = !0);
634
634
  });
635
- const g = (v) => Ee(n.props.nodeKey, v.data), N = (v) => {
635
+ const g = (y) => Ee(n.props.nodeKey, y.data), N = (y) => {
636
636
  const D = t.props.class;
637
637
  if (!D)
638
638
  return {};
639
639
  let T;
640
640
  if (He(D)) {
641
- const { data: z } = v;
642
- T = D(z, v);
641
+ const { data: z } = y;
642
+ T = D(z, y);
643
643
  } else
644
644
  T = D;
645
645
  return ze(T) ? { [T]: !0 } : T;
646
- }, k = (v, D) => {
647
- (i.value !== v || y.value !== D) && n.ctx.emit("check-change", t.node.data, v, D), i.value = v, y.value = D;
648
- }, E = (v) => {
646
+ }, k = (y, D) => {
647
+ (i.value !== y || p.value !== D) && n.ctx.emit("check-change", t.node.data, y, D), i.value = y, p.value = D;
648
+ }, E = (y) => {
649
649
  me(n.store, n.ctx.emit, () => n.store.value.setCurrentNode(t.node)), n.currentNode.value = t.node, n.props.expandOnClickNode && H(), n.props.checkOnClickNode && !t.node.disabled && L(null, {
650
650
  target: { checked: !t.node.checked }
651
- }), n.ctx.emit("node-click", t.node.data, t.node, l, v);
652
- }, B = (v) => {
653
- n.instance.vnode.props.onNodeContextmenu && (v.stopPropagation(), v.preventDefault()), n.ctx.emit("node-contextmenu", v, t.node.data, t.node, l);
651
+ }), n.ctx.emit("node-click", t.node.data, t.node, l, y);
652
+ }, B = (y) => {
653
+ n.instance.vnode.props.onNodeContextmenu && (y.stopPropagation(), y.preventDefault()), n.ctx.emit("node-contextmenu", y, t.node.data, t.node, l);
654
654
  }, H = () => {
655
655
  t.node.isLeaf || (d.value ? (n.ctx.emit("node-collapse", t.node.data, t.node, l), t.node.collapse()) : (t.node.expand(), e.emit("node-expand", t.node.data, t.node, l)));
656
- }, L = (v, D) => {
656
+ }, L = (y, D) => {
657
657
  t.node.setChecked(D.target.checked, !n.props.checkStrictly), ye(() => {
658
658
  const T = n.store.value;
659
659
  n.ctx.emit("check", t.node.data, {
@@ -671,7 +671,7 @@ const Ct = re({
671
671
  expanded: d,
672
672
  childNodeRendered: r,
673
673
  oldChecked: i,
674
- oldIndeterminate: y,
674
+ oldIndeterminate: p,
675
675
  getNodeKey: g,
676
676
  getNodeClass: N,
677
677
  handleSelectChange: k,
@@ -679,30 +679,30 @@ const Ct = re({
679
679
  handleContextMenu: B,
680
680
  handleExpandIconClick: H,
681
681
  handleCheckChange: L,
682
- handleChildNodeExpand: (v, D, T) => {
683
- s(D), n.ctx.emit("node-expand", v, D, T);
682
+ handleChildNodeExpand: (y, D, T) => {
683
+ s(D), n.ctx.emit("node-expand", y, D, T);
684
684
  },
685
- handleDragStart: (v) => {
686
- n.props.draggable && c.treeNodeDragStart({ event: v, treeNode: t });
685
+ handleDragStart: (y) => {
686
+ n.props.draggable && c.treeNodeDragStart({ event: y, treeNode: t });
687
687
  },
688
- handleDragOver: (v) => {
689
- v.preventDefault(), n.props.draggable && c.treeNodeDragOver({
690
- event: v,
688
+ handleDragOver: (y) => {
689
+ y.preventDefault(), n.props.draggable && c.treeNodeDragOver({
690
+ event: y,
691
691
  treeNode: { $el: h.value, node: t.node }
692
692
  });
693
693
  },
694
- handleDrop: (v) => {
695
- v.preventDefault();
694
+ handleDrop: (y) => {
695
+ y.preventDefault();
696
696
  },
697
- handleDragEnd: (v) => {
698
- n.props.draggable && c.treeNodeDragEnd(v);
697
+ handleDragEnd: (y) => {
698
+ n.props.draggable && c.treeNodeDragEnd(y);
699
699
  },
700
700
  CaretRight: ct
701
701
  };
702
702
  }
703
703
  });
704
704
  function mt(t, e, o, s, n, d) {
705
- const r = ee("el-icon"), i = ee("el-checkbox"), y = ee("loading"), h = ee("node-content"), c = ee("el-tree-node"), l = ee("el-collapse-transition");
705
+ const r = ee("el-icon"), i = ee("el-checkbox"), p = ee("loading"), h = ee("node-content"), c = ee("el-tree-node"), l = ee("el-collapse-transition");
706
706
  return W((K(), $("div", {
707
707
  ref: "node$",
708
708
  class: P([
@@ -762,7 +762,7 @@ function mt(t, e, o, s, n, d) {
762
762
  class: P([t.ns.be("node", "loading-icon"), t.ns.is("loading")])
763
763
  }, {
764
764
  default: I(() => [
765
- S(y)
765
+ S(p)
766
766
  ]),
767
767
  _: 1
768
768
  }, 8, ["class"])) : ie("v-if", !0),
@@ -807,16 +807,16 @@ function _t({ el$: t }, e) {
807
807
  }), rt(() => {
808
808
  s.value = Array.from(t.value.querySelectorAll("[role=treeitem]")), n.value = Array.from(t.value.querySelectorAll("input[type=checkbox]"));
809
809
  }), M(n, (i) => {
810
- i.forEach((y) => {
811
- y.setAttribute("tabindex", "-1");
810
+ i.forEach((p) => {
811
+ p.setAttribute("tabindex", "-1");
812
812
  });
813
813
  }), Fe(t, "keydown", (i) => {
814
- const y = i.target;
815
- if (!y.className.includes(o.b("node")))
814
+ const p = i.target;
815
+ if (!p.className.includes(o.b("node")))
816
816
  return;
817
817
  const h = i.code;
818
818
  s.value = Array.from(t.value.querySelectorAll(`.${o.is("focusable")}[role=treeitem]`));
819
- const c = s.value.indexOf(y);
819
+ const c = s.value.indexOf(p);
820
820
  let l;
821
821
  if ([Q.up, Q.down].includes(h)) {
822
822
  if (i.preventDefault(), h === Q.up) {
@@ -842,16 +842,16 @@ function _t({ el$: t }, e) {
842
842
  }
843
843
  l !== -1 && s.value[l].focus();
844
844
  }
845
- [Q.left, Q.right].includes(h) && (i.preventDefault(), y.click());
846
- const u = y.querySelector('[type="checkbox"]');
845
+ [Q.left, Q.right].includes(h) && (i.preventDefault(), p.click());
846
+ const u = p.querySelector('[type="checkbox"]');
847
847
  [Q.enter, Q.space].includes(h) && u && (i.preventDefault(), u.click());
848
848
  });
849
849
  const r = () => {
850
850
  var i;
851
851
  s.value = Array.from(t.value.querySelectorAll(`.${o.is("focusable")}[role=treeitem]`)), n.value = Array.from(t.value.querySelectorAll("input[type=checkbox]"));
852
- const y = t.value.querySelectorAll(`.${o.is("checked")}[role=treeitem]`);
853
- if (y.length) {
854
- y[0].setAttribute("tabindex", "0");
852
+ const p = t.value.querySelectorAll(`.${o.is("checked")}[role=treeitem]`);
853
+ if (p.length) {
854
+ p[0].setAttribute("tabindex", "0");
855
855
  return;
856
856
  }
857
857
  (i = s.value[0]) == null || i.setAttribute("tabindex", "0");
@@ -958,14 +958,14 @@ const Et = re({
958
958
  filterNodeMethod: t.filterNodeMethod
959
959
  }));
960
960
  d.value.initialize();
961
- const r = x(d.value.root), i = x(null), y = x(null), h = x(null), { broadcastExpanded: c } = Be(t), { dragState: l } = Nt({
961
+ const r = x(d.value.root), i = x(null), p = x(null), h = x(null), { broadcastExpanded: c } = Be(t), { dragState: l } = Nt({
962
962
  props: t,
963
963
  ctx: e,
964
- el$: y,
964
+ el$: p,
965
965
  dropIndicator$: h,
966
966
  store: d
967
967
  });
968
- _t({ el$: y }, d);
968
+ _t({ el$: p }, d);
969
969
  const u = at(() => {
970
970
  const { childNodes: a } = r.value, m = n ? n.hasFilteredOptions !== 0 : !1;
971
971
  return (!a || a.length === 0 || a.every(({ visible: w }) => !w)) && !m;
@@ -1014,7 +1014,7 @@ const Et = re({
1014
1014
  d.value.setCheckedKeys(a, m);
1015
1015
  }, F = (a, m, w) => {
1016
1016
  d.value.setChecked(a, m, w);
1017
- }, ne = () => d.value.getHalfCheckedNodes(), R = () => d.value.getHalfCheckedKeys(), v = (a, m = !0) => {
1017
+ }, ne = () => d.value.getHalfCheckedNodes(), R = () => d.value.getHalfCheckedKeys(), y = (a, m = !0) => {
1018
1018
  if (!t.nodeKey)
1019
1019
  throw new Error("[Tree] nodeKey is required in setCurrentNode");
1020
1020
  me(d, e.emit, () => {
@@ -1034,7 +1034,7 @@ const Et = re({
1034
1034
  d.value.insertBefore(a, m);
1035
1035
  }, f = (a, m) => {
1036
1036
  d.value.insertAfter(a, m);
1037
- }, p = (a, m, w) => {
1037
+ }, v = (a, m, w) => {
1038
1038
  c(m), e.emit("node-expand", a, m, w);
1039
1039
  }, b = (a, m) => {
1040
1040
  if (!t.nodeKey)
@@ -1054,7 +1054,7 @@ const Et = re({
1054
1054
  root: r,
1055
1055
  currentNode: i,
1056
1056
  dragState: l,
1057
- el$: y,
1057
+ el$: p,
1058
1058
  dropIndicator$: h,
1059
1059
  isEmpty: u,
1060
1060
  filter: g,
@@ -1069,7 +1069,7 @@ const Et = re({
1069
1069
  setChecked: F,
1070
1070
  getHalfCheckedNodes: ne,
1071
1071
  getHalfCheckedKeys: R,
1072
- setCurrentNode: v,
1072
+ setCurrentNode: y,
1073
1073
  setCurrentKey: D,
1074
1074
  t: o,
1075
1075
  getNode: T,
@@ -1077,7 +1077,7 @@ const Et = re({
1077
1077
  append: V,
1078
1078
  insertBefore: ae,
1079
1079
  insertAfter: f,
1080
- handleNodeExpand: p,
1080
+ handleNodeExpand: v,
1081
1081
  updateKeyChildren: b
1082
1082
  };
1083
1083
  }
@@ -1141,7 +1141,7 @@ const Dt = Te(xt), Kt = {
1141
1141
  props: ["componentId"],
1142
1142
  emits: ["closePanel", "emitHandler"],
1143
1143
  setup(t, { emit: e }) {
1144
- const o = We(), s = t, n = x(!1), d = x(), r = x(), i = x(), y = x(), h = x(0), c = x(), l = x(), u = x(), g = x(), N = x();
1144
+ const o = We(), s = t, n = x(!1), d = x(), r = x(), i = x(), p = x(), h = x(0), c = x(), l = x(), u = x(), g = x(), N = x();
1145
1145
  let k;
1146
1146
  const E = x(""), B = x(""), H = x("");
1147
1147
  M(
@@ -1150,14 +1150,14 @@ const Dt = Te(xt), Kt = {
1150
1150
  if (f) {
1151
1151
  if (n.value || D(fe[0]), B.value == H.value || B.value == "")
1152
1152
  return;
1153
- v(B.value);
1153
+ y(B.value);
1154
1154
  }
1155
1155
  }
1156
1156
  ), M(E, (f) => {
1157
- var p, b, a;
1158
- h.value === 0 ? (p = d.value) == null || p.filter(f) : h.value === 1 ? (b = r.value) == null || b.filter(f) : h.value === 2 && ((a = i.value) == null || a.filter(f));
1157
+ var v, b, a;
1158
+ h.value === 0 ? (v = d.value) == null || v.filter(f) : h.value === 1 ? (b = r.value) == null || b.filter(f) : h.value === 2 && ((a = i.value) == null || a.filter(f));
1159
1159
  });
1160
- const L = (f, p) => f ? p.title.includes(E.value) : !0, j = {
1160
+ const L = (f, v) => f ? v.title.includes(E.value) : !0, j = {
1161
1161
  children: "children",
1162
1162
  label: "title",
1163
1163
  value: "nodeId"
@@ -1170,12 +1170,12 @@ const Dt = Te(xt), Kt = {
1170
1170
  const R = () => {
1171
1171
  n.value = !1, k = window.bimViewer;
1172
1172
  const { eventTrigger: f } = k;
1173
- f.on("treeAllReady", (p) => {
1174
- y.value = p, console.log("初始化结构树数据", y.value), k.SetShowSpaceModeActive(!1);
1175
- }), X("isMobile") || f.on("pickedEntity", (p) => {
1176
- n.value && (B.value = p.id, o.isToolActive(s.componentId) && v(p.id));
1177
- }), X("isMobile") && (f.on("touchEntity", (p) => {
1178
- n.value !== !1 && (B.value = p.id, o.isToolActive(s.componentId) && v(p.id));
1173
+ f.on("treeAllReady", (v) => {
1174
+ p.value = v, console.log("初始化结构树数据", p.value), k.SetShowSpaceModeActive(!1);
1175
+ }), X("isMobile") || f.on("pickedEntity", (v) => {
1176
+ n.value && (B.value = v.id, o.isToolActive(s.componentId) && y(v.id));
1177
+ }), X("isMobile") && (f.on("touchEntity", (v) => {
1178
+ n.value !== !1 && (B.value = v.id, o.isToolActive(s.componentId) && y(v.id));
1179
1179
  }), f.on("touchNothing", () => {
1180
1180
  ye(() => {
1181
1181
  N.value = "";
@@ -1192,9 +1192,9 @@ const Dt = Te(xt), Kt = {
1192
1192
  Ne.on("BimViewer", R), it(() => {
1193
1193
  Ne.off("BimViewer", R);
1194
1194
  });
1195
- const v = (f) => {
1196
- let p, b;
1197
- h.value === 0 ? p = k.objectsExplorer.objectList[f] ? k.objectsExplorer.objectList[f] : null : h.value === 1 ? p = k.classesExplorer.objectList[f] ? k.classesExplorer.objectList[f] : null : h.value === 2 && (p = k.storeysExplorer.objectList[f] ? k.storeysExplorer.objectList[f] : null), p && (N.value = p.nodeId, h.value === 0 ? (d.value.setCurrentKey(p.nodeId, !0), b = document.getElementById(p.nodeId + "0")) : h.value === 1 ? (r.value.setCurrentKey(p.nodeId, !0), b = document.getElementById(p.nodeId + "1")) : h.value === 2 && (i.value.setCurrentKey(p.nodeId, !0), b = document.getElementById(p.nodeId + "2")), setTimeout(() => {
1195
+ const y = (f) => {
1196
+ let v, b;
1197
+ h.value === 0 ? v = k.objectsExplorer.objectList[f] ? k.objectsExplorer.objectList[f] : null : h.value === 1 ? v = k.classesExplorer.objectList[f] ? k.classesExplorer.objectList[f] : null : h.value === 2 && (v = k.storeysExplorer.objectList[f] ? k.storeysExplorer.objectList[f] : null), v && (N.value = v.nodeId, h.value === 0 ? (d.value.setCurrentKey(v.nodeId, !0), b = document.getElementById(v.nodeId + "0")) : h.value === 1 ? (r.value.setCurrentKey(v.nodeId, !0), b = document.getElementById(v.nodeId + "1")) : h.value === 2 && (i.value.setCurrentKey(v.nodeId, !0), b = document.getElementById(v.nodeId + "2")), setTimeout(() => {
1198
1198
  b && ye(() => {
1199
1199
  b.scrollIntoView({ block: "center" });
1200
1200
  });
@@ -1204,29 +1204,29 @@ const Dt = Te(xt), Kt = {
1204
1204
  event_name: "pickedEntity",
1205
1205
  content: {
1206
1206
  entityId: f,
1207
- viewer_nodeId: p.nodeId
1207
+ viewer_nodeId: v.nodeId
1208
1208
  }
1209
1209
  }));
1210
1210
  }, D = (f) => {
1211
1211
  if (f.id == 0) {
1212
1212
  if (!l.value) {
1213
- if (l.value = y.value.objectsData ? y.value.objectsData : [], l.value[0]) {
1213
+ if (l.value = p.value.objectsData ? p.value.objectsData : [], l.value[0]) {
1214
1214
  l.value[0].title = "全部";
1215
- const p = l.value.map((b) => b.nodeId);
1216
- d.value.setCheckedKeys(p);
1215
+ const v = l.value.map((b) => b.nodeId);
1216
+ d.value.setCheckedKeys(v);
1217
1217
  }
1218
1218
  n.value = !0;
1219
1219
  }
1220
1220
  } else if (f.id == 1) {
1221
- if (!g.value && (u.value = y.value.classesData ? y.value.classesData : [], u.value[0])) {
1221
+ if (!g.value && (u.value = p.value.classesData ? p.value.classesData : [], u.value[0])) {
1222
1222
  u.value[0].title = "全部";
1223
- const p = u.value.map((b) => b.nodeId);
1224
- r.value.setCheckedKeys(p);
1223
+ const v = u.value.map((b) => b.nodeId);
1224
+ r.value.setCheckedKeys(v);
1225
1225
  }
1226
- } else if (f.id == 2 && !g.value && (g.value = y.value.storeysData ? y.value.storeysData : [], g.value[0])) {
1226
+ } else if (f.id == 2 && !g.value && (g.value = p.value.storeysData ? p.value.storeysData : [], g.value[0])) {
1227
1227
  g.value[0].title = "全部";
1228
- const p = g.value.map((b) => b.nodeId);
1229
- i.value.setCheckedKeys(p);
1228
+ const v = g.value.map((b) => b.nodeId);
1229
+ i.value.setCheckedKeys(v);
1230
1230
  }
1231
1231
  F({
1232
1232
  isTool: !0,
@@ -1238,7 +1238,7 @@ const Dt = Te(xt), Kt = {
1238
1238
  }), h.value !== f.id && (h.value = f.id);
1239
1239
  };
1240
1240
  let T = [];
1241
- const z = (f, p) => {
1241
+ const z = (f, v) => {
1242
1242
  T.includes(f.nodeId) ? f.checked = !0 : f.checked = !f.checked;
1243
1243
  const b = k.viewer.scene.objects[f.objectId];
1244
1244
  b ? k.setEntityVisible(b, f.checked) : a(f, f.checked), m(f, f.checked), F({
@@ -1262,9 +1262,8 @@ const Dt = Te(xt), Kt = {
1262
1262
  function m(w, O) {
1263
1263
  w.checked = O, w.parent && m(w.parent, O);
1264
1264
  }
1265
- T = p.halfCheckedKeys;
1266
- }, V = (f, p) => {
1267
- console.log(f, p);
1265
+ T = v.halfCheckedKeys;
1266
+ }, V = (f, v) => {
1268
1267
  const b = k.viewer.scene.objects[f.objectId];
1269
1268
  b && (k.setAllObjectsSelected(!1), k.setEntitySelected(b), k.viewFitEntity(b)), Ne.emit("tree_clickNode", b), F({
1270
1269
  isTool: !0,
@@ -1278,7 +1277,7 @@ const Dt = Te(xt), Kt = {
1278
1277
  }, ae = () => {
1279
1278
  A("closePanel");
1280
1279
  };
1281
- return (f, p) => {
1280
+ return (f, v) => {
1282
1281
  const b = Dt, a = Ze, m = Ye, w = Ge, O = Xe, J = Je;
1283
1282
  return !U(X)("isMobile") && U(we).currentTheme == "blue" ? (K(), G(a, {
1284
1283
  key: 0,
@@ -1311,7 +1310,7 @@ const Dt = Te(xt), Kt = {
1311
1310
  "empty-text": "暂无数据"
1312
1311
  }, null, 8, ["data", "current-node-key"])
1313
1312
  ])
1314
- ])) : (K(), $("div", Bt, p[2] || (p[2] = [
1313
+ ])) : (K(), $("div", Bt, v[2] || (v[2] = [
1315
1314
  _("span", null, "加载中...", -1)
1316
1315
  ])))
1317
1316
  ]),
@@ -1337,7 +1336,7 @@ const Dt = Te(xt), Kt = {
1337
1336
  _("div", jt, [
1338
1337
  S(m, {
1339
1338
  modelValue: E.value,
1340
- "onUpdate:modelValue": p[0] || (p[0] = (C) => E.value = C),
1339
+ "onUpdate:modelValue": v[0] || (v[0] = (C) => E.value = C),
1341
1340
  placeholder: "请输入需搜索的内容",
1342
1341
  "prefix-icon": "Search",
1343
1342
  clearable: ""
@@ -1442,7 +1441,7 @@ const Dt = Te(xt), Kt = {
1442
1441
  }, 8, ["pos"])) : (K(), $("div", qt, [
1443
1442
  _("div", Rt, [
1444
1443
  _("div", Vt, [
1445
- p[3] || (p[3] = _("div", { class: "tree-title" }, "结构树", -1)),
1444
+ v[3] || (v[3] = _("div", { class: "tree-title" }, "结构树", -1)),
1446
1445
  _("div", Ut, [
1447
1446
  S(J, {
1448
1447
  class: "close",
@@ -1471,7 +1470,7 @@ const Dt = Te(xt), Kt = {
1471
1470
  _("div", Jt, [
1472
1471
  S(m, {
1473
1472
  modelValue: E.value,
1474
- "onUpdate:modelValue": p[1] || (p[1] = (C) => E.value = C),
1473
+ "onUpdate:modelValue": v[1] || (v[1] = (C) => E.value = C),
1475
1474
  placeholder: "请输入需搜索的内容",
1476
1475
  "prefix-icon": "Search",
1477
1476
  clearable: ""
@@ -1576,7 +1575,7 @@ const Dt = Te(xt), Kt = {
1576
1575
  ]));
1577
1576
  };
1578
1577
  }
1579
- }), fn = /* @__PURE__ */ Qe(sn, [["__scopeId", "data-v-16fb665d"]]);
1578
+ }), fn = /* @__PURE__ */ Qe(sn, [["__scopeId", "data-v-4191e41c"]]);
1580
1579
  export {
1581
1580
  fn as default
1582
1581
  };
@@ -1,4 +1,4 @@
1
- import { O as s, v as l, x as _ } from "./index-DKHtwAZz.mjs";
1
+ import { O as s, v as l, x as _ } from "./index-CrYdrQmt.mjs";
2
2
  import { defineComponent as c, openBlock as a, createElementBlock as i, createElementVNode as e, unref as r, createVNode as d } from "vue";
3
3
  const p = { class: "alert_wrapper" }, m = { class: "alert_box_wrapper" }, u = { class: "alert_box" }, f = { class: "alert_img" }, h = ["src"], v = { class: "alert_close" }, g = /* @__PURE__ */ c({
4
4
  __name: "alert",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as ee, ref as D, reactive as Be, computed as V, watch as se, onMounted as ze, onUpdated as je, openBlock as B, createElementBlock as $, normalizeClass as Y, unref as t, withModifiers as fe, withDirectives as Me, withKeys as ce, renderSlot as Ce, createVNode as ie, withCtx as be, createBlock as Z, createCommentVNode as le, nextTick as ge, shallowRef as He, inject as Ge, toRefs as Ne, normalizeStyle as te, createElementVNode as ne, toDisplayString as qe, h as Je, provide as Ze, Fragment as me, renderList as pe } from "vue";
2
- import { G as he, K as ke, H as R, P as Ae, J as Ve, Z as Q, a3 as de, U as O, l as Ke, u as we, R as $e, a4 as ve, d as ae, L as Ye, M as Qe, c as Le, a5 as Te, q as De, _ as Ie, a1 as Re, f as Ee, w as Xe, Y as ue, a6 as Ue, a7 as et, g as ye, a8 as _e, j as tt, a9 as lt, S as nt } from "./index-DKHtwAZz.mjs";
2
+ import { G as he, K as ke, H as R, P as Ae, J as Ve, Z as Q, a3 as de, U as O, l as Ke, u as we, R as $e, a4 as ve, d as ae, L as Ye, M as Qe, c as Le, a5 as Te, q as De, _ as Ie, a1 as Re, f as Ee, w as Xe, Y as ue, a6 as Ue, a7 as et, g as ye, a8 as _e, j as tt, a9 as lt, S as nt } from "./index-CrYdrQmt.mjs";
3
3
  import { ArrowDown as at, Minus as rt, ArrowUp as ot, Plus as ut } from "@element-plus/icons-vue";
4
4
  const st = he({
5
5
  id: {