@xtctwins/tctwins-bimx-engine 0.3.8 → 0.3.10

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/dist/{AnnotationTool-DgppLcwx.mjs → AnnotationTool-w5bGE9cJ.mjs} +32 -32
  2. package/dist/BIMX_Viewer_Lib.es.js +4 -4
  3. package/dist/BIMX_Viewer_Lib.umd.js +211 -161
  4. package/dist/{CameraViewTool-BReDlFEv.mjs → CameraViewTool-CojdKWOg.mjs} +36 -36
  5. package/dist/{CommentTool-D6DWQCa5.mjs → CommentTool-B9VooYuw.mjs} +137 -137
  6. package/dist/{HiddenTool-B8rcAH0z.mjs → HiddenTool-Ckt9Rq-S.mjs} +14 -14
  7. package/dist/{InspectorTool-WZToT3N-.mjs → InspectorTool-IbSGNc-p.mjs} +12 -12
  8. package/dist/{MeasureTool-DIHDiSpu.mjs → MeasureTool-ce0glmOH.mjs} +57 -57
  9. package/dist/{MouseTool-DgV53G0A.mjs → MouseTool-DEx7EQjC.mjs} +12 -12
  10. package/dist/{NavigateTool-8DMKaXiT.mjs → NavigateTool-CezBNc2T.mjs} +3 -3
  11. package/dist/{RoamTool-CyvTgXrr.mjs → RoamTool-B-sG7gTn.mjs} +15 -15
  12. package/dist/ScreenShotTool-Ybx6fN8G.mjs +430 -0
  13. package/dist/{SectionTool-DfjGtjao.mjs → SectionTool-Bk_tM0iv.mjs} +60 -60
  14. package/dist/SettingTool-I5JTKEs4.mjs +695 -0
  15. package/dist/StructureTree-B4zsT8iE.mjs +1686 -0
  16. package/dist/{alert-DRz67LTB.mjs → alert-mCw4l6h5.mjs} +6 -6
  17. package/dist/el-slider-Coa3NGV1.mjs +1059 -0
  18. package/dist/{index-Bv-246pp.mjs → index-12nO3dW-.mjs} +63048 -61137
  19. package/dist/{panel.vue_vue_type_style_index_0_lang-DMkX22H2.mjs → panel.vue_vue_type_style_index_0_lang-DrlLccGf.mjs} +1 -1
  20. package/dist/style.css +3 -3
  21. package/dist/{tallPanel-CBDkSWkE.mjs → tallPanel-B3pDz4Za.mjs} +10 -10
  22. package/package.json +11 -3
  23. package/types/App.vue.d.ts +3 -1
  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/CameraViewTool.vue.d.ts +1 -1
  39. package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +1 -1
  40. package/types/components/BimViewerComponents/CommentTool.vue.d.ts +32 -1
  41. package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
  42. package/types/components/BimViewerComponents/MobileCommentsTool/add.vue.d.ts +6 -8
  43. package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +4 -5
  44. package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +2 -2
  45. package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +270 -1
  46. package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +291 -7
  47. package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +5 -6
  48. package/types/components/BimViewerComponents/MouseTool.vue.d.ts +1 -1
  49. package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +1 -1
  50. package/types/components/BimViewerComponents/PCCommentTool/pcdraw.vue.d.ts +1 -1
  51. package/types/components/BimViewerComponents/RoamTool.vue.d.ts +1 -1
  52. package/types/components/BimViewerComponents/SettingTool.vue.d.ts +4 -6
  53. package/types/components/BimViewerComponents/StructureTree.vue.d.ts +11642 -1
  54. package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
  55. package/types/components/BimxViewerComp.vue.d.ts +7 -21
  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 +291 -7
  59. package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +270 -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/utilsComponents/alert.vue.d.ts +1 -1
  65. package/types/components/utilsComponents/closeButton.vue.d.ts +1 -1
  66. package/types/components/utilsComponents/closeButton_dark.vue.d.ts +1 -1
  67. package/types/components/utilsComponents/emptyPage.vue.d.ts +1 -1
  68. package/types/components/utilsComponents/loading.vue.d.ts +1 -1
  69. package/types/components/utilsComponents/panel.vue.d.ts +8 -2
  70. package/types/components/utilsComponents/prompt.vue.d.ts +1 -1
  71. package/types/components/utilsComponents/rectangleButton.vue.d.ts +3 -1
  72. package/types/components/utilsComponents/tallPanel.vue.d.ts +13 -3
  73. package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +13 -3
  74. package/types/pages/BimxViewerEntry.vue.d.ts +4 -63
  75. package/types/store/toolbars.d.ts +50 -50
  76. package/types/utils/OSSHelper.d.ts +0 -2
  77. package/types/viewerManager/load/loadModel.d.ts +0 -88
  78. package/dist/01.xtc +0 -0
  79. package/dist/02.xtc +0 -0
  80. package/dist/03.xtc +0 -0
  81. package/dist/ScreenShotTool-HqPWEnrT.mjs +0 -357
  82. package/dist/SettingTool-DTIFj4Tj.mjs +0 -657
  83. package/dist/StructureTree-Cu7KYRrz.mjs +0 -1583
  84. package/dist/el-input-number-BGkEOqim.mjs +0 -818
  85. package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +0 -22
  86. package/types/components/BimViewerComponents/emptyPage.vue.d.ts +0 -8
  87. package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +0 -10
  88. package/types/components/bimxViewer.vue.d.ts +0 -27
  89. package/types/pages/viewerEntry.vue.d.ts +0 -116
  90. package/types/tests/cmt.d.ts +0 -1
@@ -0,0 +1,430 @@
1
+ import { _ as _e } from "./panel.vue_vue_type_style_index_0_lang-DrlLccGf.mjs";
2
+ import { ab as U, o as K, ac as q, g as G, ad as Y, b as N, ae as J, af as he, j as H, q as X, a as Se, ag as Ve, ah as Ee, u as $, ai as Re, aj as ke, ak as Ce, C as Ie, N as Be, al as Pe, am as W, w as xe, F as we, G as Ne, J as ze } from "./index-12nO3dW-.mjs";
3
+ import { ref as C, inject as Te, computed as h, defineComponent as z, openBlock as R, createElementBlock as I, normalizeClass as E, unref as e, createElementVNode as y, withDirectives as Q, withModifiers as x, isRef as Z, vModelRadio as ee, renderSlot as D, createTextVNode as w, toDisplayString as B, nextTick as te, normalizeStyle as Le, onMounted as ae, provide as Ue, reactive as $e, toRefs as De, watch as oe, Fragment as le, renderList as se, createBlock as ne, resolveDynamicComponent as Fe, mergeProps as Ae, withCtx as T, createVNode as P, createCommentVNode as Oe } from "vue";
4
+ import { a as L } from "./const-DOnRsYpZ.mjs";
5
+ const ie = N({
6
+ /**
7
+ * @description binding value
8
+ */
9
+ modelValue: {
10
+ type: [
11
+ String,
12
+ Number,
13
+ Boolean
14
+ ],
15
+ default: void 0
16
+ },
17
+ /**
18
+ * @description size of the Radio
19
+ */
20
+ size: J,
21
+ /**
22
+ * @description whether Radio is disabled
23
+ */
24
+ disabled: {
25
+ type: Boolean,
26
+ default: void 0
27
+ },
28
+ /**
29
+ * @description the label of Radio
30
+ */
31
+ label: {
32
+ type: [
33
+ String,
34
+ Number,
35
+ Boolean
36
+ ],
37
+ default: void 0
38
+ },
39
+ /**
40
+ * @description the value of Radio
41
+ */
42
+ value: {
43
+ type: [
44
+ String,
45
+ Number,
46
+ Boolean
47
+ ],
48
+ default: void 0
49
+ },
50
+ /**
51
+ * @description native `name` attribute
52
+ */
53
+ name: {
54
+ type: String,
55
+ default: void 0
56
+ }
57
+ }), je = N({
58
+ ...ie,
59
+ /**
60
+ * @description whether to add a border around Radio
61
+ */
62
+ border: Boolean
63
+ }), re = {
64
+ [Y]: (o) => K(o) || q(o) || G(o),
65
+ [U]: (o) => K(o) || q(o) || G(o)
66
+ }, de = Symbol("radioGroupKey"), Me = N({ ...ie }), ue = {
67
+ label: "label",
68
+ value: "value",
69
+ disabled: "disabled"
70
+ }, Ke = N({
71
+ /**
72
+ * @description native `id` attribute
73
+ */
74
+ id: {
75
+ type: String,
76
+ default: void 0
77
+ },
78
+ /**
79
+ * @description the size of radio buttons or bordered radios
80
+ */
81
+ size: J,
82
+ /**
83
+ * @description whether the nesting radios are disabled
84
+ */
85
+ disabled: {
86
+ type: Boolean,
87
+ default: void 0
88
+ },
89
+ /**
90
+ * @description binding value
91
+ */
92
+ modelValue: {
93
+ type: [
94
+ String,
95
+ Number,
96
+ Boolean
97
+ ],
98
+ default: void 0
99
+ },
100
+ /**
101
+ * @description border and background color when button is active
102
+ */
103
+ fill: {
104
+ type: String,
105
+ default: ""
106
+ },
107
+ /**
108
+ * @description font color when button is active
109
+ */
110
+ textColor: {
111
+ type: String,
112
+ default: ""
113
+ },
114
+ /**
115
+ * @description native `name` attribute
116
+ */
117
+ name: {
118
+ type: String,
119
+ default: void 0
120
+ },
121
+ /**
122
+ * @description whether to trigger form validation
123
+ */
124
+ validateEvent: {
125
+ type: Boolean,
126
+ default: !0
127
+ },
128
+ options: { type: H(Array) },
129
+ props: {
130
+ type: H(Object),
131
+ default: () => ue
132
+ },
133
+ type: {
134
+ type: String,
135
+ values: ["radio", "button"],
136
+ default: "radio"
137
+ },
138
+ ...he(["ariaLabel"])
139
+ }), qe = re, ce = (o, S) => {
140
+ const l = C(), r = Te(de, void 0), s = h(() => !!r), f = h(() => X(o.value) ? o.label : o.value), c = h({
141
+ get() {
142
+ return s.value ? r.modelValue : o.modelValue;
143
+ },
144
+ set(g) {
145
+ s.value ? r.changeEvent(g) : S && S("update:modelValue", g), l.value.checked = o.modelValue === f.value;
146
+ }
147
+ }), i = Se(h(() => r == null ? void 0 : r.size)), n = Ve(h(() => r == null ? void 0 : r.disabled)), b = C(!1), v = h(() => n.value || s.value && c.value !== f.value ? -1 : 0);
148
+ return Ee({
149
+ from: "label act as value",
150
+ replacement: "value",
151
+ version: "3.0.0",
152
+ scope: "el-radio",
153
+ ref: "https://element-plus.org/en-US/component/radio.html"
154
+ }, h(() => s.value && X(o.value))), {
155
+ radioRef: l,
156
+ isGroup: s,
157
+ radioGroup: r,
158
+ focus: b,
159
+ size: i,
160
+ disabled: n,
161
+ tabIndex: v,
162
+ modelValue: c,
163
+ actualValue: f
164
+ };
165
+ }, Ge = [
166
+ "value",
167
+ "name",
168
+ "disabled",
169
+ "checked"
170
+ ];
171
+ var He = /* @__PURE__ */ z({
172
+ name: "ElRadio",
173
+ __name: "radio",
174
+ props: je,
175
+ emits: re,
176
+ setup(o, { emit: S }) {
177
+ const l = o, r = S, s = $("radio"), { radioRef: f, radioGroup: c, focus: i, size: n, disabled: b, modelValue: v, actualValue: g } = ce(l, r);
178
+ function d() {
179
+ te(() => r(U, v.value));
180
+ }
181
+ return (k, a) => {
182
+ var t;
183
+ return R(), I("label", { class: E([
184
+ e(s).b(),
185
+ e(s).is("disabled", e(b)),
186
+ e(s).is("focus", e(i)),
187
+ e(s).is("bordered", o.border),
188
+ e(s).is("checked", e(v) === e(g)),
189
+ e(s).m(e(n))
190
+ ]) }, [y("span", { class: E([
191
+ e(s).e("input"),
192
+ e(s).is("disabled", e(b)),
193
+ e(s).is("checked", e(v) === e(g))
194
+ ]) }, [Q(y("input", {
195
+ ref_key: "radioRef",
196
+ ref: f,
197
+ "onUpdate:modelValue": a[0] || (a[0] = (m) => Z(v) ? v.value = m : null),
198
+ class: E(e(s).e("original")),
199
+ value: e(g),
200
+ name: o.name || ((t = e(c)) == null ? void 0 : t.name),
201
+ disabled: e(b),
202
+ checked: e(v) === e(g),
203
+ type: "radio",
204
+ onFocus: a[1] || (a[1] = (m) => i.value = !0),
205
+ onBlur: a[2] || (a[2] = (m) => i.value = !1),
206
+ onChange: d,
207
+ onClick: a[3] || (a[3] = x(() => {
208
+ }, ["stop"]))
209
+ }, null, 42, Ge), [[ee, e(v)]]), y("span", { class: E(e(s).e("inner")) }, null, 2)], 2), y("span", {
210
+ class: E(e(s).e("label")),
211
+ onKeydown: a[4] || (a[4] = x(() => {
212
+ }, ["stop"]))
213
+ }, [D(k.$slots, "default", {}, () => [w(B(o.label), 1)])], 34)], 2);
214
+ };
215
+ }
216
+ }), me = He;
217
+ const Xe = [
218
+ "value",
219
+ "name",
220
+ "disabled"
221
+ ];
222
+ var Ye = /* @__PURE__ */ z({
223
+ name: "ElRadioButton",
224
+ __name: "radio-button",
225
+ props: Me,
226
+ setup(o) {
227
+ const S = o, l = $("radio"), { radioRef: r, focus: s, size: f, disabled: c, modelValue: i, radioGroup: n, actualValue: b } = ce(S), v = h(() => ({
228
+ backgroundColor: (n == null ? void 0 : n.fill) || "",
229
+ borderColor: (n == null ? void 0 : n.fill) || "",
230
+ boxShadow: n != null && n.fill ? `-1px 0 0 0 ${n.fill}` : "",
231
+ color: (n == null ? void 0 : n.textColor) || ""
232
+ }));
233
+ return (g, d) => {
234
+ var k;
235
+ return R(), I("label", { class: E([
236
+ e(l).b("button"),
237
+ e(l).is("active", e(i) === e(b)),
238
+ e(l).is("disabled", e(c)),
239
+ e(l).is("focus", e(s)),
240
+ e(l).bm("button", e(f))
241
+ ]) }, [Q(y("input", {
242
+ ref_key: "radioRef",
243
+ ref: r,
244
+ "onUpdate:modelValue": d[0] || (d[0] = (a) => Z(i) ? i.value = a : null),
245
+ class: E(e(l).be("button", "original-radio")),
246
+ value: e(b),
247
+ type: "radio",
248
+ name: o.name || ((k = e(n)) == null ? void 0 : k.name),
249
+ disabled: e(c),
250
+ onFocus: d[1] || (d[1] = (a) => s.value = !0),
251
+ onBlur: d[2] || (d[2] = (a) => s.value = !1),
252
+ onClick: d[3] || (d[3] = x(() => {
253
+ }, ["stop"]))
254
+ }, null, 42, Xe), [[ee, e(i)]]), y("span", {
255
+ class: E(e(l).be("button", "inner")),
256
+ style: Le(e(i) === e(b) ? v.value : {}),
257
+ onKeydown: d[4] || (d[4] = x(() => {
258
+ }, ["stop"]))
259
+ }, [D(g.$slots, "default", {}, () => [w(B(o.label), 1)])], 38)], 2);
260
+ };
261
+ }
262
+ }), F = Ye;
263
+ const Je = [
264
+ "id",
265
+ "aria-label",
266
+ "aria-labelledby"
267
+ ];
268
+ var We = /* @__PURE__ */ z({
269
+ name: "ElRadioGroup",
270
+ __name: "radio-group",
271
+ props: Ke,
272
+ emits: qe,
273
+ setup(o, { emit: S }) {
274
+ const l = o, r = S, s = $("radio"), f = Re(), c = C(), { formItem: i } = ke(), { inputId: n, isLabeledByFormItem: b } = Ce(l, { formItemContext: i }), v = (t) => {
275
+ r(Y, t), te(() => r(U, t));
276
+ };
277
+ ae(() => {
278
+ const t = c.value.querySelectorAll("[type=radio]"), m = t[0];
279
+ !Array.from(t).some((u) => u.checked) && m && (m.tabIndex = 0);
280
+ });
281
+ const g = h(() => l.name || f.value), d = h(() => ({
282
+ ...ue,
283
+ ...l.props
284
+ })), k = (t) => {
285
+ const { label: m, value: u, disabled: _ } = d.value, V = {
286
+ label: t[m],
287
+ value: t[u],
288
+ disabled: t[_]
289
+ };
290
+ return {
291
+ ...Pe(t, [
292
+ m,
293
+ u,
294
+ _
295
+ ]),
296
+ ...V
297
+ };
298
+ }, a = h(() => l.type === "button" ? F : me);
299
+ return Ue(de, $e({
300
+ ...De(l),
301
+ changeEvent: v,
302
+ name: g
303
+ })), oe(() => l.modelValue, (t, m) => {
304
+ l.validateEvent && !Ie(t, m) && (i == null || i.validate("change").catch(Be));
305
+ }), (t, m) => (R(), I("div", {
306
+ id: e(n),
307
+ ref_key: "radioGroupRef",
308
+ ref: c,
309
+ class: E(e(s).b("group")),
310
+ role: "radiogroup",
311
+ "aria-label": e(b) ? void 0 : o.ariaLabel || "radio-group",
312
+ "aria-labelledby": e(b) ? e(i).labelId : void 0
313
+ }, [D(t.$slots, "default", {}, () => [(R(!0), I(le, null, se(o.options, (u, _) => (R(), ne(Fe(a.value), Ae({ key: _ }, { ref_for: !0 }, k(u)), null, 16))), 128))])], 10, Je));
314
+ }
315
+ }), pe = We;
316
+ const Qe = xe(me, {
317
+ RadioButton: F,
318
+ RadioGroup: pe
319
+ }), Ze = W(pe);
320
+ W(F);
321
+ const et = { class: "wrapper" }, tt = { class: "screen_thumbnail" }, at = ["src"], ot = { class: "validity-period" }, lt = {
322
+ key: 0,
323
+ class: "custom"
324
+ }, st = { class: "footer" }, ut = /* @__PURE__ */ z({
325
+ __name: "ScreenShotTool",
326
+ props: ["componentId"],
327
+ emits: ["closePanel"],
328
+ setup(o, { emit: S }) {
329
+ const l = we(), r = Ne(), s = o, f = C(0), c = C(), i = C(), n = C(), b = S;
330
+ ae(() => {
331
+ c.value = 1280, i.value = 720, r.setReadyById(s.componentId);
332
+ }), oe(
333
+ () => r.isToolActive(s.componentId),
334
+ (a) => {
335
+ a && d(220, 124, !1);
336
+ }
337
+ );
338
+ const v = (a) => {
339
+ f.value = a, a !== 3 && (c.value = L[a].width, i.value = L[a].height);
340
+ }, g = () => {
341
+ b("closePanel");
342
+ }, d = (a, t, m) => {
343
+ const u = document.getElementById("myCanvas"), _ = document.createElement("a");
344
+ _.download = "screenshot.png";
345
+ const V = document.createElement("canvas"), p = V.getContext("2d");
346
+ if (u && p) {
347
+ V.width = a, V.height = t;
348
+ const ve = a / u.width, fe = t / u.height, A = Math.max(ve, fe), O = u.width * A, j = u.height * A, be = (a - O) / 2, ge = (t - j) / 2;
349
+ p.clearRect(0, 0, a, t), p.fillStyle = "transparent", p.fillRect(0, 0, a, t), p.drawImage(u, 0, 0, u.width, u.height, be, ge, O, j), m ? V.toBlob(function(ye) {
350
+ const M = URL.createObjectURL(ye);
351
+ _.href = M, _.click(), URL.revokeObjectURL(M);
352
+ }) : n.value = V.toDataURL("image/png");
353
+ }
354
+ }, k = () => {
355
+ d(c.value, i.value, !0);
356
+ };
357
+ return (a, t) => {
358
+ const m = Qe, u = Ze, _ = ze, V = _e;
359
+ return R(), ne(V, {
360
+ class: "screen_container",
361
+ width: 240,
362
+ panelTitle: e(l)("screenshot.title"),
363
+ "click-handle": g
364
+ }, {
365
+ default: T(() => [
366
+ y("div", et, [
367
+ y("div", tt, [
368
+ y("img", {
369
+ class: "thumbnail_img",
370
+ src: n.value,
371
+ alt: ""
372
+ }, null, 8, at)
373
+ ]),
374
+ P(u, {
375
+ modelValue: f.value,
376
+ "onUpdate:modelValue": t[0] || (t[0] = (p) => f.value = p),
377
+ onChange: v
378
+ }, {
379
+ default: T(() => [
380
+ y("div", ot, [
381
+ (R(!0), I(le, null, se(e(L), (p) => (R(), I("div", {
382
+ key: p.id,
383
+ class: "period_box"
384
+ }, [
385
+ P(m, {
386
+ label: p.id
387
+ }, {
388
+ default: T(() => [
389
+ w(B(p.name || e(l)(p.label ?? "")), 1)
390
+ ]),
391
+ _: 2
392
+ }, 1032, ["label"])
393
+ ]))), 128))
394
+ ])
395
+ ]),
396
+ _: 1
397
+ }, 8, ["modelValue"]),
398
+ f.value === 3 ? (R(), I("div", lt, [
399
+ P(_, {
400
+ modelValue: c.value,
401
+ "onUpdate:modelValue": t[1] || (t[1] = (p) => c.value = p),
402
+ placeholder: e(l)("screenshot.widthPlaceholder")
403
+ }, null, 8, ["modelValue", "placeholder"]),
404
+ t[3] || (t[3] = w(" x ", -1)),
405
+ P(_, {
406
+ modelValue: i.value,
407
+ "onUpdate:modelValue": t[2] || (t[2] = (p) => i.value = p),
408
+ placeholder: e(l)("screenshot.heightPlaceholder")
409
+ }, null, 8, ["modelValue", "placeholder"])
410
+ ])) : Oe("", !0),
411
+ y("div", st, [
412
+ y("div", {
413
+ class: "btn1",
414
+ onClick: g
415
+ }, B(e(l)("common.cancel")), 1),
416
+ y("div", {
417
+ class: "btn2",
418
+ onClick: k
419
+ }, B(e(l)("common.save")), 1)
420
+ ])
421
+ ])
422
+ ]),
423
+ _: 1
424
+ }, 8, ["panelTitle"]);
425
+ };
426
+ }
427
+ });
428
+ export {
429
+ ut as default
430
+ };
@@ -1,36 +1,36 @@
1
- import { _ as me } from "./alert-DRz67LTB.mjs";
2
- import { n as pe, o as fe, T as F, p as w, q as z, O as d, I as he, v as ke, x as ge, y as we } from "./index-Bv-246pp.mjs";
3
- import { E as be } from "./el-input-number-BGkEOqim.mjs";
4
- import { _ as ye } from "./panel.vue_vue_type_style_index_0_lang-DMkX22H2.mjs";
5
- import { defineComponent as Se, ref as v, onMounted as Ce, watch as xe, onBeforeUnmount as Ve, openBlock as s, createElementBlock as l, Fragment as B, unref as n, createBlock as Pe, withCtx as E, createElementVNode as o, toDisplayString as u, withDirectives as K, renderList as W, vShow as G, createVNode as m, normalizeClass as Te, withModifiers as Le, createTextVNode as $e } from "vue";
1
+ import { _ as me } from "./alert-mCw4l6h5.mjs";
2
+ import { F as pe, G as fe, T as j, H as w, I as z, P as d, K as he, Z as ke, L as ge, M as we } from "./index-12nO3dW-.mjs";
3
+ import { E as be } from "./el-slider-Coa3NGV1.mjs";
4
+ import { _ as ye } from "./panel.vue_vue_type_style_index_0_lang-DrlLccGf.mjs";
5
+ import { defineComponent as Se, ref as v, onMounted as Ce, watch as Ve, onBeforeUnmount as xe, openBlock as s, createElementBlock as l, Fragment as B, unref as n, createBlock as Pe, withCtx as E, createElementVNode as o, toDisplayString as u, withDirectives as G, renderList as H, vShow as W, createVNode as m, normalizeClass as Te, withModifiers as Le, createTextVNode as $e } from "vue";
6
6
  import { B as ze } from "./const-DOnRsYpZ.mjs";
7
- const Be = { class: "section_panel_middle" }, Ee = { class: "section_middle_title" }, Ie = { class: "section_control_button" }, Oe = ["src"], Ae = { class: "control_buttons" }, De = ["onClick"], Me = { class: "section_panel_cont" }, Ue = {
7
+ const Be = { class: "section_panel_middle" }, Ee = { class: "section_middle_title" }, Ie = { class: "section_control_button" }, Ae = ["src"], De = { class: "control_buttons" }, Me = ["onClick"], Oe = { class: "section_panel_cont" }, Ue = {
8
8
  key: 0,
9
9
  class: ""
10
- }, Ne = ["onClick"], Re = { class: "cont_item_left" }, je = ["src", "onClick"], qe = { class: "cont_item_right" }, Fe = ["src", "onClick"], Ke = ["src", "onClick"], We = ["src", "onClick"], Ge = {
10
+ }, Ne = ["onClick"], Re = { class: "cont_item_left" }, Fe = ["src", "onClick"], Ke = { class: "cont_item_right" }, je = ["src", "onClick"], Ge = ["src", "onClick"], He = ["src", "onClick"], We = {
11
11
  key: 1,
12
12
  class: "empty1"
13
- }, He = {
13
+ }, Ze = {
14
14
  key: 1,
15
15
  class: "mobile_section_panel"
16
- }, Je = { class: "slicing-title-box" }, Qe = { class: "slicing-title" }, Xe = { class: "slicing-title-icon" }, Ye = { class: "slicing-content-box" }, Ze = { class: "slicing-select-box" }, eo = { class: "select-item" }, oo = { class: "select-item-left" }, to = ["src"], io = ["src"], no = { class: "select-item-center" }, so = { class: "item-center-top" }, lo = { class: "item-center-bottom" }, co = { class: "select-item" }, ao = { class: "select-item-left" }, ro = ["src"], uo = ["src"], _o = { class: "select-item-center" }, vo = { class: "item-center-top" }, mo = { class: "item-center-bottom" }, po = { class: "select-item" }, fo = { class: "select-item-left" }, ho = ["src"], ko = ["src"], go = { class: "select-item-center" }, wo = { class: "item-center-top" }, bo = { class: "item-center-bottom" }, yo = /* @__PURE__ */ Se({
16
+ }, qe = { class: "slicing-title-box" }, Je = { class: "slicing-title" }, Qe = { class: "slicing-title-icon" }, Xe = { class: "slicing-content-box" }, Ye = { class: "slicing-select-box" }, eo = { class: "select-item" }, oo = { class: "select-item-left" }, to = ["src"], io = ["src"], no = { class: "select-item-center" }, so = { class: "item-center-top" }, lo = { class: "item-center-bottom" }, co = { class: "select-item" }, ao = { class: "select-item-left" }, ro = ["src"], uo = ["src"], _o = { class: "select-item-center" }, vo = { class: "item-center-top" }, mo = { class: "item-center-bottom" }, po = { class: "select-item" }, fo = { class: "select-item-left" }, ho = ["src"], ko = ["src"], go = { class: "select-item-center" }, wo = { class: "item-center-top" }, bo = { class: "item-center-bottom" }, yo = /* @__PURE__ */ Se({
17
17
  __name: "SectionTool",
18
18
  props: ["componentId"],
19
19
  emits: ["closePanel"],
20
- setup(H, { emit: J }) {
21
- const _ = pe(), I = fe(), O = H, V = v(0);
20
+ setup(Z, { emit: q }) {
21
+ const _ = pe(), I = fe(), A = Z, x = v(0);
22
22
  Ce(() => {
23
- I.setReadyById(O.componentId), F.currentTheme == "blue" ? V.value = 240 : F.currentTheme == "light-gray" && (V.value = 202), document.addEventListener("click", A);
23
+ I.setReadyById(A.componentId), j.currentTheme == "blue" ? x.value = 240 : j.currentTheme == "light-gray" && (x.value = 202), document.addEventListener("click", D);
24
24
  });
25
- const A = (e) => {
26
- y.value && e.target.id != "controlOperatePanel" && M(!1);
27
- }, D = v(!0), b = v(!1), r = v(), f = v(), y = v(!1), M = (e) => {
25
+ const D = (e) => {
26
+ y.value && e.target.id != "controlOperatePanel" && O(!1);
27
+ }, M = v(!0), b = v(!1), r = v(), f = v(), y = v(!1), O = (e) => {
28
28
  y.value = e;
29
29
  };
30
30
  let a, S;
31
- const Q = J;
32
- xe(
33
- () => I.isToolActive(O.componentId),
31
+ const J = q;
32
+ Ve(
33
+ () => I.isToolActive(A.componentId),
34
34
  (e) => {
35
35
  w("isMobile") && (e ? (g(h.value.direction), document.addEventListener("touchmove", N)) : document.removeEventListener("touchmove", N));
36
36
  }
@@ -49,11 +49,11 @@ const Be = { class: "section_panel_middle" }, Ee = { class: "section_middle_titl
49
49
  P = !1;
50
50
  }));
51
51
  };
52
- z.on("BimViewer", U), Ve(() => {
53
- z.off("BimViewer", U), document.removeEventListener("click", A);
52
+ z.on("BimViewer", U), xe(() => {
53
+ z.off("BimViewer", U), document.removeEventListener("click", D);
54
54
  });
55
55
  const N = () => {
56
- P && X();
56
+ P && Q();
57
57
  }, c = v({
58
58
  x: 0,
59
59
  y: 0,
@@ -74,7 +74,7 @@ const Be = { class: "section_panel_middle" }, Ee = { class: "section_middle_titl
74
74
  window.bimViewer.sectionTool.sectionDirection = 2, window.bimViewer.sectionTool.setControlPos(100 - c.value.z);
75
75
  break;
76
76
  }
77
- }, X = () => {
77
+ }, Q = () => {
78
78
  switch (h.value.direction) {
79
79
  case "x":
80
80
  c.value.x = 100 - window.bimViewer.sectionTool.getControlPos();
@@ -87,21 +87,21 @@ const Be = { class: "section_panel_middle" }, Ee = { class: "section_middle_titl
87
87
  break;
88
88
  }
89
89
  }, R = () => {
90
- a.setActive(!1), Q("closePanel"), z.emit("hideToolbar", !1);
91
- }, Y = (e) => {
90
+ a.setActive(!1), J("closePanel"), z.emit("hideToolbar", !1);
91
+ }, X = (e) => {
92
92
  f.value !== e.id && (f.value = e.id, b.value = !1, C(), T(e.id));
93
- }, Z = (e) => {
93
+ }, Y = (e) => {
94
94
  C(), e.isLook = !e.isLook, e.isLook ? (e.isLook = !0, te(e.id)) : ie(e.id), T(f.value);
95
95
  }, T = (e) => {
96
96
  a.showSectionPlane(e);
97
- }, j = (e) => {
97
+ }, F = (e) => {
98
98
  if (r.value)
99
99
  for (let t = 0; t < r.value.length; t++)
100
100
  r.value[t].isLook = e;
101
101
  }, ee = (e, t) => {
102
102
  for (let p = 0; p < r.value.length; p++)
103
103
  e == r.value[p].id && (r.value[p].isLook = t);
104
- }, q = (e) => {
104
+ }, K = (e) => {
105
105
  e.directionLeft = !e.directionLeft, ce(e.id);
106
106
  }, oe = (e) => {
107
107
  a.destroySectionPlane(e), r.value = r.value.filter((t) => t.id !== e);
@@ -110,9 +110,9 @@ const Be = { class: "section_panel_middle" }, Ee = { class: "section_middle_titl
110
110
  }, ie = (e) => {
111
111
  a.setSectionDisable(e);
112
112
  }, ne = () => {
113
- j(!0), a.enableSections(), a.showControl(), b.value = !0;
113
+ F(!0), a.enableSections(), a.showControl(), b.value = !0;
114
114
  }, se = () => {
115
- j(!1), a.disableSections(), b.value = !1, f.value = "";
115
+ F(!1), a.disableSections(), b.value = !1, f.value = "";
116
116
  }, le = (e) => {
117
117
  e.id === 0 ? (re(), r.value = []) : e.id === 1 ? de() : e.id === 2 ? ne() : e.id === 4 && (se(), C());
118
118
  }, ce = (e) => {
@@ -125,12 +125,12 @@ const Be = { class: "section_panel_middle" }, Ee = { class: "section_middle_titl
125
125
  a.hideControl();
126
126
  };
127
127
  return (e, t) => {
128
- const p = ke, ue = ye, _e = ge, L = be, ve = me;
128
+ const p = he, ue = ye, _e = ge, L = be, ve = me;
129
129
  return s(), l(B, null, [
130
- n(w)("isMobile") ? (s(), l("div", He, [
131
- o("div", Je, [
132
- o("div", Qe, u(n(_)("toolbar.section")), 1),
133
- o("div", Xe, [
130
+ n(w)("isMobile") ? (s(), l("div", Ze, [
131
+ o("div", qe, [
132
+ o("div", Je, u(n(_)("toolbar.section")), 1),
133
+ o("div", Qe, [
134
134
  m(_e, {
135
135
  width: 0.4,
136
136
  "size-type": "rem",
@@ -138,10 +138,10 @@ const Be = { class: "section_panel_middle" }, Ee = { class: "section_middle_titl
138
138
  })
139
139
  ])
140
140
  ]),
141
- o("div", Ye, [
141
+ o("div", Xe, [
142
142
  m(p, null, {
143
143
  default: E(() => [
144
- o("div", Ze, [
144
+ o("div", Ye, [
145
145
  o("div", eo, [
146
146
  o("div", oo, [
147
147
  h.value.direction === "x" ? (s(), l("img", {
@@ -240,7 +240,7 @@ const Be = { class: "section_panel_middle" }, Ee = { class: "section_middle_titl
240
240
  ])) : (s(), Pe(ue, {
241
241
  key: 0,
242
242
  class: "section_panel",
243
- width: V.value,
243
+ width: x.value,
244
244
  panelTitle: n(_)("toolbar.section"),
245
245
  "click-handle": R
246
246
  }, {
@@ -251,59 +251,59 @@ const Be = { class: "section_panel_middle" }, Ee = { class: "section_middle_titl
251
251
  o("img", {
252
252
  id: "controlOperatePanel",
253
253
  src: n(d) + "/bim-viewer/slicing-more.png",
254
- onClick: t[0] || (t[0] = (i) => M(!y.value))
255
- }, null, 8, Oe),
256
- K(o("div", Ae, [
257
- (s(!0), l(B, null, W(n(ze), (i) => (s(), l("div", {
254
+ onClick: t[0] || (t[0] = (i) => O(!y.value))
255
+ }, null, 8, Ae),
256
+ G(o("div", De, [
257
+ (s(!0), l(B, null, H(n(ze), (i) => (s(), l("div", {
258
258
  key: i.id,
259
259
  class: "operation_button",
260
260
  onClick: ($) => le(i)
261
261
  }, [
262
262
  o("span", null, u(n(_)(i.name)), 1)
263
- ], 8, De))), 128))
263
+ ], 8, Me))), 128))
264
264
  ], 512), [
265
- [G, y.value]
265
+ [W, y.value]
266
266
  ])
267
267
  ])
268
268
  ]),
269
- o("div", Me, [
269
+ o("div", Oe, [
270
270
  m(p, { height: "360px" }, {
271
271
  default: E(() => [
272
272
  r.value && r.value.length ? (s(), l("div", Ue, [
273
- (s(!0), l(B, null, W(r.value, (i, $) => (s(), l("div", {
273
+ (s(!0), l(B, null, H(r.value, (i, $) => (s(), l("div", {
274
274
  key: $,
275
275
  class: Te(["panel_cont_item", { panel_cont_item_choose: f.value === i.id || b.value }]),
276
- onClick: (x) => Y(i)
276
+ onClick: (V) => X(i)
277
277
  }, [
278
278
  o("div", Re, [
279
279
  o("img", {
280
280
  src: `${n(d)}/bim-viewer/${i.isLook ? "section_look_icon.png" : "section_unlook_icon.png"}`,
281
281
  alt: "",
282
- onClick: Le((x) => Z(i), ["stop"])
283
- }, null, 8, je),
282
+ onClick: Le((V) => Y(i), ["stop"])
283
+ }, null, 8, Fe),
284
284
  $e(" " + u(n(_)("section.sectionPrefix") + ($ + 1)), 1)
285
285
  ]),
286
- o("div", qe, [
286
+ o("div", Ke, [
287
287
  i.directionLeft ? (s(), l("img", {
288
288
  key: 0,
289
289
  src: n(d) + "/bim-viewer/left_section_icon.png",
290
290
  alt: "",
291
- onClick: (x) => q(i)
292
- }, null, 8, Fe)) : (s(), l("img", {
291
+ onClick: (V) => K(i)
292
+ }, null, 8, je)) : (s(), l("img", {
293
293
  key: 1,
294
294
  src: n(d) + "/bim-viewer/right_section_icon.png",
295
295
  alt: "",
296
- onClick: (x) => q(i)
297
- }, null, 8, Ke)),
296
+ onClick: (V) => K(i)
297
+ }, null, 8, Ge)),
298
298
  o("img", {
299
299
  src: n(d) + "/bim-viewer/section_del_icon.png",
300
300
  alt: "",
301
- onClick: (x) => oe(i.id)
302
- }, null, 8, We)
301
+ onClick: (V) => oe(i.id)
302
+ }, null, 8, He)
303
303
  ])
304
304
  ], 10, Ne))), 128))
305
- ])) : (s(), l("div", Ge, [
306
- m(he, {
305
+ ])) : (s(), l("div", We, [
306
+ m(ke, {
307
307
  title: n(_)("common.noData"),
308
308
  type: "model"
309
309
  }, null, 8, ["title"])
@@ -315,12 +315,12 @@ const Be = { class: "section_panel_middle" }, Ee = { class: "section_middle_titl
315
315
  ]),
316
316
  _: 1
317
317
  }, 8, ["width", "panelTitle"])),
318
- K(m(ve, {
318
+ G(m(ve, {
319
319
  "click-handle": () => {
320
- D.value = !1;
320
+ M.value = !1;
321
321
  }
322
322
  }, null, 8, ["click-handle"]), [
323
- [G, D.value && !n(w)("isMobile")]
323
+ [W, M.value && !n(w)("isMobile")]
324
324
  ])
325
325
  ], 64);
326
326
  };