@xtctwins/tctwins-bimx-engine 0.2.49 → 0.2.50

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 (85) hide show
  1. package/README.md +193 -193
  2. package/dist/{AnnotationTool-BIQYccLV.mjs → AnnotationTool-ClUqfSZp.mjs} +35 -35
  3. package/dist/BIMX_Viewer_Lib.es.js +3 -3
  4. package/dist/BIMX_Viewer_Lib.umd.js +130 -138
  5. package/dist/{CommentTool-CTH0u76a.mjs → CommentTool-DcAcusOm.mjs} +168 -168
  6. package/dist/{HiddenTool-B1o4e4Mi.mjs → HiddenTool-D0kbPBtX.mjs} +13 -13
  7. package/dist/{InspectorTool-BnKwoEV6.mjs → InspectorTool-BMXg86Ow.mjs} +64 -64
  8. package/dist/{MeasureTool-DD0MQlVK.mjs → MeasureTool-CN4zNj6w.mjs} +22 -22
  9. package/dist/{MouseTool-B99s92wL.mjs → MouseTool-Dcp3UTRv.mjs} +15 -15
  10. package/dist/{NavigateTool-Bzni_edr.mjs → NavigateTool-TVHCkKRU.mjs} +13 -13
  11. package/dist/{RoamTool-BnF-1cl2.mjs → RoamTool-CkYHH7aP.mjs} +17 -17
  12. package/dist/ScreenShotTool-DC4RyElm.mjs +500 -0
  13. package/dist/{SectionTool-DJjxjkhi.mjs → SectionTool-Vn7purnG.mjs} +43 -43
  14. package/dist/SettingTool-DWoeF-dC.mjs +815 -0
  15. package/dist/StructureTree-DZ0gUacM.mjs +1846 -0
  16. package/dist/{alert-BMV9n7SQ.mjs → alert-BkyuKyki.mjs} +9 -9
  17. package/dist/el-input-number-CUWk0tiM.mjs +1169 -0
  18. package/dist/{index-BaDPCrAt.mjs → index-CBXvm6RA.mjs} +51711 -47848
  19. package/dist/index.html +17 -17
  20. package/dist/{panel.vue_vue_type_style_index_0_lang-oT_Sff-F.mjs → panel.vue_vue_type_style_index_0_lang-IOvVcvu7.mjs} +3 -3
  21. package/dist/style.css +1 -1
  22. package/dist/{tallPanel-DojXnxix.mjs → tallPanel-HBoW6JCm.mjs} +15 -15
  23. package/package.json +2 -2
  24. package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +38 -10
  25. package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +37 -9
  26. package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +5 -7
  27. package/types/components/BCFComponents/BCFFilter.vue.d.ts +5 -7
  28. package/types/components/BCFComponents/BCFTool.vue.d.ts +4 -7
  29. package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +5 -7
  30. package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +5 -6
  31. package/types/components/BCFComponents/commentInput.vue.d.ts +36 -10
  32. package/types/components/BCFComponents/commentsView.vue.d.ts +36 -7
  33. package/types/components/BCFComponents/dialogPanel.vue.d.ts +5 -8
  34. package/types/components/BCFComponents/imageView.vue.d.ts +5 -7
  35. package/types/components/BCFComponents/imageZoomIn.vue.d.ts +5 -6
  36. package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
  37. package/types/components/BimViewerComponents/AppToolbar.vue.d.ts +18 -1
  38. package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +1 -1
  39. package/types/components/BimViewerComponents/CommentTool.vue.d.ts +32 -1
  40. package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
  41. package/types/components/BimViewerComponents/MobileCommentsTool/add.vue.d.ts +6 -8
  42. package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +4 -5
  43. package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +2 -2
  44. package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +478 -1
  45. package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +499 -7
  46. package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +5 -6
  47. package/types/components/BimViewerComponents/MouseTool.vue.d.ts +1 -1
  48. package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +1 -1
  49. package/types/components/BimViewerComponents/PCCommentTool/pcdraw.vue.d.ts +1 -1
  50. package/types/components/BimViewerComponents/RoamTool.vue.d.ts +1 -1
  51. package/types/components/BimViewerComponents/SettingTool.vue.d.ts +4 -6
  52. package/types/components/BimViewerComponents/StructureTree.vue.d.ts +4026 -1
  53. package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
  54. package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +18 -1
  55. package/types/components/BimxViewerComp.vue.d.ts +7 -14
  56. package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +37 -10
  57. package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +37 -9
  58. package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +499 -7
  59. package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +478 -1
  60. package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +5 -8
  61. package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +38 -12
  62. package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +7 -9
  63. package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +5 -7
  64. package/types/components/bimxViewer.vue.d.ts +7 -14
  65. package/types/components/utilsComponents/alert.vue.d.ts +1 -1
  66. package/types/components/utilsComponents/closeButton.vue.d.ts +1 -1
  67. package/types/components/utilsComponents/closeButton_dark.vue.d.ts +1 -1
  68. package/types/components/utilsComponents/emptyPage.vue.d.ts +1 -1
  69. package/types/components/utilsComponents/loading.vue.d.ts +1 -1
  70. package/types/components/utilsComponents/panel.vue.d.ts +8 -2
  71. package/types/components/utilsComponents/prompt.vue.d.ts +1 -1
  72. package/types/components/utilsComponents/rectangleButton.vue.d.ts +3 -1
  73. package/types/components/utilsComponents/tallPanel.vue.d.ts +13 -3
  74. package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +13 -3
  75. package/types/pages/BimxViewerEntry.vue.d.ts +5 -57
  76. package/types/pages/viewerEntry.vue.d.ts +7 -57
  77. package/types/store/initConfigs.d.ts +1 -1
  78. package/types/store/toolbars.d.ts +46 -46
  79. package/dist/ScreenShotTool-CSBJzyDd.mjs +0 -357
  80. package/dist/SettingTool-D2qksFZK.mjs +0 -657
  81. package/dist/StructureTree-DrLo9Bch.mjs +0 -1583
  82. package/dist/el-input-number-BOQOKzK0.mjs +0 -818
  83. package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +0 -22
  84. package/types/components/BimViewerComponents/emptyPage.vue.d.ts +0 -8
  85. package/types/tests/cmt.d.ts +0 -1
@@ -0,0 +1,815 @@
1
+ import { c as Fe, d as ee, j as ve, a6 as re, b as Re, ai as ge, a7 as he, a8 as ye, ac as We, v as je, t as Q, ae as He, a as Ke, u as Ge, af as Ye, aa as Ze, aj as _e, o as $e, E as F, ak as Ae, al as Je, w as qe, A as Qe, J as Xe, B as et, T as Be, C as N, D as W, G as tt, am as lt, n as ot, H as nt, V as it, I as st } from "./index-CBXvm6RA.mjs";
2
+ import { _ as at } from "./panel.vue_vue_type_style_index_0_lang-IOvVcvu7.mjs";
3
+ import { E as ut } from "./el-input-number-CUWk0tiM.mjs";
4
+ import { defineComponent as Ue, computed as L, ref as y, shallowRef as dt, watch as pe, onMounted as De, createElementBlock as g, openBlock as s, withModifiers as ct, normalizeClass as C, createElementVNode as l, createCommentVNode as p, withKeys as vt, unref as n, renderSlot as j, createBlock as b, withCtx as I, resolveDynamicComponent as H, toDisplayString as a, normalizeStyle as _, createVNode as r, nextTick as rt, onBeforeUnmount as mt, Fragment as X, createTextVNode as U, renderList as me } from "vue";
5
+ import { b as K } from "./const-DOnRsYpZ.mjs";
6
+ import { T as ft } from "./timer-DoTiGoWP.mjs";
7
+ import { Loading as gt } from "@element-plus/icons-vue";
8
+ const ht = (o) => ["", ...Fe].includes(o), yt = Re({
9
+ /**
10
+ * @description binding value, it should be equivalent to either `active-value` or `inactive-value`, by default it's `boolean` type
11
+ */
12
+ modelValue: {
13
+ type: [Boolean, String, Number],
14
+ default: !1
15
+ },
16
+ /**
17
+ * @description whether Switch is disabled
18
+ */
19
+ disabled: {
20
+ type: Boolean,
21
+ default: void 0
22
+ },
23
+ /**
24
+ * @description whether Switch is in loading state
25
+ */
26
+ loading: Boolean,
27
+ /**
28
+ * @description size of Switch
29
+ */
30
+ size: {
31
+ type: String,
32
+ validator: ht
33
+ },
34
+ /**
35
+ * @description width of Switch
36
+ */
37
+ width: {
38
+ type: [String, Number],
39
+ default: ""
40
+ },
41
+ /**
42
+ * @description whether icon or text is displayed inside dot, only the first character will be rendered for text
43
+ */
44
+ inlinePrompt: Boolean,
45
+ /**
46
+ * @description component of the icon displayed in action when in `off` state
47
+ */
48
+ inactiveActionIcon: {
49
+ type: Q
50
+ },
51
+ /**
52
+ * @description component of the icon displayed in action when in `on` state
53
+ */
54
+ activeActionIcon: {
55
+ type: Q
56
+ },
57
+ /**
58
+ * @description component of the icon displayed when in `on` state, overrides `active-text`
59
+ */
60
+ activeIcon: {
61
+ type: Q
62
+ },
63
+ /**
64
+ * @description component of the icon displayed when in `off` state, overrides `inactive-text`
65
+ */
66
+ inactiveIcon: {
67
+ type: Q
68
+ },
69
+ /**
70
+ * @description text displayed when in `on` state
71
+ */
72
+ activeText: {
73
+ type: String,
74
+ default: ""
75
+ },
76
+ /**
77
+ * @description text displayed when in `off` state
78
+ */
79
+ inactiveText: {
80
+ type: String,
81
+ default: ""
82
+ },
83
+ /**
84
+ * @description switch value when in `on` state
85
+ */
86
+ activeValue: {
87
+ type: [Boolean, String, Number],
88
+ default: !0
89
+ },
90
+ /**
91
+ * @description switch value when in `off` state
92
+ */
93
+ inactiveValue: {
94
+ type: [Boolean, String, Number],
95
+ default: !1
96
+ },
97
+ /**
98
+ * @description input name of Switch
99
+ */
100
+ name: {
101
+ type: String,
102
+ default: ""
103
+ },
104
+ /**
105
+ * @description whether to trigger form validation
106
+ */
107
+ validateEvent: {
108
+ type: Boolean,
109
+ default: !0
110
+ },
111
+ /**
112
+ * @description before-change hook before the switch state changes. If `false` is returned or a `Promise` is returned and then is rejected, will stop switching
113
+ */
114
+ beforeChange: {
115
+ type: je(Function)
116
+ },
117
+ /**
118
+ * @description id for input
119
+ */
120
+ id: String,
121
+ /**
122
+ * @description tabindex for input
123
+ */
124
+ tabindex: {
125
+ type: [String, Number]
126
+ },
127
+ ...We(["ariaLabel"])
128
+ }), pt = {
129
+ [ye]: (o) => ee(o) || ve(o) || re(o),
130
+ [he]: (o) => ee(o) || ve(o) || re(o),
131
+ [ge]: (o) => ee(o) || ve(o) || re(o)
132
+ }, bt = ["id", "aria-checked", "aria-disabled", "aria-label", "name", "true-value", "false-value", "disabled", "tabindex"], wt = ["aria-hidden"], Vt = { key: 1 }, kt = { key: 1 }, St = ["aria-hidden"], fe = "ElSwitch";
133
+ var Ct = /* @__PURE__ */ Ue({
134
+ name: fe,
135
+ __name: "switch",
136
+ props: yt,
137
+ emits: pt,
138
+ setup(o, { expose: te, emit: u }) {
139
+ const h = o, D = u, { formItem: O } = He(), G = Ke(), d = Ge("switch"), { inputId: E } = Ye(h, {
140
+ formItemContext: O
141
+ }), w = Ze(
142
+ L(() => {
143
+ if (h.loading)
144
+ return !0;
145
+ })
146
+ ), x = y(h.modelValue !== !1), V = dt(), k = L(() => [
147
+ d.b(),
148
+ d.m(G.value),
149
+ d.is("disabled", w.value),
150
+ d.is("checked", c.value)
151
+ ]), A = L(() => [
152
+ d.e("label"),
153
+ d.em("label", "left"),
154
+ d.is("active", !c.value)
155
+ ]), T = L(() => [
156
+ d.e("label"),
157
+ d.em("label", "right"),
158
+ d.is("active", c.value)
159
+ ]), Y = L(() => ({
160
+ width: _e(h.width)
161
+ }));
162
+ pe(
163
+ () => h.modelValue,
164
+ () => {
165
+ x.value = !0;
166
+ }
167
+ );
168
+ const $ = L(() => x.value ? h.modelValue : !1), c = L(() => $.value === h.activeValue);
169
+ [h.activeValue, h.inactiveValue].includes($.value) || (D(ye, h.inactiveValue), D(he, h.inactiveValue), D(ge, h.inactiveValue)), pe(c, (v) => {
170
+ var f;
171
+ V.value.checked = v, h.validateEvent && ((f = O == null ? void 0 : O.validate) == null || f.call(O, "change").catch((z) => $e(z)));
172
+ });
173
+ const M = () => {
174
+ const v = c.value ? h.inactiveValue : h.activeValue;
175
+ D(ye, v), D(he, v), D(ge, v), rt(() => {
176
+ V.value.checked = c.value;
177
+ });
178
+ }, B = () => {
179
+ if (w.value) return;
180
+ const { beforeChange: v } = h;
181
+ if (!v) {
182
+ M();
183
+ return;
184
+ }
185
+ const f = v();
186
+ [
187
+ Ae(f),
188
+ ee(f)
189
+ ].includes(!0) || Je(
190
+ fe,
191
+ "beforeChange must return type `Promise<boolean>` or `boolean`"
192
+ ), Ae(f) ? f.then((R) => {
193
+ R && M();
194
+ }).catch((R) => {
195
+ $e(fe, `some error occurred: ${R}`);
196
+ }) : f && M();
197
+ }, J = () => {
198
+ var v, f;
199
+ (f = (v = V.value) == null ? void 0 : v.focus) == null || f.call(v);
200
+ };
201
+ return De(() => {
202
+ V.value.checked = c.value;
203
+ }), te({
204
+ /**
205
+ * @description manual focus to the switch component
206
+ **/
207
+ focus: J,
208
+ /**
209
+ * @description whether Switch is checked
210
+ */
211
+ checked: c
212
+ }), (v, f) => (s(), g(
213
+ "div",
214
+ {
215
+ class: C(k.value),
216
+ onClick: ct(B, ["prevent"])
217
+ },
218
+ [
219
+ l("input", {
220
+ id: n(E),
221
+ ref_key: "input",
222
+ ref: V,
223
+ class: C(n(d).e("input")),
224
+ type: "checkbox",
225
+ role: "switch",
226
+ "aria-checked": c.value,
227
+ "aria-disabled": n(w),
228
+ "aria-label": o.ariaLabel,
229
+ name: o.name,
230
+ "true-value": o.activeValue,
231
+ "false-value": o.inactiveValue,
232
+ disabled: n(w),
233
+ tabindex: o.tabindex,
234
+ onChange: M,
235
+ onKeydown: vt(B, ["enter"])
236
+ }, null, 42, bt),
237
+ !o.inlinePrompt && (o.inactiveIcon || o.inactiveText || v.$slots.inactive) ? (s(), g(
238
+ "span",
239
+ {
240
+ key: 0,
241
+ class: C(A.value)
242
+ },
243
+ [
244
+ j(v.$slots, "inactive", {}, () => [
245
+ o.inactiveIcon ? (s(), b(n(F), { key: 0 }, {
246
+ default: I(() => [
247
+ (s(), b(H(o.inactiveIcon)))
248
+ ]),
249
+ _: 1
250
+ /* STABLE */
251
+ })) : p("v-if", !0),
252
+ !o.inactiveIcon && o.inactiveText ? (s(), g("span", {
253
+ key: 1,
254
+ "aria-hidden": c.value
255
+ }, a(o.inactiveText), 9, wt)) : p("v-if", !0)
256
+ ])
257
+ ],
258
+ 2
259
+ /* CLASS */
260
+ )) : p("v-if", !0),
261
+ l(
262
+ "span",
263
+ {
264
+ class: C(n(d).e("core")),
265
+ style: _(Y.value)
266
+ },
267
+ [
268
+ o.inlinePrompt ? (s(), g(
269
+ "div",
270
+ {
271
+ key: 0,
272
+ class: C(n(d).e("inner"))
273
+ },
274
+ [
275
+ c.value ? (s(), g(
276
+ "div",
277
+ {
278
+ key: 1,
279
+ class: C(n(d).e("inner-wrapper"))
280
+ },
281
+ [
282
+ j(v.$slots, "active", {}, () => [
283
+ o.activeIcon ? (s(), b(n(F), { key: 0 }, {
284
+ default: I(() => [
285
+ (s(), b(H(o.activeIcon)))
286
+ ]),
287
+ _: 1
288
+ /* STABLE */
289
+ })) : p("v-if", !0),
290
+ !o.activeIcon && o.activeText ? (s(), g(
291
+ "span",
292
+ kt,
293
+ a(o.activeText),
294
+ 1
295
+ /* TEXT */
296
+ )) : p("v-if", !0)
297
+ ])
298
+ ],
299
+ 2
300
+ /* CLASS */
301
+ )) : (s(), g(
302
+ "div",
303
+ {
304
+ key: 0,
305
+ class: C(n(d).e("inner-wrapper"))
306
+ },
307
+ [
308
+ j(v.$slots, "inactive", {}, () => [
309
+ o.inactiveIcon ? (s(), b(n(F), { key: 0 }, {
310
+ default: I(() => [
311
+ (s(), b(H(o.inactiveIcon)))
312
+ ]),
313
+ _: 1
314
+ /* STABLE */
315
+ })) : p("v-if", !0),
316
+ !o.inactiveIcon && o.inactiveText ? (s(), g(
317
+ "span",
318
+ Vt,
319
+ a(o.inactiveText),
320
+ 1
321
+ /* TEXT */
322
+ )) : p("v-if", !0)
323
+ ])
324
+ ],
325
+ 2
326
+ /* CLASS */
327
+ ))
328
+ ],
329
+ 2
330
+ /* CLASS */
331
+ )) : p("v-if", !0),
332
+ l(
333
+ "div",
334
+ {
335
+ class: C(n(d).e("action"))
336
+ },
337
+ [
338
+ o.loading ? (s(), b(n(F), {
339
+ key: 0,
340
+ class: C(n(d).is("loading"))
341
+ }, {
342
+ default: I(() => [
343
+ r(n(gt))
344
+ ]),
345
+ _: 1
346
+ /* STABLE */
347
+ }, 8, ["class"])) : c.value ? j(v.$slots, "active-action", { key: 1 }, () => [
348
+ o.activeActionIcon ? (s(), b(n(F), { key: 0 }, {
349
+ default: I(() => [
350
+ (s(), b(H(o.activeActionIcon)))
351
+ ]),
352
+ _: 1
353
+ /* STABLE */
354
+ })) : p("v-if", !0)
355
+ ]) : c.value ? p("v-if", !0) : j(v.$slots, "inactive-action", { key: 2 }, () => [
356
+ o.inactiveActionIcon ? (s(), b(n(F), { key: 0 }, {
357
+ default: I(() => [
358
+ (s(), b(H(o.inactiveActionIcon)))
359
+ ]),
360
+ _: 1
361
+ /* STABLE */
362
+ })) : p("v-if", !0)
363
+ ])
364
+ ],
365
+ 2
366
+ /* CLASS */
367
+ )
368
+ ],
369
+ 6
370
+ /* CLASS, STYLE */
371
+ ),
372
+ !o.inlinePrompt && (o.activeIcon || o.activeText || v.$slots.active) ? (s(), g(
373
+ "span",
374
+ {
375
+ key: 1,
376
+ class: C(T.value)
377
+ },
378
+ [
379
+ j(v.$slots, "active", {}, () => [
380
+ o.activeIcon ? (s(), b(n(F), { key: 0 }, {
381
+ default: I(() => [
382
+ (s(), b(H(o.activeIcon)))
383
+ ]),
384
+ _: 1
385
+ /* STABLE */
386
+ })) : p("v-if", !0),
387
+ !o.activeIcon && o.activeText ? (s(), g("span", {
388
+ key: 1,
389
+ "aria-hidden": !c.value
390
+ }, a(o.activeText), 9, St)) : p("v-if", !0)
391
+ ])
392
+ ],
393
+ 2
394
+ /* CLASS */
395
+ )) : p("v-if", !0)
396
+ ],
397
+ 2
398
+ /* CLASS */
399
+ ));
400
+ }
401
+ });
402
+ const It = qe(Ct), Et = { style: { height: "var(--setting-content-height)" } }, xt = { class: "setting-title" }, Tt = {
403
+ key: 0,
404
+ class: "color-list"
405
+ }, $t = ["onClick"], At = { class: "setting-effect" }, Bt = { class: "setting-effect" }, Ut = { class: "light-slider" }, Dt = {
406
+ key: 1,
407
+ class: "setting-title"
408
+ }, Mt = {
409
+ key: 2,
410
+ class: "setting-effect"
411
+ }, zt = { class: "setting-title" }, Pt = { class: "setting-effect" }, Nt = { class: "setting-effect" }, Lt = { class: "setting-effect" }, Ot = { class: "setting-effect" }, Ft = { class: "setting-effect" }, Rt = { class: "setting-effect" }, Wt = {
412
+ key: 1,
413
+ class: "setting_panel"
414
+ }, jt = { class: "setting-title-box" }, Ht = { class: "setting-title" }, Kt = { class: "setting-title-icon" }, Gt = { class: "setting-color-box" }, Yt = { class: "setting-color-list" }, Zt = ["onClick"], _t = { class: "setting-config-box" }, Jt = { class: "setting-switch-item" }, qt = { class: "setting-switch-item" }, Qt = { class: "setting-switch-item" }, Xt = { class: "setting-switch-item" }, el = { class: "setting-switch-item" }, tl = { class: "setting-switch-item" }, ll = { class: "setting-switch-item" }, ol = { class: "setting-switch-item" }, nl = { class: "light-slider" }, il = { class: "setting-switch-item" }, sl = { class: "speed-slider" }, al = /* @__PURE__ */ Ue({
415
+ __name: "SettingTool",
416
+ props: {
417
+ instruction: {},
418
+ componentId: {}
419
+ },
420
+ emits: ["closePanel", "emitHandler"],
421
+ setup(o, { emit: te }) {
422
+ const u = Qe(), h = Xe(), D = et(), O = o, G = y(0);
423
+ De(() => {
424
+ D.setReadyById(O.componentId), Be.currentTheme == "blue" ? G.value = 240 : Be.currentTheme == "light-gray" && (G.value = 202);
425
+ });
426
+ let d;
427
+ const E = y(!1), w = y(!1), x = y(!1), V = y(!1), k = y(!1), A = y(!0), T = y(!1), Y = y(!1), $ = y(1), c = y(50), M = y(!1), B = y(!1), J = new ft(5), v = y(!1);
428
+ pe(
429
+ () => D.isToolActive(O.componentId),
430
+ (i) => {
431
+ i === !1 ? (J.stop(), M.value && ke()) : v.value || (v.value = !0);
432
+ }
433
+ );
434
+ const f = y(50), z = y(["亮"]), R = y(["亮", "暗"]), Me = {
435
+ 亮: "setting.spaceEffects.bright",
436
+ 暗: "setting.spaceEffects.dark"
437
+ }, be = y("linear-gradient(180deg, #fffefb 0%, #daebff 100%)"), we = te;
438
+ L({
439
+ get: () => h.locale,
440
+ set: (i) => h.setLocale(i)
441
+ });
442
+ const Ve = () => {
443
+ d = window.bimViewer, d.viewer.scene.on("aabb", () => {
444
+ q(T.value), de(!0);
445
+ });
446
+ }, S = () => {
447
+ v.value && (M.value = !0, J.start(() => {
448
+ ke();
449
+ }));
450
+ }, ke = () => {
451
+ var e, m;
452
+ let i;
453
+ N("isMobile") ? i = {
454
+ backgroundColor: ((e = K.find((P) => P.id == $.value)) == null ? void 0 : e.name) ?? "渐变蓝",
455
+ showEdges: x.value,
456
+ lightIntensity: c.value,
457
+ skyBox: V.value,
458
+ orthoMode: k.value,
459
+ modelType2D: A.value,
460
+ yAxisDown: E.value,
461
+ zAxisUp: w.value,
462
+ showSpace: T.value,
463
+ spaceEffect: B.value,
464
+ touchDollySpeed: f.value
465
+ } : i = {
466
+ backgroundColor: ((m = K.find((P) => P.id == $.value)) == null ? void 0 : m.name) ?? "渐变蓝",
467
+ showEdges: x.value,
468
+ lightIntensity: c.value,
469
+ skyBox: V.value,
470
+ orthoMode: k.value,
471
+ modelType2D: A.value,
472
+ yAxisDown: E.value,
473
+ zAxisUp: w.value,
474
+ showSpace: T.value,
475
+ spaceEffect: z.value[0],
476
+ touchDollySpeed: f.value
477
+ }, ze({
478
+ isTool: !0,
479
+ event_target: "SettingTool",
480
+ event_name: "saveSetting",
481
+ content: {
482
+ newSets: i
483
+ }
484
+ }), M.value = !1;
485
+ }, Se = (i) => {
486
+ const e = i.lastSet, m = K.find((P) => P.name == e.backgroundColor);
487
+ $.value = m ? m.id : 1, ne(m ?? K[0]), x.value = e.showEdges, se(x.value), c.value = e.lightIntensity, ie(c.value), k.value = e.orthoMode, Z(k.value), A.value = e.modelType2D, ae(A.value), T.value = e.showSpace, q(T.value), N("isMobile") ? (B.value = typeof e.spaceEffect == "string" ? e.spaceEffect == "亮" : typeof e.spaceEffect == "boolean" ? e.spaceEffect : !0, de(B.value)) : (z.value = [e.spaceEffect], ue(z.value[0])), E.value = e.yAxisDown, E.value && oe(), w.value = e.zAxisUp, w.value && le(), f.value = e.touchDollySpeed ?? 50, N("isMobile") ? xe(f.value) : (V.value = e.skyBox, Ee(V.value)), M.value = !1;
488
+ };
489
+ W.on("BimViewer", Ve), W.on("lastSetsContent", Se), mt(() => {
490
+ W.off("BimViewer", Ve), W.off("lastSetsContent", Se);
491
+ });
492
+ const ze = (i) => {
493
+ we("emitHandler", i);
494
+ }, Ce = (i) => {
495
+ i && i.target.id != "setting_back" || (W.emit("hideToolbar", !1), we("closePanel"), Ie(!1));
496
+ }, Ie = (i = !Y.value) => {
497
+ Y.value = i;
498
+ }, le = (i) => {
499
+ S(), window.bimViewer.setWorldAxisZUp(w.value), Z(k.value);
500
+ }, oe = (i) => {
501
+ S(), window.bimViewer.setWorldAxisYDown(E.value), Z(k.value);
502
+ }, ne = (i) => {
503
+ S(), $.value = i.id, be.value = i.color, W.emit("changeBackgroundColor", i.color);
504
+ }, ie = (i) => {
505
+ S(), d.setLightIntensity(i);
506
+ }, se = (i) => {
507
+ S(), d.setAllObjectsEdges(i), i || d.setObjectsEdges(it.entityState.edgesObjectIds, !0);
508
+ }, ae = (i) => {
509
+ S(), d.SetThreeDModeActive(i), N("isMobile") && (window.bimViewer.navCubeMode.visible = !1);
510
+ }, Z = (i) => {
511
+ S(), d.SetOrthoModeActive(i);
512
+ }, q = (i) => {
513
+ S(), d.SetShowSpaceModeActive(i), ue(B.value ? 1 : 2);
514
+ }, ue = (i) => {
515
+ S(), i == "亮" ? window.bimViewer.setSpaceMaterialColor(1) : window.bimViewer.setSpaceMaterialColor(2), z.value = R.value.includes(i) ? [i] : [];
516
+ }, de = (i = !B.value) => {
517
+ S(), window.bimViewer.setSpaceMaterialColor(i ? 2 : 1);
518
+ }, Ee = (i) => {
519
+ S(), d.SetSkyBoxToolActive(i);
520
+ }, xe = (i) => {
521
+ S(), i == 0 ? d.viewer.cameraControl.customTouchDollyRate = 0.05 / 50 : d.viewer.cameraControl.customTouchDollyRate = i / 50;
522
+ };
523
+ return (i, e) => {
524
+ const m = It, P = ut, Pe = ot, Ne = lt, Te = tt, Le = at, Oe = nt;
525
+ return s(), g(X, null, [
526
+ n(N)("isMobile") ? p("", !0) : (s(), b(Le, {
527
+ key: 0,
528
+ class: "setting_contaier",
529
+ width: G.value,
530
+ panelTitle: n(u)("setting.title"),
531
+ "click-handle": Ce,
532
+ style: { height: "var(--setting-panel-height)" }
533
+ }, {
534
+ default: I(() => [
535
+ l("div", Et, [
536
+ r(Te, null, {
537
+ default: I(() => [
538
+ l("div", xt, a(n(u)("setting.effect")), 1),
539
+ l("div", {
540
+ class: "setting-effect",
541
+ onClick: e[0] || (e[0] = (t) => Ie())
542
+ }, [
543
+ U(a(n(u)("setting.bgColor")) + " ", 1),
544
+ l("div", {
545
+ class: "choose-color",
546
+ style: _({ background: be.value })
547
+ }, null, 4)
548
+ ]),
549
+ Y.value ? (s(), g("div", Tt, [
550
+ (s(!0), g(X, null, me(n(K), (t) => (s(), g("div", {
551
+ key: t.id,
552
+ class: C(["color-item", { "color-item-active": $.value === t.id }]),
553
+ onClick: (ce) => ne(t)
554
+ }, [
555
+ l("div", {
556
+ class: "bg",
557
+ style: _({ background: t.color, border: t.id === 4 ? "1px solid #F1F1F1" : "none" })
558
+ }, null, 4),
559
+ U(" " + a(n(u)(t.label || t.name)), 1)
560
+ ], 10, $t))), 128))
561
+ ])) : p("", !0),
562
+ l("div", At, [
563
+ U(a(n(u)("setting.showEdges")) + " ", 1),
564
+ r(m, {
565
+ modelValue: x.value,
566
+ "onUpdate:modelValue": e[1] || (e[1] = (t) => x.value = t),
567
+ style: { "--el-switch-on-color": "#0065fc" },
568
+ onChange: e[2] || (e[2] = (t) => se())
569
+ }, null, 8, ["modelValue"])
570
+ ]),
571
+ l("div", Bt, [
572
+ U(a(n(u)("setting.lightIntensity")) + " ", 1),
573
+ l("div", Ut, [
574
+ r(P, {
575
+ modelValue: c.value,
576
+ "onUpdate:modelValue": e[3] || (e[3] = (t) => c.value = t),
577
+ onInput: e[4] || (e[4] = (t) => ie(c.value))
578
+ }, null, 8, ["modelValue"])
579
+ ])
580
+ ]),
581
+ n(N)("skyboxImg") ? (s(), g("div", Dt, a(n(u)("setting.appearance")), 1)) : p("", !0),
582
+ n(N)("skyboxImg") ? (s(), g("div", Mt, [
583
+ U(a(n(u)("setting.skybox")) + " ", 1),
584
+ r(m, {
585
+ modelValue: V.value,
586
+ "onUpdate:modelValue": e[5] || (e[5] = (t) => V.value = t),
587
+ style: { "--el-switch-on-color": "#0065fc" },
588
+ onChange: e[6] || (e[6] = (t) => Ee())
589
+ }, null, 8, ["modelValue"])
590
+ ])) : p("", !0),
591
+ l("div", zt, a(n(u)("setting.modelViewSwitch")), 1),
592
+ l("div", Pt, [
593
+ U(a(n(u)("setting.perspective")) + " ", 1),
594
+ r(m, {
595
+ modelValue: k.value,
596
+ "onUpdate:modelValue": e[7] || (e[7] = (t) => k.value = t),
597
+ style: { "--el-switch-on-color": "#0065fc" },
598
+ onChange: e[8] || (e[8] = (t) => Z())
599
+ }, null, 8, ["modelValue"])
600
+ ]),
601
+ l("div", Nt, [
602
+ U(a(n(u)("setting.mode2d3d")) + " ", 1),
603
+ r(m, {
604
+ modelValue: A.value,
605
+ "onUpdate:modelValue": e[9] || (e[9] = (t) => A.value = t),
606
+ style: { "--el-switch-on-color": "#0065fc" },
607
+ onChange: e[10] || (e[10] = (t) => ae())
608
+ }, null, 8, ["modelValue"])
609
+ ]),
610
+ l("div", Lt, [
611
+ l("div", null, a(n(u)("setting.modelInvert")), 1),
612
+ l("div", null, [
613
+ r(m, {
614
+ modelValue: E.value,
615
+ "onUpdate:modelValue": e[11] || (e[11] = (t) => E.value = t),
616
+ style: { "--el-switch-on-color": "#0065fc" },
617
+ onChange: e[12] || (e[12] = (t) => oe())
618
+ }, null, 8, ["modelValue"])
619
+ ])
620
+ ]),
621
+ l("div", Ot, [
622
+ l("div", null, a(n(u)("setting.zAxisUp")), 1),
623
+ l("div", null, [
624
+ r(m, {
625
+ modelValue: w.value,
626
+ "onUpdate:modelValue": e[13] || (e[13] = (t) => w.value = t),
627
+ style: { "--el-switch-on-color": "#0065fc" },
628
+ onChange: e[14] || (e[14] = (t) => le())
629
+ }, null, 8, ["modelValue"])
630
+ ])
631
+ ]),
632
+ l("div", Ft, [
633
+ U(a(n(u)("setting.modelSpace")) + " ", 1),
634
+ r(m, {
635
+ modelValue: T.value,
636
+ "onUpdate:modelValue": e[15] || (e[15] = (t) => T.value = t),
637
+ style: { "--el-switch-on-color": "#0065fc" },
638
+ onChange: e[16] || (e[16] = (t) => q())
639
+ }, null, 8, ["modelValue"])
640
+ ]),
641
+ l("div", Rt, [
642
+ U(a(n(u)("setting.spaceEffect")) + " ", 1),
643
+ r(Ne, {
644
+ modelValue: z.value,
645
+ "onUpdate:modelValue": e[17] || (e[17] = (t) => z.value = t),
646
+ size: "small"
647
+ }, {
648
+ default: I(() => [
649
+ (s(!0), g(X, null, me(R.value, (t) => (s(), b(Pe, {
650
+ key: t,
651
+ label: t,
652
+ onChange: (ce) => ue(t)
653
+ }, {
654
+ default: I(() => [
655
+ U(a(n(u)(Me[t])), 1)
656
+ ]),
657
+ _: 2
658
+ }, 1032, ["label", "onChange"]))), 128))
659
+ ]),
660
+ _: 1
661
+ }, 8, ["modelValue"])
662
+ ])
663
+ ]),
664
+ _: 1
665
+ })
666
+ ])
667
+ ]),
668
+ _: 1
669
+ }, 8, ["width", "panelTitle"])),
670
+ n(N)("isMobile") ? (s(), g("div", Wt, [
671
+ l("div", jt, [
672
+ l("div", Ht, a(n(u)("setting.title")), 1),
673
+ l("div", Kt, [
674
+ r(Oe, {
675
+ width: 0.4,
676
+ "size-type": "rem",
677
+ "click-handle": Ce
678
+ })
679
+ ])
680
+ ]),
681
+ l("div", Gt, [
682
+ l("div", Yt, [
683
+ (s(!0), g(X, null, me(n(K), (t, ce) => (s(), g("div", {
684
+ key: ce,
685
+ class: C(["setting-color-item", {
686
+ "setting-color-item-active": $.value === t.id
687
+ }]),
688
+ onClick: (ul) => ne(t)
689
+ }, [
690
+ l("div", {
691
+ class: "setting-color-icon",
692
+ style: _({
693
+ background: t.color,
694
+ border: t.id === $.value ? "0.02rem solid #0065FC" : ""
695
+ })
696
+ }, null, 4),
697
+ l("div", {
698
+ class: "setting-color-name",
699
+ style: _({ color: t.id === $.value ? "#0065FC" : "" })
700
+ }, a(n(u)(t.label || t.name)), 5)
701
+ ], 10, Zt))), 128))
702
+ ])
703
+ ]),
704
+ l("div", _t, [
705
+ r(Te, { height: "230" }, {
706
+ default: I(() => [
707
+ l("div", Jt, [
708
+ l("div", null, a(n(u)("setting.showEdges")), 1),
709
+ l("div", null, [
710
+ r(m, {
711
+ modelValue: x.value,
712
+ "onUpdate:modelValue": e[18] || (e[18] = (t) => x.value = t),
713
+ size: "small",
714
+ onChange: e[19] || (e[19] = (t) => se())
715
+ }, null, 8, ["modelValue"])
716
+ ])
717
+ ]),
718
+ l("div", qt, [
719
+ l("div", null, a(n(u)("setting.perspective")), 1),
720
+ l("div", null, [
721
+ r(m, {
722
+ modelValue: k.value,
723
+ "onUpdate:modelValue": e[20] || (e[20] = (t) => k.value = t),
724
+ size: "small",
725
+ onChange: e[21] || (e[21] = (t) => Z())
726
+ }, null, 8, ["modelValue"])
727
+ ])
728
+ ]),
729
+ l("div", Qt, [
730
+ l("div", null, a(n(u)("setting.mode2d3d")), 1),
731
+ l("div", null, [
732
+ r(m, {
733
+ modelValue: A.value,
734
+ "onUpdate:modelValue": e[22] || (e[22] = (t) => A.value = t),
735
+ size: "small",
736
+ onChange: e[23] || (e[23] = (t) => ae())
737
+ }, null, 8, ["modelValue"])
738
+ ])
739
+ ]),
740
+ l("div", Xt, [
741
+ l("div", null, a(n(u)("setting.modelInvert")), 1),
742
+ l("div", null, [
743
+ r(m, {
744
+ modelValue: E.value,
745
+ "onUpdate:modelValue": e[24] || (e[24] = (t) => E.value = t),
746
+ size: "small",
747
+ onChange: e[25] || (e[25] = (t) => oe())
748
+ }, null, 8, ["modelValue"])
749
+ ])
750
+ ]),
751
+ l("div", el, [
752
+ l("div", null, a(n(u)("setting.zAxisUp")), 1),
753
+ l("div", null, [
754
+ r(m, {
755
+ modelValue: w.value,
756
+ "onUpdate:modelValue": e[26] || (e[26] = (t) => w.value = t),
757
+ size: "small",
758
+ onChange: e[27] || (e[27] = (t) => le())
759
+ }, null, 8, ["modelValue"])
760
+ ])
761
+ ]),
762
+ l("div", tl, [
763
+ l("div", null, a(n(u)("setting.modelSpace")), 1),
764
+ l("div", null, [
765
+ r(m, {
766
+ modelValue: T.value,
767
+ "onUpdate:modelValue": e[28] || (e[28] = (t) => T.value = t),
768
+ size: "small",
769
+ onChange: e[29] || (e[29] = (t) => q())
770
+ }, null, 8, ["modelValue"])
771
+ ])
772
+ ]),
773
+ l("div", ll, [
774
+ l("div", null, a(n(u)("setting.spaceEffect")), 1),
775
+ l("div", null, [
776
+ r(m, {
777
+ modelValue: B.value,
778
+ "onUpdate:modelValue": e[30] || (e[30] = (t) => B.value = t),
779
+ size: "small",
780
+ onChange: e[31] || (e[31] = (t) => de())
781
+ }, null, 8, ["modelValue"])
782
+ ])
783
+ ]),
784
+ l("div", ol, [
785
+ l("div", null, a(n(u)("setting.lightIntensity")), 1),
786
+ l("div", nl, [
787
+ r(P, {
788
+ modelValue: c.value,
789
+ "onUpdate:modelValue": e[32] || (e[32] = (t) => c.value = t),
790
+ onInput: e[33] || (e[33] = (t) => ie(c.value))
791
+ }, null, 8, ["modelValue"])
792
+ ])
793
+ ]),
794
+ l("div", il, [
795
+ l("div", null, a(n(u)("setting.zoomSpeed")), 1),
796
+ l("div", sl, [
797
+ r(P, {
798
+ modelValue: f.value,
799
+ "onUpdate:modelValue": e[34] || (e[34] = (t) => f.value = t),
800
+ onInput: e[35] || (e[35] = (t) => xe(f.value))
801
+ }, null, 8, ["modelValue"])
802
+ ])
803
+ ])
804
+ ]),
805
+ _: 1
806
+ })
807
+ ])
808
+ ])) : p("", !0)
809
+ ], 64);
810
+ };
811
+ }
812
+ }), hl = /* @__PURE__ */ st(al, [["__scopeId", "data-v-b2c5e0c6"]]);
813
+ export {
814
+ hl as default
815
+ };