@xtctwins/tctwins-bimx-engine 0.2.55 → 0.3.1

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 (104) hide show
  1. package/dist/{alert-C0MgdbKf.mjs → Alert-CSiEPFGt.mjs} +5 -5
  2. package/dist/{AnnotationTool-CPBZcbp_.mjs → AnnotationTool-CKzHkqWM.mjs} +80 -80
  3. package/dist/BIMX_Viewer_Lib.es.js +1 -1
  4. package/dist/BIMX_Viewer_Lib.umd.js +224 -169
  5. package/dist/{CommentTool-ChVib2Wg.mjs → CommentTool-5HhGDqpg.mjs} +575 -555
  6. package/dist/{HiddenTool-CilrXe5l.mjs → HiddenTool-BGFoHMWC.mjs} +9 -9
  7. package/dist/{InspectorTool-BXArGZHO.mjs → InspectorTool-DD3w7k07.mjs} +27 -27
  8. package/dist/{MeasureTool-DtUiP4t1.mjs → MeasureTool-COR8QLDf.mjs} +118 -94
  9. package/dist/{MouseTool-2Nxz447f.mjs → MouseTool-OxODcO4X.mjs} +27 -24
  10. package/dist/{NavigateTool-COsSnxyD.mjs → NavigateTool-Bw6GFzsg.mjs} +5 -5
  11. package/dist/{panel.vue_vue_type_style_index_0_lang-CN9vybau.mjs → Panel.vue_vue_type_style_index_0_lang-DgM_qGLO.mjs} +4 -4
  12. package/dist/{RoamTool-CjRywSYn.mjs → RoamTool-X-b0hsmJ.mjs} +7 -7
  13. package/dist/ScreenShotTool-0xSJZBBw.mjs +430 -0
  14. package/dist/SectionTool-BqI2Qnk5.mjs +343 -0
  15. package/dist/SettingTool-CGkRGfZH.mjs +747 -0
  16. package/dist/StructureTree-CWAXoI0r.mjs +1662 -0
  17. package/dist/{tallPanel-Ddd7gAie.mjs → TallPanel-CR5vNQ4c.mjs} +8 -8
  18. package/dist/bimTools-D3TraX9d.mjs +75 -0
  19. package/dist/el-slider-CBVU9_og.mjs +1040 -0
  20. package/dist/{index-DTeJ8S3e.mjs → index-CwRGVhoT.mjs} +44953 -46755
  21. package/dist/style.css +1 -1
  22. package/package.json +4 -3
  23. package/types/components/bcf/AddObjectOrAnno.vue.d.ts +16 -0
  24. package/types/components/bcf/BCFAddPanel.vue.d.ts +55 -0
  25. package/types/components/bcf/BCFDetailPanel.vue.d.ts +59 -0
  26. package/types/components/bcf/BCFDisplayList.vue.d.ts +18 -0
  27. package/types/components/bcf/BCFFilter.vue.d.ts +14 -0
  28. package/types/components/bcf/BCFTool.vue.d.ts +15 -0
  29. package/types/components/bcf/CheckObjectPanel.vue.d.ts +11 -0
  30. package/types/components/bcf/CommentInput.vue.d.ts +51 -0
  31. package/types/components/bcf/CommentsView.vue.d.ts +48 -0
  32. package/types/components/bcf/DialogPanel.vue.d.ts +15 -0
  33. package/types/components/bcf/ImageView.vue.d.ts +17 -0
  34. package/types/components/bcf/ImageZoomIn.vue.d.ts +9 -0
  35. package/types/components/bcf/MobileBCFAdd.vue.d.ts +56 -0
  36. package/types/components/bcf/MobileBCFDetail.vue.d.ts +55 -0
  37. package/types/components/bcf/MobileBCFDisplayList.vue.d.ts +498 -0
  38. package/types/components/bcf/MobileBCFFilter.vue.d.ts +475 -0
  39. package/types/components/bcf/MobileBCFTool.vue.d.ts +17 -0
  40. package/types/components/bcf/MobileCommentInput.vue.d.ts +54 -0
  41. package/types/components/bcf/MobileCommentsView.vue.d.ts +17 -0
  42. package/types/components/bcf/SelectPanel.vue.d.ts +12 -0
  43. package/types/components/comment/mobile/MobileCommentAdd.vue.d.ts +14 -0
  44. package/types/components/comment/mobile/MobileDetail.vue.d.ts +11 -0
  45. package/types/components/comment/mobile/MobileDraw.vue.d.ts +17 -0
  46. package/types/components/comment/mobile/MobileFilter.vue.d.ts +475 -0
  47. package/types/components/comment/mobile/MobileList.vue.d.ts +497 -0
  48. package/types/components/comment/mobile/MobileZoomIn.vue.d.ts +9 -0
  49. package/types/components/comment/pc/PcDraw.vue.d.ts +14 -0
  50. package/types/components/shared/Alert.vue.d.ts +32 -0
  51. package/types/components/shared/CloseButton.vue.d.ts +50 -0
  52. package/types/components/shared/CloseButtonDark.vue.d.ts +32 -0
  53. package/types/components/shared/EmptyPage.vue.d.ts +6 -0
  54. package/types/components/shared/Loading.vue.d.ts +2 -0
  55. package/types/components/shared/Panel.vue.d.ts +47 -0
  56. package/types/components/shared/Prompt.vue.d.ts +8 -0
  57. package/types/components/shared/RectangleButton.vue.d.ts +106 -0
  58. package/types/components/shared/TallPanel.vue.d.ts +69 -0
  59. package/types/components/shared/TallPanelNoPos.vue.d.ts +82 -0
  60. package/types/components/tools/AnnotationTool.vue.d.ts +14 -0
  61. package/types/components/tools/AppToolbar.vue.d.ts +27 -0
  62. package/types/components/tools/ClickEvent.vue.d.ts +6 -0
  63. package/types/components/tools/CommentTool.vue.d.ts +45 -0
  64. package/types/components/tools/HiddenTool.vue.d.ts +12 -0
  65. package/types/components/tools/InspectorTool.vue.d.ts +14 -0
  66. package/types/components/tools/MeasureTool.vue.d.ts +14 -0
  67. package/types/components/tools/MouseTool.vue.d.ts +6 -0
  68. package/types/components/tools/NavigateTool.vue.d.ts +10 -0
  69. package/types/components/tools/RoamTool.vue.d.ts +12 -0
  70. package/types/components/tools/ScreenShotTool.vue.d.ts +10 -0
  71. package/types/components/tools/SectionTool.vue.d.ts +14 -0
  72. package/types/components/tools/SettingTool.vue.d.ts +13 -0
  73. package/types/components/tools/StructureTree.vue.d.ts +11645 -0
  74. package/types/components/tools/Toolbar.vue.d.ts +10 -0
  75. package/types/composables/useBimViewerEvent.d.ts +44 -0
  76. package/types/composables/useEmitHandler.d.ts +2 -0
  77. package/types/composables/useToolActive.d.ts +1 -0
  78. package/types/composables/useToolReady.d.ts +1 -0
  79. package/types/i18n/index.d.ts +5 -1
  80. package/types/i18n/locales/en-US.d.ts +1 -0
  81. package/types/i18n/locales/zh-CN.d.ts +1 -0
  82. package/types/store/bcfReflect.d.ts +13 -81
  83. package/types/store/const/app.d.ts +66 -0
  84. package/types/store/const/bimTools.d.ts +81 -0
  85. package/types/store/const/project.d.ts +48 -0
  86. package/types/store/const/theme.d.ts +16 -0
  87. package/types/store/const/toolbar.d.ts +26 -0
  88. package/types/store/const.d.ts +11 -228
  89. package/types/store/toolbars.d.ts +22 -0
  90. package/types/store/userInfoStore.d.ts +1 -1
  91. package/types/stores/viewerStore.d.ts +112 -0
  92. package/types/types/bcf.d.ts +83 -0
  93. package/types/types/events.d.ts +88 -0
  94. package/types/utils/OSSHelper.d.ts +27 -0
  95. package/types/utils/cacheInfo.d.ts +26 -3
  96. package/types/utils/dbscan.d.ts +1 -0
  97. package/types/utils/eventBus.d.ts +1 -83
  98. package/types/viewerManager/viewerManager.d.ts +53 -3
  99. package/dist/ScreenShotTool-g1dzvqn2.mjs +0 -500
  100. package/dist/SectionTool-DlnlE6Pv.mjs +0 -331
  101. package/dist/SettingTool-y_hp2XrJ.mjs +0 -815
  102. package/dist/StructureTree-CtJ4Yf5_.mjs +0 -1846
  103. package/dist/const-DOnRsYpZ.mjs +0 -389
  104. package/dist/el-input-number-BjEspzGk.mjs +0 -1169
@@ -0,0 +1,343 @@
1
+ import { _ as pe } from "./Alert-CSiEPFGt.mjs";
2
+ import { A as fe, B as he, T as F, C, D as B, Q as $, O as d, G as ke, U as ge, H as we, I as be } from "./index-CwRGVhoT.mjs";
3
+ import { E as ye } from "./el-slider-CBVU9_og.mjs";
4
+ import { _ as Se } from "./Panel.vue_vue_type_style_index_0_lang-DgM_qGLO.mjs";
5
+ import { defineComponent as Ce, ref as v, onMounted as Ve, watch as xe, onBeforeUnmount as Pe, openBlock as s, createElementBlock as l, Fragment as z, unref as i, createBlock as Te, withCtx as E, createElementVNode as o, toDisplayString as u, withDirectives as G, renderList as K, vShow as Q, createVNode as m, normalizeClass as Le, withModifiers as Be, createTextVNode as $e } from "vue";
6
+ import { B as ze } from "./bimTools-D3TraX9d.mjs";
7
+ const Ee = { class: "section_panel_middle" }, Ie = { class: "section_middle_title" }, Ae = { class: "section_control_button" }, De = ["src"], Oe = { class: "control_buttons" }, Me = ["onClick"], Ue = { class: "section_panel_cont" }, Ne = {
8
+ key: 0,
9
+ class: ""
10
+ }, Re = ["onClick"], He = { class: "cont_item_left" }, je = ["src", "onClick"], Fe = { class: "cont_item_right" }, Ge = ["src", "onClick"], Ke = ["src", "onClick"], Qe = ["src", "onClick"], We = {
11
+ key: 1,
12
+ class: "empty1"
13
+ }, qe = {
14
+ key: 1,
15
+ class: "mobile_section_panel"
16
+ }, Je = { class: "slicing-title-box" }, Xe = { class: "slicing-title" }, Ye = { class: "slicing-title-icon" }, Ze = { class: "slicing-content-box" }, eo = { class: "slicing-select-box" }, oo = { class: "select-item" }, to = { class: "select-item-left" }, no = ["src"], io = ["src"], so = { class: "select-item-center" }, lo = { class: "item-center-top" }, co = { class: "item-center-bottom" }, ao = { class: "select-item" }, ro = { class: "select-item-left" }, uo = ["src"], _o = ["src"], vo = { class: "select-item-center" }, mo = { class: "item-center-top" }, po = { class: "item-center-bottom" }, fo = { class: "select-item" }, ho = { class: "select-item-left" }, ko = ["src"], go = ["src"], wo = { class: "select-item-center" }, bo = { class: "item-center-top" }, yo = { class: "item-center-bottom" }, So = /* @__PURE__ */ Ce({
17
+ __name: "SectionTool",
18
+ props: ["componentId", "instruction"],
19
+ emits: ["closePanel", "emitHandler"],
20
+ setup(W, { emit: q }) {
21
+ const _ = fe(), I = he(), A = W, V = v(0);
22
+ Ve(() => {
23
+ I.setReadyById(A.componentId), F.currentTheme == "blue" ? V.value = 240 : F.currentTheme == "light-gray" && (V.value = 202), document.addEventListener("click", D);
24
+ });
25
+ const D = (e) => {
26
+ b.value && e.target.id != "controlOperatePanel" && M(!1);
27
+ }, O = v(!0), w = v(!1), r = v(), f = v(), b = v(!1), M = (e) => {
28
+ b.value = e;
29
+ };
30
+ let a;
31
+ const J = q;
32
+ xe(
33
+ () => I.isToolActive(A.componentId),
34
+ (e) => {
35
+ C("isMobile") && (e ? (g(h.value.direction), document.addEventListener("touchmove", N)) : document.removeEventListener("touchmove", N));
36
+ }
37
+ );
38
+ let x = !1;
39
+ const U = () => {
40
+ a = window.bimViewer.sectionTool;
41
+ };
42
+ B.on("BimViewer", U), $({
43
+ event: "createSection",
44
+ handler: (e) => {
45
+ C("isMobile") || (y(), r.value = Object.keys(re()).map((t) => ({
46
+ id: t,
47
+ isLook: !0,
48
+ directionLeft: !0
49
+ })), oe(e.id, !0), f.value = e.id, P(e.id));
50
+ },
51
+ defer: !0
52
+ }), $({
53
+ event: "touchPlaneStart",
54
+ handler: () => {
55
+ x = !0;
56
+ },
57
+ defer: !0
58
+ }), $({
59
+ event: "touchPlaneEnd",
60
+ handler: () => {
61
+ x = !1;
62
+ },
63
+ defer: !0
64
+ }), Pe(() => {
65
+ B.off("BimViewer", U), document.removeEventListener("click", D);
66
+ });
67
+ const N = () => {
68
+ x && X();
69
+ }, c = v({
70
+ x: 0,
71
+ y: 0,
72
+ z: 0
73
+ }), h = v({
74
+ direction: "x"
75
+ }), k = (e) => {
76
+ g(e);
77
+ }, g = (e) => {
78
+ switch (h.value.direction = e, e) {
79
+ case "x":
80
+ window.bimViewer.sectionTool.sectionDirection = 0, window.bimViewer.sectionTool.setControlPos(100 - c.value.x);
81
+ break;
82
+ case "y":
83
+ window.bimViewer.sectionTool.sectionDirection = 1, window.bimViewer.sectionTool.setControlPos(c.value.y);
84
+ break;
85
+ case "z":
86
+ window.bimViewer.sectionTool.sectionDirection = 2, window.bimViewer.sectionTool.setControlPos(100 - c.value.z);
87
+ break;
88
+ }
89
+ }, X = () => {
90
+ switch (h.value.direction) {
91
+ case "x":
92
+ c.value.x = 100 - window.bimViewer.sectionTool.getControlPos();
93
+ break;
94
+ case "y":
95
+ c.value.y = window.bimViewer.sectionTool.getControlPos();
96
+ break;
97
+ case "z":
98
+ c.value.z = 100 - window.bimViewer.sectionTool.getControlPos();
99
+ break;
100
+ }
101
+ }, Y = (e) => _("section.sectionPrefix") + (Number(e) + 1), R = () => {
102
+ a.setActive(!1), J("closePanel"), B.emit("hideToolbar", !1);
103
+ }, Z = (e) => {
104
+ f.value !== e.id && (f.value = e.id, w.value = !1, y(), P(e.id));
105
+ }, ee = (e) => {
106
+ y(), e.isLook = !e.isLook, e.isLook ? (e.isLook = !0, ne(e.id)) : ie(e.id), P(f.value);
107
+ }, P = (e) => {
108
+ a.showSectionPlane(e);
109
+ }, H = (e) => {
110
+ if (r.value)
111
+ for (let t = 0; t < r.value.length; t++)
112
+ r.value[t].isLook = e;
113
+ }, oe = (e, t) => {
114
+ for (let p = 0; p < r.value.length; p++)
115
+ e == r.value[p].id && (r.value[p].isLook = t);
116
+ }, j = (e) => {
117
+ e.directionLeft = !e.directionLeft, ae(e.id);
118
+ }, te = (e) => {
119
+ a.destroySectionPlane(e), r.value = r.value.filter((t) => t.id !== e);
120
+ }, ne = (e) => {
121
+ a.setSectionEnable(e);
122
+ }, ie = (e) => {
123
+ a.setSectionDisable(e);
124
+ }, se = () => {
125
+ H(!0), a.enableSections(), a.showControl(), w.value = !0;
126
+ }, le = () => {
127
+ H(!1), a.disableSections(), w.value = !1, f.value = "";
128
+ }, ce = (e) => {
129
+ e.id === 0 ? (de(), r.value = []) : e.id === 1 ? ue() : e.id === 2 ? se() : e.id === 4 && (le(), y());
130
+ }, ae = (e) => {
131
+ a.flipSection(e);
132
+ }, re = () => a.getSectionPlanes(), de = () => {
133
+ a.clear();
134
+ }, ue = () => {
135
+ a.flipSections();
136
+ }, y = () => {
137
+ a.hideControl();
138
+ };
139
+ return (e, t) => {
140
+ const p = ke, _e = Se, ve = we, T = ye, me = pe;
141
+ return s(), l(z, null, [
142
+ i(C)("isMobile") ? (s(), l("div", qe, [
143
+ o("div", Je, [
144
+ o("div", Xe, u(i(_)("toolbar.section")), 1),
145
+ o("div", Ye, [
146
+ m(ve, {
147
+ width: 0.4,
148
+ "size-type": "rem",
149
+ "click-handle": R
150
+ })
151
+ ])
152
+ ]),
153
+ o("div", Ze, [
154
+ m(p, null, {
155
+ default: E(() => [
156
+ o("div", eo, [
157
+ o("div", oo, [
158
+ o("div", to, [
159
+ h.value.direction === "x" ? (s(), l("img", {
160
+ key: 0,
161
+ src: i(d) + "/bim-viewer/section_look_icon.png",
162
+ alt: "",
163
+ onClick: t[1] || (t[1] = (n) => k("x"))
164
+ }, null, 8, no)) : (s(), l("img", {
165
+ key: 1,
166
+ src: i(d) + "/bim-viewer/section_unlook_icon.png",
167
+ alt: "",
168
+ onClick: t[2] || (t[2] = (n) => k("x"))
169
+ }, null, 8, io))
170
+ ]),
171
+ o("div", so, [
172
+ o("div", lo, [
173
+ o("div", null, u(i(_)("section.xAxis")), 1),
174
+ o("div", null, u(c.value.x) + " %", 1)
175
+ ]),
176
+ o("div", co, [
177
+ m(T, {
178
+ modelValue: c.value.x,
179
+ "onUpdate:modelValue": t[3] || (t[3] = (n) => c.value.x = n),
180
+ size: "large",
181
+ "show-tooltip": !1,
182
+ onInput: t[4] || (t[4] = (n) => g("x"))
183
+ }, null, 8, ["modelValue"])
184
+ ])
185
+ ])
186
+ ]),
187
+ o("div", ao, [
188
+ o("div", ro, [
189
+ h.value.direction === "y" ? (s(), l("img", {
190
+ key: 0,
191
+ src: i(d) + "/bim-viewer/section_look_icon.png",
192
+ alt: "",
193
+ onClick: t[5] || (t[5] = (n) => k("y"))
194
+ }, null, 8, uo)) : (s(), l("img", {
195
+ key: 1,
196
+ src: i(d) + "/bim-viewer/section_unlook_icon.png",
197
+ alt: "",
198
+ onClick: t[6] || (t[6] = (n) => k("y"))
199
+ }, null, 8, _o))
200
+ ]),
201
+ o("div", vo, [
202
+ o("div", mo, [
203
+ o("div", null, u(i(_)("section.yAxis")), 1),
204
+ o("div", null, u(c.value.y) + " %", 1)
205
+ ]),
206
+ o("div", po, [
207
+ m(T, {
208
+ modelValue: c.value.y,
209
+ "onUpdate:modelValue": t[7] || (t[7] = (n) => c.value.y = n),
210
+ size: "large",
211
+ "show-tooltip": !1,
212
+ onInput: t[8] || (t[8] = (n) => g("y"))
213
+ }, null, 8, ["modelValue"])
214
+ ])
215
+ ])
216
+ ]),
217
+ o("div", fo, [
218
+ o("div", ho, [
219
+ h.value.direction === "z" ? (s(), l("img", {
220
+ key: 0,
221
+ src: i(d) + "/bim-viewer/section_look_icon.png",
222
+ alt: "",
223
+ onClick: t[9] || (t[9] = (n) => k("z"))
224
+ }, null, 8, ko)) : (s(), l("img", {
225
+ key: 1,
226
+ src: i(d) + "/bim-viewer/section_unlook_icon.png",
227
+ alt: "",
228
+ onClick: t[10] || (t[10] = (n) => k("z"))
229
+ }, null, 8, go))
230
+ ]),
231
+ o("div", wo, [
232
+ o("div", bo, [
233
+ o("div", null, u(i(_)("section.zAxis")), 1),
234
+ o("div", null, u(c.value.z) + " %", 1)
235
+ ]),
236
+ o("div", yo, [
237
+ m(T, {
238
+ modelValue: c.value.z,
239
+ "onUpdate:modelValue": t[11] || (t[11] = (n) => c.value.z = n),
240
+ size: "large",
241
+ "show-tooltip": !1,
242
+ onInput: t[12] || (t[12] = (n) => g("z"))
243
+ }, null, 8, ["modelValue"])
244
+ ])
245
+ ])
246
+ ])
247
+ ])
248
+ ]),
249
+ _: 1
250
+ })
251
+ ])
252
+ ])) : (s(), Te(_e, {
253
+ key: 0,
254
+ class: "section_panel",
255
+ width: V.value,
256
+ panelTitle: i(_)("toolbar.section"),
257
+ "click-handle": R
258
+ }, {
259
+ default: E(() => [
260
+ o("div", Ee, [
261
+ o("div", Ie, u(i(_)("section.allSections")), 1),
262
+ o("div", Ae, [
263
+ o("img", {
264
+ id: "controlOperatePanel",
265
+ src: i(d) + "/bim-viewer/slicing-more.png",
266
+ onClick: t[0] || (t[0] = (n) => M(!b.value))
267
+ }, null, 8, De),
268
+ G(o("div", Oe, [
269
+ (s(!0), l(z, null, K(i(ze), (n) => (s(), l("div", {
270
+ key: n.id,
271
+ class: "operation_button",
272
+ onClick: (L) => ce(n)
273
+ }, [
274
+ o("span", null, u(i(_)(n.name)), 1)
275
+ ], 8, Me))), 128))
276
+ ], 512), [
277
+ [Q, b.value]
278
+ ])
279
+ ])
280
+ ]),
281
+ o("div", Ue, [
282
+ m(p, { height: "360px" }, {
283
+ default: E(() => [
284
+ r.value && r.value.length ? (s(), l("div", Ne, [
285
+ (s(!0), l(z, null, K(r.value, (n, L) => (s(), l("div", {
286
+ key: L,
287
+ class: Le(["panel_cont_item", { panel_cont_item_choose: f.value === n.id || w.value }]),
288
+ onClick: (S) => Z(n)
289
+ }, [
290
+ o("div", He, [
291
+ o("img", {
292
+ src: `${i(d)}/bim-viewer/${n.isLook ? "section_look_icon.png" : "section_unlook_icon.png"}`,
293
+ alt: "",
294
+ onClick: Be((S) => ee(n), ["stop"])
295
+ }, null, 8, je),
296
+ $e(" " + u(Y(L)), 1)
297
+ ]),
298
+ o("div", Fe, [
299
+ n.directionLeft ? (s(), l("img", {
300
+ key: 0,
301
+ src: i(d) + "/bim-viewer/left_section_icon.png",
302
+ alt: "",
303
+ onClick: (S) => j(n)
304
+ }, null, 8, Ge)) : (s(), l("img", {
305
+ key: 1,
306
+ src: i(d) + "/bim-viewer/right_section_icon.png",
307
+ alt: "",
308
+ onClick: (S) => j(n)
309
+ }, null, 8, Ke)),
310
+ o("img", {
311
+ src: i(d) + "/bim-viewer/section_del_icon.png",
312
+ alt: "",
313
+ onClick: (S) => te(n.id)
314
+ }, null, 8, Qe)
315
+ ])
316
+ ], 10, Re))), 128))
317
+ ])) : (s(), l("div", We, [
318
+ m(ge, {
319
+ title: i(_)("common.noData"),
320
+ type: "model"
321
+ }, null, 8, ["title"])
322
+ ]))
323
+ ]),
324
+ _: 1
325
+ })
326
+ ])
327
+ ]),
328
+ _: 1
329
+ }, 8, ["width", "panelTitle"])),
330
+ G(m(me, {
331
+ "click-handle": () => {
332
+ O.value = !1;
333
+ }
334
+ }, null, 8, ["click-handle"]), [
335
+ [Q, O.value && !i(C)("isMobile")]
336
+ ])
337
+ ], 64);
338
+ };
339
+ }
340
+ }), Bo = /* @__PURE__ */ be(So, [["__scopeId", "data-v-6e94f3af"]]);
341
+ export {
342
+ Bo as default
343
+ };