@xtctwins/tctwins-bimx-engine 0.2.13 → 0.2.14

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 (38) hide show
  1. package/dist/{AnnotationTool-h6kLP4-J.mjs → AnnotationTool-CwaFYuqV.mjs} +26 -26
  2. package/dist/BIMX_Viewer_Lib.es.js +2 -2
  3. package/dist/BIMX_Viewer_Lib.umd.js +153 -151
  4. package/dist/{CommentTool-fEkFa5a4.mjs → CommentTool-OYjw2kUU.mjs} +32 -32
  5. package/dist/{HiddenTool-CHEX-LN8.mjs → HiddenTool-CbYRKfVy.mjs} +8 -8
  6. package/dist/{InspectorTool-Dp0nln8M.mjs → InspectorTool-BCxU5Yh4.mjs} +24 -24
  7. package/dist/{MeasureTool-CIPDVGJ2.mjs → MeasureTool-Dd40ZBiN.mjs} +35 -35
  8. package/dist/{NavigateTool-BTg74q73.mjs → NavigateTool-BSPx7ARu.mjs} +1 -1
  9. package/dist/{RoamTool-b-iVvgOg.mjs → RoamTool-D2nRKx_s.mjs} +19 -19
  10. package/dist/ScreenShotTool-BhD1Rd3c.mjs +357 -0
  11. package/dist/{SectionTool-BmaWUeLw.mjs → SectionTool-Bnr9LzXM.mjs} +29 -29
  12. package/dist/{SettingTool-WjB-y_2N.mjs → SettingTool-DSQpuvjZ.mjs} +113 -113
  13. package/dist/{StructureTree-fQGdtbdW.mjs → StructureTree-C1MGOHIs.mjs} +241 -232
  14. package/dist/{alert-Byx6QRux.mjs → alert-DQu7d6Ye.mjs} +1 -1
  15. package/dist/el-input-number-rXbj0ATn.mjs +858 -0
  16. package/dist/{index-DUCjdjwm.mjs → index-BuukvE1n.mjs} +46602 -44491
  17. package/dist/{panel.vue_vue_type_style_index_0_lang-DN1hWNk5.mjs → panel.vue_vue_type_style_index_0_lang-DoWNnmu1.mjs} +1 -1
  18. package/dist/style.css +1 -1
  19. package/dist/{tallPanel-CmihOwoA.mjs → tallPanel-esnKA-2e.mjs} +12 -12
  20. package/package.json +2 -2
  21. package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +29 -0
  22. package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +27 -0
  23. package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +14 -0
  24. package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +6 -0
  25. package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +20 -0
  26. package/types/components/{BCFComponents/BCFCommentNew.vue.d.ts → MobileBCFComponents/MobileCommentInput.vue.d.ts} +14 -8
  27. package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +19 -0
  28. package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +14 -0
  29. package/types/components/utilsComponents/closeButton_dark.vue.d.ts +32 -0
  30. package/types/services/request/api.d.ts +3 -0
  31. package/types/services/request/index.d.ts +14 -0
  32. package/types/services/request/types.d.ts +12 -0
  33. package/types/store/bcfReflect.d.ts +2 -0
  34. package/types/store/components.d.ts +6 -0
  35. package/types/tests/bcf.d.ts +8 -0
  36. package/dist/ScreenShotTool-Cei3hiGn.mjs +0 -357
  37. package/dist/el-input-number-6wp_0Clc.mjs +0 -818
  38. package/types/components/BimViewerComponents/emptyPage.vue.d.ts +0 -8
@@ -1,5 +1,5 @@
1
- import { defineComponent as A, ref as u, onMounted as H, onBeforeUnmount as j, watch as q, openBlock as g, createElementBlock as p, unref as a, createElementVNode as o, createCommentVNode as B, toDisplayString as C } from "vue";
2
- import { n as z, o as m, B as D, p as b, O as l, A as S, x as J } from "./index-DUCjdjwm.mjs";
1
+ import { defineComponent as A, ref as u, onMounted as H, onBeforeUnmount as j, watch as q, openBlock as g, createElementBlock as p, unref as a, createElementVNode as o, createCommentVNode as B, toDisplayString as k } from "vue";
2
+ import { q as z, t as m, D as C, v as b, O as l, F as S, A as J } from "./index-BuukvE1n.mjs";
3
3
  const K = { class: "roam_container_wrapper" }, Q = {
4
4
  key: 0,
5
5
  class: "roam_container"
@@ -24,19 +24,19 @@ const K = { class: "roam_container_wrapper" }, Q = {
24
24
  }, Ie = ["src"], Le = { class: "center-center" }, ye = ["src"], Re = {
25
25
  id: "roamMoveRight",
26
26
  class: "center-right"
27
- }, Te = ["src"], ke = {
27
+ }, Te = ["src"], De = {
28
28
  id: "roamMoveDown",
29
29
  class: "roam-right-down"
30
- }, Ce = ["src"], De = /* @__PURE__ */ A({
30
+ }, ke = ["src"], Ce = /* @__PURE__ */ A({
31
31
  __name: "RoamTool",
32
32
  props: ["componentId"],
33
33
  emits: ["closePanel", "emitHandler"],
34
- setup(V, { emit: U }) {
35
- const I = z(), h = u("speed-up"), M = u("speed-down"), f = u("1"), _ = u(!1), c = u(!0), L = V, y = U, r = u(!1), E = (t) => {
34
+ setup(V, { emit: F }) {
35
+ const I = z(), h = u("speed-up"), M = u("speed-down"), f = u("1"), _ = u(!1), c = u(!0), L = V, y = F, r = u(!1), E = (t) => {
36
36
  y("emitHandler", t);
37
37
  }, s = u(m("isMobile"));
38
38
  H(() => {
39
- (m("isMobile") || D.showRoam === !1) && (c.value = !1), setTimeout(() => {
39
+ (m("isMobile") || C.showRoam === !1) && (c.value = !1), setTimeout(() => {
40
40
  x(), $(), N(), O(), X(), G();
41
41
  }, 1e3), I.setReadyById(L.componentId);
42
42
  });
@@ -55,7 +55,7 @@ const K = { class: "roam_container_wrapper" }, Q = {
55
55
  t ? window.bimViewer.firstPersonMode.speedUp() : window.bimViewer.firstPersonMode.speedDown();
56
56
  };
57
57
  S.BIMX_CONFIGS.RoamTool || (b.on("BIMX_CONFIGS", () => {
58
- D.showRoam == !1 && (c.value = !1);
58
+ C.showRoam == !1 && (c.value = !1);
59
59
  }), S.BIMX_CONFIGS.RoamTool = !0), q(
60
60
  () => I.isToolActive(L.componentId),
61
61
  (t) => {
@@ -64,7 +64,7 @@ const K = { class: "roam_container_wrapper" }, Q = {
64
64
  );
65
65
  const T = (t) => {
66
66
  m("isMobile") ? r.value = t : (m("hideTool") || b.emit("hideToolbar", t), t ? c.value && (_.value = !0) : _.value = !1);
67
- }, F = () => {
67
+ }, U = () => {
68
68
  c.value = !1, E({
69
69
  isTool: !0,
70
70
  event_target: "RoamTool",
@@ -72,8 +72,8 @@ const K = { class: "roam_container_wrapper" }, Q = {
72
72
  content: {
73
73
  msg: "不要再显示漫游教程"
74
74
  }
75
- }), k();
76
- }, k = () => {
75
+ }), D();
76
+ }, D = () => {
77
77
  _.value = !1;
78
78
  }, P = () => {
79
79
  y("closePanel");
@@ -161,11 +161,11 @@ const K = { class: "roam_container_wrapper" }, Q = {
161
161
  o("div", { class: "container_footer" }, [
162
162
  o("div", {
163
163
  class: "btn1",
164
- onClick: F
164
+ onClick: U
165
165
  }, " 不要再提醒我 "),
166
166
  o("div", {
167
167
  class: "btn2",
168
- onClick: k
168
+ onClick: D
169
169
  }, " 好的,我知道了 ")
170
170
  ])
171
171
  ])) : B("", !0),
@@ -183,7 +183,7 @@ const K = { class: "roam_container_wrapper" }, Q = {
183
183
  src: a(l) + "/bim-viewer/roam-bar/" + M.value + ".png"
184
184
  }, null, 8, oe)
185
185
  ], 32),
186
- o("div", te, C(f.value) + "X", 1),
186
+ o("div", te, k(f.value) + "X", 1),
187
187
  o("div", {
188
188
  class: "up_down_button",
189
189
  onClick: e[3] || (e[3] = (n) => w(!0)),
@@ -233,7 +233,7 @@ const K = { class: "roam_container_wrapper" }, Q = {
233
233
  }, null, 8, _e)
234
234
  ]),
235
235
  o("div", we, [
236
- o("span", null, C(f.value) + "X", 1)
236
+ o("span", null, k(f.value) + "X", 1)
237
237
  ]),
238
238
  o("div", ge, [
239
239
  o("img", {
@@ -271,17 +271,17 @@ const K = { class: "roam_container_wrapper" }, Q = {
271
271
  }, null, 8, Te)
272
272
  ])
273
273
  ]),
274
- o("div", ke, [
274
+ o("div", De, [
275
275
  o("img", {
276
276
  src: a(l) + "/bim-viewer/roam-bar/bottom.svg",
277
277
  alt: ""
278
- }, null, 8, Ce)
278
+ }, null, 8, ke)
279
279
  ])
280
280
  ])
281
281
  ])) : B("", !0)
282
282
  ]));
283
283
  }
284
- }), Ue = /* @__PURE__ */ J(De, [["__scopeId", "data-v-94cfdfdf"]]);
284
+ }), Fe = /* @__PURE__ */ J(Ce, [["__scopeId", "data-v-94cfdfdf"]]);
285
285
  export {
286
- Ue as default
286
+ Fe as default
287
287
  };
@@ -0,0 +1,357 @@
1
+ import { _ as me } from "./panel.vue_vue_type_style_index_0_lang-DoWNnmu1.mjs";
2
+ import { J as U, U as $, d as M, K as j, i as O, L as pe, M as X, f as W, N as fe, P as ve, Q as be, u as x, _ as L, R as _e, S as he, W as ge, X as ye, k as Se, w as Ve, Y, q as Re, x as ke } from "./index-BuukvE1n.mjs";
3
+ import { ref as R, inject as Ee, 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 H, withModifiers as w, vModelRadio as J, renderSlot as P, createTextVNode as N, toDisplayString as T, nextTick as Q, normalizeStyle as Ie, onMounted as Z, provide as Be, reactive as Ce, toRefs as we, watch as ee, createBlock as Ne, withCtx as z, createVNode as C, Fragment as Ue, renderList as ze, createCommentVNode as Ge } from "vue";
4
+ import { a as G } from "./const-B1FlFgEN.mjs";
5
+ const oe = U({
6
+ modelValue: {
7
+ type: [String, Number, Boolean],
8
+ default: void 0
9
+ },
10
+ size: X,
11
+ disabled: Boolean,
12
+ label: {
13
+ type: [String, Number, Boolean],
14
+ default: void 0
15
+ },
16
+ value: {
17
+ type: [String, Number, Boolean],
18
+ default: void 0
19
+ },
20
+ name: {
21
+ type: String,
22
+ default: void 0
23
+ }
24
+ }), $e = U({
25
+ ...oe,
26
+ border: Boolean
27
+ }), ae = {
28
+ [$]: (a) => M(a) || j(a) || O(a),
29
+ [pe]: (a) => M(a) || j(a) || O(a)
30
+ }, ne = Symbol("radioGroupKey"), le = (a, b) => {
31
+ const t = R(), o = Ee(ne, void 0), r = g(() => !!o), c = g(() => W(a.value) ? a.label : a.value), d = g({
32
+ get() {
33
+ return r.value ? o.modelValue : a.modelValue;
34
+ },
35
+ set(l) {
36
+ r.value ? o.changeEvent(l) : b && b($, l), t.value.checked = a.modelValue === c.value;
37
+ }
38
+ }), p = fe(g(() => o == null ? void 0 : o.size)), n = ve(g(() => o == null ? void 0 : o.disabled)), u = R(!1), f = g(() => n.value || r.value && d.value !== c.value ? -1 : 0);
39
+ return be({
40
+ from: "label act as value",
41
+ replacement: "value",
42
+ version: "3.0.0",
43
+ scope: "el-radio",
44
+ ref: "https://element-plus.org/en-US/component/radio.html"
45
+ }, g(() => r.value && W(a.value))), {
46
+ radioRef: t,
47
+ isGroup: r,
48
+ radioGroup: o,
49
+ focus: u,
50
+ size: p,
51
+ disabled: n,
52
+ tabIndex: f,
53
+ modelValue: d,
54
+ actualValue: c
55
+ };
56
+ }, xe = E({
57
+ name: "ElRadio"
58
+ }), Le = /* @__PURE__ */ E({
59
+ ...xe,
60
+ props: $e,
61
+ emits: ae,
62
+ setup(a, { emit: b }) {
63
+ const t = a, o = x("radio"), { radioRef: r, radioGroup: c, focus: d, size: p, disabled: n, modelValue: u, actualValue: f } = le(t, b);
64
+ function l() {
65
+ Q(() => b("change", u.value));
66
+ }
67
+ return (_, i) => {
68
+ var s;
69
+ return k(), B("label", {
70
+ class: y([
71
+ e(o).b(),
72
+ e(o).is("disabled", e(n)),
73
+ e(o).is("focus", e(d)),
74
+ e(o).is("bordered", _.border),
75
+ e(o).is("checked", e(u) === e(f)),
76
+ e(o).m(e(p))
77
+ ])
78
+ }, [
79
+ v("span", {
80
+ class: y([
81
+ e(o).e("input"),
82
+ e(o).is("disabled", e(n)),
83
+ e(o).is("checked", e(u) === e(f))
84
+ ])
85
+ }, [
86
+ q(v("input", {
87
+ ref_key: "radioRef",
88
+ ref: r,
89
+ "onUpdate:modelValue": (S) => H(u) ? u.value = S : null,
90
+ class: y(e(o).e("original")),
91
+ value: e(f),
92
+ name: _.name || ((s = e(c)) == null ? void 0 : s.name),
93
+ disabled: e(n),
94
+ checked: e(u) === e(f),
95
+ type: "radio",
96
+ onFocus: (S) => d.value = !0,
97
+ onBlur: (S) => d.value = !1,
98
+ onChange: l,
99
+ onClick: w(() => {
100
+ }, ["stop"])
101
+ }, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "checked", "onFocus", "onBlur", "onClick"]), [
102
+ [J, e(u)]
103
+ ]),
104
+ v("span", {
105
+ class: y(e(o).e("inner"))
106
+ }, null, 2)
107
+ ], 2),
108
+ v("span", {
109
+ class: y(e(o).e("label")),
110
+ onKeydown: w(() => {
111
+ }, ["stop"])
112
+ }, [
113
+ P(_.$slots, "default", {}, () => [
114
+ N(T(_.label), 1)
115
+ ])
116
+ ], 42, ["onKeydown"])
117
+ ], 2);
118
+ };
119
+ }
120
+ });
121
+ var Pe = /* @__PURE__ */ L(Le, [["__file", "radio.vue"]]);
122
+ const Te = U({
123
+ ...oe
124
+ }), Fe = E({
125
+ name: "ElRadioButton"
126
+ }), Ae = /* @__PURE__ */ E({
127
+ ...Fe,
128
+ props: Te,
129
+ setup(a) {
130
+ const b = a, t = x("radio"), { radioRef: o, focus: r, size: c, disabled: d, modelValue: p, radioGroup: n, actualValue: u } = le(b), f = g(() => ({
131
+ backgroundColor: (n == null ? void 0 : n.fill) || "",
132
+ borderColor: (n == null ? void 0 : n.fill) || "",
133
+ boxShadow: n != null && n.fill ? `-1px 0 0 0 ${n.fill}` : "",
134
+ color: (n == null ? void 0 : n.textColor) || ""
135
+ }));
136
+ return (l, _) => {
137
+ var i;
138
+ return k(), B("label", {
139
+ class: y([
140
+ e(t).b("button"),
141
+ e(t).is("active", e(p) === e(u)),
142
+ e(t).is("disabled", e(d)),
143
+ e(t).is("focus", e(r)),
144
+ e(t).bm("button", e(c))
145
+ ])
146
+ }, [
147
+ q(v("input", {
148
+ ref_key: "radioRef",
149
+ ref: o,
150
+ "onUpdate:modelValue": (s) => H(p) ? p.value = s : null,
151
+ class: y(e(t).be("button", "original-radio")),
152
+ value: e(u),
153
+ type: "radio",
154
+ name: l.name || ((i = e(n)) == null ? void 0 : i.name),
155
+ disabled: e(d),
156
+ onFocus: (s) => r.value = !0,
157
+ onBlur: (s) => r.value = !1,
158
+ onClick: w(() => {
159
+ }, ["stop"])
160
+ }, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "onFocus", "onBlur", "onClick"]), [
161
+ [J, e(p)]
162
+ ]),
163
+ v("span", {
164
+ class: y(e(t).be("button", "inner")),
165
+ style: Ie(e(p) === e(u) ? e(f) : {}),
166
+ onKeydown: w(() => {
167
+ }, ["stop"])
168
+ }, [
169
+ P(l.$slots, "default", {}, () => [
170
+ N(T(l.label), 1)
171
+ ])
172
+ ], 46, ["onKeydown"])
173
+ ], 2);
174
+ };
175
+ }
176
+ });
177
+ var te = /* @__PURE__ */ L(Ae, [["__file", "radio-button.vue"]]);
178
+ const De = U({
179
+ id: {
180
+ type: String,
181
+ default: void 0
182
+ },
183
+ size: X,
184
+ disabled: Boolean,
185
+ modelValue: {
186
+ type: [String, Number, Boolean],
187
+ default: void 0
188
+ },
189
+ fill: {
190
+ type: String,
191
+ default: ""
192
+ },
193
+ textColor: {
194
+ type: String,
195
+ default: ""
196
+ },
197
+ name: {
198
+ type: String,
199
+ default: void 0
200
+ },
201
+ validateEvent: {
202
+ type: Boolean,
203
+ default: !0
204
+ },
205
+ ..._e(["ariaLabel"])
206
+ }), Ke = ae, Me = E({
207
+ name: "ElRadioGroup"
208
+ }), je = /* @__PURE__ */ E({
209
+ ...Me,
210
+ props: De,
211
+ emits: Ke,
212
+ setup(a, { emit: b }) {
213
+ const t = a, o = x("radio"), r = he(), c = R(), { formItem: d } = ge(), { inputId: p, isLabeledByFormItem: n } = ye(t, {
214
+ formItemContext: d
215
+ }), u = (l) => {
216
+ b($, l), Q(() => b("change", l));
217
+ };
218
+ Z(() => {
219
+ const l = c.value.querySelectorAll("[type=radio]"), _ = l[0];
220
+ !Array.from(l).some((i) => i.checked) && _ && (_.tabIndex = 0);
221
+ });
222
+ const f = g(() => t.name || r.value);
223
+ return Be(ne, Ce({
224
+ ...we(t),
225
+ changeEvent: u,
226
+ name: f
227
+ })), ee(() => t.modelValue, () => {
228
+ t.validateEvent && (d == null || d.validate("change").catch((l) => Se(l)));
229
+ }), (l, _) => (k(), B("div", {
230
+ id: e(p),
231
+ ref_key: "radioGroupRef",
232
+ ref: c,
233
+ class: y(e(o).b("group")),
234
+ role: "radiogroup",
235
+ "aria-label": e(n) ? void 0 : l.ariaLabel || "radio-group",
236
+ "aria-labelledby": e(n) ? e(d).labelId : void 0
237
+ }, [
238
+ P(l.$slots, "default")
239
+ ], 10, ["id", "aria-label", "aria-labelledby"]));
240
+ }
241
+ });
242
+ var se = /* @__PURE__ */ L(je, [["__file", "radio-group.vue"]]);
243
+ const Oe = Ve(Pe, {
244
+ RadioButton: te,
245
+ RadioGroup: se
246
+ }), We = Y(se);
247
+ Y(te);
248
+ const Xe = { class: "wrapper" }, Ye = { class: "screen_thumbnail" }, qe = ["src"], He = { class: "validity-period" }, Je = {
249
+ key: 0,
250
+ class: "custom"
251
+ }, ao = /* @__PURE__ */ E({
252
+ __name: "ScreenShotTool",
253
+ props: ["componentId"],
254
+ emits: ["closePanel"],
255
+ setup(a, { emit: b }) {
256
+ const t = Re(), o = a, r = R(0), c = R(), d = R(), p = R(), n = b;
257
+ Z(() => {
258
+ c.value = 1280, d.value = 720, t.setReadyById(o.componentId);
259
+ }), ee(
260
+ () => t.isToolActive(o.componentId),
261
+ (i) => {
262
+ i && l(220, 124, !1);
263
+ }
264
+ );
265
+ const u = (i) => {
266
+ r.value = i, i !== 3 && (c.value = G[i].width, d.value = G[i].height);
267
+ }, f = () => {
268
+ n("closePanel");
269
+ }, l = (i, s, S) => {
270
+ const h = document.getElementById("myCanvas"), I = document.createElement("a");
271
+ I.download = "screenshot.png";
272
+ const V = document.createElement("canvas"), m = V.getContext("2d");
273
+ if (h && m) {
274
+ V.width = i, V.height = s;
275
+ const de = i / h.width, ie = s / h.height, F = Math.max(de, ie), A = h.width * F, D = h.height * F, re = (i - A) / 2, ue = (s - D) / 2;
276
+ m.clearRect(0, 0, i, s), m.fillStyle = "transparent", m.fillRect(0, 0, i, s), m.drawImage(h, 0, 0, h.width, h.height, re, ue, A, D), S ? V.toBlob(function(ce) {
277
+ const K = URL.createObjectURL(ce);
278
+ I.href = K, I.click(), URL.revokeObjectURL(K);
279
+ }) : p.value = V.toDataURL("image/png");
280
+ }
281
+ }, _ = () => {
282
+ l(c.value, d.value, !0);
283
+ };
284
+ return (i, s) => {
285
+ const S = Oe, h = We, I = ke, V = me;
286
+ return k(), Ne(V, {
287
+ class: "screen_container",
288
+ width: 240,
289
+ panelTitle: "截图",
290
+ "click-handle": f
291
+ }, {
292
+ default: z(() => [
293
+ v("div", Xe, [
294
+ v("div", Ye, [
295
+ v("img", {
296
+ class: "thumbnail_img",
297
+ src: p.value,
298
+ alt: ""
299
+ }, null, 8, qe)
300
+ ]),
301
+ C(h, {
302
+ modelValue: r.value,
303
+ "onUpdate:modelValue": s[0] || (s[0] = (m) => r.value = m),
304
+ onChange: u
305
+ }, {
306
+ default: z(() => [
307
+ v("div", He, [
308
+ (k(!0), B(Ue, null, ze(e(G), (m) => (k(), B("div", {
309
+ key: m.id,
310
+ class: "period_box"
311
+ }, [
312
+ C(S, {
313
+ label: m.id
314
+ }, {
315
+ default: z(() => [
316
+ N(T(m.name), 1)
317
+ ]),
318
+ _: 2
319
+ }, 1032, ["label"])
320
+ ]))), 128))
321
+ ])
322
+ ]),
323
+ _: 1
324
+ }, 8, ["modelValue"]),
325
+ r.value === 3 ? (k(), B("div", Je, [
326
+ C(I, {
327
+ modelValue: c.value,
328
+ "onUpdate:modelValue": s[1] || (s[1] = (m) => c.value = m),
329
+ placeholder: "请输入长度"
330
+ }, null, 8, ["modelValue"]),
331
+ s[3] || (s[3] = N(" x ")),
332
+ C(I, {
333
+ modelValue: d.value,
334
+ "onUpdate:modelValue": s[2] || (s[2] = (m) => d.value = m),
335
+ placeholder: "请输入宽度"
336
+ }, null, 8, ["modelValue"])
337
+ ])) : Ge("", !0),
338
+ v("div", { class: "footer" }, [
339
+ v("div", {
340
+ class: "btn1",
341
+ onClick: f
342
+ }, " 取消 "),
343
+ v("div", {
344
+ class: "btn2",
345
+ onClick: _
346
+ }, " 保存 ")
347
+ ])
348
+ ])
349
+ ]),
350
+ _: 1
351
+ });
352
+ };
353
+ }
354
+ });
355
+ export {
356
+ ao as default
357
+ };
@@ -1,26 +1,26 @@
1
- import { _ as _e } from "./alert-Byx6QRux.mjs";
2
- import { n as me, T as F, o as f, p as j, O as d, F as pe, t as ke, v as ge, x as fe } from "./index-DUCjdjwm.mjs";
3
- import { E as we } from "./el-input-number-6wp_0Clc.mjs";
4
- import { _ as be } from "./panel.vue_vue_type_style_index_0_lang-DN1hWNk5.mjs";
5
- import { defineComponent as he, ref as u, onMounted as ye, watch as Se, onBeforeUnmount as Ce, openBlock as n, createElementBlock as s, Fragment as $, unref as r, createBlock as Ve, withCtx as z, createElementVNode as t, withDirectives as K, renderList as W, toDisplayString as w, vShow as X, createVNode as v, normalizeClass as Pe, withModifiers as Te, createTextVNode as xe } from "vue";
1
+ import { _ as _e } from "./alert-DQu7d6Ye.mjs";
2
+ import { q as me, T as j, t as f, v as q, O as d, I as pe, y as ke, z as ge, A as fe } from "./index-BuukvE1n.mjs";
3
+ import { E as we } from "./el-input-number-rXbj0ATn.mjs";
4
+ import { _ as be } from "./panel.vue_vue_type_style_index_0_lang-DoWNnmu1.mjs";
5
+ import { defineComponent as he, ref as u, onMounted as ye, watch as Se, onBeforeUnmount as Ce, openBlock as n, createElementBlock as s, Fragment as $, unref as r, createBlock as Ve, withCtx as z, createElementVNode as t, withDirectives as F, renderList as K, toDisplayString as w, vShow as W, createVNode as v, normalizeClass as Pe, withModifiers as Te, createTextVNode as xe } from "vue";
6
6
  import { B as Le } from "./const-B1FlFgEN.mjs";
7
7
  const $e = { class: "section_panel_middle" }, ze = { class: "section_control_button" }, Be = ["src"], Ee = { class: "control_buttons" }, Ie = ["onClick"], Oe = { class: "section_panel_cont" }, De = {
8
8
  key: 0,
9
9
  class: ""
10
- }, Me = ["onClick"], Ae = { class: "cont_item_left" }, Ue = ["src", "onClick"], Ne = { class: "cont_item_right" }, Re = ["src", "onClick"], Fe = ["src", "onClick"], je = ["src", "onClick"], Ke = {
10
+ }, Me = ["onClick"], Ae = { class: "cont_item_left" }, Ue = ["src", "onClick"], Ne = { class: "cont_item_right" }, Re = ["src", "onClick"], je = ["src", "onClick"], qe = ["src", "onClick"], Fe = {
11
11
  key: 1,
12
12
  class: "empty1"
13
- }, We = {
13
+ }, Ke = {
14
14
  key: 1,
15
15
  class: "mobile_section_panel"
16
- }, Xe = { class: "slicing-title-box" }, Ye = { class: "slicing-title-icon" }, Ze = { class: "slicing-content-box" }, qe = { class: "slicing-select-box" }, Ge = { class: "select-item" }, He = { class: "select-item-left" }, Je = ["src"], Qe = ["src"], eo = { class: "select-item-center" }, oo = { class: "item-center-top" }, to = { class: "item-center-bottom" }, io = { class: "select-item" }, no = { class: "select-item-left" }, so = ["src"], lo = ["src"], co = { class: "select-item-center" }, ro = { class: "item-center-top" }, ao = { class: "item-center-bottom" }, uo = { class: "select-item" }, vo = { class: "select-item-left" }, _o = ["src"], mo = ["src"], po = { class: "select-item-center" }, ko = { class: "item-center-top" }, go = { class: "item-center-bottom" }, fo = /* @__PURE__ */ he({
16
+ }, We = { class: "slicing-title-box" }, Xe = { class: "slicing-title-icon" }, Ye = { class: "slicing-content-box" }, Ze = { class: "slicing-select-box" }, Ge = { class: "select-item" }, He = { class: "select-item-left" }, Je = ["src"], Qe = ["src"], eo = { class: "select-item-center" }, oo = { class: "item-center-top" }, to = { class: "item-center-bottom" }, io = { class: "select-item" }, no = { class: "select-item-left" }, so = ["src"], lo = ["src"], co = { class: "select-item-center" }, ro = { class: "item-center-top" }, ao = { class: "item-center-bottom" }, uo = { class: "select-item" }, vo = { class: "select-item-left" }, _o = ["src"], mo = ["src"], po = { class: "select-item-center" }, ko = { class: "item-center-top" }, go = { class: "item-center-bottom" }, fo = /* @__PURE__ */ he({
17
17
  __name: "SectionTool",
18
18
  props: ["componentId"],
19
19
  emits: ["closePanel"],
20
- setup(Y, { emit: Z }) {
21
- const B = me(), E = Y, V = u(0);
20
+ setup(X, { emit: Y }) {
21
+ const B = me(), E = X, V = u(0);
22
22
  ye(() => {
23
- B.setReadyById(E.componentId), F.currentTheme == "blue" ? V.value = 240 : F.currentTheme == "light-gray" && (V.value = 202), document.addEventListener("click", I);
23
+ B.setReadyById(E.componentId), j.currentTheme == "blue" ? V.value = 240 : j.currentTheme == "light-gray" && (V.value = 202), document.addEventListener("click", I);
24
24
  });
25
25
  const I = (e) => {
26
26
  h.value && e.target.id != "controlOperatePanel" && D(!1);
@@ -28,7 +28,7 @@ const $e = { class: "section_panel_middle" }, ze = { class: "section_control_but
28
28
  h.value = e;
29
29
  };
30
30
  let c, y;
31
- const q = Z;
31
+ const Z = Y;
32
32
  Se(
33
33
  () => B.isToolActive(E.componentId),
34
34
  (e) => {
@@ -49,8 +49,8 @@ const $e = { class: "section_panel_middle" }, ze = { class: "section_control_but
49
49
  P = !1;
50
50
  }));
51
51
  };
52
- j.on("BimViewer", M), Ce(() => {
53
- j.off("BimViewer", M), document.removeEventListener("click", I);
52
+ q.on("BimViewer", M), Ce(() => {
53
+ q.off("BimViewer", M), document.removeEventListener("click", I);
54
54
  });
55
55
  const A = () => {
56
56
  P && G();
@@ -87,7 +87,7 @@ const $e = { class: "section_panel_middle" }, ze = { class: "section_control_but
87
87
  break;
88
88
  }
89
89
  }, U = () => {
90
- c.setActive(!1), q("closePanel");
90
+ c.setActive(!1), Z("closePanel");
91
91
  }, H = (e) => {
92
92
  m.value !== e.id && (m.value = e.id, b.value = !1, S(), T(e.id));
93
93
  }, J = (e) => {
@@ -127,10 +127,10 @@ const $e = { class: "section_panel_middle" }, ze = { class: "section_control_but
127
127
  return (e, o) => {
128
128
  const _ = ke, de = be, ue = ge, x = we, ve = _e;
129
129
  return n(), s($, null, [
130
- r(f)("isMobile") ? (n(), s("div", We, [
131
- t("div", Xe, [
130
+ r(f)("isMobile") ? (n(), s("div", Ke, [
131
+ t("div", We, [
132
132
  o[14] || (o[14] = t("div", { class: "slicing-title" }, "剖切", -1)),
133
- t("div", Ye, [
133
+ t("div", Xe, [
134
134
  v(ue, {
135
135
  width: 0.4,
136
136
  "size-type": "rem",
@@ -138,10 +138,10 @@ const $e = { class: "section_panel_middle" }, ze = { class: "section_control_but
138
138
  })
139
139
  ])
140
140
  ]),
141
- t("div", Ze, [
141
+ t("div", Ye, [
142
142
  v(_, null, {
143
143
  default: z(() => [
144
- t("div", qe, [
144
+ t("div", Ze, [
145
145
  t("div", Ge, [
146
146
  t("div", He, [
147
147
  p.value.direction === "x" ? (n(), s("img", {
@@ -253,8 +253,8 @@ const $e = { class: "section_panel_middle" }, ze = { class: "section_control_but
253
253
  src: r(d) + "/bim-viewer/slicing-more.png",
254
254
  onClick: o[0] || (o[0] = (i) => D(!h.value))
255
255
  }, null, 8, Be),
256
- K(t("div", Ee, [
257
- (n(!0), s($, null, W(r(Le), (i) => (n(), s("div", {
256
+ F(t("div", Ee, [
257
+ (n(!0), s($, null, K(r(Le), (i) => (n(), s("div", {
258
258
  key: i.id,
259
259
  class: "operation_button",
260
260
  onClick: (L) => se(i)
@@ -262,7 +262,7 @@ const $e = { class: "section_panel_middle" }, ze = { class: "section_control_but
262
262
  t("span", null, w(i.name), 1)
263
263
  ], 8, Ie))), 128))
264
264
  ], 512), [
265
- [X, h.value]
265
+ [W, h.value]
266
266
  ])
267
267
  ])
268
268
  ]),
@@ -270,7 +270,7 @@ const $e = { class: "section_panel_middle" }, ze = { class: "section_control_but
270
270
  v(_, { height: "360px" }, {
271
271
  default: z(() => [
272
272
  a.value && a.value.length ? (n(), s("div", De, [
273
- (n(!0), s($, null, W(a.value, (i, L) => (n(), s("div", {
273
+ (n(!0), s($, null, K(a.value, (i, L) => (n(), s("div", {
274
274
  key: L,
275
275
  class: Pe(["panel_cont_item", { panel_cont_item_choose: m.value === i.id || b.value }]),
276
276
  onClick: (C) => H(i)
@@ -294,15 +294,15 @@ const $e = { class: "section_panel_middle" }, ze = { class: "section_control_but
294
294
  src: r(d) + "/bim-viewer/right_section_icon.png",
295
295
  alt: "",
296
296
  onClick: (C) => R(i)
297
- }, null, 8, Fe)),
297
+ }, null, 8, je)),
298
298
  t("img", {
299
299
  src: r(d) + "/bim-viewer/section_del_icon.png",
300
300
  alt: "",
301
301
  onClick: (C) => ee(i.id)
302
- }, null, 8, je)
302
+ }, null, 8, qe)
303
303
  ])
304
304
  ], 10, Me))), 128))
305
- ])) : (n(), s("div", Ke, [
305
+ ])) : (n(), s("div", Fe, [
306
306
  v(pe, {
307
307
  title: "暂无数据",
308
308
  type: "model"
@@ -315,12 +315,12 @@ const $e = { class: "section_panel_middle" }, ze = { class: "section_control_but
315
315
  ]),
316
316
  _: 1
317
317
  }, 8, ["width"])),
318
- K(v(ve, {
318
+ F(v(ve, {
319
319
  "click-handle": () => {
320
320
  O.value = !1;
321
321
  }
322
322
  }, null, 8, ["click-handle"]), [
323
- [X, O.value && !r(f)("isMobile")]
323
+ [W, O.value && !r(f)("isMobile")]
324
324
  ])
325
325
  ], 64);
326
326
  };