@xtctwins/tctwins-industry-engine 0.0.9 → 0.0.11
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/README.md +3 -3
- package/dist/{AnnotationTool-Dzd5rcwa.mjs → AnnotationTool-BZlQ0NIM.mjs} +14 -14
- package/dist/{BCFTool-kLs0Y5n5.mjs → BCFTool-DAqDUYS-.mjs} +5269 -5269
- package/dist/{CommentTool-BFDzk_5a.mjs → CommentTool-BwHOJoFe.mjs} +28 -28
- package/dist/Industry_Viewer_Lib.es.js +3 -3
- package/dist/Industry_Viewer_Lib.umd.js +144 -152
- package/dist/{InspectorTool-BOeo7StN.mjs → InspectorTool-BK5pX2nZ.mjs} +31 -31
- package/dist/{MeasureTool-qO_ci86K.mjs → MeasureTool-D92Tyu14.mjs} +24 -24
- package/dist/{MouseTool-CLryyMPf.mjs → MouseTool-Dpl4JLyb.mjs} +20 -20
- package/dist/{NavigateTool-BkwZL4ng.mjs → NavigateTool-B5ySsqph.mjs} +6 -6
- package/dist/{RoamTool-DyL44JV3.mjs → RoamTool-Nk4hYPJB.mjs} +12 -12
- package/dist/ScreenShotTool-D1cS2DkF.mjs +445 -0
- package/dist/{SectionTool-BG8pmY3A.mjs → SectionTool-D3885F5s.mjs} +46 -46
- package/dist/SettingTool-BI_soRCO.mjs +770 -0
- package/dist/StructureTree-CCWwAbnr.mjs +1824 -0
- package/dist/{XRayTool-DQeoOCKy.mjs → XRayTool-IRgKMGU8.mjs} +13 -13
- package/dist/{alert-D1vSywdn.mjs → alert-x4uA_EPv.mjs} +5 -5
- package/dist/el-checkbox-_VjUMARt.mjs +544 -0
- package/dist/el-input-number-Chi40nla.mjs +1028 -0
- package/dist/{index-DROkX_fP.mjs → index-CaiiH-9N.mjs} +37845 -35391
- package/dist/{panel.vue_vue_type_style_index_0_lang-Ce406nTf.mjs → panel.vue_vue_type_style_index_0_lang-D3swRKXl.mjs} +6 -6
- package/dist/style.css +1 -1
- package/dist/{tallPanel-CMZIMI6R.mjs → tallPanel-eXWPdhmU.mjs} +14 -14
- package/package.json +66 -65
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +2652 -1668
- package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +264 -36
- package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +264 -36
- package/dist/ScreenShotTool-cho_m-3z.mjs +0 -357
- package/dist/SettingTool-BgBA9v6q.mjs +0 -691
- package/dist/StructureTree-BRY3gEgI.mjs +0 -1591
- package/dist/el-checkbox-BCef2DnV.mjs +0 -460
- package/dist/el-input-number-33CYHG2x.mjs +0 -858
- package/dist/index.html +0 -17
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
import { _ as _e } from "./panel.vue_vue_type_style_index_0_lang-D3swRKXl.mjs";
|
|
2
|
+
import { j as K, L as W, d as X, b as P, M as G, U as L, P as H, l as Y, a as Se, Q as he, R as ke, _ as U, u as x, S as Re, t as q, W as Ve, X as Ee, Y as Ce, x as Ie, n as Be, Z as we, $ as Q, w as Pe, z as $e, C as ze } from "./index-CaiiH-9N.mjs";
|
|
3
|
+
import { ref as E, inject as Ne, computed as h, defineComponent as $, createElementBlock as C, openBlock as V, normalizeClass as R, unref as e, createElementVNode as _, withDirectives as Z, withModifiers as B, isRef as J, vModelRadio as ee, renderSlot as T, createTextVNode as w, toDisplayString as D, nextTick as oe, normalizeStyle as Ge, onMounted as ae, provide as Le, reactive as Ue, toRefs as xe, watch as le, Fragment as te, renderList as ne, createBlock as se, resolveDynamicComponent as Te, mergeProps as De, withCtx as z, createVNode as I, createCommentVNode as Ae } from "vue";
|
|
4
|
+
import { a as N } from "./const-DeViLYl5.mjs";
|
|
5
|
+
const re = P({
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: [String, Number, Boolean],
|
|
8
|
+
default: void 0
|
|
9
|
+
},
|
|
10
|
+
size: H,
|
|
11
|
+
disabled: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: void 0
|
|
14
|
+
},
|
|
15
|
+
label: {
|
|
16
|
+
type: [String, Number, Boolean],
|
|
17
|
+
default: void 0
|
|
18
|
+
},
|
|
19
|
+
value: {
|
|
20
|
+
type: [String, Number, Boolean],
|
|
21
|
+
default: void 0
|
|
22
|
+
},
|
|
23
|
+
name: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: void 0
|
|
26
|
+
}
|
|
27
|
+
}), Fe = P({
|
|
28
|
+
...re,
|
|
29
|
+
border: Boolean
|
|
30
|
+
}), ie = {
|
|
31
|
+
[L]: (r) => K(r) || W(r) || X(r),
|
|
32
|
+
[G]: (r) => K(r) || W(r) || X(r)
|
|
33
|
+
}, de = Symbol("radioGroupKey"), ue = (r, k) => {
|
|
34
|
+
const l = E(), i = Ne(de, void 0), a = h(() => !!i), b = h(() => Y(r.value) ? r.label : r.value), p = h({
|
|
35
|
+
get() {
|
|
36
|
+
return a.value ? i.modelValue : r.modelValue;
|
|
37
|
+
},
|
|
38
|
+
set(v) {
|
|
39
|
+
a.value ? i.changeEvent(v) : k && k(L, v), l.value.checked = r.modelValue === b.value;
|
|
40
|
+
}
|
|
41
|
+
}), d = Se(h(() => i == null ? void 0 : i.size)), u = he(h(() => i == null ? void 0 : i.disabled)), y = E(!1), m = h(() => u.value || a.value && p.value !== b.value ? -1 : 0);
|
|
42
|
+
return ke(
|
|
43
|
+
{
|
|
44
|
+
from: "label act as value",
|
|
45
|
+
replacement: "value",
|
|
46
|
+
version: "3.0.0",
|
|
47
|
+
scope: "el-radio",
|
|
48
|
+
ref: "https://element-plus.org/en-US/component/radio.html"
|
|
49
|
+
},
|
|
50
|
+
h(() => a.value && Y(r.value))
|
|
51
|
+
), {
|
|
52
|
+
radioRef: l,
|
|
53
|
+
isGroup: a,
|
|
54
|
+
radioGroup: i,
|
|
55
|
+
focus: y,
|
|
56
|
+
size: d,
|
|
57
|
+
disabled: u,
|
|
58
|
+
tabIndex: m,
|
|
59
|
+
modelValue: p,
|
|
60
|
+
actualValue: b
|
|
61
|
+
};
|
|
62
|
+
}, Me = ["value", "name", "disabled", "checked"], je = $({
|
|
63
|
+
name: "ElRadio",
|
|
64
|
+
__name: "radio",
|
|
65
|
+
props: Fe,
|
|
66
|
+
emits: ie,
|
|
67
|
+
setup(r, { emit: k }) {
|
|
68
|
+
const l = r, i = k, a = x("radio"), { radioRef: b, radioGroup: p, focus: d, size: u, disabled: y, modelValue: m, actualValue: v } = ue(l, i);
|
|
69
|
+
function f() {
|
|
70
|
+
oe(() => i(G, m.value));
|
|
71
|
+
}
|
|
72
|
+
return (t, o) => {
|
|
73
|
+
var n;
|
|
74
|
+
return V(), C(
|
|
75
|
+
"label",
|
|
76
|
+
{
|
|
77
|
+
class: R([
|
|
78
|
+
e(a).b(),
|
|
79
|
+
e(a).is("disabled", e(y)),
|
|
80
|
+
e(a).is("focus", e(d)),
|
|
81
|
+
e(a).is("bordered", t.border),
|
|
82
|
+
e(a).is("checked", e(m) === e(v)),
|
|
83
|
+
e(a).m(e(u))
|
|
84
|
+
])
|
|
85
|
+
},
|
|
86
|
+
[
|
|
87
|
+
_(
|
|
88
|
+
"span",
|
|
89
|
+
{
|
|
90
|
+
class: R([
|
|
91
|
+
e(a).e("input"),
|
|
92
|
+
e(a).is("disabled", e(y)),
|
|
93
|
+
e(a).is("checked", e(m) === e(v))
|
|
94
|
+
])
|
|
95
|
+
},
|
|
96
|
+
[
|
|
97
|
+
Z(_("input", {
|
|
98
|
+
ref_key: "radioRef",
|
|
99
|
+
ref: b,
|
|
100
|
+
"onUpdate:modelValue": o[0] || (o[0] = (s) => J(m) ? m.value = s : null),
|
|
101
|
+
class: R(e(a).e("original")),
|
|
102
|
+
value: e(v),
|
|
103
|
+
name: t.name || ((n = e(p)) == null ? void 0 : n.name),
|
|
104
|
+
disabled: e(y),
|
|
105
|
+
checked: e(m) === e(v),
|
|
106
|
+
type: "radio",
|
|
107
|
+
onFocus: o[1] || (o[1] = (s) => d.value = !0),
|
|
108
|
+
onBlur: o[2] || (o[2] = (s) => d.value = !1),
|
|
109
|
+
onChange: f,
|
|
110
|
+
onClick: o[3] || (o[3] = B(() => {
|
|
111
|
+
}, ["stop"]))
|
|
112
|
+
}, null, 42, Me), [
|
|
113
|
+
[ee, e(m)]
|
|
114
|
+
]),
|
|
115
|
+
_(
|
|
116
|
+
"span",
|
|
117
|
+
{
|
|
118
|
+
class: R(e(a).e("inner"))
|
|
119
|
+
},
|
|
120
|
+
null,
|
|
121
|
+
2
|
|
122
|
+
)
|
|
123
|
+
],
|
|
124
|
+
2
|
|
125
|
+
),
|
|
126
|
+
_(
|
|
127
|
+
"span",
|
|
128
|
+
{
|
|
129
|
+
class: R(e(a).e("label")),
|
|
130
|
+
onKeydown: o[4] || (o[4] = B(() => {
|
|
131
|
+
}, ["stop"]))
|
|
132
|
+
},
|
|
133
|
+
[
|
|
134
|
+
T(t.$slots, "default", {}, () => [
|
|
135
|
+
w(
|
|
136
|
+
D(t.label),
|
|
137
|
+
1
|
|
138
|
+
)
|
|
139
|
+
])
|
|
140
|
+
],
|
|
141
|
+
34
|
|
142
|
+
)
|
|
143
|
+
],
|
|
144
|
+
2
|
|
145
|
+
);
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
var ce = /* @__PURE__ */ U(je, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);
|
|
150
|
+
const Oe = P({
|
|
151
|
+
...re
|
|
152
|
+
}), Ke = ["value", "name", "disabled"], We = $({
|
|
153
|
+
name: "ElRadioButton",
|
|
154
|
+
__name: "radio-button",
|
|
155
|
+
props: Oe,
|
|
156
|
+
setup(r) {
|
|
157
|
+
const k = r, l = x("radio"), { radioRef: i, focus: a, size: b, disabled: p, modelValue: d, radioGroup: u, actualValue: y } = ue(k), m = h(() => ({
|
|
158
|
+
backgroundColor: (u == null ? void 0 : u.fill) || "",
|
|
159
|
+
borderColor: (u == null ? void 0 : u.fill) || "",
|
|
160
|
+
boxShadow: u != null && u.fill ? `-1px 0 0 0 ${u.fill}` : "",
|
|
161
|
+
color: (u == null ? void 0 : u.textColor) || ""
|
|
162
|
+
}));
|
|
163
|
+
return (v, f) => {
|
|
164
|
+
var t;
|
|
165
|
+
return V(), C(
|
|
166
|
+
"label",
|
|
167
|
+
{
|
|
168
|
+
class: R([
|
|
169
|
+
e(l).b("button"),
|
|
170
|
+
e(l).is("active", e(d) === e(y)),
|
|
171
|
+
e(l).is("disabled", e(p)),
|
|
172
|
+
e(l).is("focus", e(a)),
|
|
173
|
+
e(l).bm("button", e(b))
|
|
174
|
+
])
|
|
175
|
+
},
|
|
176
|
+
[
|
|
177
|
+
Z(_("input", {
|
|
178
|
+
ref_key: "radioRef",
|
|
179
|
+
ref: i,
|
|
180
|
+
"onUpdate:modelValue": f[0] || (f[0] = (o) => J(d) ? d.value = o : null),
|
|
181
|
+
class: R(e(l).be("button", "original-radio")),
|
|
182
|
+
value: e(y),
|
|
183
|
+
type: "radio",
|
|
184
|
+
name: v.name || ((t = e(u)) == null ? void 0 : t.name),
|
|
185
|
+
disabled: e(p),
|
|
186
|
+
onFocus: f[1] || (f[1] = (o) => a.value = !0),
|
|
187
|
+
onBlur: f[2] || (f[2] = (o) => a.value = !1),
|
|
188
|
+
onClick: f[3] || (f[3] = B(() => {
|
|
189
|
+
}, ["stop"]))
|
|
190
|
+
}, null, 42, Ke), [
|
|
191
|
+
[ee, e(d)]
|
|
192
|
+
]),
|
|
193
|
+
_(
|
|
194
|
+
"span",
|
|
195
|
+
{
|
|
196
|
+
class: R(e(l).be("button", "inner")),
|
|
197
|
+
style: Ge(e(d) === e(y) ? m.value : {}),
|
|
198
|
+
onKeydown: f[4] || (f[4] = B(() => {
|
|
199
|
+
}, ["stop"]))
|
|
200
|
+
},
|
|
201
|
+
[
|
|
202
|
+
T(v.$slots, "default", {}, () => [
|
|
203
|
+
w(
|
|
204
|
+
D(v.label),
|
|
205
|
+
1
|
|
206
|
+
)
|
|
207
|
+
])
|
|
208
|
+
],
|
|
209
|
+
38
|
|
210
|
+
)
|
|
211
|
+
],
|
|
212
|
+
2
|
|
213
|
+
);
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
var A = /* @__PURE__ */ U(We, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);
|
|
218
|
+
const Xe = P({
|
|
219
|
+
id: {
|
|
220
|
+
type: String,
|
|
221
|
+
default: void 0
|
|
222
|
+
},
|
|
223
|
+
size: H,
|
|
224
|
+
disabled: {
|
|
225
|
+
type: Boolean,
|
|
226
|
+
default: void 0
|
|
227
|
+
},
|
|
228
|
+
modelValue: {
|
|
229
|
+
type: [String, Number, Boolean],
|
|
230
|
+
default: void 0
|
|
231
|
+
},
|
|
232
|
+
fill: {
|
|
233
|
+
type: String,
|
|
234
|
+
default: ""
|
|
235
|
+
},
|
|
236
|
+
textColor: {
|
|
237
|
+
type: String,
|
|
238
|
+
default: ""
|
|
239
|
+
},
|
|
240
|
+
name: {
|
|
241
|
+
type: String,
|
|
242
|
+
default: void 0
|
|
243
|
+
},
|
|
244
|
+
validateEvent: {
|
|
245
|
+
type: Boolean,
|
|
246
|
+
default: !0
|
|
247
|
+
},
|
|
248
|
+
options: {
|
|
249
|
+
type: q(Array)
|
|
250
|
+
},
|
|
251
|
+
props: {
|
|
252
|
+
type: q(Object),
|
|
253
|
+
default: () => pe
|
|
254
|
+
},
|
|
255
|
+
type: {
|
|
256
|
+
type: String,
|
|
257
|
+
values: ["radio", "button"],
|
|
258
|
+
default: "radio"
|
|
259
|
+
},
|
|
260
|
+
...Re(["ariaLabel"])
|
|
261
|
+
}), Ye = ie, pe = {
|
|
262
|
+
label: "label",
|
|
263
|
+
value: "value",
|
|
264
|
+
disabled: "disabled"
|
|
265
|
+
}, qe = ["id", "aria-label", "aria-labelledby"], He = $({
|
|
266
|
+
name: "ElRadioGroup",
|
|
267
|
+
__name: "radio-group",
|
|
268
|
+
props: Xe,
|
|
269
|
+
emits: Ye,
|
|
270
|
+
setup(r, { emit: k }) {
|
|
271
|
+
const l = r, i = k, a = x("radio"), b = Ve(), p = E(), { formItem: d } = Ee(), { inputId: u, isLabeledByFormItem: y } = Ce(l, {
|
|
272
|
+
formItemContext: d
|
|
273
|
+
}), m = (n) => {
|
|
274
|
+
i(L, n), oe(() => i(G, n));
|
|
275
|
+
};
|
|
276
|
+
ae(() => {
|
|
277
|
+
const n = p.value.querySelectorAll("[type=radio]"), s = n[0];
|
|
278
|
+
!Array.from(n).some((g) => g.checked) && s && (s.tabIndex = 0);
|
|
279
|
+
});
|
|
280
|
+
const v = h(() => l.name || b.value), f = h(() => ({
|
|
281
|
+
...pe,
|
|
282
|
+
...l.props
|
|
283
|
+
})), t = (n) => {
|
|
284
|
+
const { label: s, value: g, disabled: S } = f.value, c = {
|
|
285
|
+
label: n[s],
|
|
286
|
+
value: n[g],
|
|
287
|
+
disabled: n[S]
|
|
288
|
+
};
|
|
289
|
+
return { ...we(n, [s, g, S]), ...c };
|
|
290
|
+
}, o = h(
|
|
291
|
+
() => l.type === "button" ? A : ce
|
|
292
|
+
);
|
|
293
|
+
return Le(
|
|
294
|
+
de,
|
|
295
|
+
Ue({
|
|
296
|
+
...xe(l),
|
|
297
|
+
changeEvent: m,
|
|
298
|
+
name: v
|
|
299
|
+
})
|
|
300
|
+
), le(
|
|
301
|
+
() => l.modelValue,
|
|
302
|
+
(n, s) => {
|
|
303
|
+
l.validateEvent && !Ie(n, s) && (d == null || d.validate("change").catch((g) => Be(g)));
|
|
304
|
+
}
|
|
305
|
+
), (n, s) => (V(), C("div", {
|
|
306
|
+
id: e(u),
|
|
307
|
+
ref_key: "radioGroupRef",
|
|
308
|
+
ref: p,
|
|
309
|
+
class: R(e(a).b("group")),
|
|
310
|
+
role: "radiogroup",
|
|
311
|
+
"aria-label": e(y) ? void 0 : n.ariaLabel || "radio-group",
|
|
312
|
+
"aria-labelledby": e(y) ? e(d).labelId : void 0
|
|
313
|
+
}, [
|
|
314
|
+
T(n.$slots, "default", {}, () => [
|
|
315
|
+
(V(!0), C(
|
|
316
|
+
te,
|
|
317
|
+
null,
|
|
318
|
+
ne(n.options, (g, S) => (V(), se(
|
|
319
|
+
Te(o.value),
|
|
320
|
+
De({ key: S }, { ref_for: !0 }, t(g)),
|
|
321
|
+
null,
|
|
322
|
+
16
|
|
323
|
+
))),
|
|
324
|
+
128
|
|
325
|
+
))
|
|
326
|
+
])
|
|
327
|
+
], 10, qe));
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
var me = /* @__PURE__ */ U(He, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);
|
|
331
|
+
const Qe = Pe(ce, {
|
|
332
|
+
RadioButton: A,
|
|
333
|
+
RadioGroup: me
|
|
334
|
+
}), Ze = Q(me);
|
|
335
|
+
Q(A);
|
|
336
|
+
const Je = { class: "wrapper" }, eo = { class: "screen_thumbnail" }, oo = ["src"], ao = { class: "validity-period" }, lo = {
|
|
337
|
+
key: 0,
|
|
338
|
+
class: "custom"
|
|
339
|
+
}, io = /* @__PURE__ */ $({
|
|
340
|
+
__name: "ScreenShotTool",
|
|
341
|
+
props: ["componentId"],
|
|
342
|
+
emits: ["closePanel"],
|
|
343
|
+
setup(r, { emit: k }) {
|
|
344
|
+
const l = $e(), i = r, a = E(0), b = E(), p = E(), d = E(), u = k;
|
|
345
|
+
ae(() => {
|
|
346
|
+
b.value = 1280, p.value = 720, l.setReadyById(i.componentId);
|
|
347
|
+
}), le(
|
|
348
|
+
() => l.isToolActive(i.componentId),
|
|
349
|
+
(t) => {
|
|
350
|
+
t && v(220, 124, !1);
|
|
351
|
+
}
|
|
352
|
+
);
|
|
353
|
+
const y = (t) => {
|
|
354
|
+
a.value = t, t !== 3 && (b.value = N[t].width, p.value = N[t].height);
|
|
355
|
+
}, m = () => {
|
|
356
|
+
u("closePanel");
|
|
357
|
+
}, v = (t, o, n) => {
|
|
358
|
+
const s = document.getElementById("myCanvas"), g = document.createElement("a");
|
|
359
|
+
g.download = "screenshot.png";
|
|
360
|
+
const S = document.createElement("canvas"), c = S.getContext("2d");
|
|
361
|
+
if (s && c) {
|
|
362
|
+
S.width = t, S.height = o;
|
|
363
|
+
const ve = t / s.width, fe = o / s.height, F = Math.max(ve, fe), M = s.width * F, j = s.height * F, be = (t - M) / 2, ge = (o - j) / 2;
|
|
364
|
+
c.clearRect(0, 0, t, o), c.fillStyle = "transparent", c.fillRect(0, 0, t, o), c.drawImage(s, 0, 0, s.width, s.height, be, ge, M, j), n ? S.toBlob(function(ye) {
|
|
365
|
+
const O = URL.createObjectURL(ye);
|
|
366
|
+
g.href = O, g.click(), URL.revokeObjectURL(O);
|
|
367
|
+
}) : d.value = S.toDataURL("image/png");
|
|
368
|
+
}
|
|
369
|
+
}, f = () => {
|
|
370
|
+
v(b.value, p.value, !0);
|
|
371
|
+
};
|
|
372
|
+
return (t, o) => {
|
|
373
|
+
const n = Qe, s = Ze, g = ze, S = _e;
|
|
374
|
+
return V(), se(S, {
|
|
375
|
+
class: "screen_container",
|
|
376
|
+
width: 240,
|
|
377
|
+
panelTitle: "截图",
|
|
378
|
+
"click-handle": m
|
|
379
|
+
}, {
|
|
380
|
+
default: z(() => [
|
|
381
|
+
_("div", Je, [
|
|
382
|
+
_("div", eo, [
|
|
383
|
+
_("img", {
|
|
384
|
+
class: "thumbnail_img",
|
|
385
|
+
src: d.value,
|
|
386
|
+
alt: ""
|
|
387
|
+
}, null, 8, oo)
|
|
388
|
+
]),
|
|
389
|
+
I(s, {
|
|
390
|
+
modelValue: a.value,
|
|
391
|
+
"onUpdate:modelValue": o[0] || (o[0] = (c) => a.value = c),
|
|
392
|
+
onChange: y
|
|
393
|
+
}, {
|
|
394
|
+
default: z(() => [
|
|
395
|
+
_("div", ao, [
|
|
396
|
+
(V(!0), C(te, null, ne(e(N), (c) => (V(), C("div", {
|
|
397
|
+
key: c.id,
|
|
398
|
+
class: "period_box"
|
|
399
|
+
}, [
|
|
400
|
+
I(n, {
|
|
401
|
+
label: c.id
|
|
402
|
+
}, {
|
|
403
|
+
default: z(() => [
|
|
404
|
+
w(D(c.name), 1)
|
|
405
|
+
]),
|
|
406
|
+
_: 2
|
|
407
|
+
}, 1032, ["label"])
|
|
408
|
+
]))), 128))
|
|
409
|
+
])
|
|
410
|
+
]),
|
|
411
|
+
_: 1
|
|
412
|
+
}, 8, ["modelValue"]),
|
|
413
|
+
a.value === 3 ? (V(), C("div", lo, [
|
|
414
|
+
I(g, {
|
|
415
|
+
modelValue: b.value,
|
|
416
|
+
"onUpdate:modelValue": o[1] || (o[1] = (c) => b.value = c),
|
|
417
|
+
placeholder: "请输入长度"
|
|
418
|
+
}, null, 8, ["modelValue"]),
|
|
419
|
+
o[3] || (o[3] = w(" x ", -1)),
|
|
420
|
+
I(g, {
|
|
421
|
+
modelValue: p.value,
|
|
422
|
+
"onUpdate:modelValue": o[2] || (o[2] = (c) => p.value = c),
|
|
423
|
+
placeholder: "请输入宽度"
|
|
424
|
+
}, null, 8, ["modelValue"])
|
|
425
|
+
])) : Ae("", !0),
|
|
426
|
+
_("div", { class: "footer" }, [
|
|
427
|
+
_("div", {
|
|
428
|
+
class: "btn1",
|
|
429
|
+
onClick: m
|
|
430
|
+
}, " 取消 "),
|
|
431
|
+
_("div", {
|
|
432
|
+
class: "btn2",
|
|
433
|
+
onClick: f
|
|
434
|
+
}, " 保存 ")
|
|
435
|
+
])
|
|
436
|
+
])
|
|
437
|
+
]),
|
|
438
|
+
_: 1
|
|
439
|
+
});
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
});
|
|
443
|
+
export {
|
|
444
|
+
io as default
|
|
445
|
+
};
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { _ as W } from "./alert-
|
|
2
|
-
import {
|
|
3
|
-
import { E as H } from "./el-input-number-
|
|
4
|
-
import { defineComponent as J, ref as s, onMounted as K, watch as Q, onBeforeUnmount as ee,
|
|
5
|
-
const se = { class: "mobile_section_panel" }, le = { class: "slicing-title-box" }, ce = { class: "slicing-title-icon" }, re = { class: "slicing-content-box" }, ae = { class: "slicing-select-box" }, de = { class: "select-item" }, ue = { class: "select-item-left" }, me = ["src"], ve = ["src"], _e = { class: "select-item-center" },
|
|
1
|
+
import { _ as W } from "./alert-x4uA_EPv.mjs";
|
|
2
|
+
import { z as X, T as B, A as b, B as E, F as Y, D as Z, O as m, G as q } from "./index-CaiiH-9N.mjs";
|
|
3
|
+
import { E as H } from "./el-input-number-Chi40nla.mjs";
|
|
4
|
+
import { defineComponent as J, ref as s, onMounted as K, watch as Q, onBeforeUnmount as ee, createElementBlock as l, openBlock as c, Fragment as oe, createElementVNode as o, withDirectives as te, createVNode as v, withCtx as ie, unref as r, toDisplayString as h, vShow as ne } from "vue";
|
|
5
|
+
const se = { class: "mobile_section_panel" }, le = { class: "slicing-title-box" }, ce = { class: "slicing-title-icon" }, re = { class: "slicing-content-box" }, ae = { class: "slicing-select-box" }, de = { class: "select-item" }, ue = { class: "select-item-left" }, me = ["src"], ve = ["src"], _e = { class: "select-item-center" }, we = { class: "item-center-top" }, pe = { class: "item-center-bottom" }, ge = { class: "select-item" }, be = { class: "select-item-left" }, fe = ["src"], ke = ["src"], he = { class: "select-item-center" }, ye = { class: "item-center-top" }, Ve = { class: "item-center-bottom" }, Te = { class: "select-item" }, xe = { class: "select-item-left" }, Ce = ["src"], Pe = ["src"], Se = { class: "select-item-center" }, ze = { class: "item-center-top" }, Be = { class: "item-center-bottom" }, Ee = /* @__PURE__ */ J({
|
|
6
6
|
__name: "SectionTool",
|
|
7
7
|
props: ["componentId"],
|
|
8
8
|
emits: ["closePanel"],
|
|
9
9
|
setup(L, { emit: $ }) {
|
|
10
|
-
const y = X(), V = L,
|
|
10
|
+
const y = X(), V = L, T = s(0);
|
|
11
11
|
K(() => {
|
|
12
|
-
y.setReadyById(V.componentId),
|
|
12
|
+
y.setReadyById(V.componentId), B.currentTheme == "blue" ? T.value = 240 : B.currentTheme == "light-gray" && (T.value = 202), document.addEventListener("click", x);
|
|
13
13
|
});
|
|
14
|
-
const
|
|
15
|
-
P.value && t.target.id != "controlOperatePanel" &&
|
|
14
|
+
const x = (t) => {
|
|
15
|
+
P.value && t.target.id != "controlOperatePanel" && D(!1);
|
|
16
16
|
}, C = s(!0);
|
|
17
17
|
s(!1);
|
|
18
|
-
const
|
|
18
|
+
const p = s(), I = s(), P = s(!1), D = (t) => {
|
|
19
19
|
P.value = t;
|
|
20
20
|
};
|
|
21
21
|
let _, g;
|
|
22
|
-
const
|
|
22
|
+
const M = $;
|
|
23
23
|
Q(
|
|
24
24
|
() => y.isToolActive(V.componentId),
|
|
25
25
|
(t) => {
|
|
26
|
-
b("isMobile") && (t ? (
|
|
26
|
+
b("isMobile") && (t ? (w(a.value.direction), document.addEventListener("touchmove", z)) : document.removeEventListener("touchmove", z));
|
|
27
27
|
}
|
|
28
28
|
);
|
|
29
29
|
let f = !1;
|
|
30
30
|
const S = () => {
|
|
31
31
|
_ = window.bimViewer.sectionTool, g = window.bimViewer.eventTrigger, b("isMobile") || g.on("createSection", (t) => {
|
|
32
|
-
|
|
32
|
+
R(), p.value = Object.keys(N()).map((e) => ({
|
|
33
33
|
id: e,
|
|
34
34
|
isLook: !0,
|
|
35
35
|
directionLeft: !0
|
|
36
|
-
})),
|
|
36
|
+
})), F(t.id, !0), I.value = t.id, U(t.id);
|
|
37
37
|
}), b("isMobile") && (g.on("touchPlaneStart", () => {
|
|
38
38
|
f = !0;
|
|
39
39
|
}), g.on("touchPlaneEnd", () => {
|
|
40
40
|
f = !1;
|
|
41
41
|
}));
|
|
42
42
|
};
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
E.on("BimViewer", S), ee(() => {
|
|
44
|
+
E.off("BimViewer", S), document.removeEventListener("click", x);
|
|
45
45
|
});
|
|
46
46
|
const z = () => {
|
|
47
|
-
f &&
|
|
47
|
+
f && O();
|
|
48
48
|
}, i = s({
|
|
49
49
|
x: 0,
|
|
50
50
|
y: 0,
|
|
@@ -52,8 +52,8 @@ const se = { class: "mobile_section_panel" }, le = { class: "slicing-title-box"
|
|
|
52
52
|
}), a = s({
|
|
53
53
|
direction: "x"
|
|
54
54
|
}), d = (t) => {
|
|
55
|
-
|
|
56
|
-
},
|
|
55
|
+
w(t);
|
|
56
|
+
}, w = (t) => {
|
|
57
57
|
switch (a.value.direction = t, t) {
|
|
58
58
|
case "x":
|
|
59
59
|
window.bimViewer.sectionTool.sectionDirection = 0, window.bimViewer.sectionTool.setControlPos(100 - i.value.x);
|
|
@@ -65,7 +65,7 @@ const se = { class: "mobile_section_panel" }, le = { class: "slicing-title-box"
|
|
|
65
65
|
window.bimViewer.sectionTool.sectionDirection = 2, window.bimViewer.sectionTool.setControlPos(100 - i.value.z);
|
|
66
66
|
break;
|
|
67
67
|
}
|
|
68
|
-
},
|
|
68
|
+
}, O = () => {
|
|
69
69
|
switch (a.value.direction) {
|
|
70
70
|
case "x":
|
|
71
71
|
i.value.x = 100 - window.bimViewer.sectionTool.getControlPos();
|
|
@@ -78,18 +78,18 @@ const se = { class: "mobile_section_panel" }, le = { class: "slicing-title-box"
|
|
|
78
78
|
break;
|
|
79
79
|
}
|
|
80
80
|
}, A = () => {
|
|
81
|
-
_.setActive(!1),
|
|
81
|
+
_.setActive(!1), M("closePanel");
|
|
82
82
|
}, U = (t) => {
|
|
83
83
|
_.showSectionPlane(t);
|
|
84
|
-
},
|
|
85
|
-
for (let u = 0; u <
|
|
86
|
-
t ==
|
|
87
|
-
},
|
|
84
|
+
}, F = (t, e) => {
|
|
85
|
+
for (let u = 0; u < p.value.length; u++)
|
|
86
|
+
t == p.value[u].id && (p.value[u].isLook = e);
|
|
87
|
+
}, N = () => _.getSectionPlanes(), R = () => {
|
|
88
88
|
_.hideControl();
|
|
89
89
|
};
|
|
90
90
|
return (t, e) => {
|
|
91
|
-
const u = Y, k = H,
|
|
92
|
-
return
|
|
91
|
+
const u = Y, k = H, j = Z, G = W;
|
|
92
|
+
return c(), l(oe, null, [
|
|
93
93
|
o("div", se, [
|
|
94
94
|
o("div", le, [
|
|
95
95
|
e[12] || (e[12] = o("div", { class: "slicing-title" }, "剖切", -1)),
|
|
@@ -102,17 +102,17 @@ const se = { class: "mobile_section_panel" }, le = { class: "slicing-title-box"
|
|
|
102
102
|
])
|
|
103
103
|
]),
|
|
104
104
|
o("div", re, [
|
|
105
|
-
v(
|
|
106
|
-
default:
|
|
105
|
+
v(j, null, {
|
|
106
|
+
default: ie(() => [
|
|
107
107
|
o("div", ae, [
|
|
108
108
|
o("div", de, [
|
|
109
109
|
o("div", ue, [
|
|
110
|
-
a.value.direction === "x" ? (
|
|
110
|
+
a.value.direction === "x" ? (c(), l("img", {
|
|
111
111
|
key: 0,
|
|
112
112
|
src: r(m) + "/bim-viewer/section_look_icon.png",
|
|
113
113
|
alt: "",
|
|
114
114
|
onClick: e[0] || (e[0] = (n) => d("x"))
|
|
115
|
-
}, null, 8, me)) : (
|
|
115
|
+
}, null, 8, me)) : (c(), l("img", {
|
|
116
116
|
key: 1,
|
|
117
117
|
src: r(m) + "/bim-viewer/section_unlook_icon.png",
|
|
118
118
|
alt: "",
|
|
@@ -120,29 +120,29 @@ const se = { class: "mobile_section_panel" }, le = { class: "slicing-title-box"
|
|
|
120
120
|
}, null, 8, ve))
|
|
121
121
|
]),
|
|
122
122
|
o("div", _e, [
|
|
123
|
-
o("div",
|
|
123
|
+
o("div", we, [
|
|
124
124
|
e[13] || (e[13] = o("div", null, "X轴", -1)),
|
|
125
125
|
o("div", null, h(i.value.x) + " %", 1)
|
|
126
126
|
]),
|
|
127
|
-
o("div",
|
|
127
|
+
o("div", pe, [
|
|
128
128
|
v(k, {
|
|
129
129
|
modelValue: i.value.x,
|
|
130
130
|
"onUpdate:modelValue": e[2] || (e[2] = (n) => i.value.x = n),
|
|
131
131
|
size: "large",
|
|
132
132
|
"show-tooltip": !1,
|
|
133
|
-
onInput: e[3] || (e[3] = (n) =>
|
|
133
|
+
onInput: e[3] || (e[3] = (n) => w("x"))
|
|
134
134
|
}, null, 8, ["modelValue"])
|
|
135
135
|
])
|
|
136
136
|
])
|
|
137
137
|
]),
|
|
138
138
|
o("div", ge, [
|
|
139
139
|
o("div", be, [
|
|
140
|
-
a.value.direction === "y" ? (
|
|
140
|
+
a.value.direction === "y" ? (c(), l("img", {
|
|
141
141
|
key: 0,
|
|
142
142
|
src: r(m) + "/bim-viewer/section_look_icon.png",
|
|
143
143
|
alt: "",
|
|
144
144
|
onClick: e[4] || (e[4] = (n) => d("y"))
|
|
145
|
-
}, null, 8, fe)) : (
|
|
145
|
+
}, null, 8, fe)) : (c(), l("img", {
|
|
146
146
|
key: 1,
|
|
147
147
|
src: r(m) + "/bim-viewer/section_unlook_icon.png",
|
|
148
148
|
alt: "",
|
|
@@ -160,19 +160,19 @@ const se = { class: "mobile_section_panel" }, le = { class: "slicing-title-box"
|
|
|
160
160
|
"onUpdate:modelValue": e[6] || (e[6] = (n) => i.value.y = n),
|
|
161
161
|
size: "large",
|
|
162
162
|
"show-tooltip": !1,
|
|
163
|
-
onInput: e[7] || (e[7] = (n) =>
|
|
163
|
+
onInput: e[7] || (e[7] = (n) => w("y"))
|
|
164
164
|
}, null, 8, ["modelValue"])
|
|
165
165
|
])
|
|
166
166
|
])
|
|
167
167
|
]),
|
|
168
|
-
o("div",
|
|
169
|
-
o("div",
|
|
170
|
-
a.value.direction === "z" ? (
|
|
168
|
+
o("div", Te, [
|
|
169
|
+
o("div", xe, [
|
|
170
|
+
a.value.direction === "z" ? (c(), l("img", {
|
|
171
171
|
key: 0,
|
|
172
172
|
src: r(m) + "/bim-viewer/section_look_icon.png",
|
|
173
173
|
alt: "",
|
|
174
174
|
onClick: e[8] || (e[8] = (n) => d("z"))
|
|
175
|
-
}, null, 8, Ce)) : (
|
|
175
|
+
}, null, 8, Ce)) : (c(), l("img", {
|
|
176
176
|
key: 1,
|
|
177
177
|
src: r(m) + "/bim-viewer/section_unlook_icon.png",
|
|
178
178
|
alt: "",
|
|
@@ -184,13 +184,13 @@ const se = { class: "mobile_section_panel" }, le = { class: "slicing-title-box"
|
|
|
184
184
|
e[15] || (e[15] = o("div", null, "Z轴", -1)),
|
|
185
185
|
o("div", null, h(i.value.z) + " %", 1)
|
|
186
186
|
]),
|
|
187
|
-
o("div",
|
|
187
|
+
o("div", Be, [
|
|
188
188
|
v(k, {
|
|
189
189
|
modelValue: i.value.z,
|
|
190
190
|
"onUpdate:modelValue": e[10] || (e[10] = (n) => i.value.z = n),
|
|
191
191
|
size: "large",
|
|
192
192
|
"show-tooltip": !1,
|
|
193
|
-
onInput: e[11] || (e[11] = (n) =>
|
|
193
|
+
onInput: e[11] || (e[11] = (n) => w("z"))
|
|
194
194
|
}, null, 8, ["modelValue"])
|
|
195
195
|
])
|
|
196
196
|
])
|
|
@@ -201,7 +201,7 @@ const se = { class: "mobile_section_panel" }, le = { class: "slicing-title-box"
|
|
|
201
201
|
})
|
|
202
202
|
])
|
|
203
203
|
]),
|
|
204
|
-
|
|
204
|
+
te(v(G, {
|
|
205
205
|
"click-handle": () => {
|
|
206
206
|
C.value = !1;
|
|
207
207
|
}
|
|
@@ -211,7 +211,7 @@ const se = { class: "mobile_section_panel" }, le = { class: "slicing-title-box"
|
|
|
211
211
|
], 64);
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
|
-
}),
|
|
214
|
+
}), Me = /* @__PURE__ */ q(Ee, [["__scopeId", "data-v-3cbfe8c9"]]);
|
|
215
215
|
export {
|
|
216
|
-
|
|
216
|
+
Me as default
|
|
217
217
|
};
|