@xtctwins/tctwins-bimx-engine 0.1.21 → 0.1.22

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 (36) hide show
  1. package/dist/{AnnotationTool-BvFG1vTX.mjs → AnnotationTool-CgiAUuLM.mjs} +12 -12
  2. package/dist/BIMX_Viewer_Lib.es.js +4 -4
  3. package/dist/BIMX_Viewer_Lib.umd.js +86 -91
  4. package/dist/CommentTool-BeT1ECI-.mjs +338 -0
  5. package/dist/HiddenTool-qqISJ_uV.mjs +58 -0
  6. package/dist/InspectorTool-CLPjV6WW.mjs +609 -0
  7. package/dist/MeasureTool-Be-rmUeb.mjs +1540 -0
  8. package/dist/{NavigateTool-CCIb1X4u.mjs → NavigateTool-C-VsKB0k.mjs} +7 -7
  9. package/dist/{RoamTool-B1w0efz8.mjs → RoamTool-DdHBNeVg.mjs} +20 -20
  10. package/dist/{ScreenShotTool-BviRVFSg.mjs → ScreenShotTool-Da7D2dkW.mjs} +67 -67
  11. package/dist/SectionTool-CHcmUQul.mjs +624 -0
  12. package/dist/SettingTool-CkR1F4x_.mjs +525 -0
  13. package/dist/StructureTree-DBu9xTue.mjs +1438 -0
  14. package/dist/{debounce-Cg3LHv0T.mjs → debounce-DLzt_q3i.mjs} +13 -13
  15. package/dist/{el-checkbox-lp8vWAXQ.mjs → el-checkbox-DsUGOsl_.mjs} +46 -46
  16. package/dist/{el-input-Bwqgf3wZ.mjs → el-input-UdjCNTtW.mjs} +66 -68
  17. package/dist/{el-input-number-0OWyX276.mjs → el-input-number-ySU-dVGM.mjs} +75 -75
  18. package/dist/{index-CQ8depiU.mjs → index-BfLgpvcd.mjs} +3 -3
  19. package/dist/{index-CYEu_kT4.mjs → index-DQKkZiNH.mjs} +1 -1
  20. package/dist/{index-DX-eYsBm.mjs → index-DyFDTMAw.mjs} +1795 -1794
  21. package/dist/{isEqual-Bg-tyY30.mjs → isEqual-BWlMaoTp.mjs} +9 -9
  22. package/dist/panel.vue_vue_type_style_index_0_lang-ZCDiwNFo.mjs +96 -0
  23. package/dist/style.css +1 -1
  24. package/dist/tallPanel-Cz_n6AsB.mjs +49 -0
  25. package/package.json +1 -1
  26. package/types/components/utilsComponents/tallPanel.vue.d.ts +41 -0
  27. package/types/services/fileApi/fileManager.d.ts +5 -5
  28. package/types/store/themeManager.d.ts +1 -1
  29. package/dist/CommentTool-B6ruuuGV.mjs +0 -338
  30. package/dist/HiddenTool-DW-lRdW5.mjs +0 -58
  31. package/dist/InspectorTool-Cc288ySp.mjs +0 -515
  32. package/dist/MeasureTool-DdfM3U_3.mjs +0 -1542
  33. package/dist/SectionTool-jSjWX32j.mjs +0 -630
  34. package/dist/SettingTool-CVMZAx2H.mjs +0 -536
  35. package/dist/StructureTree-4OCdRRPG.mjs +0 -2672
  36. package/dist/panel.vue_vue_type_style_index_0_scope_true_lang-BfE1I0S9.mjs +0 -82
@@ -0,0 +1,49 @@
1
+ import { a as c } from "./panel.vue_vue_type_style_index_0_lang-ZCDiwNFo.mjs";
2
+ import { defineComponent as i, ref as s, onMounted as r, openBlock as d, createElementBlock as p, normalizeStyle as _, createElementVNode as t, toDisplayString as u, createVNode as m, unref as n, renderSlot as h } from "vue";
3
+ import { T as l, n as f } from "./index-DyFDTMAw.mjs";
4
+ const g = { class: "panel_top" }, k = { class: "panel_title" }, v = { class: "panel_close" }, y = { class: "panel_content" }, w = /* @__PURE__ */ i({
5
+ __name: "tallPanel",
6
+ props: {
7
+ panelTitle: {
8
+ type: String,
9
+ default: ""
10
+ },
11
+ width: {
12
+ type: Number,
13
+ default: 286
14
+ },
15
+ clickHandle: {
16
+ type: Function,
17
+ default: () => {
18
+ }
19
+ }
20
+ },
21
+ setup(e) {
22
+ return s(e.width), r(() => {
23
+ }), (o, S) => {
24
+ const a = c;
25
+ return d(), p("div", {
26
+ class: "tall_panel_wrapper",
27
+ style: _({ width: e.width.toString() + "px" })
28
+ }, [
29
+ t("div", g, [
30
+ t("div", k, u(e.panelTitle), 1),
31
+ t("div", v, [
32
+ m(a, {
33
+ width: 18,
34
+ "click-handle": e.clickHandle,
35
+ light: n(l).currentTheme == "blue",
36
+ dark: n(l).currentTheme == "light-gray"
37
+ }, null, 8, ["click-handle", "light", "dark"])
38
+ ])
39
+ ]),
40
+ t("div", y, [
41
+ h(o.$slots, "default", {}, void 0, !0)
42
+ ])
43
+ ], 4);
44
+ };
45
+ }
46
+ }), b = /* @__PURE__ */ f(w, [["__scopeId", "data-v-56ee8119"]]);
47
+ export {
48
+ b as _
49
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xtctwins/tctwins-bimx-engine",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "main": "dist/BIMX_Viewer_Lib.umd.js",
5
5
  "style": "dist/style.css",
6
6
  "module": "dist/BIMX_Viewer_Lib.es.js",
@@ -0,0 +1,41 @@
1
+ declare function __VLS_template(): {
2
+ default?(_: {}): any;
3
+ };
4
+ declare const __VLS_component: import('vue').DefineComponent<{
5
+ panelTitle: {
6
+ type: StringConstructor;
7
+ default: string;
8
+ };
9
+ width: {
10
+ type: NumberConstructor;
11
+ default: number;
12
+ };
13
+ clickHandle: {
14
+ type: FunctionConstructor;
15
+ default: () => void;
16
+ };
17
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
18
+ panelTitle: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ width: {
23
+ type: NumberConstructor;
24
+ default: number;
25
+ };
26
+ clickHandle: {
27
+ type: FunctionConstructor;
28
+ default: () => void;
29
+ };
30
+ }>>, {
31
+ width: number;
32
+ panelTitle: string;
33
+ clickHandle: Function;
34
+ }, {}>;
35
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
36
+ export default _default;
37
+ type __VLS_WithTemplateSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -1,6 +1,6 @@
1
1
  import { AxiosProgressEvent } from 'axios';
2
- export declare const getUploadId: (filePath: string) => Promise<any>;
3
- export declare const fragmentUpload: (FormData: FormData, filePath: string, uploadId?: string, partNumber?: number, onUploadProgress?: (progressEvent: AxiosProgressEvent) => void) => Promise<any>;
4
- export declare const fragmentFileCombile: (filePath: string, uploadId?: string) => Promise<any>;
5
- export declare const downloadFile: (bucket: string, filePath: string) => Promise<any>;
6
- export declare const readFile: (bucket: string, filePath: string) => Promise<any>;
2
+ export declare const getUploadId: (filePath: string) => any;
3
+ export declare const fragmentUpload: (FormData: FormData, filePath: string, uploadId?: string, partNumber?: number, onUploadProgress?: (progressEvent: AxiosProgressEvent) => void) => any;
4
+ export declare const fragmentFileCombile: (filePath: string, uploadId?: string) => any;
5
+ export declare const downloadFile: (bucket: string, filePath: string) => any;
6
+ export declare const readFile: (bucket: string, filePath: string) => any;
@@ -1,4 +1,4 @@
1
1
  export default class ThemeManager {
2
- static currentTheme: string | null;
2
+ static get currentTheme(): string | null;
3
3
  static setTheme(themeName: string): void;
4
4
  }
@@ -1,338 +0,0 @@
1
- import { p as ge, q as L, s as F, O as u, v as pe } from "./index-DX-eYsBm.mjs";
2
- import { b as we } from "./el-input-Bwqgf3wZ.mjs";
3
- import { defineComponent as fe, onMounted as Ce, ref as a, watch as ke, openBlock as s, createElementBlock as n, unref as c, createElementVNode as t, Fragment as x, renderList as b, normalizeClass as y, normalizeStyle as B, toDisplayString as U, withModifiers as H, createCommentVNode as V, createVNode as q, withCtx as xe } from "vue";
4
- import { C as G, F as be, L as ye, T as Se } from "./const-CbUmfuHy.mjs";
5
- const Te = { class: "comment_component" }, Ie = /* @__PURE__ */ t("div", {
6
- id: "comments_panel",
7
- class: "comments_panel"
8
- }, null, -1), Ee = {
9
- key: 0,
10
- id: "comments_toolbar",
11
- class: "comments_toolbar"
12
- }, ze = { class: "comments_toolbar_wrapper" }, Le = { class: "comments_toolbar_group" }, Be = ["onClick"], Ve = ["src"], Me = ["src"], Ne = {
13
- key: 2,
14
- class: "edit-tips"
15
- }, Re = { class: "edit_tips_content" }, Ae = {
16
- key: 0,
17
- class: "tips-weight"
18
- }, We = ["onClick"], De = {
19
- key: 1,
20
- class: "tips-weight"
21
- }, Oe = ["onClick"], Pe = { class: "tips-color" }, $e = ["onClick"], Fe = /* @__PURE__ */ t("div", { class: "splitLine" }, null, -1), Ue = { class: "comments_toolbar_group" }, He = ["src"], qe = ["src"], Ge = ["src"], Xe = ["src"], Ze = /* @__PURE__ */ t("div", { class: "splitLine" }, null, -1), je = {
22
- key: 1,
23
- class: "mobile_comments_toolbar"
24
- }, Je = /* @__PURE__ */ t("div", { class: "comment-title-box" }, [
25
- /* @__PURE__ */ t("div", { class: "comment-title" }, "批注")
26
- ], -1), Ke = { class: "comment-list" }, Qe = ["onClick"], Ye = { class: "comment-icon" }, et = ["src"], tt = { class: "comment-name" }, ot = { class: "comment-icon" }, st = ["src"], nt = /* @__PURE__ */ t("div", {
27
- class: "comment-name",
28
- style: { color: "#df1c1c" }
29
- }, " 删除 ", -1), lt = {
30
- key: 2,
31
- class: "comment_create_text_box"
32
- }, it = { class: "label-text-edit" }, ct = { class: "text-edit-head" }, at = ["src"], rt = /* @__PURE__ */ t("div", { class: "text-edit-title" }, "创建文字批注", -1), dt = { class: "text-edit-body" }, vt = { class: "text-edit-input" }, gt = /* @__PURE__ */ fe({
33
- __name: "CommentTool",
34
- props: ["componentId"],
35
- emits: ["closePanel", "emitHandler"],
36
- setup(X, { emit: Z }) {
37
- const M = ge(), N = X;
38
- Ce(() => {
39
- M.setReadyById(N.componentId);
40
- });
41
- let R, i, _;
42
- const r = a(0), E = a(1), z = a(1), A = a(1), j = a(G), v = a(), h = a(!1), g = a(!1), S = a(!1), T = a(!1), p = a(""), W = a(), w = a({
43
- show: !1,
44
- // 是否显示
45
- title: "标题",
46
- // 弹窗标题
47
- content: "内容",
48
- // 弹窗内容
49
- submitName: "确认",
50
- // 弹窗按钮
51
- confirm: () => {
52
- console.log("点击了确认"), w.value.show = !1;
53
- },
54
- close: () => {
55
- console.log("点击了关闭"), w.value.show = !1;
56
- }
57
- }), D = Z, J = (e) => {
58
- D("emitHandler", e);
59
- };
60
- ke(
61
- () => M.isToolActive(N.componentId),
62
- (e) => {
63
- var m;
64
- e ? (r.value = 1, f("path"), setTimeout(() => {
65
- var d;
66
- L("isMobile") && ((d = document.getElementById("svgImage")) == null || d.addEventListener("touchstart", O));
67
- }, 100)) : L("isMobile") && ((m = document.getElementById("svgImage")) == null || m.removeEventListener("touchstart", O));
68
- }
69
- );
70
- const O = (e) => {
71
- e.target.tagName == "image" && (r.value === 5 ? (p.value = "", W.value = e, T.value = !0) : S.value = !1);
72
- };
73
- F.on("BimViewer", () => {
74
- console.log("BimViewer"), R = window.BimViewer, i = window.BimViewer.commentTool, _ = window.BimViewer.eventTrigger, f(""), _.on("createNew", () => {
75
- r.value = 0, f("");
76
- }), _.on("newState", () => {
77
- h.value = !0, g.value = !1;
78
- }), _.on("noPreviousState", () => {
79
- h.value = !1;
80
- }), _.on("noNewState", () => {
81
- g.value = !1;
82
- }), _.on("choseTarget", (e) => {
83
- S.value = !0, r.value = 0, f("");
84
- });
85
- });
86
- const K = () => {
87
- p.value ? (i.clickCreateText(W.value, p.value), T.value = !1) : Q("请输入内容");
88
- }, Q = (e, m) => {
89
- w.value = {
90
- show: !0,
91
- // 是否显示
92
- title: "提示",
93
- // 弹窗标题
94
- content: e,
95
- // 弹窗内容
96
- submitName: "确定",
97
- // 弹窗按钮
98
- confirm: () => {
99
- console.log("点击了确认"), w.value.show = !1;
100
- },
101
- close: () => {
102
- console.log("点击了关闭"), w.value.show = !1;
103
- }
104
- };
105
- };
106
- F.on("withdraw", () => {
107
- h.value = !1, g.value = !1;
108
- });
109
- const P = (e) => {
110
- r.value === e.id && (r.value = 0), E.value = 1, z.value = 1, v.value = e.buttontype, r.value = e.id, f(e.buttontype);
111
- }, Y = () => {
112
- i.saveComments();
113
- const e = document.getElementById("svgImage");
114
- if (e) {
115
- const m = new XMLSerializer().serializeToString(e), d = document.createElement("canvas"), I = d.getContext("2d"), l = window.devicePixelRatio || 1, o = e.clientWidth * l, C = e.clientHeight * l;
116
- d.width = o, d.height = C;
117
- const k = new Image();
118
- k.onload = function() {
119
- d.width = k.width, d.height = k.height, I && I.drawImage(k, 0, 0), J({
120
- isTool: !0,
121
- event_target: "CommentTool",
122
- event_name: "saveComment",
123
- content: {
124
- img_data: d.toDataURL("image/png").split(",")[1]
125
- }
126
- }), $();
127
- }, k.src = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(m)}`;
128
- }
129
- }, $ = () => {
130
- R.SetCommentsToolActive(!1), D("closePanel");
131
- }, ee = () => {
132
- window.BimViewer.commentTool.deleteCurrentComments(), S.value = !1;
133
- }, f = (e) => {
134
- i.setCurrentMode(e);
135
- }, te = (e) => {
136
- E.value = e.id, v.value === "path" ? re(e.size) : v.value === "arrow" ? me(e.size) : v.value === "rect" ? ve(e.size) : v.value === "ellipse" && de(e.size);
137
- }, oe = (e) => {
138
- z.value = e.id, v.value === "path" ? ne(e.color) : v.value === "arrow" ? ce(e.color) : v.value === "rect" ? ie(e.color) : v.value === "ellipse" ? le(e.color) : v.value === "text" && ae(e.color);
139
- }, se = (e) => {
140
- A.value = e.id, ue(e.fontSize);
141
- }, ne = (e) => {
142
- i.pathColor = e;
143
- }, le = (e) => {
144
- i.ellipseColor = e;
145
- }, ie = (e) => {
146
- i.rectColor = e;
147
- }, ce = (e) => {
148
- i.arrowColor = e;
149
- }, ae = (e) => {
150
- i.textColor = e;
151
- }, re = (e) => {
152
- i.pathStrokeWidth = e;
153
- }, de = (e) => {
154
- i.ellipseStrokeWidth = e;
155
- }, ve = (e) => {
156
- i.rectStrokeWidth = e;
157
- }, me = (e) => {
158
- i.arrowSize = e;
159
- }, ue = (e) => {
160
- i.textFontSize = e;
161
- }, _e = () => {
162
- i.ReDo(() => {
163
- }), h.value = !0;
164
- }, he = () => {
165
- i.UnDo(() => {
166
- }), g.value = !0;
167
- };
168
- return (e, m) => {
169
- const d = pe, I = we;
170
- return s(), n("div", Te, [
171
- Ie,
172
- c(L)("isMobile") ? (s(), n("div", je, [
173
- Je,
174
- q(d, null, {
175
- default: xe(() => [
176
- t("div", Ke, [
177
- (s(!0), n(x, null, b(c(G), (l, o) => (s(), n("div", {
178
- key: o,
179
- class: y(["comment-item", {
180
- "comment-item-active": r.value === l.id
181
- }]),
182
- onClick: (C) => P(l)
183
- }, [
184
- t("div", null, [
185
- t("div", Ye, [
186
- t("img", {
187
- src: c(u) + `/bim-viewer/annotations/${r.value === l.id ? l.svgActive : l.svg}.svg`
188
- }, null, 8, et)
189
- ]),
190
- t("div", tt, U(l.name), 1)
191
- ])
192
- ], 10, Qe))), 128)),
193
- S.value ? (s(), n("div", {
194
- key: 0,
195
- class: "comment-item",
196
- onClick: ee
197
- }, [
198
- t("div", null, [
199
- t("div", ot, [
200
- t("img", {
201
- src: c(u) + "/bim-viewer/delete.svg",
202
- alt: ""
203
- }, null, 8, st)
204
- ]),
205
- nt
206
- ])
207
- ])) : V("", !0)
208
- ])
209
- ]),
210
- _: 1
211
- })
212
- ])) : (s(), n("div", Ee, [
213
- t("div", ze, [
214
- t("div", Le, [
215
- (s(!0), n(x, null, b(j.value, (l) => (s(), n("div", {
216
- key: l.id,
217
- class: y(["comments_tool_btn", { comments_tool_btn_active: r.value === l.id }]),
218
- onClick: (o) => P(l)
219
- }, [
220
- r.value === l.id ? (s(), n("img", {
221
- key: 0,
222
- src: c(u) + "/bim-viewer/annotations/" + l.imgActive + ".png"
223
- }, null, 8, Ve)) : (s(), n("img", {
224
- key: 1,
225
- src: c(u) + "/bim-viewer/annotations/" + l.img + ".png"
226
- }, null, 8, Me)),
227
- r.value === l.id ? (s(), n("div", Ne, [
228
- t("div", Re, [
229
- l.buttontype === "text" ? (s(), n("div", Ae, [
230
- (s(!0), n(x, null, b(c(be), (o) => (s(), n("div", {
231
- key: o.id,
232
- class: y(["text1", { text2: A.value === o.id }]),
233
- style: B({ "font-size": o.id === 0 ? "18px" : o.id === 1 ? "16px" : "12px" }),
234
- onClick: (C) => se(o)
235
- }, U(o.name), 15, We))), 128))
236
- ])) : (s(), n("div", De, [
237
- (s(!0), n(x, null, b(c(ye), (o) => (s(), n("div", {
238
- key: o.id,
239
- class: y(["weight", { choose_weight: E.value === o.id }]),
240
- style: B({
241
- width: o.id === 0 ? "6px" : o.id === 1 ? "14px" : "20px",
242
- height: o.id === 0 ? "6px" : o.id === 1 ? "14px" : "20px"
243
- }),
244
- onClick: H((C) => te(o), ["stop"])
245
- }, null, 14, Oe))), 128))
246
- ])),
247
- t("div", Pe, [
248
- (s(!0), n(x, null, b(c(Se), (o) => (s(), n("div", {
249
- key: o.id,
250
- class: y(["color-item", { choose_color: z.value === o.id }]),
251
- style: B({
252
- background: o.color,
253
- border: o.id === 5 ? "1px solid #CBCFD9" : "",
254
- width: o.id === 5 ? "18px" : "1rem",
255
- height: o.id === 5 ? "18px" : "1rem"
256
- }),
257
- onClick: H((C) => oe(o), ["stop"])
258
- }, null, 14, $e))), 128))
259
- ])
260
- ])
261
- ])) : V("", !0)
262
- ], 10, Be))), 128))
263
- ]),
264
- Fe,
265
- t("div", Ue, [
266
- t("div", {
267
- class: "comments_tool_btn",
268
- onClick: he
269
- }, [
270
- h.value ? (s(), n("img", {
271
- key: 0,
272
- src: c(u) + "/bim-viewer/annotations/left-revoke-active.png"
273
- }, null, 8, He)) : (s(), n("img", {
274
- key: 1,
275
- src: c(u) + "/bim-viewer/annotations/left-revoke.png"
276
- }, null, 8, qe))
277
- ]),
278
- t("div", {
279
- class: "comments_tool_btn",
280
- onClick: _e
281
- }, [
282
- g.value ? (s(), n("img", {
283
- key: 0,
284
- src: c(u) + "/bim-viewer/annotations/right-revoke-active.png"
285
- }, null, 8, Ge)) : (s(), n("img", {
286
- key: 1,
287
- src: c(u) + "/bim-viewer/annotations/right-revoke.png"
288
- }, null, 8, Xe))
289
- ])
290
- ]),
291
- Ze,
292
- t("div", { class: "comments_toolbar_group" }, [
293
- t("div", {
294
- class: "comments_cancel",
295
- onClick: $
296
- }, " 取消 "),
297
- t("div", {
298
- class: "comments_save",
299
- onClick: Y
300
- }, " 保存 ")
301
- ])
302
- ])
303
- ])),
304
- T.value ? (s(), n("div", lt, [
305
- t("div", it, [
306
- t("div", ct, [
307
- t("img", {
308
- class: "text-edit-back",
309
- src: c(u) + "/bim-viewer/back_gray.svg",
310
- alt: "",
311
- onClick: m[0] || (m[0] = (l) => T.value = !1)
312
- }, null, 8, at),
313
- rt,
314
- t("div", {
315
- class: "text-edit-finish",
316
- onClick: K
317
- }, " 完成 ")
318
- ]),
319
- t("div", dt, [
320
- t("div", vt, [
321
- q(I, {
322
- modelValue: p.value,
323
- "onUpdate:modelValue": m[1] || (m[1] = (l) => p.value = l),
324
- type: "textarea",
325
- placeholder: "请输入文本内容",
326
- autosize: { minRows: 2 }
327
- }, null, 8, ["modelValue"])
328
- ])
329
- ])
330
- ])
331
- ])) : V("", !0)
332
- ]);
333
- };
334
- }
335
- });
336
- export {
337
- gt as default
338
- };
@@ -1,58 +0,0 @@
1
- import { defineComponent as g, onMounted as b, ref as E, openBlock as o, createElementBlock as l, createElementVNode as n, Fragment as B, renderList as V, unref as c, normalizeClass as d, toDisplayString as y } from "vue";
2
- import { p as k, s as C, q as S, O as H } from "./index-DX-eYsBm.mjs";
3
- import { H as O } from "./const-CbUmfuHy.mjs";
4
- const I = { class: "hidden_wrapper" }, x = /* @__PURE__ */ n("div", { class: "hidden_title_box" }, [
5
- /* @__PURE__ */ n("div", { class: "hidden_title" }, "其他")
6
- ], -1), A = { class: "hidden_content" }, T = ["onClick"], j = ["src"], $ = /* @__PURE__ */ g({
7
- __name: "HiddenTool",
8
- props: ["componentId"],
9
- emits: ["closePanel", "emitHandler"],
10
- setup(a, { emit: D }) {
11
- const w = k(), _ = a;
12
- b(() => {
13
- w.setReadyById(_.componentId);
14
- });
15
- const i = E(0);
16
- C.on("BimViewer", () => {
17
- const { eventTrigger: e } = window.BimViewer;
18
- S("isMobile") ? e.on("touchEntity", (s) => {
19
- window.BimViewer.disableClickEvent && r(s);
20
- }) : e.on("pickedEntity", (s) => {
21
- window.BimViewer.disableClickEvent && r(s);
22
- });
23
- });
24
- const r = (e) => {
25
- i.value != -1 && (i.value == 1 ? m(e) : i.value == 2 ? u(e) : i.value == 3 && v(e));
26
- }, m = (e) => {
27
- window.BimViewer.setEntityVisible(e);
28
- }, u = (e) => {
29
- window.BimViewer.setEntityHighlighted(e);
30
- }, v = (e) => {
31
- window.BimViewer.setEntitySelected(e);
32
- }, h = () => {
33
- window.BimViewer.setAllObjectsVisible(!0), window.BimViewer.setAllObjectsHighlighted(!1), window.BimViewer.setAllObjectsSelected(!1);
34
- }, p = (e) => {
35
- e == 0 ? (i.value = e, h()) : i.value = e;
36
- };
37
- return (e, s) => (o(), l("div", I, [
38
- x,
39
- n("div", A, [
40
- (o(!0), l(B, null, V(c(O), (t, f) => (o(), l("div", {
41
- key: f,
42
- class: d(["button_", { button_active: i.value == t.id }]),
43
- onClick: (L) => p(t.id)
44
- }, [
45
- n("img", {
46
- src: c(H) + `/bim-viewer/hidden-bar/${i.value == t.id ? t.img_active : t.img}.svg`
47
- }, null, 8, j),
48
- n("span", {
49
- class: d({ active_text: i.value == t.id })
50
- }, y(t.name), 3)
51
- ], 10, T))), 128))
52
- ])
53
- ]));
54
- }
55
- });
56
- export {
57
- $ as default
58
- };