@xtctwins/tctwins-bimx-engine 0.3.18 → 0.3.19

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 (90) hide show
  1. package/README.md +196 -196
  2. package/dist/01.xtc +0 -0
  3. package/dist/02.xtc +0 -0
  4. package/dist/03.xtc +0 -0
  5. package/dist/{AnnotationTool-CzQVFGZm.mjs → AnnotationTool-oDA1Fp5x.mjs} +35 -35
  6. package/dist/BIMX_Viewer_Lib.es.js +6 -6
  7. package/dist/BIMX_Viewer_Lib.umd.js +167 -214
  8. package/dist/{CameraViewTool-Cm7UrIEY.mjs → CameraViewTool-DDypddMD.mjs} +38 -38
  9. package/dist/{CommentTool-C7VErDw6.mjs → CommentTool-Duf6oZPZ.mjs} +192 -192
  10. package/dist/{HiddenTool-mH3cdTjy.mjs → HiddenTool-LpU_x_6_.mjs} +13 -13
  11. package/dist/{InspectorTool-CG-QJKao.mjs → InspectorTool-QvS8xe4N.mjs} +13 -13
  12. package/dist/{MeasureTool-DiF73s6L.mjs → MeasureTool-CMs0keyO.mjs} +125 -125
  13. package/dist/{MouseTool-DigCaD4c.mjs → MouseTool-CaTUKDuM.mjs} +8 -8
  14. package/dist/{NavigateTool-C375lcY6.mjs → NavigateTool-DYniPPn1.mjs} +8 -8
  15. package/dist/{OperateTool-D5HFrut6.mjs → OperateTool-BIqsOimJ.mjs} +58 -61
  16. package/dist/{RoamTool-DO-gP6oV.mjs → RoamTool-2mrcPLbu.mjs} +27 -27
  17. package/dist/ScreenShotTool-BTqJ90J6.mjs +356 -0
  18. package/dist/{SectionTool-CjX3ikon.mjs → SectionTool-CWzcRQe3.mjs} +70 -70
  19. package/dist/SettingTool-s0H_wOar.mjs +1508 -0
  20. package/dist/StructureTree-D5Y9v8cQ.mjs +1582 -0
  21. package/dist/{alert-COkF0N8w.mjs → alert-BAgNMV8k.mjs} +14 -14
  22. package/dist/{index-fIchFHNn.mjs → index-Bu4b3eOR.mjs} +53744 -56333
  23. package/dist/index.html +17 -17
  24. package/dist/{panel.vue_vue_type_style_index_0_lang-BtSx7l8h.mjs → panel.vue_vue_type_style_index_0_lang-sBMUmb4u.mjs} +1 -1
  25. package/dist/style.css +3 -3
  26. package/dist/{tallPanel-BMplV9f0.mjs → tallPanel-xQvMWUzi.mjs} +12 -12
  27. package/package.json +85 -85
  28. package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +10 -38
  29. package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +22 -0
  30. package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +9 -37
  31. package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +7 -5
  32. package/types/components/BCFComponents/BCFFilter.vue.d.ts +7 -5
  33. package/types/components/BCFComponents/BCFTool.vue.d.ts +7 -4
  34. package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +7 -5
  35. package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +6 -5
  36. package/types/components/BCFComponents/commentInput.vue.d.ts +10 -36
  37. package/types/components/BCFComponents/commentsView.vue.d.ts +7 -36
  38. package/types/components/BCFComponents/dialogPanel.vue.d.ts +8 -5
  39. package/types/components/BCFComponents/imageView.vue.d.ts +7 -5
  40. package/types/components/BCFComponents/imageZoomIn.vue.d.ts +6 -5
  41. package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
  42. package/types/components/BimViewerComponents/AppToolbar.vue.d.ts +1 -18
  43. package/types/components/BimViewerComponents/CameraViewTool.vue.d.ts +1 -1
  44. package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +1 -1
  45. package/types/components/BimViewerComponents/CommentTool.vue.d.ts +1 -32
  46. package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
  47. package/types/components/BimViewerComponents/MobileCommentsTool/add.vue.d.ts +8 -6
  48. package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +5 -4
  49. package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +2 -2
  50. package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +1 -270
  51. package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +7 -291
  52. package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +6 -5
  53. package/types/components/BimViewerComponents/MouseTool.vue.d.ts +1 -1
  54. package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +1 -1
  55. package/types/components/BimViewerComponents/PCCommentTool/pcdraw.vue.d.ts +1 -1
  56. package/types/components/BimViewerComponents/RoamTool.vue.d.ts +1 -1
  57. package/types/components/BimViewerComponents/SettingTool.vue.d.ts +6 -4
  58. package/types/components/BimViewerComponents/StructureTree.vue.d.ts +1 -11642
  59. package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
  60. package/types/components/BimViewerComponents/emptyPage.vue.d.ts +8 -0
  61. package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +10 -0
  62. package/types/components/BimxViewerComp.vue.d.ts +21 -7
  63. package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +10 -37
  64. package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +9 -37
  65. package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +7 -291
  66. package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +1 -270
  67. package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +8 -5
  68. package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +12 -38
  69. package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +9 -7
  70. package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +7 -5
  71. package/types/components/bimxViewer.vue.d.ts +27 -0
  72. package/types/components/utilsComponents/alert.vue.d.ts +1 -1
  73. package/types/components/utilsComponents/closeButton.vue.d.ts +1 -1
  74. package/types/components/utilsComponents/closeButton_dark.vue.d.ts +1 -1
  75. package/types/components/utilsComponents/emptyPage.vue.d.ts +1 -1
  76. package/types/components/utilsComponents/loading.vue.d.ts +1 -1
  77. package/types/components/utilsComponents/panel.vue.d.ts +2 -8
  78. package/types/components/utilsComponents/prompt.vue.d.ts +1 -1
  79. package/types/components/utilsComponents/rectangleButton.vue.d.ts +1 -3
  80. package/types/components/utilsComponents/tallPanel.vue.d.ts +4 -14
  81. package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +4 -14
  82. package/types/pages/BimxViewerEntry.vue.d.ts +72 -5
  83. package/types/pages/viewerEntry.vue.d.ts +116 -0
  84. package/types/store/initConfigs.d.ts +1 -1
  85. package/types/store/toolbars.d.ts +50 -50
  86. package/types/tests/cmt.d.ts +1 -0
  87. package/types/viewerManager/sectionManager.d.ts +25 -25
  88. package/dist/ScreenShotTool-B5ICa8PZ.mjs +0 -429
  89. package/dist/SettingTool-D2EQy3h8.mjs +0 -1787
  90. package/dist/StructureTree-QhQyMrZn.mjs +0 -1685
@@ -0,0 +1,356 @@
1
+ import { _ as pe } from "./panel.vue_vue_type_style_index_0_lang-sBMUmb4u.mjs";
2
+ import { a8 as G, a9 as x, f as j, aa as O, ab as H, ac as ve, ad as X, a as W, ae as fe, af as be, ag as _e, u as L, _ as T, ah as he, ai as ge, aj as ye, ak as Se, d as Ve, w as Re, al as Y, n as ke, o as Ee, am as U, t as Ie } from "./index-Bu4b3eOR.mjs";
3
+ import { ref as R, inject as Be, computed as g, defineComponent as E, openBlock as k, createElementBlock as B, normalizeClass as y, unref as e, createElementVNode as v, withDirectives as q, isRef as J, withModifiers as N, vModelRadio as Q, renderSlot as F, createTextVNode as z, toDisplayString as C, nextTick as Z, normalizeStyle as Ce, onMounted as ee, provide as we, reactive as Ne, toRefs as ze, watch as oe, createBlock as Ge, withCtx as $, createVNode as w, Fragment as Pe, renderList as Ue, createCommentVNode as $e } from "vue";
4
+ const ae = G({
5
+ modelValue: {
6
+ type: [String, Number, Boolean],
7
+ default: void 0
8
+ },
9
+ size: X,
10
+ disabled: Boolean,
11
+ label: {
12
+ type: [String, Number, Boolean],
13
+ default: void 0
14
+ },
15
+ value: {
16
+ type: [String, Number, Boolean],
17
+ default: void 0
18
+ },
19
+ name: {
20
+ type: String,
21
+ default: void 0
22
+ }
23
+ }), xe = G({
24
+ ...ae,
25
+ border: Boolean
26
+ }), le = {
27
+ [x]: (t) => j(t) || O(t) || H(t),
28
+ [ve]: (t) => j(t) || O(t) || H(t)
29
+ }, te = Symbol("radioGroupKey"), ne = (t, f) => {
30
+ const a = R(), o = Be(te, void 0), c = g(() => !!o), p = g(() => W(t.value) ? t.label : t.value), s = g({
31
+ get() {
32
+ return c.value ? o.modelValue : t.modelValue;
33
+ },
34
+ set(n) {
35
+ c.value ? o.changeEvent(n) : f && f(x, n), a.value.checked = t.modelValue === p.value;
36
+ }
37
+ }), d = fe(g(() => o == null ? void 0 : o.size)), l = be(g(() => o == null ? void 0 : o.disabled)), u = R(!1), b = g(() => l.value || c.value && s.value !== p.value ? -1 : 0);
38
+ return _e({
39
+ from: "label act as value",
40
+ replacement: "value",
41
+ version: "3.0.0",
42
+ scope: "el-radio",
43
+ ref: "https://element-plus.org/en-US/component/radio.html"
44
+ }, g(() => c.value && W(t.value))), {
45
+ radioRef: a,
46
+ isGroup: c,
47
+ radioGroup: o,
48
+ focus: u,
49
+ size: d,
50
+ disabled: l,
51
+ tabIndex: b,
52
+ modelValue: s,
53
+ actualValue: p
54
+ };
55
+ }, Le = E({
56
+ name: "ElRadio"
57
+ }), Te = /* @__PURE__ */ E({
58
+ ...Le,
59
+ props: xe,
60
+ emits: le,
61
+ setup(t, { emit: f }) {
62
+ const a = t, o = L("radio"), { radioRef: c, radioGroup: p, focus: s, size: d, disabled: l, modelValue: u, actualValue: b } = ne(a, f);
63
+ function n() {
64
+ Z(() => f("change", u.value));
65
+ }
66
+ return (_, S) => {
67
+ var i;
68
+ return k(), B("label", {
69
+ class: y([
70
+ e(o).b(),
71
+ e(o).is("disabled", e(l)),
72
+ e(o).is("focus", e(s)),
73
+ e(o).is("bordered", _.border),
74
+ e(o).is("checked", e(u) === e(b)),
75
+ e(o).m(e(d))
76
+ ])
77
+ }, [
78
+ v("span", {
79
+ class: y([
80
+ e(o).e("input"),
81
+ e(o).is("disabled", e(l)),
82
+ e(o).is("checked", e(u) === e(b))
83
+ ])
84
+ }, [
85
+ q(v("input", {
86
+ ref_key: "radioRef",
87
+ ref: c,
88
+ "onUpdate:modelValue": (r) => J(u) ? u.value = r : null,
89
+ class: y(e(o).e("original")),
90
+ value: e(b),
91
+ name: _.name || ((i = e(p)) == null ? void 0 : i.name),
92
+ disabled: e(l),
93
+ checked: e(u) === e(b),
94
+ type: "radio",
95
+ onFocus: (r) => s.value = !0,
96
+ onBlur: (r) => s.value = !1,
97
+ onChange: n,
98
+ onClick: N(() => {
99
+ }, ["stop"])
100
+ }, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "checked", "onFocus", "onBlur", "onClick"]), [
101
+ [Q, e(u)]
102
+ ]),
103
+ v("span", {
104
+ class: y(e(o).e("inner"))
105
+ }, null, 2)
106
+ ], 2),
107
+ v("span", {
108
+ class: y(e(o).e("label")),
109
+ onKeydown: N(() => {
110
+ }, ["stop"])
111
+ }, [
112
+ F(_.$slots, "default", {}, () => [
113
+ z(C(_.label), 1)
114
+ ])
115
+ ], 42, ["onKeydown"])
116
+ ], 2);
117
+ };
118
+ }
119
+ });
120
+ var Fe = /* @__PURE__ */ T(Te, [["__file", "radio.vue"]]);
121
+ const Ae = G({
122
+ ...ae
123
+ }), De = E({
124
+ name: "ElRadioButton"
125
+ }), Ke = /* @__PURE__ */ E({
126
+ ...De,
127
+ props: Ae,
128
+ setup(t) {
129
+ const f = t, a = L("radio"), { radioRef: o, focus: c, size: p, disabled: s, modelValue: d, radioGroup: l, actualValue: u } = ne(f), b = g(() => ({
130
+ backgroundColor: (l == null ? void 0 : l.fill) || "",
131
+ borderColor: (l == null ? void 0 : l.fill) || "",
132
+ boxShadow: l != null && l.fill ? `-1px 0 0 0 ${l.fill}` : "",
133
+ color: (l == null ? void 0 : l.textColor) || ""
134
+ }));
135
+ return (n, _) => {
136
+ var S;
137
+ return k(), B("label", {
138
+ class: y([
139
+ e(a).b("button"),
140
+ e(a).is("active", e(d) === e(u)),
141
+ e(a).is("disabled", e(s)),
142
+ e(a).is("focus", e(c)),
143
+ e(a).bm("button", e(p))
144
+ ])
145
+ }, [
146
+ q(v("input", {
147
+ ref_key: "radioRef",
148
+ ref: o,
149
+ "onUpdate:modelValue": (i) => J(d) ? d.value = i : null,
150
+ class: y(e(a).be("button", "original-radio")),
151
+ value: e(u),
152
+ type: "radio",
153
+ name: n.name || ((S = e(l)) == null ? void 0 : S.name),
154
+ disabled: e(s),
155
+ onFocus: (i) => c.value = !0,
156
+ onBlur: (i) => c.value = !1,
157
+ onClick: N(() => {
158
+ }, ["stop"])
159
+ }, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "onFocus", "onBlur", "onClick"]), [
160
+ [Q, e(d)]
161
+ ]),
162
+ v("span", {
163
+ class: y(e(a).be("button", "inner")),
164
+ style: Ce(e(d) === e(u) ? e(b) : {}),
165
+ onKeydown: N(() => {
166
+ }, ["stop"])
167
+ }, [
168
+ F(n.$slots, "default", {}, () => [
169
+ z(C(n.label), 1)
170
+ ])
171
+ ], 46, ["onKeydown"])
172
+ ], 2);
173
+ };
174
+ }
175
+ });
176
+ var se = /* @__PURE__ */ T(Ke, [["__file", "radio-button.vue"]]);
177
+ const Me = G({
178
+ id: {
179
+ type: String,
180
+ default: void 0
181
+ },
182
+ size: X,
183
+ disabled: Boolean,
184
+ modelValue: {
185
+ type: [String, Number, Boolean],
186
+ default: void 0
187
+ },
188
+ fill: {
189
+ type: String,
190
+ default: ""
191
+ },
192
+ textColor: {
193
+ type: String,
194
+ default: ""
195
+ },
196
+ name: {
197
+ type: String,
198
+ default: void 0
199
+ },
200
+ validateEvent: {
201
+ type: Boolean,
202
+ default: !0
203
+ },
204
+ ...he(["ariaLabel"])
205
+ }), je = le, Oe = E({
206
+ name: "ElRadioGroup"
207
+ }), He = /* @__PURE__ */ E({
208
+ ...Oe,
209
+ props: Me,
210
+ emits: je,
211
+ setup(t, { emit: f }) {
212
+ const a = t, o = L("radio"), c = ge(), p = R(), { formItem: s } = ye(), { inputId: d, isLabeledByFormItem: l } = Se(a, {
213
+ formItemContext: s
214
+ }), u = (n) => {
215
+ f(x, n), Z(() => f("change", n));
216
+ };
217
+ ee(() => {
218
+ const n = p.value.querySelectorAll("[type=radio]"), _ = n[0];
219
+ !Array.from(n).some((S) => S.checked) && _ && (_.tabIndex = 0);
220
+ });
221
+ const b = g(() => a.name || c.value);
222
+ return we(te, Ne({
223
+ ...ze(a),
224
+ changeEvent: u,
225
+ name: b
226
+ })), oe(() => a.modelValue, () => {
227
+ a.validateEvent && (s == null || s.validate("change").catch((n) => Ve(n)));
228
+ }), (n, _) => (k(), B("div", {
229
+ id: e(d),
230
+ ref_key: "radioGroupRef",
231
+ ref: p,
232
+ class: y(e(o).b("group")),
233
+ role: "radiogroup",
234
+ "aria-label": e(l) ? void 0 : n.ariaLabel || "radio-group",
235
+ "aria-labelledby": e(l) ? e(s).labelId : void 0
236
+ }, [
237
+ F(n.$slots, "default")
238
+ ], 10, ["id", "aria-label", "aria-labelledby"]));
239
+ }
240
+ });
241
+ var ie = /* @__PURE__ */ T(He, [["__file", "radio-group.vue"]]);
242
+ const We = Re(Fe, {
243
+ RadioButton: se,
244
+ RadioGroup: ie
245
+ }), Xe = Y(ie);
246
+ Y(se);
247
+ const Ye = { class: "wrapper" }, qe = { class: "screen_thumbnail" }, Je = ["src"], Qe = { class: "validity-period" }, Ze = {
248
+ key: 0,
249
+ class: "custom"
250
+ }, eo = { class: "footer" }, to = /* @__PURE__ */ E({
251
+ __name: "ScreenShotTool",
252
+ props: ["componentId"],
253
+ emits: ["closePanel"],
254
+ setup(t, { emit: f }) {
255
+ const a = ke(), o = Ee(), c = t, p = R(0), s = R(), d = R(), l = R(), u = f;
256
+ ee(() => {
257
+ s.value = 1280, d.value = 720, o.setReadyById(c.componentId);
258
+ }), oe(
259
+ () => o.isToolActive(c.componentId),
260
+ (i) => {
261
+ i && _(220, 124, !1);
262
+ }
263
+ );
264
+ const b = (i) => {
265
+ p.value = i, i !== 3 && (s.value = U[i].width, d.value = U[i].height);
266
+ }, n = () => {
267
+ u("closePanel");
268
+ }, _ = (i, r, P) => {
269
+ const h = document.getElementById("myCanvas"), I = document.createElement("a");
270
+ I.download = "screenshot.png";
271
+ const V = document.createElement("canvas"), m = V.getContext("2d");
272
+ if (h && m) {
273
+ V.width = i, V.height = r;
274
+ const re = i / h.width, de = r / h.height, A = Math.max(re, de), D = h.width * A, K = h.height * A, ue = (i - D) / 2, ce = (r - K) / 2;
275
+ m.clearRect(0, 0, i, r), m.fillStyle = "transparent", m.fillRect(0, 0, i, r), m.drawImage(h, 0, 0, h.width, h.height, ue, ce, D, K), P ? V.toBlob(function(me) {
276
+ const M = URL.createObjectURL(me);
277
+ I.href = M, I.click(), URL.revokeObjectURL(M);
278
+ }) : l.value = V.toDataURL("image/png");
279
+ }
280
+ }, S = () => {
281
+ _(s.value, d.value, !0);
282
+ };
283
+ return (i, r) => {
284
+ const P = We, h = Xe, I = Ie, V = pe;
285
+ return k(), Ge(V, {
286
+ class: "screen_container",
287
+ width: 240,
288
+ panelTitle: e(a)("screenshot.title"),
289
+ "click-handle": n
290
+ }, {
291
+ default: $(() => [
292
+ v("div", Ye, [
293
+ v("div", qe, [
294
+ v("img", {
295
+ class: "thumbnail_img",
296
+ src: l.value,
297
+ alt: ""
298
+ }, null, 8, Je)
299
+ ]),
300
+ w(h, {
301
+ modelValue: p.value,
302
+ "onUpdate:modelValue": r[0] || (r[0] = (m) => p.value = m),
303
+ onChange: b
304
+ }, {
305
+ default: $(() => [
306
+ v("div", Qe, [
307
+ (k(!0), B(Pe, null, Ue(e(U), (m) => (k(), B("div", {
308
+ key: m.id,
309
+ class: "period_box"
310
+ }, [
311
+ w(P, {
312
+ value: m.id
313
+ }, {
314
+ default: $(() => [
315
+ z(C(m.name || e(a)(m.label ?? "")), 1)
316
+ ]),
317
+ _: 2
318
+ }, 1032, ["value"])
319
+ ]))), 128))
320
+ ])
321
+ ]),
322
+ _: 1
323
+ }, 8, ["modelValue"]),
324
+ p.value === 3 ? (k(), B("div", Ze, [
325
+ w(I, {
326
+ modelValue: s.value,
327
+ "onUpdate:modelValue": r[1] || (r[1] = (m) => s.value = m),
328
+ placeholder: e(a)("screenshot.widthPlaceholder")
329
+ }, null, 8, ["modelValue", "placeholder"]),
330
+ r[3] || (r[3] = z(" x ")),
331
+ w(I, {
332
+ modelValue: d.value,
333
+ "onUpdate:modelValue": r[2] || (r[2] = (m) => d.value = m),
334
+ placeholder: e(a)("screenshot.heightPlaceholder")
335
+ }, null, 8, ["modelValue", "placeholder"])
336
+ ])) : $e("", !0),
337
+ v("div", eo, [
338
+ v("div", {
339
+ class: "btn1",
340
+ onClick: n
341
+ }, C(e(a)("common.cancel")), 1),
342
+ v("div", {
343
+ class: "btn2",
344
+ onClick: S
345
+ }, C(e(a)("common.save")), 1)
346
+ ])
347
+ ])
348
+ ]),
349
+ _: 1
350
+ }, 8, ["panelTitle"]);
351
+ };
352
+ }
353
+ });
354
+ export {
355
+ to as default
356
+ };
@@ -1,11 +1,11 @@
1
- import { _ as be } from "./alert-COkF0N8w.mjs";
2
- import { F as ge, G as ke, T as q, H as b, I as f, a1 as W, a2 as h, P as g, a3 as Se, K as we, a4 as ye, L as Ce, M as xe } from "./index-fIchFHNn.mjs";
3
- import { _ as Le } from "./panel.vue_vue_type_style_index_0_lang-BtSx7l8h.mjs";
4
- import { defineComponent as Be, ref as _, onMounted as Pe, watch as Te, onBeforeUnmount as Ve, openBlock as a, createElementBlock as d, Fragment as I, unref as n, createBlock as Ee, withCtx as J, createElementVNode as o, toDisplayString as v, withDirectives as Q, renderList as X, vShow as Y, createVNode as L, normalizeClass as Z, withModifiers as Ie, createTextVNode as Me } from "vue";
5
- const Oe = { class: "section_panel_middle" }, Ae = { class: "section_middle_title" }, $e = { class: "section_control_button" }, De = ["src"], He = { class: "control_buttons" }, Ne = ["onClick"], ze = { class: "section_panel_cont" }, Re = {
1
+ import { _ as be } from "./alert-BAgNMV8k.mjs";
2
+ import { n as ge, o as ke, T as G, p as b, q as f, J, K as h, O as g, L as Se, N as we, v as ye, x as xe, y as Ce } from "./index-Bu4b3eOR.mjs";
3
+ import { _ as Le } from "./panel.vue_vue_type_style_index_0_lang-sBMUmb4u.mjs";
4
+ import { defineComponent as Be, ref as _, onMounted as Te, watch as Pe, onBeforeUnmount as Ve, openBlock as a, createElementBlock as d, Fragment as I, unref as n, createBlock as Ee, withCtx as W, createElementVNode as o, toDisplayString as v, withDirectives as Q, renderList as X, vShow as Y, createVNode as L, normalizeClass as Z, withModifiers as Ie, createTextVNode as Oe } from "vue";
5
+ const Me = { class: "section_panel_middle" }, Ae = { class: "section_middle_title" }, $e = { class: "section_control_button" }, De = ["src"], Ne = { class: "control_buttons" }, He = ["onClick"], ze = { class: "section_panel_cont" }, Re = {
6
6
  key: 0,
7
7
  class: ""
8
- }, Fe = ["onClick"], Ue = { class: "cont_item_left" }, je = ["src", "onClick"], Ge = { class: "cont_item_right" }, Ke = ["src", "onClick"], qe = ["src", "onClick"], We = ["src", "onClick"], Je = {
8
+ }, Ue = ["onClick"], je = { class: "cont_item_left" }, qe = ["src", "onClick"], Fe = { class: "cont_item_right" }, Ke = ["src", "onClick"], Ge = ["src", "onClick"], Je = ["src", "onClick"], We = {
9
9
  key: 1,
10
10
  class: "empty1"
11
11
  }, Qe = {
@@ -16,34 +16,34 @@ const Oe = { class: "section_panel_middle" }, Ae = { class: "section_middle_titl
16
16
  props: ["componentId"],
17
17
  emits: ["closePanel"],
18
18
  setup(ee, { emit: oe }) {
19
- const r = ge(), M = ke(), O = ee, B = _(0);
20
- Pe(() => {
21
- M.setReadyById(O.componentId), q.currentTheme == "blue" ? B.value = 240 : q.currentTheme == "light-gray" && (B.value = 202), w(), window.addEventListener("resize", w), document.addEventListener("click", A);
19
+ const r = ge(), O = ke(), M = ee, B = _(0);
20
+ Te(() => {
21
+ O.setReadyById(M.componentId), G.currentTheme == "blue" ? B.value = 240 : G.currentTheme == "light-gray" && (B.value = 202), w(), window.addEventListener("resize", w), document.addEventListener("click", A);
22
22
  });
23
23
  const A = (e) => {
24
- S.value && e.target.id != "controlOperatePanel" && H(!1);
25
- }, $ = _(!0), k = _(!1), i = _(), u = _(), S = _(!1), D = _(360), H = (e) => {
24
+ S.value && e.target.id != "controlOperatePanel" && N(!1);
25
+ }, $ = _(!0), k = _(!1), i = _(), u = _(), S = _(!1), D = _(360), N = (e) => {
26
26
  S.value = e;
27
27
  };
28
- let s, N;
28
+ let s, H;
29
29
  const z = oe;
30
- Te(
31
- () => M.isToolActive(O.componentId),
30
+ Pe(
31
+ () => O.isToolActive(M.componentId),
32
32
  (e) => {
33
- e && (P(), w(), b("isMobile") && F());
33
+ e && (T(), w(), b("isMobile") && U());
34
34
  }
35
35
  );
36
36
  const R = () => {
37
- s = window.bimViewer.sectionTool, N = window.bimViewer.eventTrigger, b("isMobile") || N.on("createSection", (e) => {
37
+ s = window.bimViewer.sectionTool, H = window.bimViewer.eventTrigger, b("isMobile") || H.on("createSection", (e) => {
38
38
  y(), i.value = Object.keys(K()).map((t) => ({
39
39
  id: t,
40
40
  isLook: !0,
41
41
  directionLeft: !0
42
- })), ae(e.id, !0), u.value = e.id, T(e.id);
42
+ })), ae(e.id, !0), u.value = e.id, P(e.id);
43
43
  });
44
44
  };
45
- f.on("BimViewer", R), f.on(W, P), Ve(() => {
46
- f.off("BimViewer", R), f.off(W, P), window.removeEventListener("resize", w), document.removeEventListener("click", A);
45
+ f.on("BimViewer", R), f.on(J, T), Ve(() => {
46
+ f.off("BimViewer", R), f.off(J, T), window.removeEventListener("resize", w), document.removeEventListener("click", A);
47
47
  });
48
48
  function te() {
49
49
  $.value = !1;
@@ -53,47 +53,47 @@ const Oe = { class: "section_panel_middle" }, Ae = { class: "section_middle_titl
53
53
  const e = parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--section-content-height")) || 360, t = document.querySelector(".bimx-components-wrapper"), c = ((t == null ? void 0 : t.clientHeight) || window.innerHeight) - 216;
54
54
  D.value = Math.max(140, Math.min(e, c));
55
55
  }
56
- const m = _(!1);
57
- function F() {
58
- m.value = h.IsBoxVisible();
56
+ const p = _(!1);
57
+ function U() {
58
+ p.value = h.IsBoxVisible();
59
59
  }
60
60
  function ne() {
61
- h.ResetBox(), F();
61
+ h.ResetBox(), U();
62
62
  }
63
63
  function ie() {
64
- m.value = h.ToggleBoxVisible();
64
+ p.value = h.ToggleBoxVisible();
65
65
  }
66
66
  function se() {
67
67
  h.CloseBox(), h.SetActive(!1), z("closePanel"), f.emit("hideToolbar", !1);
68
68
  }
69
- function P() {
69
+ function T() {
70
70
  if (!s) return;
71
- const e = K() || {}, t = i.value || [], c = Object.keys(e).map((p) => {
72
- const C = t.find((V) => V.id === p);
71
+ const e = K() || {}, t = i.value || [], c = Object.keys(e).map((m) => {
72
+ const x = t.find((V) => V.id === m);
73
73
  return {
74
- id: p,
75
- isLook: !!e[p].active,
76
- directionLeft: C ? C.directionLeft : !0
74
+ id: m,
75
+ isLook: !!e[m].active,
76
+ directionLeft: x ? x.directionLeft : !0
77
77
  };
78
78
  });
79
- i.value = c, u.value = c.length ? c[0].id : "", m.value = h.IsBoxVisible();
79
+ i.value = c, u.value = c.length ? c[0].id : "", p.value = h.IsBoxVisible();
80
80
  }
81
- const U = () => {
81
+ const j = () => {
82
82
  s.setActive(!1), z("closePanel"), f.emit("hideToolbar", !1);
83
83
  }, le = (e) => {
84
- u.value !== e.id && (u.value = e.id, k.value = !1, y(), T(e.id));
84
+ u.value !== e.id && (u.value = e.id, k.value = !1, y(), P(e.id));
85
85
  }, ce = (e) => {
86
- y(), e.isLook = !e.isLook, e.isLook ? (e.isLook = !0, de(e.id)) : _e(e.id), T(u.value);
87
- }, T = (e) => {
86
+ y(), e.isLook = !e.isLook, e.isLook ? (e.isLook = !0, de(e.id)) : _e(e.id), P(u.value);
87
+ }, P = (e) => {
88
88
  s.showSectionPlane(e);
89
- }, j = (e) => {
89
+ }, q = (e) => {
90
90
  if (i.value)
91
91
  for (let t = 0; t < i.value.length; t++)
92
92
  i.value[t].isLook = e;
93
93
  }, ae = (e, t) => {
94
94
  for (let c = 0; c < i.value.length; c++)
95
95
  e == i.value[c].id && (i.value[c].isLook = t);
96
- }, G = (e) => {
96
+ }, F = (e) => {
97
97
  e.directionLeft = !e.directionLeft, he(e.id);
98
98
  }, re = (e) => {
99
99
  s.destroySectionPlane(e), i.value = i.value.filter((t) => t.id !== e);
@@ -102,31 +102,31 @@ const Oe = { class: "section_panel_middle" }, Ae = { class: "section_middle_titl
102
102
  }, _e = (e) => {
103
103
  s.setSectionDisable(e);
104
104
  }, ue = () => {
105
- j(!0), s.enableSections(), s.showControl(), k.value = !0;
105
+ q(!0), s.enableSections(), s.showControl(), k.value = !0;
106
106
  }, ve = () => {
107
- j(!1), s.disableSections(), k.value = !1, u.value = "";
107
+ q(!1), s.disableSections(), k.value = !1, u.value = "";
108
108
  }, fe = (e) => {
109
- e.id === 0 ? (me(), i.value = []) : e.id === 1 ? pe() : e.id === 2 ? ue() : e.id === 4 && (ve(), y());
109
+ e.id === 0 ? (pe(), i.value = []) : e.id === 1 ? me() : e.id === 2 ? ue() : e.id === 4 && (ve(), y());
110
110
  }, he = (e) => {
111
111
  s.flipSection(e);
112
- }, K = () => s.getSectionPlanes(), me = () => {
112
+ }, K = () => s.getSectionPlanes(), pe = () => {
113
113
  s.clear();
114
- }, pe = () => {
114
+ }, me = () => {
115
115
  s.flipSections();
116
116
  }, y = () => {
117
117
  s.hideControl();
118
118
  };
119
119
  return (e, t) => {
120
- const c = we, p = Le, C = Ce, V = be;
120
+ const c = ye, m = Le, x = xe, V = be;
121
121
  return a(), d(I, null, [
122
122
  n(b)("isMobile") ? (a(), d("div", Qe, [
123
123
  o("div", Xe, [
124
124
  o("div", Ye, v(n(r)("section.boxMode")), 1),
125
125
  o("div", Ze, [
126
- L(C, {
126
+ L(x, {
127
127
  width: 0.4,
128
128
  "size-type": "rem",
129
- "click-handle": U
129
+ "click-handle": j
130
130
  })
131
131
  ])
132
132
  ]),
@@ -137,39 +137,39 @@ const Oe = { class: "section_panel_middle" }, Ae = { class: "section_middle_titl
137
137
  onClick: ne
138
138
  }, v(n(r)("common.reset")), 1),
139
139
  o("div", {
140
- class: Z(["mobile_box_button", { mobile_box_button_active: m.value }]),
140
+ class: Z(["mobile_box_button", { mobile_box_button_active: p.value }]),
141
141
  onClick: ie
142
- }, v(n(r)(m.value ? "section.boxHide" : "section.boxShow")), 3),
142
+ }, v(n(r)(p.value ? "section.boxHide" : "section.boxShow")), 3),
143
143
  o("div", {
144
144
  class: "mobile_box_button",
145
145
  onClick: se
146
146
  }, v(n(r)("common.close")), 1)
147
147
  ])
148
148
  ])
149
- ])) : (a(), Ee(p, {
149
+ ])) : (a(), Ee(m, {
150
150
  key: 0,
151
151
  class: "section_panel",
152
152
  width: B.value,
153
153
  panelTitle: n(r)("toolbar.section"),
154
- "click-handle": U
154
+ "click-handle": j
155
155
  }, {
156
- default: J(() => [
157
- o("div", Oe, [
156
+ default: W(() => [
157
+ o("div", Me, [
158
158
  o("div", Ae, v(n(r)("section.allSections")), 1),
159
159
  o("div", $e, [
160
160
  o("img", {
161
161
  id: "controlOperatePanel",
162
162
  src: n(g) + "/bim-viewer/slicing-more.png",
163
- onClick: t[0] || (t[0] = (l) => H(!S.value))
163
+ onClick: t[0] || (t[0] = (l) => N(!S.value))
164
164
  }, null, 8, De),
165
- Q(o("div", He, [
165
+ Q(o("div", Ne, [
166
166
  (a(!0), d(I, null, X(n(Se), (l) => (a(), d("div", {
167
167
  key: l.id,
168
168
  class: "operation_button",
169
169
  onClick: (E) => fe(l)
170
170
  }, [
171
171
  o("span", null, v(n(r)(l.name)), 1)
172
- ], 8, Ne))), 128))
172
+ ], 8, He))), 128))
173
173
  ], 512), [
174
174
  [Y, S.value]
175
175
  ])
@@ -179,42 +179,42 @@ const Oe = { class: "section_panel_middle" }, Ae = { class: "section_middle_titl
179
179
  L(c, {
180
180
  height: D.value + "px"
181
181
  }, {
182
- default: J(() => [
182
+ default: W(() => [
183
183
  i.value && i.value.length ? (a(), d("div", Re, [
184
184
  (a(!0), d(I, null, X(i.value, (l, E) => (a(), d("div", {
185
185
  key: E,
186
186
  class: Z(["panel_cont_item", { panel_cont_item_choose: u.value === l.id || k.value }]),
187
- onClick: (x) => le(l)
187
+ onClick: (C) => le(l)
188
188
  }, [
189
- o("div", Ue, [
189
+ o("div", je, [
190
190
  o("img", {
191
191
  src: `${n(g)}/bim-viewer/${l.isLook ? "section_look_icon.png" : "section_unlook_icon.png"}`,
192
192
  alt: "",
193
- onClick: Ie((x) => ce(l), ["stop"])
194
- }, null, 8, je),
195
- Me(" " + v(n(r)("section.sectionPrefix") + (E + 1)), 1)
193
+ onClick: Ie((C) => ce(l), ["stop"])
194
+ }, null, 8, qe),
195
+ Oe(" " + v(n(r)("section.sectionPrefix") + (E + 1)), 1)
196
196
  ]),
197
- o("div", Ge, [
197
+ o("div", Fe, [
198
198
  l.directionLeft ? (a(), d("img", {
199
199
  key: 0,
200
200
  src: n(g) + "/bim-viewer/left_section_icon.png",
201
201
  alt: "",
202
- onClick: (x) => G(l)
202
+ onClick: (C) => F(l)
203
203
  }, null, 8, Ke)) : (a(), d("img", {
204
204
  key: 1,
205
205
  src: n(g) + "/bim-viewer/right_section_icon.png",
206
206
  alt: "",
207
- onClick: (x) => G(l)
208
- }, null, 8, qe)),
207
+ onClick: (C) => F(l)
208
+ }, null, 8, Ge)),
209
209
  o("img", {
210
210
  src: n(g) + "/bim-viewer/section_del_icon.png",
211
211
  alt: "",
212
- onClick: (x) => re(l.id)
213
- }, null, 8, We)
212
+ onClick: (C) => re(l.id)
213
+ }, null, 8, Je)
214
214
  ])
215
- ], 10, Fe))), 128))
216
- ])) : (a(), d("div", Je, [
217
- L(ye, {
215
+ ], 10, Ue))), 128))
216
+ ])) : (a(), d("div", We, [
217
+ L(we, {
218
218
  title: n(r)("common.noData"),
219
219
  type: "model"
220
220
  }, null, 8, ["title"])
@@ -235,7 +235,7 @@ const Oe = { class: "section_panel_middle" }, Ae = { class: "section_middle_titl
235
235
  ], 64);
236
236
  };
237
237
  }
238
- }), co = /* @__PURE__ */ xe(to, [["__scopeId", "data-v-75b8e2e6"]]);
238
+ }), co = /* @__PURE__ */ Ce(to, [["__scopeId", "data-v-3a586562"]]);
239
239
  export {
240
240
  co as default
241
241
  };