@xtctwins/tctwins-bimx-engine 0.1.21 → 0.1.23
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.
- package/dist/{AnnotationTool-BvFG1vTX.mjs → AnnotationTool-DojqlWub.mjs} +12 -12
- package/dist/BIMX_Viewer_Lib.es.js +4 -4
- package/dist/BIMX_Viewer_Lib.umd.js +89 -94
- package/dist/CommentTool-CR9lVrzW.mjs +338 -0
- package/dist/HiddenTool-Wi-kOd2H.mjs +58 -0
- package/dist/InspectorTool-DIayiHOO.mjs +625 -0
- package/dist/MeasureTool-CHZ67WhG.mjs +1540 -0
- package/dist/{NavigateTool-CCIb1X4u.mjs → NavigateTool-CQoj_On8.mjs} +7 -7
- package/dist/{RoamTool-B1w0efz8.mjs → RoamTool-C3CV1E9g.mjs} +20 -20
- package/dist/{ScreenShotTool-BviRVFSg.mjs → ScreenShotTool-BIIBp4eQ.mjs} +67 -67
- package/dist/SectionTool-CihpG2Fy.mjs +624 -0
- package/dist/SettingTool-nEoxPwEr.mjs +525 -0
- package/dist/StructureTree-CJH8jkPI.mjs +1427 -0
- package/dist/{debounce-Cg3LHv0T.mjs → debounce-BjnjVRfm.mjs} +13 -13
- package/dist/{el-checkbox-lp8vWAXQ.mjs → el-checkbox-CSuEX00S.mjs} +46 -46
- package/dist/{el-input-Bwqgf3wZ.mjs → el-input-Bm753NUP.mjs} +66 -68
- package/dist/{el-input-number-0OWyX276.mjs → el-input-number-BvvuoubO.mjs} +75 -75
- package/dist/{index-DX-eYsBm.mjs → index-BlDGbvS0.mjs} +2885 -2877
- package/dist/{index-CQ8depiU.mjs → index-BognDb0Q.mjs} +3 -3
- package/dist/{index-CYEu_kT4.mjs → index-CtoOocrY.mjs} +1 -1
- package/dist/{isEqual-Bg-tyY30.mjs → isEqual-BULlB8Co.mjs} +9 -9
- package/dist/panel.vue_vue_type_style_index_0_lang-tTB1oDNs.mjs +97 -0
- package/dist/style.css +1 -1
- package/dist/tallPanel-CmlMVBG1.mjs +49 -0
- package/package.json +2 -2
- package/types/components/utilsComponents/tallPanel.vue.d.ts +41 -0
- package/types/pages/BIMXViewer.vue.d.ts +2 -0
- package/types/services/fileApi/fileManager.d.ts +5 -5
- package/types/store/initConfigs.d.ts +1 -1
- package/types/store/themeManager.d.ts +2 -1
- package/dist/CommentTool-B6ruuuGV.mjs +0 -338
- package/dist/HiddenTool-DW-lRdW5.mjs +0 -58
- package/dist/InspectorTool-Cc288ySp.mjs +0 -515
- package/dist/MeasureTool-DdfM3U_3.mjs +0 -1542
- package/dist/SectionTool-jSjWX32j.mjs +0 -630
- package/dist/SettingTool-CVMZAx2H.mjs +0 -536
- package/dist/StructureTree-4OCdRRPG.mjs +0 -2672
- package/dist/panel.vue_vue_type_style_index_0_scope_true_lang-BfE1I0S9.mjs +0 -82
|
@@ -0,0 +1,624 @@
|
|
|
1
|
+
import { _ as K, z as x, S as j, L as S, K as P, U as we, u as ke, W as Se, P as Ce, X as $e, w as Ie, O as m, n as te, j as Ee, T as J, k as z, l as X, m as Te } from "./index-BlDGbvS0.mjs";
|
|
2
|
+
import { E as Pe } from "./el-input-number-BvvuoubO.mjs";
|
|
3
|
+
import { i as Be } from "./el-input-Bm753NUP.mjs";
|
|
4
|
+
import { _ as Le, a as Ne } from "./panel.vue_vue_type_style_index_0_lang-tTB1oDNs.mjs";
|
|
5
|
+
import { defineComponent as L, renderSlot as A, ref as C, provide as q, inject as Oe, onMounted as oe, unref as s, onBeforeUnmount as Ve, computed as O, openBlock as c, createBlock as ne, mergeProps as ze, withCtx as B, createElementBlock as v, normalizeClass as F, toDisplayString as E, createCommentVNode as G, createTextVNode as ie, watch as se, createElementVNode as t, createVNode as I, Fragment as Z, renderList as Q, pushScopeId as Ae, popScopeId as xe } from "vue";
|
|
6
|
+
import { B as Me } from "./const-CbUmfuHy.mjs";
|
|
7
|
+
const Ue = /* @__PURE__ */ L({
|
|
8
|
+
inheritAttrs: !1
|
|
9
|
+
});
|
|
10
|
+
function De(l, a, d, r, g, p) {
|
|
11
|
+
return A(l.$slots, "default");
|
|
12
|
+
}
|
|
13
|
+
var Re = /* @__PURE__ */ K(Ue, [["render", De], ["__file", "collection.vue"]]);
|
|
14
|
+
const je = /* @__PURE__ */ L({
|
|
15
|
+
name: "ElCollectionItem",
|
|
16
|
+
inheritAttrs: !1
|
|
17
|
+
});
|
|
18
|
+
function Ke(l, a, d, r, g, p) {
|
|
19
|
+
return A(l.$slots, "default");
|
|
20
|
+
}
|
|
21
|
+
var Fe = /* @__PURE__ */ K(je, [["render", Ke], ["__file", "collection-item.vue"]]);
|
|
22
|
+
const He = "data-el-collection-item", We = (l) => {
|
|
23
|
+
const a = `El${l}Collection`, d = `${a}Item`, r = Symbol(a), g = Symbol(d), p = {
|
|
24
|
+
...Re,
|
|
25
|
+
name: a,
|
|
26
|
+
setup() {
|
|
27
|
+
const _ = C(null), b = /* @__PURE__ */ new Map();
|
|
28
|
+
q(r, {
|
|
29
|
+
itemMap: b,
|
|
30
|
+
getItems: () => {
|
|
31
|
+
const h = s(_);
|
|
32
|
+
if (!h)
|
|
33
|
+
return [];
|
|
34
|
+
const f = Array.from(h.querySelectorAll(`[${He}]`));
|
|
35
|
+
return [...b.values()].sort((w, k) => f.indexOf(w.ref) - f.indexOf(k.ref));
|
|
36
|
+
},
|
|
37
|
+
collectionRef: _
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}, y = {
|
|
41
|
+
...Fe,
|
|
42
|
+
name: d,
|
|
43
|
+
setup(_, { attrs: b }) {
|
|
44
|
+
const $ = C(null), h = Oe(r, void 0);
|
|
45
|
+
q(g, {
|
|
46
|
+
collectionItemRef: $
|
|
47
|
+
}), oe(() => {
|
|
48
|
+
const f = s($);
|
|
49
|
+
f && h.itemMap.set(f, {
|
|
50
|
+
ref: f,
|
|
51
|
+
...b
|
|
52
|
+
});
|
|
53
|
+
}), Ve(() => {
|
|
54
|
+
const f = s($);
|
|
55
|
+
h.itemMap.delete(f);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
return {
|
|
60
|
+
COLLECTION_INJECTION_KEY: r,
|
|
61
|
+
COLLECTION_ITEM_INJECTION_KEY: g,
|
|
62
|
+
ElCollection: p,
|
|
63
|
+
ElCollectionItem: y
|
|
64
|
+
};
|
|
65
|
+
}, R = x({
|
|
66
|
+
trigger: j.trigger,
|
|
67
|
+
effect: {
|
|
68
|
+
...S.effect,
|
|
69
|
+
default: "light"
|
|
70
|
+
},
|
|
71
|
+
type: {
|
|
72
|
+
type: P(String)
|
|
73
|
+
},
|
|
74
|
+
placement: {
|
|
75
|
+
type: P(String),
|
|
76
|
+
default: "bottom"
|
|
77
|
+
},
|
|
78
|
+
popperOptions: {
|
|
79
|
+
type: P(Object),
|
|
80
|
+
default: () => ({})
|
|
81
|
+
},
|
|
82
|
+
id: String,
|
|
83
|
+
size: {
|
|
84
|
+
type: String,
|
|
85
|
+
default: ""
|
|
86
|
+
},
|
|
87
|
+
splitButton: Boolean,
|
|
88
|
+
hideOnClick: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: !0
|
|
91
|
+
},
|
|
92
|
+
loop: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
default: !0
|
|
95
|
+
},
|
|
96
|
+
showTimeout: {
|
|
97
|
+
type: Number,
|
|
98
|
+
default: 150
|
|
99
|
+
},
|
|
100
|
+
hideTimeout: {
|
|
101
|
+
type: Number,
|
|
102
|
+
default: 150
|
|
103
|
+
},
|
|
104
|
+
tabindex: {
|
|
105
|
+
type: P([Number, String]),
|
|
106
|
+
default: 0
|
|
107
|
+
},
|
|
108
|
+
maxHeight: {
|
|
109
|
+
type: P([Number, String]),
|
|
110
|
+
default: ""
|
|
111
|
+
},
|
|
112
|
+
popperClass: {
|
|
113
|
+
type: String,
|
|
114
|
+
default: ""
|
|
115
|
+
},
|
|
116
|
+
disabled: Boolean,
|
|
117
|
+
role: {
|
|
118
|
+
type: String,
|
|
119
|
+
default: "menu"
|
|
120
|
+
},
|
|
121
|
+
buttonProps: {
|
|
122
|
+
type: P(Object)
|
|
123
|
+
},
|
|
124
|
+
teleported: S.teleported
|
|
125
|
+
});
|
|
126
|
+
x({
|
|
127
|
+
command: {
|
|
128
|
+
type: [Object, String, Number],
|
|
129
|
+
default: () => ({})
|
|
130
|
+
},
|
|
131
|
+
disabled: Boolean,
|
|
132
|
+
divided: Boolean,
|
|
133
|
+
textValue: String,
|
|
134
|
+
icon: {
|
|
135
|
+
type: Be
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
x({
|
|
139
|
+
onKeydown: { type: P(Function) }
|
|
140
|
+
});
|
|
141
|
+
We("Dropdown");
|
|
142
|
+
const Ye = x({
|
|
143
|
+
trigger: j.trigger,
|
|
144
|
+
placement: R.placement,
|
|
145
|
+
disabled: j.disabled,
|
|
146
|
+
visible: S.visible,
|
|
147
|
+
transition: S.transition,
|
|
148
|
+
popperOptions: R.popperOptions,
|
|
149
|
+
tabindex: R.tabindex,
|
|
150
|
+
content: S.content,
|
|
151
|
+
popperStyle: S.popperStyle,
|
|
152
|
+
popperClass: S.popperClass,
|
|
153
|
+
enterable: {
|
|
154
|
+
...S.enterable,
|
|
155
|
+
default: !0
|
|
156
|
+
},
|
|
157
|
+
effect: {
|
|
158
|
+
...S.effect,
|
|
159
|
+
default: "light"
|
|
160
|
+
},
|
|
161
|
+
teleported: S.teleported,
|
|
162
|
+
title: String,
|
|
163
|
+
width: {
|
|
164
|
+
type: [String, Number],
|
|
165
|
+
default: 150
|
|
166
|
+
},
|
|
167
|
+
offset: {
|
|
168
|
+
type: Number,
|
|
169
|
+
default: void 0
|
|
170
|
+
},
|
|
171
|
+
showAfter: {
|
|
172
|
+
type: Number,
|
|
173
|
+
default: 0
|
|
174
|
+
},
|
|
175
|
+
hideAfter: {
|
|
176
|
+
type: Number,
|
|
177
|
+
default: 200
|
|
178
|
+
},
|
|
179
|
+
autoClose: {
|
|
180
|
+
type: Number,
|
|
181
|
+
default: 0
|
|
182
|
+
},
|
|
183
|
+
showArrow: {
|
|
184
|
+
type: Boolean,
|
|
185
|
+
default: !0
|
|
186
|
+
},
|
|
187
|
+
persistent: {
|
|
188
|
+
type: Boolean,
|
|
189
|
+
default: !0
|
|
190
|
+
},
|
|
191
|
+
"onUpdate:visible": {
|
|
192
|
+
type: Function
|
|
193
|
+
}
|
|
194
|
+
}), Je = {
|
|
195
|
+
"update:visible": (l) => we(l),
|
|
196
|
+
"before-enter": () => !0,
|
|
197
|
+
"before-leave": () => !0,
|
|
198
|
+
"after-enter": () => !0,
|
|
199
|
+
"after-leave": () => !0
|
|
200
|
+
}, Xe = "onUpdate:visible", qe = L({
|
|
201
|
+
name: "ElPopover"
|
|
202
|
+
}), Ge = /* @__PURE__ */ L({
|
|
203
|
+
...qe,
|
|
204
|
+
props: Ye,
|
|
205
|
+
emits: Je,
|
|
206
|
+
setup(l, { expose: a, emit: d }) {
|
|
207
|
+
const r = l, g = O(() => r[Xe]), p = ke("popover"), y = C(), _ = O(() => {
|
|
208
|
+
var o;
|
|
209
|
+
return (o = s(y)) == null ? void 0 : o.popperRef;
|
|
210
|
+
}), b = O(() => [
|
|
211
|
+
{
|
|
212
|
+
width: Se(r.width)
|
|
213
|
+
},
|
|
214
|
+
r.popperStyle
|
|
215
|
+
]), $ = O(() => [p.b(), r.popperClass, { [p.m("plain")]: !!r.content }]), h = O(() => r.transition === `${p.namespace.value}-fade-in-linear`), f = () => {
|
|
216
|
+
var o;
|
|
217
|
+
(o = y.value) == null || o.hide();
|
|
218
|
+
}, u = () => {
|
|
219
|
+
d("before-enter");
|
|
220
|
+
}, w = () => {
|
|
221
|
+
d("before-leave");
|
|
222
|
+
}, k = () => {
|
|
223
|
+
d("after-enter");
|
|
224
|
+
}, T = () => {
|
|
225
|
+
d("update:visible", !1), d("after-leave");
|
|
226
|
+
};
|
|
227
|
+
return a({
|
|
228
|
+
popperRef: _,
|
|
229
|
+
hide: f
|
|
230
|
+
}), (o, M) => (c(), ne(s(Ce), ze({
|
|
231
|
+
ref_key: "tooltipRef",
|
|
232
|
+
ref: y
|
|
233
|
+
}, o.$attrs, {
|
|
234
|
+
trigger: o.trigger,
|
|
235
|
+
placement: o.placement,
|
|
236
|
+
disabled: o.disabled,
|
|
237
|
+
visible: o.visible,
|
|
238
|
+
transition: o.transition,
|
|
239
|
+
"popper-options": o.popperOptions,
|
|
240
|
+
tabindex: o.tabindex,
|
|
241
|
+
content: o.content,
|
|
242
|
+
offset: o.offset,
|
|
243
|
+
"show-after": o.showAfter,
|
|
244
|
+
"hide-after": o.hideAfter,
|
|
245
|
+
"auto-close": o.autoClose,
|
|
246
|
+
"show-arrow": o.showArrow,
|
|
247
|
+
"aria-label": o.title,
|
|
248
|
+
effect: o.effect,
|
|
249
|
+
enterable: o.enterable,
|
|
250
|
+
"popper-class": s($),
|
|
251
|
+
"popper-style": s(b),
|
|
252
|
+
teleported: o.teleported,
|
|
253
|
+
persistent: o.persistent,
|
|
254
|
+
"gpu-acceleration": s(h),
|
|
255
|
+
"onUpdate:visible": s(g),
|
|
256
|
+
onBeforeShow: u,
|
|
257
|
+
onBeforeHide: w,
|
|
258
|
+
onShow: k,
|
|
259
|
+
onHide: T
|
|
260
|
+
}), {
|
|
261
|
+
content: B(() => [
|
|
262
|
+
o.title ? (c(), v("div", {
|
|
263
|
+
key: 0,
|
|
264
|
+
class: F(s(p).e("title")),
|
|
265
|
+
role: "title"
|
|
266
|
+
}, E(o.title), 3)) : G("v-if", !0),
|
|
267
|
+
A(o.$slots, "default", {}, () => [
|
|
268
|
+
ie(E(o.content), 1)
|
|
269
|
+
])
|
|
270
|
+
]),
|
|
271
|
+
default: B(() => [
|
|
272
|
+
o.$slots.reference ? A(o.$slots, "reference", { key: 0 }) : G("v-if", !0)
|
|
273
|
+
]),
|
|
274
|
+
_: 3
|
|
275
|
+
}, 16, ["trigger", "placement", "disabled", "visible", "transition", "popper-options", "tabindex", "content", "offset", "show-after", "hide-after", "auto-close", "show-arrow", "aria-label", "effect", "enterable", "popper-class", "popper-style", "teleported", "persistent", "gpu-acceleration", "onUpdate:visible"]));
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
var Ze = /* @__PURE__ */ K(Ge, [["__file", "popover.vue"]]);
|
|
279
|
+
const ee = (l, a) => {
|
|
280
|
+
const d = a.arg || a.value, r = d == null ? void 0 : d.popperRef;
|
|
281
|
+
r && (r.triggerRef = l);
|
|
282
|
+
};
|
|
283
|
+
var Qe = {
|
|
284
|
+
mounted(l, a) {
|
|
285
|
+
ee(l, a);
|
|
286
|
+
},
|
|
287
|
+
updated(l, a) {
|
|
288
|
+
ee(l, a);
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
const et = "popover", tt = $e(Qe, et), ot = Ie(Ze, {
|
|
292
|
+
directive: tt
|
|
293
|
+
}), nt = { class: "empty" }, it = ["src"], st = { class: "title" }, lt = /* @__PURE__ */ L({
|
|
294
|
+
__name: "emptyPage",
|
|
295
|
+
props: {
|
|
296
|
+
title: String,
|
|
297
|
+
type: String
|
|
298
|
+
},
|
|
299
|
+
setup(l) {
|
|
300
|
+
const a = l, d = C("这里空空的,快去上传文件吧~");
|
|
301
|
+
return se(a, (r) => {
|
|
302
|
+
d.value = r.title || "这里空空的,快去上传文件吧~";
|
|
303
|
+
}), (r, g) => (c(), v("div", nt, [
|
|
304
|
+
t("img", {
|
|
305
|
+
class: F(["img1", { img1: a.type === "model" }]),
|
|
306
|
+
src: s(m) + "/bimkk-app/pinapp-empty-box.png",
|
|
307
|
+
alt: ""
|
|
308
|
+
}, null, 10, it),
|
|
309
|
+
t("div", st, E(l.title), 1)
|
|
310
|
+
]));
|
|
311
|
+
}
|
|
312
|
+
}), rt = /* @__PURE__ */ te(lt, [["__scopeId", "data-v-3f1f6a46"]]), V = (l) => (Ae("data-v-036f78ea"), l = l(), xe(), l), ct = { class: "section_panel_middle" }, at = /* @__PURE__ */ V(() => /* @__PURE__ */ t("div", { class: "section_middle_title" }, "全部剖切", -1)), dt = ["src"], pt = { class: "popover-class" }, ut = ["onClick"], vt = { class: "section_panel_cont" }, _t = ["onClick"], ft = { class: "cont_item_left" }, mt = ["src", "onClick"], gt = ["src", "onClick"], bt = { class: "cont_item_right" }, ht = ["src", "onClick"], yt = ["src", "onClick"], wt = ["src", "onClick"], kt = {
|
|
313
|
+
key: 1,
|
|
314
|
+
class: "empty1"
|
|
315
|
+
}, St = {
|
|
316
|
+
key: 1,
|
|
317
|
+
class: "mobile_section_panel"
|
|
318
|
+
}, Ct = { class: "slicing-title-box" }, $t = /* @__PURE__ */ V(() => /* @__PURE__ */ t("div", { class: "slicing-title" }, "剖切", -1)), It = { class: "slicing-title-icon" }, Et = { class: "slicing-content-box" }, Tt = { class: "slicing-select-box" }, Pt = { class: "select-item" }, Bt = { class: "select-item-left" }, Lt = ["src"], Nt = ["src"], Ot = { class: "select-item-center" }, Vt = { class: "item-center-top" }, zt = /* @__PURE__ */ V(() => /* @__PURE__ */ t("div", null, "X轴", -1)), At = { class: "item-center-bottom" }, xt = { class: "select-item" }, Mt = { class: "select-item-left" }, Ut = ["src"], Dt = ["src"], Rt = { class: "select-item-center" }, jt = { class: "item-center-top" }, Kt = /* @__PURE__ */ V(() => /* @__PURE__ */ t("div", null, "Y轴", -1)), Ft = { class: "item-center-bottom" }, Ht = { class: "select-item" }, Wt = { class: "select-item-left" }, Yt = ["src"], Jt = ["src"], Xt = { class: "select-item-center" }, qt = { class: "item-center-top" }, Gt = /* @__PURE__ */ V(() => /* @__PURE__ */ t("div", null, "Z轴", -1)), Zt = { class: "item-center-bottom" }, Qt = /* @__PURE__ */ L({
|
|
319
|
+
__name: "SectionTool",
|
|
320
|
+
props: ["componentId"],
|
|
321
|
+
emits: ["closePanel"],
|
|
322
|
+
setup(l, { emit: a }) {
|
|
323
|
+
const d = Ee(), r = l, g = C(0);
|
|
324
|
+
oe(() => {
|
|
325
|
+
d.setReadyById(r.componentId), J.currentTheme == "blue" ? g.value = 240 : J.currentTheme == "light-gray" && (g.value = 202);
|
|
326
|
+
});
|
|
327
|
+
const p = C(), y = C();
|
|
328
|
+
let _, b;
|
|
329
|
+
const $ = a;
|
|
330
|
+
se(
|
|
331
|
+
() => d.isToolActive(r.componentId),
|
|
332
|
+
(e) => {
|
|
333
|
+
e ? z("isMobile") && (T(w.value.direction), document.addEventListener("touchmove", f)) : document.removeEventListener("touchmove", f);
|
|
334
|
+
}
|
|
335
|
+
);
|
|
336
|
+
let h = !1;
|
|
337
|
+
X.on("BimViewer", () => {
|
|
338
|
+
_ = window.BimViewer.sectionTool, b = window.BimViewer.eventTrigger, z("isMobile") || b.on("createSection", (e) => {
|
|
339
|
+
p.value = Object.keys(ve()).map((n) => ({
|
|
340
|
+
id: n,
|
|
341
|
+
isLook: !0,
|
|
342
|
+
directionLeft: !0
|
|
343
|
+
})), y.value = e.id;
|
|
344
|
+
}), z("isMobile") && (b.on("touchPlaneStart", () => {
|
|
345
|
+
h = !0;
|
|
346
|
+
}), b.on("touchPlaneEnd", () => {
|
|
347
|
+
h = !1;
|
|
348
|
+
}));
|
|
349
|
+
});
|
|
350
|
+
const f = () => {
|
|
351
|
+
h && o();
|
|
352
|
+
}, u = C({
|
|
353
|
+
x: 0,
|
|
354
|
+
y: 0,
|
|
355
|
+
z: 0
|
|
356
|
+
}), w = C({
|
|
357
|
+
direction: "x"
|
|
358
|
+
}), k = (e) => {
|
|
359
|
+
T(e);
|
|
360
|
+
}, T = (e) => {
|
|
361
|
+
switch (w.value.direction = e, e) {
|
|
362
|
+
case "x":
|
|
363
|
+
window.BimViewer.sectionTool.sectionDirection = 0, window.BimViewer.sectionTool.setControlPos(100 - u.value.x);
|
|
364
|
+
break;
|
|
365
|
+
case "y":
|
|
366
|
+
window.BimViewer.sectionTool.sectionDirection = 1, window.BimViewer.sectionTool.setControlPos(u.value.y);
|
|
367
|
+
break;
|
|
368
|
+
case "z":
|
|
369
|
+
window.BimViewer.sectionTool.sectionDirection = 2, window.BimViewer.sectionTool.setControlPos(100 - u.value.z);
|
|
370
|
+
break;
|
|
371
|
+
}
|
|
372
|
+
}, o = () => {
|
|
373
|
+
switch (w.value.direction) {
|
|
374
|
+
case "x":
|
|
375
|
+
u.value.x = 100 - window.BimViewer.sectionTool.getControlPos();
|
|
376
|
+
break;
|
|
377
|
+
case "y":
|
|
378
|
+
u.value.y = window.BimViewer.sectionTool.getControlPos();
|
|
379
|
+
break;
|
|
380
|
+
case "z":
|
|
381
|
+
u.value.z = 100 - window.BimViewer.sectionTool.getControlPos();
|
|
382
|
+
break;
|
|
383
|
+
}
|
|
384
|
+
}, M = () => {
|
|
385
|
+
$("closePanel"), p.value = [];
|
|
386
|
+
};
|
|
387
|
+
X.on("closeAll", (e) => {
|
|
388
|
+
p.value = [];
|
|
389
|
+
});
|
|
390
|
+
const le = (e) => {
|
|
391
|
+
_.showSectionPlane(e);
|
|
392
|
+
}, re = (e) => {
|
|
393
|
+
y.value !== e.id && (y.value = e.id, le(e.id));
|
|
394
|
+
}, H = (e) => {
|
|
395
|
+
e.isLook = !e.isLook, e.isLook ? ae(e.id) : de(e.id);
|
|
396
|
+
}, W = (e) => {
|
|
397
|
+
e.directionLeft = !e.directionLeft, ue(e.id);
|
|
398
|
+
}, ce = (e) => {
|
|
399
|
+
_.destroySectionPlane(e), p.value = p.value.filter((n) => n.id !== e);
|
|
400
|
+
}, ae = (e) => {
|
|
401
|
+
_.setSectionEnable(e);
|
|
402
|
+
}, de = (e) => {
|
|
403
|
+
_.setSectionDisable(e);
|
|
404
|
+
}, pe = (e) => {
|
|
405
|
+
e.id === 0 ? (_e(), p.value = []) : e.id === 1 ? fe() : e.id === 2 ? me() : e.id === 4 && ge();
|
|
406
|
+
}, ue = (e) => {
|
|
407
|
+
_.flipSection(e);
|
|
408
|
+
}, ve = () => _.getSectionPlanes(), _e = () => {
|
|
409
|
+
_.clear();
|
|
410
|
+
}, fe = () => {
|
|
411
|
+
_.flipSections();
|
|
412
|
+
}, me = () => {
|
|
413
|
+
_.enableSections();
|
|
414
|
+
}, ge = () => {
|
|
415
|
+
_.disableSections();
|
|
416
|
+
};
|
|
417
|
+
return (e, n) => {
|
|
418
|
+
const be = ot, Y = Te, he = Le, ye = Ne, U = Pe;
|
|
419
|
+
return s(z)("isMobile") ? (c(), v("div", St, [
|
|
420
|
+
t("div", Ct, [
|
|
421
|
+
$t,
|
|
422
|
+
t("div", It, [
|
|
423
|
+
I(ye, { "click-handle": M })
|
|
424
|
+
])
|
|
425
|
+
]),
|
|
426
|
+
t("div", Et, [
|
|
427
|
+
I(Y, null, {
|
|
428
|
+
default: B(() => [
|
|
429
|
+
t("div", Tt, [
|
|
430
|
+
t("div", Pt, [
|
|
431
|
+
t("div", Bt, [
|
|
432
|
+
w.value.direction === "x" ? (c(), v("img", {
|
|
433
|
+
key: 0,
|
|
434
|
+
src: s(m) + "/bim-viewer/section_look_icon.png",
|
|
435
|
+
alt: "",
|
|
436
|
+
onClick: n[0] || (n[0] = (i) => k("x"))
|
|
437
|
+
}, null, 8, Lt)) : (c(), v("img", {
|
|
438
|
+
key: 1,
|
|
439
|
+
src: s(m) + "/bim-viewer/section_unlook_icon.png",
|
|
440
|
+
alt: "",
|
|
441
|
+
onClick: n[1] || (n[1] = (i) => k("x"))
|
|
442
|
+
}, null, 8, Nt))
|
|
443
|
+
]),
|
|
444
|
+
t("div", Ot, [
|
|
445
|
+
t("div", Vt, [
|
|
446
|
+
zt,
|
|
447
|
+
t("div", null, E(u.value.x) + " %", 1)
|
|
448
|
+
]),
|
|
449
|
+
t("div", At, [
|
|
450
|
+
I(U, {
|
|
451
|
+
modelValue: u.value.x,
|
|
452
|
+
"onUpdate:modelValue": n[2] || (n[2] = (i) => u.value.x = i),
|
|
453
|
+
size: "large",
|
|
454
|
+
"show-tooltip": !1,
|
|
455
|
+
onInput: n[3] || (n[3] = (i) => T("x"))
|
|
456
|
+
}, null, 8, ["modelValue"])
|
|
457
|
+
])
|
|
458
|
+
])
|
|
459
|
+
]),
|
|
460
|
+
t("div", xt, [
|
|
461
|
+
t("div", Mt, [
|
|
462
|
+
w.value.direction === "y" ? (c(), v("img", {
|
|
463
|
+
key: 0,
|
|
464
|
+
src: s(m) + "/bim-viewer/section_look_icon.png",
|
|
465
|
+
alt: "",
|
|
466
|
+
onClick: n[4] || (n[4] = (i) => k("y"))
|
|
467
|
+
}, null, 8, Ut)) : (c(), v("img", {
|
|
468
|
+
key: 1,
|
|
469
|
+
src: s(m) + "/bim-viewer/section_unlook_icon.png",
|
|
470
|
+
alt: "",
|
|
471
|
+
onClick: n[5] || (n[5] = (i) => k("y"))
|
|
472
|
+
}, null, 8, Dt))
|
|
473
|
+
]),
|
|
474
|
+
t("div", Rt, [
|
|
475
|
+
t("div", jt, [
|
|
476
|
+
Kt,
|
|
477
|
+
t("div", null, E(u.value.y) + " %", 1)
|
|
478
|
+
]),
|
|
479
|
+
t("div", Ft, [
|
|
480
|
+
I(U, {
|
|
481
|
+
modelValue: u.value.y,
|
|
482
|
+
"onUpdate:modelValue": n[6] || (n[6] = (i) => u.value.y = i),
|
|
483
|
+
size: "large",
|
|
484
|
+
"show-tooltip": !1,
|
|
485
|
+
onInput: n[7] || (n[7] = (i) => T("y"))
|
|
486
|
+
}, null, 8, ["modelValue"])
|
|
487
|
+
])
|
|
488
|
+
])
|
|
489
|
+
]),
|
|
490
|
+
t("div", Ht, [
|
|
491
|
+
t("div", Wt, [
|
|
492
|
+
w.value.direction === "z" ? (c(), v("img", {
|
|
493
|
+
key: 0,
|
|
494
|
+
src: s(m) + "/bim-viewer/section_look_icon.png",
|
|
495
|
+
alt: "",
|
|
496
|
+
onClick: n[8] || (n[8] = (i) => k("z"))
|
|
497
|
+
}, null, 8, Yt)) : (c(), v("img", {
|
|
498
|
+
key: 1,
|
|
499
|
+
src: s(m) + "/bim-viewer/section_unlook_icon.png",
|
|
500
|
+
alt: "",
|
|
501
|
+
onClick: n[9] || (n[9] = (i) => k("z"))
|
|
502
|
+
}, null, 8, Jt))
|
|
503
|
+
]),
|
|
504
|
+
t("div", Xt, [
|
|
505
|
+
t("div", qt, [
|
|
506
|
+
Gt,
|
|
507
|
+
t("div", null, E(u.value.z) + " %", 1)
|
|
508
|
+
]),
|
|
509
|
+
t("div", Zt, [
|
|
510
|
+
I(U, {
|
|
511
|
+
modelValue: u.value.z,
|
|
512
|
+
"onUpdate:modelValue": n[10] || (n[10] = (i) => u.value.z = i),
|
|
513
|
+
size: "large",
|
|
514
|
+
"show-tooltip": !1,
|
|
515
|
+
onInput: n[11] || (n[11] = (i) => T("z"))
|
|
516
|
+
}, null, 8, ["modelValue"])
|
|
517
|
+
])
|
|
518
|
+
])
|
|
519
|
+
])
|
|
520
|
+
])
|
|
521
|
+
]),
|
|
522
|
+
_: 1
|
|
523
|
+
})
|
|
524
|
+
])
|
|
525
|
+
])) : (c(), ne(he, {
|
|
526
|
+
key: 0,
|
|
527
|
+
class: "section_panel",
|
|
528
|
+
width: g.value,
|
|
529
|
+
panelTitle: "剖切",
|
|
530
|
+
"click-handle": M
|
|
531
|
+
}, {
|
|
532
|
+
default: B(() => [
|
|
533
|
+
t("div", ct, [
|
|
534
|
+
at,
|
|
535
|
+
t("div", null, [
|
|
536
|
+
I(be, {
|
|
537
|
+
"popper-class": "popover-wrapper",
|
|
538
|
+
placement: "bottom",
|
|
539
|
+
trigger: "hover",
|
|
540
|
+
"popper-style": `\r
|
|
541
|
+
inset: 290px 20px auto auto;\r
|
|
542
|
+
z-index:99999;\r
|
|
543
|
+
width: 120px;\r
|
|
544
|
+
text-align:center;\r
|
|
545
|
+
border-radius: 10px;\r
|
|
546
|
+
`
|
|
547
|
+
}, {
|
|
548
|
+
reference: B(() => [
|
|
549
|
+
t("img", {
|
|
550
|
+
src: s(m) + "/bim-viewer/slicing-more.png"
|
|
551
|
+
}, null, 8, dt)
|
|
552
|
+
]),
|
|
553
|
+
default: B(() => [
|
|
554
|
+
t("div", pt, [
|
|
555
|
+
(c(!0), v(Z, null, Q(s(Me), (i) => (c(), v("div", {
|
|
556
|
+
key: i.id,
|
|
557
|
+
class: "bulk-operation",
|
|
558
|
+
onClick: (D) => pe(i)
|
|
559
|
+
}, E(i.name), 9, ut))), 128))
|
|
560
|
+
])
|
|
561
|
+
]),
|
|
562
|
+
_: 1
|
|
563
|
+
})
|
|
564
|
+
])
|
|
565
|
+
]),
|
|
566
|
+
t("div", vt, [
|
|
567
|
+
I(Y, { height: "360px" }, {
|
|
568
|
+
default: B(() => [
|
|
569
|
+
p.value && p.value.length ? (c(!0), v(Z, { key: 0 }, Q(p.value, (i, D) => (c(), v("div", {
|
|
570
|
+
key: D,
|
|
571
|
+
class: F(["panel_cont_item", { panel_cont_item_choose: y.value === i.id }]),
|
|
572
|
+
onClick: (N) => re(i)
|
|
573
|
+
}, [
|
|
574
|
+
t("div", ft, [
|
|
575
|
+
i.isLook ? (c(), v("img", {
|
|
576
|
+
key: 1,
|
|
577
|
+
src: s(m) + "/bim-viewer/section_unlook_icon.png",
|
|
578
|
+
alt: "",
|
|
579
|
+
onClick: (N) => H(i)
|
|
580
|
+
}, null, 8, gt)) : (c(), v("img", {
|
|
581
|
+
key: 0,
|
|
582
|
+
src: s(m) + "/bim-viewer/section_look_icon.png",
|
|
583
|
+
alt: "",
|
|
584
|
+
onClick: (N) => H(i)
|
|
585
|
+
}, null, 8, mt)),
|
|
586
|
+
ie(" 剖切面#" + E(D + 1), 1)
|
|
587
|
+
]),
|
|
588
|
+
t("div", bt, [
|
|
589
|
+
i.directionLeft ? (c(), v("img", {
|
|
590
|
+
key: 0,
|
|
591
|
+
src: s(m) + "/bim-viewer/left_section_icon.png",
|
|
592
|
+
alt: "",
|
|
593
|
+
onClick: (N) => W(i)
|
|
594
|
+
}, null, 8, ht)) : (c(), v("img", {
|
|
595
|
+
key: 1,
|
|
596
|
+
src: s(m) + "/bim-viewer/right_section_icon.png",
|
|
597
|
+
alt: "",
|
|
598
|
+
onClick: (N) => W(i)
|
|
599
|
+
}, null, 8, yt)),
|
|
600
|
+
t("img", {
|
|
601
|
+
src: s(m) + "/bim-viewer/section_del_icon.png",
|
|
602
|
+
alt: "",
|
|
603
|
+
onClick: (N) => ce(i.id)
|
|
604
|
+
}, null, 8, wt)
|
|
605
|
+
])
|
|
606
|
+
], 10, _t))), 128)) : (c(), v("div", kt, [
|
|
607
|
+
I(rt, {
|
|
608
|
+
title: "暂无剖切,快去添加~",
|
|
609
|
+
type: "model"
|
|
610
|
+
})
|
|
611
|
+
]))
|
|
612
|
+
]),
|
|
613
|
+
_: 1
|
|
614
|
+
})
|
|
615
|
+
])
|
|
616
|
+
]),
|
|
617
|
+
_: 1
|
|
618
|
+
}, 8, ["width"]));
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
}), lo = /* @__PURE__ */ te(Qt, [["__scopeId", "data-v-036f78ea"]]);
|
|
622
|
+
export {
|
|
623
|
+
lo as default
|
|
624
|
+
};
|