@xtctwins/tctwins-bimx-engine 0.2.13 → 0.2.15

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.
Files changed (70) hide show
  1. package/README.md +5 -5
  2. package/dist/{AnnotationTool-h6kLP4-J.mjs → AnnotationTool-C7K9wUXu.mjs} +32 -32
  3. package/dist/BIMX_Viewer_Lib.es.js +2 -2
  4. package/dist/BIMX_Viewer_Lib.umd.js +153 -151
  5. package/dist/{CommentTool-fEkFa5a4.mjs → CommentTool-Q03T0eRh.mjs} +44 -44
  6. package/dist/{HiddenTool-CHEX-LN8.mjs → HiddenTool-DPhsLeVn.mjs} +12 -12
  7. package/dist/{InspectorTool-Dp0nln8M.mjs → InspectorTool-xpaagssU.mjs} +25 -25
  8. package/dist/{MeasureTool-CIPDVGJ2.mjs → MeasureTool-CC7ByKQe.mjs} +36 -36
  9. package/dist/{NavigateTool-BTg74q73.mjs → NavigateTool-rX2EtTJm.mjs} +1 -1
  10. package/dist/{RoamTool-b-iVvgOg.mjs → RoamTool-CV51Zfk8.mjs} +19 -19
  11. package/dist/ScreenShotTool-CaJnfAGU.mjs +357 -0
  12. package/dist/{SectionTool-BmaWUeLw.mjs → SectionTool-DCBKDTuD.mjs} +55 -55
  13. package/dist/{SettingTool-WjB-y_2N.mjs → SettingTool-ZeE9Wi9d.mjs} +136 -136
  14. package/dist/{StructureTree-fQGdtbdW.mjs → StructureTree-C0ciwt0x.mjs} +241 -232
  15. package/dist/{alert-Byx6QRux.mjs → alert-BoGlpl1a.mjs} +3 -3
  16. package/dist/el-input-number-DC387stR.mjs +858 -0
  17. package/dist/{index-DUCjdjwm.mjs → index-Dbz1Z0EN.mjs} +47804 -45619
  18. package/dist/index.html +17 -17
  19. package/dist/{panel.vue_vue_type_style_index_0_lang-DN1hWNk5.mjs → panel.vue_vue_type_style_index_0_lang-0alZxKkz.mjs} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/{tallPanel-CmihOwoA.mjs → tallPanel-kCOLfaS2.mjs} +16 -16
  22. package/package.json +66 -65
  23. package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +38 -10
  24. package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +37 -9
  25. package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +5 -7
  26. package/types/components/BCFComponents/BCFFilter.vue.d.ts +5 -7
  27. package/types/components/BCFComponents/BCFTool.vue.d.ts +4 -7
  28. package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +5 -7
  29. package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +5 -6
  30. package/types/components/BCFComponents/commentInput.vue.d.ts +38 -9
  31. package/types/components/BCFComponents/commentsView.vue.d.ts +38 -7
  32. package/types/components/BCFComponents/dialogPanel.vue.d.ts +5 -8
  33. package/types/components/BCFComponents/imageView.vue.d.ts +5 -7
  34. package/types/components/BCFComponents/imageZoomIn.vue.d.ts +5 -6
  35. package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
  36. package/types/components/BimViewerComponents/CommentTool.vue.d.ts +1 -1
  37. package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
  38. package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +1 -1
  39. package/types/components/BimViewerComponents/RoamTool.vue.d.ts +1 -1
  40. package/types/components/BimViewerComponents/SettingTool.vue.d.ts +4 -6
  41. package/types/components/BimViewerComponents/StructureTree.vue.d.ts +3042 -1
  42. package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
  43. package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +56 -0
  44. package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +55 -0
  45. package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +278 -0
  46. package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +255 -0
  47. package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +17 -0
  48. package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +54 -0
  49. package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +17 -0
  50. package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +12 -0
  51. package/types/components/bimxViewer.vue.d.ts +7 -12
  52. package/types/components/utilsComponents/alert.vue.d.ts +1 -1
  53. package/types/components/utilsComponents/closeButton.vue.d.ts +1 -1
  54. package/types/components/utilsComponents/closeButton_dark.vue.d.ts +32 -0
  55. package/types/components/utilsComponents/emptyPage.vue.d.ts +1 -1
  56. package/types/components/utilsComponents/loading.vue.d.ts +1 -1
  57. package/types/components/utilsComponents/panel.vue.d.ts +8 -2
  58. package/types/components/utilsComponents/rectangleButton.vue.d.ts +3 -1
  59. package/types/components/utilsComponents/tallPanel.vue.d.ts +13 -3
  60. package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +13 -3
  61. package/types/pages/viewerEntry.vue.d.ts +4 -51
  62. package/types/services/request/api.d.ts +3 -0
  63. package/types/services/request/index.d.ts +14 -0
  64. package/types/services/request/types.d.ts +12 -0
  65. package/types/store/bcfReflect.d.ts +2 -0
  66. package/types/tests/bcf.d.ts +8 -0
  67. package/dist/ScreenShotTool-Cei3hiGn.mjs +0 -357
  68. package/dist/el-input-number-6wp_0Clc.mjs +0 -818
  69. package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +0 -22
  70. package/types/components/BimViewerComponents/emptyPage.vue.d.ts +0 -8
@@ -1,14 +1,14 @@
1
- import { n as ge, p as U, o as V, O as _, t as fe, q as Ce, x as we } from "./index-DUCjdjwm.mjs";
2
- import { defineComponent as xe, onMounted as ke, ref as a, onBeforeUnmount as be, watch as Se, openBlock as l, createElementBlock as i, createElementVNode as t, unref as v, Fragment as w, renderList as x, normalizeClass as k, normalizeStyle as M, toDisplayString as H, withModifiers as K, createCommentVNode as N, createVNode as q, withCtx as ye } from "vue";
1
+ import { q as ge, v as U, t as V, O as _, y as fe, x as Ce, A as we } from "./index-Dbz1Z0EN.mjs";
2
+ import { defineComponent as xe, onMounted as be, ref as a, onBeforeUnmount as ke, watch as ye, openBlock as l, createElementBlock as i, createElementVNode as t, unref as v, Fragment as w, renderList as x, normalizeClass as b, normalizeStyle as A, toDisplayString as H, withModifiers as K, createCommentVNode as M, createVNode as q, withCtx as Se } from "vue";
3
3
  import { C as G, F as Te, L as Ie, T as Ee } from "./const-B1FlFgEN.mjs";
4
4
  const ze = { class: "comment_component" }, Le = {
5
5
  key: 0,
6
6
  id: "comments_toolbar",
7
7
  class: "comments_toolbar"
8
- }, Be = { class: "comments_toolbar_wrapper" }, Ve = { class: "comments_toolbar_content" }, Me = { class: "comments_toolbar_group" }, Ne = ["onClick"], Re = ["src"], $e = {
8
+ }, Be = { class: "comments_toolbar_wrapper" }, Ve = { class: "comments_toolbar_content" }, Ae = { class: "comments_toolbar_group" }, Me = ["onClick"], Ne = ["src"], Re = {
9
9
  key: 0,
10
10
  class: "edit-tips"
11
- }, Ae = { class: "edit_tips_content" }, We = {
11
+ }, $e = { class: "edit_tips_content" }, We = {
12
12
  key: 0,
13
13
  class: "tips-weight"
14
14
  }, De = ["onClick"], Oe = {
@@ -25,12 +25,12 @@ const ze = { class: "comment_component" }, Le = {
25
25
  props: ["componentId"],
26
26
  emits: ["closePanel", "emitHandler"],
27
27
  setup(X, { emit: Z }) {
28
- const z = ge(), b = X;
29
- ke(() => {
30
- z.setReadyById(b.componentId);
28
+ const z = ge(), k = X;
29
+ be(() => {
30
+ z.setReadyById(k.componentId);
31
31
  });
32
- let R, c, u;
33
- const r = a(0), L = a(1), B = a(1), $ = a(1), j = a(G), m = a(), S = a(!1), y = a(!1), T = a(!1), I = a(!1), p = a(""), A = a(), h = a({
32
+ let N, c, u;
33
+ const r = a(0), L = a(1), B = a(1), R = a(1), j = a(G), m = a(), y = a(!1), S = a(!1), T = a(!1), I = a(!1), p = a(""), $ = a(), h = a({
34
34
  show: !1,
35
35
  // 是否显示
36
36
  title: "标题",
@@ -46,26 +46,26 @@ const ze = { class: "comment_component" }, Le = {
46
46
  console.log("点击了关闭"), h.value.show = !1;
47
47
  }
48
48
  }), W = () => {
49
- R = window.bimViewer, c = window.bimViewer.commentTool, u = window.bimViewer.eventTrigger, g(""), u.on("createNew", () => {
49
+ N = window.bimViewer, c = window.bimViewer.commentTool, u = window.bimViewer.eventTrigger, g(""), u.on("createNew", () => {
50
50
  r.value = 0, g("");
51
51
  }), u.on("newState", () => {
52
- S.value = !0, y.value = !1;
52
+ y.value = !0, S.value = !1;
53
53
  }), u.on("noPreviousState", () => {
54
- S.value = !1;
55
- }), u.on("noNewState", () => {
56
54
  y.value = !1;
55
+ }), u.on("noNewState", () => {
56
+ S.value = !1;
57
57
  }), u.on("choseTarget", (e) => {
58
58
  T.value = !0, r.value = 0, g("");
59
59
  });
60
60
  };
61
- U.on("BimViewer", W), be(() => {
61
+ U.on("BimViewer", W), ke(() => {
62
62
  U.off("BimViewer", W);
63
63
  });
64
64
  const D = Z, O = (e) => {
65
65
  D("emitHandler", e);
66
66
  };
67
- Se(
68
- () => z.isToolActive(b.componentId),
67
+ ye(
68
+ () => z.isToolActive(k.componentId),
69
69
  (e) => {
70
70
  var s;
71
71
  e ? (r.value = 1, g("path"), setTimeout(() => {
@@ -75,9 +75,9 @@ const ze = { class: "comment_component" }, Le = {
75
75
  }
76
76
  );
77
77
  const P = (e) => {
78
- e.target.tagName == "image" && (r.value === 5 ? (p.value = "", A.value = e, I.value = !0) : T.value = !1);
78
+ e.target.tagName == "image" && (r.value === 5 ? (p.value = "", $.value = e, I.value = !0) : T.value = !1);
79
79
  }, J = () => {
80
- p.value ? (c.clickCreateText(A.value, p.value), I.value = !1) : Q("请输入内容");
80
+ p.value ? (c.clickCreateText($.value, p.value), I.value = !1) : Q("请输入内容");
81
81
  }, Q = (e, s) => {
82
82
  h.value = {
83
83
  show: !0,
@@ -121,11 +121,11 @@ const ze = { class: "comment_component" }, Le = {
121
121
  event_target: "ToolBar",
122
122
  event_name: "clickTool",
123
123
  content: {
124
- toolId: b.componentId,
125
- toolKey: z.getKeyById(b.componentId),
124
+ toolId: k.componentId,
125
+ toolKey: z.getKeyById(k.componentId),
126
126
  status: !1
127
127
  }
128
- }), R.SetCommentsToolActive(!1), D("closePanel");
128
+ }), N.SetCommentsToolActive(!1), D("closePanel");
129
129
  }, te = () => {
130
130
  window.bimViewer.commentTool.deleteCurrentComments(), T.value = !1;
131
131
  }, g = (e) => {
@@ -135,7 +135,7 @@ const ze = { class: "comment_component" }, Le = {
135
135
  }, se = (e) => {
136
136
  B.value = e.id, m.value === "path" ? le(e.color) : m.value === "arrow" ? ae(e.color) : m.value === "rect" ? ce(e.color) : m.value === "ellipse" ? ie(e.color) : m.value === "text" && re(e.color);
137
137
  }, ne = (e) => {
138
- $.value = e.id, _e(e.fontSize);
138
+ R.value = e.id, _e(e.fontSize);
139
139
  }, le = (e) => {
140
140
  c.pathColor = e;
141
141
  }, ie = (e) => {
@@ -158,10 +158,10 @@ const ze = { class: "comment_component" }, Le = {
158
158
  c.textFontSize = e;
159
159
  }, pe = () => {
160
160
  c.ReDo(() => {
161
- }), S.value = !0;
161
+ }), y.value = !0;
162
162
  }, he = () => {
163
163
  c.UnDo(() => {
164
- }), y.value = !0;
164
+ }), S.value = !0;
165
165
  };
166
166
  return (e, s) => {
167
167
  const d = fe, E = Ce;
@@ -176,11 +176,11 @@ const ze = { class: "comment_component" }, Le = {
176
176
  ], -1)),
177
177
  t("div", Xe, [
178
178
  q(d, null, {
179
- default: ye(() => [
179
+ default: Se(() => [
180
180
  t("div", Ze, [
181
181
  (l(!0), i(w, null, x(v(G), (n, o) => (l(), i("div", {
182
182
  key: o,
183
- class: k(["comment-item", {
183
+ class: b(["comment-item", {
184
184
  "comment-item-active": r.value === n.id
185
185
  }]),
186
186
  onClick: (f) => F(n)
@@ -206,7 +206,7 @@ const ze = { class: "comment_component" }, Le = {
206
206
  style: { color: "#df1c1c" }
207
207
  }, " 删除 ", -1))
208
208
  ])
209
- ])) : N("", !0)
209
+ ])) : M("", !0)
210
210
  ])
211
211
  ]),
212
212
  _: 1
@@ -215,29 +215,29 @@ const ze = { class: "comment_component" }, Le = {
215
215
  ])) : (l(), i("div", Le, [
216
216
  t("div", Be, [
217
217
  t("div", Ve, [
218
- t("div", Me, [
218
+ t("div", Ae, [
219
219
  (l(!0), i(w, null, x(j.value, (n) => (l(), i("div", {
220
220
  key: n.id,
221
- class: k(["comments_tool_btn", { comments_tool_btn_active: r.value === n.id }]),
221
+ class: b(["comments_tool_btn", { comments_tool_btn_active: r.value === n.id }]),
222
222
  onClick: (o) => F(n)
223
223
  }, [
224
224
  t("img", {
225
225
  src: v(_) + `/bim-viewer/annotations/${r.value === n.id ? n.imgActive : n.img}.png`
226
- }, null, 8, Re),
227
- r.value === n.id ? (l(), i("div", $e, [
228
- t("div", Ae, [
226
+ }, null, 8, Ne),
227
+ r.value === n.id ? (l(), i("div", Re, [
228
+ t("div", $e, [
229
229
  n.buttontype === "text" ? (l(), i("div", We, [
230
230
  (l(!0), i(w, null, x(v(Te), (o) => (l(), i("div", {
231
231
  key: o.id,
232
- class: k(["text1", { text2: $.value === o.id }]),
233
- style: M({ "font-size": o.id === 0 ? "18px" : o.id === 1 ? "16px" : "12px" }),
232
+ class: b(["text1", { text2: R.value === o.id }]),
233
+ style: A({ "font-size": o.id === 0 ? "18px" : o.id === 1 ? "16px" : "12px" }),
234
234
  onClick: (f) => ne(o)
235
235
  }, H(o.name), 15, De))), 128))
236
236
  ])) : (l(), i("div", Oe, [
237
237
  (l(!0), i(w, null, x(v(Ie), (o) => (l(), i("div", {
238
238
  key: o.id,
239
- class: k(["weight", { choose_weight: L.value === o.id }]),
240
- style: M({
239
+ class: b(["weight", { choose_weight: L.value === o.id }]),
240
+ style: A({
241
241
  width: o.id === 0 ? "6px" : o.id === 1 ? "14px" : "20px",
242
242
  height: o.id === 0 ? "6px" : o.id === 1 ? "14px" : "20px"
243
243
  }),
@@ -247,8 +247,8 @@ const ze = { class: "comment_component" }, Le = {
247
247
  t("div", Fe, [
248
248
  (l(!0), i(w, null, x(v(Ee), (o) => (l(), i("div", {
249
249
  key: o.id,
250
- class: k(["color-item", { choose_color: B.value === o.id }]),
251
- style: M({
250
+ class: b(["color-item", { choose_color: B.value === o.id }]),
251
+ style: A({
252
252
  background: o.color,
253
253
  border: o.id === 5 ? "1px solid #CBCFD9" : "",
254
254
  width: (o.id === 5, "18px"),
@@ -258,8 +258,8 @@ const ze = { class: "comment_component" }, Le = {
258
258
  }, null, 14, Ue))), 128))
259
259
  ])
260
260
  ])
261
- ])) : N("", !0)
262
- ], 10, Ne))), 128))
261
+ ])) : M("", !0)
262
+ ], 10, Me))), 128))
263
263
  ]),
264
264
  s[2] || (s[2] = t("div", { class: "splitLine" }, null, -1)),
265
265
  t("div", He, [
@@ -268,7 +268,7 @@ const ze = { class: "comment_component" }, Le = {
268
268
  onClick: he
269
269
  }, [
270
270
  t("img", {
271
- src: v(_) + `/bim-viewer/annotations/${S.value ? "left-revoke-active" : "left-revoke"}.png`
271
+ src: v(_) + `/bim-viewer/annotations/${y.value ? "left-revoke-active" : "left-revoke"}.png`
272
272
  }, null, 8, Ke)
273
273
  ]),
274
274
  t("div", {
@@ -276,7 +276,7 @@ const ze = { class: "comment_component" }, Le = {
276
276
  onClick: pe
277
277
  }, [
278
278
  t("img", {
279
- src: v(_) + `/bim-viewer/annotations/${y.value ? "right-revoke-active" : "right-revoke"}.png`
279
+ src: v(_) + `/bim-viewer/annotations/${S.value ? "right-revoke-active" : "right-revoke"}.png`
280
280
  }, null, 8, qe)
281
281
  ])
282
282
  ]),
@@ -320,11 +320,11 @@ const ze = { class: "comment_component" }, Le = {
320
320
  ])
321
321
  ])
322
322
  ])
323
- ])) : N("", !0)
323
+ ])) : M("", !0)
324
324
  ]);
325
325
  };
326
326
  }
327
- }), mt = /* @__PURE__ */ we(at, [["__scopeId", "data-v-628431c1"]]);
327
+ }), mt = /* @__PURE__ */ we(at, [["__scopeId", "data-v-6e2c86b9"]]);
328
328
  export {
329
329
  mt as default
330
330
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as V, onMounted as E, ref as y, onBeforeUnmount as k, openBlock as s, createElementBlock as l, createElementVNode as o, Fragment as C, renderList as H, unref as a, normalizeClass as c, toDisplayString as S } from "vue";
2
- import { n as B, p as w, O, o as x, x as I } from "./index-DUCjdjwm.mjs";
3
- import { H as T } from "./const-B1FlFgEN.mjs";
4
- const A = { class: "hidden_wrapper" }, j = { class: "hidden_content" }, D = ["onClick"], L = ["src"], M = /* @__PURE__ */ V({
2
+ import { q as B, v as w, O, t as I, A as x } from "./index-Dbz1Z0EN.mjs";
3
+ import { H as A } from "./const-B1FlFgEN.mjs";
4
+ const T = { class: "hidden_wrapper" }, j = { class: "hidden_content" }, D = ["onClick"], L = ["src"], M = /* @__PURE__ */ V({
5
5
  __name: "HiddenTool",
6
6
  props: ["componentId"],
7
7
  emits: ["closePanel", "emitHandler"],
@@ -12,7 +12,7 @@ const A = { class: "hidden_wrapper" }, j = { class: "hidden_content" }, D = ["on
12
12
  });
13
13
  const i = y(0), r = () => {
14
14
  const { eventTrigger: e } = window.bimViewer;
15
- x("isMobile") ? e.on("touchEntity", (n) => {
15
+ I("isMobile") ? e.on("touchEntity", (n) => {
16
16
  window.bimViewer.disableClickEvent && d(n);
17
17
  }) : e.on("pickedEntity", (n) => {
18
18
  window.bimViewer.disableClickEvent && d(n);
@@ -22,24 +22,24 @@ const A = { class: "hidden_wrapper" }, j = { class: "hidden_content" }, D = ["on
22
22
  w.off("BimViewer", r);
23
23
  });
24
24
  const d = (e) => {
25
- i.value != -1 && (i.value == 1 ? f(e) : i.value == 2 ? v(e) : i.value == 3 && b(e));
26
- }, f = (e) => {
27
- window.bimViewer.setEntityVisible(e);
25
+ i.value != -1 && (i.value == 1 ? v(e) : i.value == 2 ? b(e) : i.value == 3 && f(e));
28
26
  }, v = (e) => {
29
- window.bimViewer.setEntityHighlighted(e);
27
+ window.bimViewer.setEntityVisible(e);
30
28
  }, b = (e) => {
29
+ window.bimViewer.setEntityHighlighted(e);
30
+ }, f = (e) => {
31
31
  window.bimViewer.setEntitySelected(e);
32
32
  }, p = () => {
33
33
  window.bimViewer.setAllObjectsVisible(!0), window.bimViewer.setAllObjectsHighlighted(!1), window.bimViewer.setAllObjectsSelected(!1);
34
34
  }, h = (e) => {
35
35
  e == 0 ? (i.value = e, p()) : i.value = e;
36
36
  };
37
- return (e, n) => (s(), l("div", A, [
37
+ return (e, n) => (s(), l("div", T, [
38
38
  n[0] || (n[0] = o("div", { class: "hidden_title_box" }, [
39
39
  o("div", { class: "hidden_title" }, "透视")
40
40
  ], -1)),
41
41
  o("div", j, [
42
- (s(!0), l(C, null, H(a(T), (t, g) => (s(), l("div", {
42
+ (s(!0), l(C, null, H(a(A), (t, g) => (s(), l("div", {
43
43
  key: g,
44
44
  class: c(["button_", { button_active: i.value == t.id }]),
45
45
  onClick: (R) => h(t.id)
@@ -54,7 +54,7 @@ const A = { class: "hidden_wrapper" }, j = { class: "hidden_content" }, D = ["on
54
54
  ])
55
55
  ]));
56
56
  }
57
- }), F = /* @__PURE__ */ I(M, [["__scopeId", "data-v-3dff226f"]]);
57
+ }), z = /* @__PURE__ */ x(M, [["__scopeId", "data-v-6b86a782"]]);
58
58
  export {
59
- F as default
59
+ z as default
60
60
  };
@@ -1,6 +1,6 @@
1
- import { n as Y, p as B, o as C, T as V, O as A, t as ee, v as te, x as ne } from "./index-DUCjdjwm.mjs";
2
- import { _ as se } from "./tallPanel-CmihOwoA.mjs";
3
- import { _ as oe } from "./panel.vue_vue_type_style_index_0_lang-DN1hWNk5.mjs";
1
+ import { q as Y, v as B, t as C, T as A, O as V, y as ee, z as te, A as ne } from "./index-Dbz1Z0EN.mjs";
2
+ import { _ as se } from "./tallPanel-kCOLfaS2.mjs";
3
+ import { _ as oe } from "./panel.vue_vue_type_style_index_0_lang-0alZxKkz.mjs";
4
4
  import { defineComponent as ie, onMounted as le, ref as N, reactive as q, watch as ae, onBeforeUnmount as re, openBlock as i, createElementBlock as a, Fragment as m, unref as c, createBlock as K, withCtx as S, withDirectives as p, createElementVNode as e, createVNode as w, toDisplayString as o, vShow as d, renderList as y, createCommentVNode as H } from "vue";
5
5
  const G = {
6
6
  ExtendToStructure: "扩建物",
@@ -259,7 +259,7 @@ function I(h) {
259
259
  const g = h.trim().toLowerCase().replace(/\s+/g, "");
260
260
  return ce[g] || h;
261
261
  }
262
- const _e = { class: "myInspector_content" }, pe = { class: "title" }, de = ["src"], ue = { class: "properties_content" }, me = { class: "basic_info_value" }, ye = { class: "propertysets" }, ve = ["onClick"], fe = { class: "title" }, he = ["src"], Ce = { class: "properties_content" }, ge = { class: "content_title_value" }, Pe = { class: "content_title" }, Te = { class: "content_value" }, be = { class: "myInspector_empty" }, Se = ["src"], Ie = { class: "pc_Inspector_content" }, ke = { class: "pc_myInspector_content" }, Re = { class: "title" }, xe = ["src"], Ee = { class: "properties_content" }, we = { class: "basic_info_value" }, De = { class: "propertysets" }, Be = ["onClick"], Fe = { class: "title" }, Me = ["src"], Oe = { class: "properties_content" }, Le = { class: "content_title_value" }, Ve = { class: "content_title" }, Ae = { class: "content_value" }, Ne = { class: "pc_model_info" }, He = { class: "model_info_content" }, We = { class: "model_info_value" }, je = { class: "model_info_content" }, Ue = { class: "model_info_value" }, $e = { class: "model_info_content" }, ze = { class: "model_info_value" }, qe = { class: "model_info_content" }, Ke = { class: "model_info_value" }, Ge = {
262
+ const _e = { class: "myInspector_content" }, pe = { class: "title" }, de = ["src"], ue = { class: "properties_content" }, me = { class: "basic_info_value" }, ye = { class: "propertysets" }, ve = ["onClick"], fe = { class: "title" }, he = ["src"], Ce = { class: "properties_content" }, ge = { class: "content_title_value" }, Pe = { class: "content_title" }, Te = { class: "content_value" }, be = { class: "myInspector_empty" }, Se = ["src"], Ie = { class: "pc_Inspector_content" }, ke = { class: "pc_myInspector_content" }, Re = { class: "title" }, Ee = ["src"], xe = { class: "properties_content" }, we = { class: "basic_info_value" }, De = { class: "propertysets" }, Be = ["onClick"], Fe = { class: "title" }, Me = ["src"], Oe = { class: "properties_content" }, Le = { class: "content_title_value" }, Ae = { class: "content_title" }, Ve = { class: "content_value" }, Ne = { class: "pc_model_info" }, He = { class: "model_info_content" }, We = { class: "model_info_value" }, je = { class: "model_info_content" }, Ue = { class: "model_info_value" }, $e = { class: "model_info_content" }, ze = { class: "model_info_value" }, qe = { class: "model_info_content" }, Ke = { class: "model_info_value" }, Ge = {
263
263
  key: 2,
264
264
  class: "mobile_myInspector_wrapper"
265
265
  }, Qe = { class: "detail-title-box" }, Ze = { class: "detail-title-icon" }, Je = { class: "mobile_myInspector" }, Xe = { class: "mobile_myInspector_content" }, Ye = { class: "basic_info_title" }, et = ["src"], tt = { class: "basic_info_content" }, nt = { class: "basic_info_content_value" }, st = { class: "content_value" }, ot = { class: "basic_info_content_value" }, it = { class: "content_value" }, lt = { class: "basic_info_content_value" }, at = { class: "content_value" }, rt = { class: "propertysets" }, ct = ["onClick"], _t = { class: "propertysets_title" }, pt = ["src"], dt = { class: "properties_content" }, ut = { class: "content_title_value" }, mt = { class: "content_title" }, yt = { class: "content_value" }, vt = { class: "mobile_Inspector_empty" }, ft = { class: "model_info_value" }, ht = { class: "model_info_value" }, Ct = { class: "model_info_value" }, gt = { class: "model_info_value" }, Pt = /* @__PURE__ */ ie({
@@ -347,9 +347,9 @@ const _e = { class: "myInspector_content" }, pe = { class: "title" }, de = ["src
347
347
  W("closePanel");
348
348
  }, T = (s) => {
349
349
  s.expanded = !s.expanded;
350
- }, b = (s) => s ? `${A}/bim-viewer/down_icon.png` : `${A}/bim-viewer/right_icon.png`, z = (s) => {
350
+ }, b = (s) => s ? `${V}/bim-viewer/down_icon.png` : `${V}/bim-viewer/right_icon.png`, z = (s) => {
351
351
  n.entity_name = s.name, n.entity_type = s.type, n.entity_id = s.id, s.propertySets && (n.propertySets = s.propertySets, n.propertySets.forEach((t) => {
352
- V.currentTheme == "light-gray" ? t.expanded = !0 : t.expanded = !1;
352
+ A.currentTheme == "light-gray" ? t.expanded = !0 : t.expanded = !1;
353
353
  }));
354
354
  }, Q = () => {
355
355
  n.entity_name = "", n.entity_type = "", n.entity_id = "", n.propertySets = [];
@@ -357,7 +357,7 @@ const _e = { class: "myInspector_content" }, pe = { class: "title" }, de = ["src
357
357
  return (s, t) => {
358
358
  const r = ee, Z = oe, J = se, X = te;
359
359
  return i(), a(m, null, [
360
- !c(C)("isMobile") && c(V).currentTheme == "blue" ? (i(), K(Z, {
360
+ !c(C)("isMobile") && c(A).currentTheme == "blue" ? (i(), K(Z, {
361
361
  key: 0,
362
362
  class: "myInspector_wrapper",
363
363
  panelTitle: "属性",
@@ -409,16 +409,16 @@ const _e = { class: "myInspector_content" }, pe = { class: "title" }, de = ["src
409
409
  ]),
410
410
  p(e("div", Ce, [
411
411
  e("ul", ge, [
412
- (i(!0), a(m, null, y(l.properties, (v, x) => (i(), a("li", {
413
- key: x,
412
+ (i(!0), a(m, null, y(l.properties, (v, E) => (i(), a("li", {
413
+ key: E,
414
414
  class: "properties"
415
415
  }, [
416
- (i(!0), a(m, null, y(v, (E, f) => (i(), a("div", {
416
+ (i(!0), a(m, null, y(v, (x, f) => (i(), a("div", {
417
417
  class: "title_value",
418
418
  key: f
419
419
  }, [
420
420
  e("span", Pe, o(c(I)(f)), 1),
421
- e("span", Te, o(E), 1)
421
+ e("span", Te, o(x), 1)
422
422
  ]))), 128))
423
423
  ]))), 128))
424
424
  ])
@@ -435,7 +435,7 @@ const _e = { class: "myInspector_content" }, pe = { class: "title" }, de = ["src
435
435
  ]),
436
436
  p(e("div", be, [
437
437
  e("img", {
438
- src: c(A) + "/bimkk-app/pinapp-empty-box.png"
438
+ src: c(V) + "/bimkk-app/pinapp-empty-box.png"
439
439
  }, null, 8, Se),
440
440
  t[5] || (t[5] = e("span", null, "未选中任何对象,请单击模型对象以查看构件属性。", -1))
441
441
  ], 512), [
@@ -444,7 +444,7 @@ const _e = { class: "myInspector_content" }, pe = { class: "title" }, de = ["src
444
444
  ]),
445
445
  _: 1
446
446
  })) : H("", !0),
447
- !c(C)("isMobile") && c(V).currentTheme == "light-gray" ? (i(), K(J, {
447
+ !c(C)("isMobile") && c(A).currentTheme == "light-gray" ? (i(), K(J, {
448
448
  key: 1,
449
449
  panelTitle: "属性",
450
450
  "click-handle": L,
@@ -471,10 +471,10 @@ const _e = { class: "myInspector_content" }, pe = { class: "title" }, de = ["src
471
471
  e("img", {
472
472
  src: b(n.expanded),
473
473
  class: "triangle"
474
- }, null, 8, xe),
474
+ }, null, 8, Ee),
475
475
  t[6] || (t[6] = e("span", null, "基本属性", -1))
476
476
  ]),
477
- p(e("div", Ee, [
477
+ p(e("div", xe, [
478
478
  t[7] || (t[7] = e("div", { class: "basic_info_title" }, [
479
479
  e("span", null, "名称"),
480
480
  e("span", { style: { "margin-top": "2px" } }, "UUID"),
@@ -504,16 +504,16 @@ const _e = { class: "myInspector_content" }, pe = { class: "title" }, de = ["src
504
504
  ]),
505
505
  p(e("div", Oe, [
506
506
  e("ul", Le, [
507
- (i(!0), a(m, null, y(l.properties, (v, x) => (i(), a("li", {
508
- key: x,
507
+ (i(!0), a(m, null, y(l.properties, (v, E) => (i(), a("li", {
508
+ key: E,
509
509
  class: "properties"
510
510
  }, [
511
- (i(!0), a(m, null, y(v, (E, f) => (i(), a("div", {
511
+ (i(!0), a(m, null, y(v, (x, f) => (i(), a("div", {
512
512
  class: "title_value",
513
513
  key: f
514
514
  }, [
515
- e("span", Ve, o(c(I)(f)), 1),
516
- e("span", Ae, o(E), 1)
515
+ e("span", Ae, o(c(I)(f)), 1),
516
+ e("span", Ve, o(x), 1)
517
517
  ]))), 128))
518
518
  ]))), 128))
519
519
  ])
@@ -616,16 +616,16 @@ const _e = { class: "myInspector_content" }, pe = { class: "title" }, de = ["src
616
616
  ]),
617
617
  p(e("div", dt, [
618
618
  e("ul", ut, [
619
- (i(!0), a(m, null, y(l.properties, (v, x) => (i(), a("li", {
620
- key: x,
619
+ (i(!0), a(m, null, y(l.properties, (v, E) => (i(), a("li", {
620
+ key: E,
621
621
  class: "properties"
622
622
  }, [
623
- (i(!0), a(m, null, y(v, (E, f) => (i(), a("div", {
623
+ (i(!0), a(m, null, y(v, (x, f) => (i(), a("div", {
624
624
  class: "title_value",
625
625
  key: f
626
626
  }, [
627
627
  e("span", mt, o(c(I)(f)), 1),
628
- e("span", yt, o(E), 1)
628
+ e("span", yt, o(x), 1)
629
629
  ]))), 128))
630
630
  ]))), 128))
631
631
  ])
@@ -668,7 +668,7 @@ const _e = { class: "myInspector_content" }, pe = { class: "title" }, de = ["src
668
668
  ], 64);
669
669
  };
670
670
  }
671
- }), kt = /* @__PURE__ */ ne(Pt, [["__scopeId", "data-v-18add1d0"]]);
671
+ }), kt = /* @__PURE__ */ ne(Pt, [["__scopeId", "data-v-237beabe"]]);
672
672
  export {
673
673
  kt as default
674
674
  };
@@ -1,44 +1,44 @@
1
- import { n as ve, T as C, p as q, o as m, O as E, V as W, q as me, C as _e, D as pe, t as fe, x as ye } from "./index-DUCjdjwm.mjs";
2
- import { _ as ge } from "./panel.vue_vue_type_style_index_0_lang-DN1hWNk5.mjs";
3
- import { defineComponent as Me, ref as o, onMounted as be, onBeforeUnmount as we, watch as he, unref as _, openBlock as a, createBlock as ke, withCtx as A, createElementBlock as u, createElementVNode as s, Fragment as D, renderList as B, normalizeClass as X, toDisplayString as y, createVNode as g, createCommentVNode as Te } from "vue";
1
+ import { q as ve, T as C, v as q, t as m, O as E, V as G, x as me, G as _e, H as pe, y as fe, A as ye } from "./index-Dbz1Z0EN.mjs";
2
+ import { _ as ge } from "./panel.vue_vue_type_style_index_0_lang-0alZxKkz.mjs";
3
+ import { defineComponent as Me, ref as o, onMounted as be, onBeforeUnmount as we, watch as he, unref as _, openBlock as a, createBlock as ke, withCtx as A, createElementBlock as u, createElementVNode as s, Fragment as B, renderList as D, normalizeClass as W, toDisplayString as y, createVNode as g, createCommentVNode as Te } from "vue";
4
4
  import { M as R } from "./const-B1FlFgEN.mjs";
5
5
  const Ve = {
6
6
  key: 0,
7
7
  class: "measure_panel_content"
8
- }, xe = { class: "measurement_type" }, Ae = ["onClick"], De = ["src"], Be = {
8
+ }, xe = { class: "measurement_type" }, Ae = ["onClick"], Be = ["src"], De = {
9
9
  key: 0,
10
10
  class: "measurement_data"
11
11
  }, Re = { class: "data_box" }, Ie = { style: { color: "#0065fc" } }, Se = { class: "data_box" }, Ce = { style: { color: "#fe4444" } }, Ee = { class: "data_box" }, Ne = { style: { color: "#4ed17a" } }, Pe = { class: "data_box" }, Ue = { style: { color: "#ffce19" } }, Oe = {
12
12
  key: 1,
13
13
  class: "measurement_data"
14
- }, $e = { class: "data_box" }, ze = { style: { color: "#0065fc" } }, Fe = {
14
+ }, $e = { class: "data_box" }, ze = { style: { color: "#0065fc" } }, He = {
15
15
  key: 1,
16
16
  class: "setMeasurePanel"
17
- }, He = { class: "set_content_par" }, Le = { class: "set_content_" }, qe = {
17
+ }, Fe = { class: "set_content_par" }, Le = { class: "set_content_" }, qe = {
18
18
  class: "set_content scale",
19
19
  style: { display: "none" }
20
- }, We = { class: "set_content unit" }, Xe = { class: "set_content precision" }, Ye = {
20
+ }, Ge = { class: "set_content unit" }, We = { class: "set_content precision" }, Xe = {
21
21
  key: 1,
22
22
  class: "mobile_measure_panel"
23
- }, Ze = { class: "measure-list" }, je = ["onClick"], Ge = { class: "measure-icon" }, Je = ["src"], Ke = { class: "measure-name" }, Qe = { class: "measure-icon" }, es = ["src"], ss = /* @__PURE__ */ Me({
23
+ }, Ye = { class: "measure-list" }, Ze = ["onClick"], je = { class: "measure-icon" }, Je = ["src"], Ke = { class: "measure-name" }, Qe = { class: "measure-icon" }, es = ["src"], ss = /* @__PURE__ */ Me({
24
24
  __name: "MeasureTool",
25
25
  props: ["componentId"],
26
26
  emits: ["closePanel", "emitHandler"],
27
- setup(Y, { emit: Z }) {
28
- const N = ve(), j = Y, I = o(0);
27
+ setup(X, { emit: Y }) {
28
+ const N = ve(), Z = X, I = o(0);
29
29
  be(() => {
30
- N.setReadyById(j.componentId), C.currentTheme == "blue" ? I.value = 224 : C.currentTheme == "light-gray" && (I.value = 202);
30
+ N.setReadyById(Z.componentId), C.currentTheme == "blue" ? I.value = 224 : C.currentTheme == "light-gray" && (I.value = 202);
31
31
  });
32
32
  let n, M, d;
33
- const i = o(1), T = o(), v = o(), b = o(), p = o(), S = o(), P = o(), U = o(), O = o(), w = o(1), h = o("m"), f = o(3), k = o(!1), G = [{ value: "m" }, { value: "cm" }, { value: "mm" }], r = o(!1), J = [
33
+ const i = o(1), T = o(), v = o(), b = o(), p = o(), S = o(), P = o(), U = o(), O = o(), w = o(1), h = o("m"), f = o(3), k = o(!1), j = [{ value: "m" }, { value: "cm" }, { value: "mm" }], r = o(!1), J = [
34
34
  { label: "0", value: 0 },
35
35
  { label: "0.0", value: 1 },
36
36
  { label: "0.00", value: 2 },
37
37
  { label: "0.000", value: 3 }
38
- ], $ = Z, z = (e) => {
38
+ ], $ = Y, z = (e) => {
39
39
  $("emitHandler", e);
40
- }, F = () => {
41
- W.SaveViewerState({ measure: "distance" }), M = window.bimViewer.measureAngleTool, n = window.bimViewer.measureDistanceTool, d = window.bimViewer.eventTrigger, m("isMobile") && (d.on("newAngleMeasure", (e) => {
40
+ }, H = () => {
41
+ G.SaveViewerState({ measure: "distance" }), M = window.bimViewer.measureAngleTool, n = window.bimViewer.measureDistanceTool, d = window.bimViewer.eventTrigger, m("isMobile") && (d.on("newAngleMeasure", (e) => {
42
42
  r.value = !1;
43
43
  }), d.on("newDistanceMeasure", (e) => {
44
44
  r.value = !1;
@@ -52,8 +52,8 @@ const Ve = {
52
52
  i.value == 1 && V(R[1]), te(e.id), m("isMobile") && (r.value = !0), c("clickAngleMeasure", { id: e.id });
53
53
  }), n.precision = f.value, n.unit = h.value, n.scale = w.value;
54
54
  };
55
- q.on("BimViewer", F), we(() => {
56
- q.off("BimViewer", F);
55
+ q.on("BimViewer", H), we(() => {
56
+ q.off("BimViewer", H);
57
57
  }), he(
58
58
  () => N.isToolActive(3),
59
59
  (e) => {
@@ -70,7 +70,7 @@ const Ve = {
70
70
  }, K = () => {
71
71
  window.bimViewer.measureTool.setActive(!1), $("closePanel"), k.value === !0 && x();
72
72
  }, V = (e) => {
73
- i.value !== e.id && (i.value = e.id, W.SaveViewerState({ measure: e.code }), Q(e), m("isMobile") && (r.value = !1));
73
+ i.value !== e.id && (i.value = e.id, G.SaveViewerState({ measure: e.code }), Q(e), m("isMobile") && (r.value = !1));
74
74
  }, Q = (e) => {
75
75
  let l = e.code;
76
76
  window.bimViewer.measureTool.setActiveByType(l, !0), z({
@@ -103,29 +103,29 @@ const Ve = {
103
103
  n.setAllVisible(e), M.setAllVisible(e);
104
104
  };
105
105
  return (e, l) => {
106
- const ie = me, H = _e, L = pe, re = ge, ce = fe;
107
- return _(m)("isMobile") ? (a(), u("div", Ye, [
106
+ const ie = me, F = _e, L = pe, re = ge, ce = fe;
107
+ return _(m)("isMobile") ? (a(), u("div", Xe, [
108
108
  l[13] || (l[13] = s("div", { class: "measure-title-box" }, [
109
109
  s("div", { class: "measure-title" }, "测量")
110
110
  ], -1)),
111
111
  g(ce, null, {
112
112
  default: A(() => [
113
- s("div", Ze, [
114
- (a(!0), u(D, null, B(_(R), (t) => (a(), u("div", {
113
+ s("div", Ye, [
114
+ (a(!0), u(B, null, D(_(R), (t) => (a(), u("div", {
115
115
  key: t.id,
116
- class: X(["measure-item", {
116
+ class: W(["measure-item", {
117
117
  "measure-item-active": i.value === t.id
118
118
  }]),
119
119
  onClick: (de) => V(t)
120
120
  }, [
121
- s("div", Ge, [
121
+ s("div", je, [
122
122
  s("img", {
123
123
  src: _(E) + `/bim-viewer/measure-bar/${i.value === t.id ? t.svgActive : t.svg}.svg`,
124
124
  alt: ""
125
125
  }, null, 8, Je),
126
126
  s("div", Ke, y(t.name), 1)
127
127
  ])
128
- ], 10, je))), 128)),
128
+ ], 10, Ze))), 128)),
129
129
  r.value ? (a(), u("div", {
130
130
  key: 0,
131
131
  class: "measure-item",
@@ -154,8 +154,8 @@ const Ve = {
154
154
  "click-handle": K
155
155
  }, {
156
156
  default: A(() => [
157
- k.value ? (a(), u("div", Fe, [
158
- s("div", He, [
157
+ k.value ? (a(), u("div", He, [
158
+ s("div", Fe, [
159
159
  s("div", Le, [
160
160
  s("div", qe, [
161
161
  l[8] || (l[8] = s("span", null, "比例:", -1)),
@@ -167,7 +167,7 @@ const Ve = {
167
167
  placeholder: "1"
168
168
  }, null, 8, ["modelValue"])
169
169
  ]),
170
- s("div", We, [
170
+ s("div", Ge, [
171
171
  l[10] || (l[10] = s("span", null, "单位:", -1)),
172
172
  g(L, {
173
173
  modelValue: h.value,
@@ -176,7 +176,7 @@ const Ve = {
176
176
  style: { width: "136px", height: "28px" }
177
177
  }, {
178
178
  default: A(() => [
179
- (a(), u(D, null, B(G, (t) => g(H, {
179
+ (a(), u(B, null, D(j, (t) => g(F, {
180
180
  key: t.value,
181
181
  value: t.value
182
182
  }, null, 8, ["value"])), 64))
@@ -184,7 +184,7 @@ const Ve = {
184
184
  _: 1
185
185
  }, 8, ["modelValue"])
186
186
  ]),
187
- s("div", Xe, [
187
+ s("div", We, [
188
188
  l[11] || (l[11] = s("span", null, "精度:", -1)),
189
189
  g(L, {
190
190
  modelValue: f.value,
@@ -193,7 +193,7 @@ const Ve = {
193
193
  style: { width: "136px", height: "28px" }
194
194
  }, {
195
195
  default: A(() => [
196
- (a(), u(D, null, B(J, (t) => g(H, {
196
+ (a(), u(B, null, D(J, (t) => g(F, {
197
197
  key: t.value,
198
198
  label: t.label,
199
199
  value: t.value
@@ -216,19 +216,19 @@ const Ve = {
216
216
  ])
217
217
  ])) : (a(), u("div", Ve, [
218
218
  s("div", xe, [
219
- (a(!0), u(D, null, B(_(R), (t) => (a(), u("div", {
219
+ (a(!0), u(B, null, D(_(R), (t) => (a(), u("div", {
220
220
  key: t.id,
221
- class: X(["measurement_box", { measurement_box_active: i.value === t.id }]),
221
+ class: W(["measurement_box", { measurement_box_active: i.value === t.id }]),
222
222
  onClick: (de) => V(t)
223
223
  }, [
224
224
  s("img", {
225
225
  class: "measurement_img",
226
226
  src: _(E) + `/bim-viewer/${i.value === t.id && _(C).currentTheme == "blue" ? t.imgActive : t.img}.png`,
227
227
  alt: ""
228
- }, null, 8, De)
228
+ }, null, 8, Be)
229
229
  ], 10, Ae))), 128))
230
230
  ]),
231
- i.value == 1 ? (a(), u("div", Be, [
231
+ i.value == 1 ? (a(), u("div", De, [
232
232
  s("div", Re, [
233
233
  l[3] || (l[3] = s("div", null, "总长度:", -1)),
234
234
  s("div", Ie, y(v.value ? v.value.toFixed(f.value) : "~"), 1)
@@ -261,7 +261,7 @@ const Ve = {
261
261
  }, 8, ["width", "panelTitle"]));
262
262
  };
263
263
  }
264
- }), ns = /* @__PURE__ */ ye(ss, [["__scopeId", "data-v-1ff2b8de"]]);
264
+ }), ns = /* @__PURE__ */ ye(ss, [["__scopeId", "data-v-e3c44e56"]]);
265
265
  export {
266
266
  ns as default
267
267
  };