@xtctwins/tctwins-bimx-engine 0.2.0 → 0.2.2
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 +2 -0
- package/dist/{AnnotationTool-arIex1Rk.mjs → AnnotationTool-BaH4ZhnK.mjs} +2 -2
- package/dist/BIMX_Viewer_Lib.es.js +1 -1
- package/dist/BIMX_Viewer_Lib.umd.js +128 -128
- package/dist/{CommentTool-BbKUZpgI.mjs → CommentTool-1K5X3dOV.mjs} +1 -1
- package/dist/{HiddenTool-DqZ28w5-.mjs → HiddenTool-QYeyOoMf.mjs} +1 -1
- package/dist/{InspectorTool-DypAuI2G.mjs → InspectorTool-CfO82Cxw.mjs} +3 -3
- package/dist/{MeasureTool-DZEdrMOl.mjs → MeasureTool-BxewbRN-.mjs} +2 -2
- package/dist/{NavigateTool-KgLSAtNA.mjs → NavigateTool-CXm7RwIg.mjs} +1 -1
- package/dist/RoamTool-CfvpMBOw.mjs +287 -0
- package/dist/{ScreenShotTool-DnFqtcN1.mjs → ScreenShotTool-BhsCuXbx.mjs} +2 -2
- package/dist/{SectionTool-DAvASAst.mjs → SectionTool-DgLoed3c.mjs} +4 -4
- package/dist/SettingTool-Cxfwu47P.mjs +605 -0
- package/dist/{StructureTree-BASKbaTo.mjs → StructureTree-Bz-olgHD.mjs} +99 -100
- package/dist/{alert-BuUBMhFp.mjs → alert-rYHSP5Fm.mjs} +1 -1
- package/dist/{el-input-number-BV1LbbHp.mjs → el-input-number-CkfxerCT.mjs} +1 -1
- package/dist/{index-DKHtwAZz.mjs → index-CrYdrQmt.mjs} +3660 -3602
- package/dist/{panel.vue_vue_type_style_index_0_lang-DcZvptlN.mjs → panel.vue_vue_type_style_index_0_lang-D6jJ0P3X.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{tallPanel-1CzQBBwR.mjs → tallPanel-9aSAu1ZV.mjs} +1 -1
- package/package.json +1 -1
- package/dist/RoamTool-BJAg1MLj.mjs +0 -224
- package/dist/SettingTool-CrD-gju0.mjs +0 -591
|
@@ -0,0 +1,605 @@
|
|
|
1
|
+
import { X as Ae, G as $e, k as W, Y as Pe, P as De, U as te, I as H, f as Q, H as ee, J as oe, Z as ne, R as Ne, L as ze, u as Me, S as _e, M as Fe, $ as xe, d as Ve, c as $, _ as Le, a0 as ye, a1 as Oe, w as Ke, n as Re, T as be, p as le, o as Z, E as We, a2 as Ze, t as Ge, v as Ye, x as He } from "./index-CrYdrQmt.mjs";
|
|
2
|
+
import { _ as Je } from "./panel.vue_vue_type_style_index_0_lang-D6jJ0P3X.mjs";
|
|
3
|
+
import { E as Xe } from "./el-input-number-CkfxerCT.mjs";
|
|
4
|
+
import { defineComponent as se, computed as A, ref as r, watch as we, onMounted as Ce, openBlock as i, createElementBlock as m, normalizeClass as y, unref as n, withModifiers as je, createElementVNode as t, withKeys as qe, createBlock as p, withCtx as b, resolveDynamicComponent as L, createCommentVNode as g, toDisplayString as K, normalizeStyle as O, createVNode as d, renderSlot as ke, nextTick as Qe, onBeforeUnmount as el, resolveComponent as ll, createTextVNode as h, Fragment as G, renderList as Y } from "vue";
|
|
5
|
+
import { b as he } from "./const-B1FlFgEN.mjs";
|
|
6
|
+
import { Loading as tl } from "@element-plus/icons-vue";
|
|
7
|
+
const ol = (c) => ["", ...Ae].includes(c), nl = $e({
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: [Boolean, String, Number],
|
|
10
|
+
default: !1
|
|
11
|
+
},
|
|
12
|
+
disabled: Boolean,
|
|
13
|
+
loading: Boolean,
|
|
14
|
+
size: {
|
|
15
|
+
type: String,
|
|
16
|
+
validator: ol
|
|
17
|
+
},
|
|
18
|
+
width: {
|
|
19
|
+
type: [String, Number],
|
|
20
|
+
default: ""
|
|
21
|
+
},
|
|
22
|
+
inlinePrompt: Boolean,
|
|
23
|
+
inactiveActionIcon: {
|
|
24
|
+
type: W
|
|
25
|
+
},
|
|
26
|
+
activeActionIcon: {
|
|
27
|
+
type: W
|
|
28
|
+
},
|
|
29
|
+
activeIcon: {
|
|
30
|
+
type: W
|
|
31
|
+
},
|
|
32
|
+
inactiveIcon: {
|
|
33
|
+
type: W
|
|
34
|
+
},
|
|
35
|
+
activeText: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: ""
|
|
38
|
+
},
|
|
39
|
+
inactiveText: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: ""
|
|
42
|
+
},
|
|
43
|
+
activeValue: {
|
|
44
|
+
type: [Boolean, String, Number],
|
|
45
|
+
default: !0
|
|
46
|
+
},
|
|
47
|
+
inactiveValue: {
|
|
48
|
+
type: [Boolean, String, Number],
|
|
49
|
+
default: !1
|
|
50
|
+
},
|
|
51
|
+
name: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: ""
|
|
54
|
+
},
|
|
55
|
+
validateEvent: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
default: !0
|
|
58
|
+
},
|
|
59
|
+
beforeChange: {
|
|
60
|
+
type: Pe(Function)
|
|
61
|
+
},
|
|
62
|
+
id: String,
|
|
63
|
+
tabindex: {
|
|
64
|
+
type: [String, Number]
|
|
65
|
+
},
|
|
66
|
+
...De(["ariaLabel"])
|
|
67
|
+
}), il = {
|
|
68
|
+
[te]: (c) => H(c) || Q(c) || ee(c),
|
|
69
|
+
[oe]: (c) => H(c) || Q(c) || ee(c),
|
|
70
|
+
[ne]: (c) => H(c) || Q(c) || ee(c)
|
|
71
|
+
}, ie = "ElSwitch", sl = se({
|
|
72
|
+
name: ie
|
|
73
|
+
}), al = /* @__PURE__ */ se({
|
|
74
|
+
...sl,
|
|
75
|
+
props: nl,
|
|
76
|
+
emits: il,
|
|
77
|
+
setup(c, { expose: J, emit: I }) {
|
|
78
|
+
const v = c, { formItem: T } = Ne(), w = ze(), s = Me("switch"), { inputId: C } = _e(v, {
|
|
79
|
+
formItemContext: T
|
|
80
|
+
}), S = Fe(A(() => v.loading)), M = r(v.modelValue !== !1), k = r(), P = r(), D = A(() => [
|
|
81
|
+
s.b(),
|
|
82
|
+
s.m(w.value),
|
|
83
|
+
s.is("disabled", S.value),
|
|
84
|
+
s.is("checked", a.value)
|
|
85
|
+
]), _ = A(() => [
|
|
86
|
+
s.e("label"),
|
|
87
|
+
s.em("label", "left"),
|
|
88
|
+
s.is("active", !a.value)
|
|
89
|
+
]), E = A(() => [
|
|
90
|
+
s.e("label"),
|
|
91
|
+
s.em("label", "right"),
|
|
92
|
+
s.is("active", a.value)
|
|
93
|
+
]), U = A(() => ({
|
|
94
|
+
width: xe(v.width)
|
|
95
|
+
}));
|
|
96
|
+
we(() => v.modelValue, () => {
|
|
97
|
+
M.value = !0;
|
|
98
|
+
});
|
|
99
|
+
const N = A(() => M.value ? v.modelValue : !1), a = A(() => N.value === v.activeValue);
|
|
100
|
+
[v.activeValue, v.inactiveValue].includes(N.value) || (I(te, v.inactiveValue), I(oe, v.inactiveValue), I(ne, v.inactiveValue)), we(a, (o) => {
|
|
101
|
+
var f;
|
|
102
|
+
k.value.checked = o, v.validateEvent && ((f = T == null ? void 0 : T.validate) == null || f.call(T, "change").catch((x) => Ve(x)));
|
|
103
|
+
});
|
|
104
|
+
const B = () => {
|
|
105
|
+
const o = a.value ? v.inactiveValue : v.activeValue;
|
|
106
|
+
I(te, o), I(oe, o), I(ne, o), Qe(() => {
|
|
107
|
+
k.value.checked = a.value;
|
|
108
|
+
});
|
|
109
|
+
}, F = () => {
|
|
110
|
+
if (S.value)
|
|
111
|
+
return;
|
|
112
|
+
const { beforeChange: o } = v;
|
|
113
|
+
if (!o) {
|
|
114
|
+
B();
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
const f = o();
|
|
118
|
+
[
|
|
119
|
+
ye(f),
|
|
120
|
+
H(f)
|
|
121
|
+
].includes(!0) || Oe(ie, "beforeChange must return type `Promise<boolean>` or `boolean`"), ye(f) ? f.then((z) => {
|
|
122
|
+
z && B();
|
|
123
|
+
}).catch((z) => {
|
|
124
|
+
Ve(ie, `some error occurred: ${z}`);
|
|
125
|
+
}) : f && B();
|
|
126
|
+
}, X = () => {
|
|
127
|
+
var o, f;
|
|
128
|
+
(f = (o = k.value) == null ? void 0 : o.focus) == null || f.call(o);
|
|
129
|
+
};
|
|
130
|
+
return Ce(() => {
|
|
131
|
+
k.value.checked = a.value;
|
|
132
|
+
}), J({
|
|
133
|
+
focus: X,
|
|
134
|
+
checked: a
|
|
135
|
+
}), (o, f) => (i(), m("div", {
|
|
136
|
+
class: y(n(D)),
|
|
137
|
+
onClick: je(F, ["prevent"])
|
|
138
|
+
}, [
|
|
139
|
+
t("input", {
|
|
140
|
+
id: n(C),
|
|
141
|
+
ref_key: "input",
|
|
142
|
+
ref: k,
|
|
143
|
+
class: y(n(s).e("input")),
|
|
144
|
+
type: "checkbox",
|
|
145
|
+
role: "switch",
|
|
146
|
+
"aria-checked": n(a),
|
|
147
|
+
"aria-disabled": n(S),
|
|
148
|
+
"aria-label": o.ariaLabel,
|
|
149
|
+
name: o.name,
|
|
150
|
+
"true-value": o.activeValue,
|
|
151
|
+
"false-value": o.inactiveValue,
|
|
152
|
+
disabled: n(S),
|
|
153
|
+
tabindex: o.tabindex,
|
|
154
|
+
onChange: B,
|
|
155
|
+
onKeydown: qe(F, ["enter"])
|
|
156
|
+
}, null, 42, ["id", "aria-checked", "aria-disabled", "aria-label", "name", "true-value", "false-value", "disabled", "tabindex", "onKeydown"]),
|
|
157
|
+
!o.inlinePrompt && (o.inactiveIcon || o.inactiveText) ? (i(), m("span", {
|
|
158
|
+
key: 0,
|
|
159
|
+
class: y(n(_))
|
|
160
|
+
}, [
|
|
161
|
+
o.inactiveIcon ? (i(), p(n($), { key: 0 }, {
|
|
162
|
+
default: b(() => [
|
|
163
|
+
(i(), p(L(o.inactiveIcon)))
|
|
164
|
+
]),
|
|
165
|
+
_: 1
|
|
166
|
+
})) : g("v-if", !0),
|
|
167
|
+
!o.inactiveIcon && o.inactiveText ? (i(), m("span", {
|
|
168
|
+
key: 1,
|
|
169
|
+
"aria-hidden": n(a)
|
|
170
|
+
}, K(o.inactiveText), 9, ["aria-hidden"])) : g("v-if", !0)
|
|
171
|
+
], 2)) : g("v-if", !0),
|
|
172
|
+
t("span", {
|
|
173
|
+
ref_key: "core",
|
|
174
|
+
ref: P,
|
|
175
|
+
class: y(n(s).e("core")),
|
|
176
|
+
style: O(n(U))
|
|
177
|
+
}, [
|
|
178
|
+
o.inlinePrompt ? (i(), m("div", {
|
|
179
|
+
key: 0,
|
|
180
|
+
class: y(n(s).e("inner"))
|
|
181
|
+
}, [
|
|
182
|
+
o.activeIcon || o.inactiveIcon ? (i(), p(n($), {
|
|
183
|
+
key: 0,
|
|
184
|
+
class: y(n(s).is("icon"))
|
|
185
|
+
}, {
|
|
186
|
+
default: b(() => [
|
|
187
|
+
(i(), p(L(n(a) ? o.activeIcon : o.inactiveIcon)))
|
|
188
|
+
]),
|
|
189
|
+
_: 1
|
|
190
|
+
}, 8, ["class"])) : o.activeText || o.inactiveText ? (i(), m("span", {
|
|
191
|
+
key: 1,
|
|
192
|
+
class: y(n(s).is("text")),
|
|
193
|
+
"aria-hidden": !n(a)
|
|
194
|
+
}, K(n(a) ? o.activeText : o.inactiveText), 11, ["aria-hidden"])) : g("v-if", !0)
|
|
195
|
+
], 2)) : g("v-if", !0),
|
|
196
|
+
t("div", {
|
|
197
|
+
class: y(n(s).e("action"))
|
|
198
|
+
}, [
|
|
199
|
+
o.loading ? (i(), p(n($), {
|
|
200
|
+
key: 0,
|
|
201
|
+
class: y(n(s).is("loading"))
|
|
202
|
+
}, {
|
|
203
|
+
default: b(() => [
|
|
204
|
+
d(n(tl))
|
|
205
|
+
]),
|
|
206
|
+
_: 1
|
|
207
|
+
}, 8, ["class"])) : n(a) ? ke(o.$slots, "active-action", { key: 1 }, () => [
|
|
208
|
+
o.activeActionIcon ? (i(), p(n($), { key: 0 }, {
|
|
209
|
+
default: b(() => [
|
|
210
|
+
(i(), p(L(o.activeActionIcon)))
|
|
211
|
+
]),
|
|
212
|
+
_: 1
|
|
213
|
+
})) : g("v-if", !0)
|
|
214
|
+
]) : n(a) ? g("v-if", !0) : ke(o.$slots, "inactive-action", { key: 2 }, () => [
|
|
215
|
+
o.inactiveActionIcon ? (i(), p(n($), { key: 0 }, {
|
|
216
|
+
default: b(() => [
|
|
217
|
+
(i(), p(L(o.inactiveActionIcon)))
|
|
218
|
+
]),
|
|
219
|
+
_: 1
|
|
220
|
+
})) : g("v-if", !0)
|
|
221
|
+
])
|
|
222
|
+
], 2)
|
|
223
|
+
], 6),
|
|
224
|
+
!o.inlinePrompt && (o.activeIcon || o.activeText) ? (i(), m("span", {
|
|
225
|
+
key: 1,
|
|
226
|
+
class: y(n(E))
|
|
227
|
+
}, [
|
|
228
|
+
o.activeIcon ? (i(), p(n($), { key: 0 }, {
|
|
229
|
+
default: b(() => [
|
|
230
|
+
(i(), p(L(o.activeIcon)))
|
|
231
|
+
]),
|
|
232
|
+
_: 1
|
|
233
|
+
})) : g("v-if", !0),
|
|
234
|
+
!o.activeIcon && o.activeText ? (i(), m("span", {
|
|
235
|
+
key: 1,
|
|
236
|
+
"aria-hidden": !n(a)
|
|
237
|
+
}, K(o.activeText), 9, ["aria-hidden"])) : g("v-if", !0)
|
|
238
|
+
], 2)) : g("v-if", !0)
|
|
239
|
+
], 10, ["onClick"]));
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
var dl = /* @__PURE__ */ Le(al, [["__file", "switch.vue"]]);
|
|
243
|
+
const ul = Ke(dl), rl = { style: { height: "var(--setting-content-height)" } }, vl = {
|
|
244
|
+
key: 0,
|
|
245
|
+
class: "color-list"
|
|
246
|
+
}, cl = ["onClick"], ml = { class: "setting-effect" }, fl = { class: "setting-effect" }, pl = { class: "light-slider" }, gl = {
|
|
247
|
+
key: 1,
|
|
248
|
+
class: "setting-title"
|
|
249
|
+
}, Vl = {
|
|
250
|
+
key: 2,
|
|
251
|
+
class: "setting-effect"
|
|
252
|
+
}, yl = { class: "setting-effect" }, bl = { class: "setting-effect" }, wl = { class: "setting-effect" }, kl = { class: "setting-effect" }, hl = { class: "setting-effect" }, Cl = { class: "setting-effect" }, Sl = { class: "setting_panel" }, Il = { class: "setting-title-box" }, Tl = { class: "setting-title-icon" }, El = { class: "setting-color-box" }, Ul = { class: "setting-color-list" }, Bl = ["onClick"], Al = { class: "setting-config-box" }, $l = { class: "setting-switch-item" }, Pl = { class: "setting-switch-item" }, Dl = { class: "light-slider" }, Nl = { class: "setting-switch-item" }, zl = { class: "setting-switch-item" }, Ml = { class: "setting-switch-item" }, _l = { class: "setting-switch-item" }, Fl = { class: "setting-switch-item" }, xl = { class: "setting-switch-item" }, Ll = { class: "setting-switch-item" }, Ol = { class: "speed-slider" }, Kl = /* @__PURE__ */ se({
|
|
253
|
+
__name: "SettingTool",
|
|
254
|
+
props: ["componentId"],
|
|
255
|
+
emits: ["closePanel"],
|
|
256
|
+
setup(c, { emit: J }) {
|
|
257
|
+
const I = Re(), v = c, T = r(0);
|
|
258
|
+
Ce(() => {
|
|
259
|
+
I.setReadyById(v.componentId), be.currentTheme == "blue" ? T.value = 240 : be.currentTheme == "light-gray" && (T.value = 202);
|
|
260
|
+
});
|
|
261
|
+
let w;
|
|
262
|
+
const s = r(!1), C = r(!1), S = r(!1), M = r(!1), k = r(!1), P = r(!0), D = r(!1), _ = r(!1), E = r(1), U = r(50);
|
|
263
|
+
r(50);
|
|
264
|
+
const N = r(50), a = r(["亮"]), B = r(["亮", "暗"]), F = r("linear-gradient(180deg, #fffefb 0%, #daebff 100%)"), X = J, o = () => {
|
|
265
|
+
w = window.bimViewer, j(!1);
|
|
266
|
+
};
|
|
267
|
+
le.on("BimViewer", o), el(() => {
|
|
268
|
+
le.off("BimViewer", o);
|
|
269
|
+
});
|
|
270
|
+
const f = (u) => {
|
|
271
|
+
u && u.target.id != "setting_back" || (X("closePanel"), x(!1));
|
|
272
|
+
}, x = (u = !_.value) => {
|
|
273
|
+
_.value = u;
|
|
274
|
+
}, z = () => {
|
|
275
|
+
window.bimViewer.setWorldAxisZUp(C.value), C.value && (s.value = !1);
|
|
276
|
+
}, ae = () => {
|
|
277
|
+
window.bimViewer.setWorldAxisYDown(s.value), s.value && (C.value = !1);
|
|
278
|
+
}, de = (u) => {
|
|
279
|
+
E.value = u.id, F.value = u.color, le.emit("changeBackgroundColor", u.color);
|
|
280
|
+
}, ue = (u) => {
|
|
281
|
+
w.setLightIntensity(u);
|
|
282
|
+
}, j = (u) => {
|
|
283
|
+
w.setEdgesEnabled(u);
|
|
284
|
+
}, re = () => {
|
|
285
|
+
w.SetThreeDModeActive(), Z("isMobile") && (window.bimViewer.navCubeMode.visible = !1);
|
|
286
|
+
}, ve = () => {
|
|
287
|
+
w.SetOrthoModeActive();
|
|
288
|
+
}, ce = () => {
|
|
289
|
+
w.SetShowSpaceModeActive();
|
|
290
|
+
}, me = (u) => {
|
|
291
|
+
u == "亮" ? window.bimViewer.setSpaceMaterialColor(1) : window.bimViewer.setSpaceMaterialColor(2), a.value = a.value.includes(u) ? [u] : [];
|
|
292
|
+
}, Se = () => {
|
|
293
|
+
w.SetSkyBoxToolActive();
|
|
294
|
+
}, Ie = (u) => {
|
|
295
|
+
u == 0 ? w.viewer.cameraControl.customTouchDollyRate = 0.05 / 50 : w.viewer.cameraControl.customTouchDollyRate = u / 50;
|
|
296
|
+
};
|
|
297
|
+
return (u, e) => {
|
|
298
|
+
const V = ul, q = Xe, fe = We, pe = Ze, ge = Ge, Te = Je, Ee = Ye, Ue = ll("SuccessFilled"), Be = $;
|
|
299
|
+
return n(Z)("isMobile") ? (i(), m("div", {
|
|
300
|
+
key: 1,
|
|
301
|
+
id: "setting_back",
|
|
302
|
+
class: "mobile_setting setting_back",
|
|
303
|
+
onClick: f
|
|
304
|
+
}, [
|
|
305
|
+
t("div", Sl, [
|
|
306
|
+
t("div", Il, [
|
|
307
|
+
e[40] || (e[40] = t("div", { class: "setting-title" }, "设置", -1)),
|
|
308
|
+
t("div", Tl, [
|
|
309
|
+
d(Ee, {
|
|
310
|
+
width: 0.4,
|
|
311
|
+
"size-type": "rem",
|
|
312
|
+
"click-handle": f
|
|
313
|
+
})
|
|
314
|
+
])
|
|
315
|
+
]),
|
|
316
|
+
t("div", El, [
|
|
317
|
+
t("div", Ul, [
|
|
318
|
+
(i(!0), m(G, null, Y(n(he), (l, R) => (i(), m("div", {
|
|
319
|
+
key: R,
|
|
320
|
+
class: y(["setting-color-item", {
|
|
321
|
+
"setting-color-item-active": E.value === l.id
|
|
322
|
+
}]),
|
|
323
|
+
onClick: (Rl) => de(l)
|
|
324
|
+
}, [
|
|
325
|
+
t("div", {
|
|
326
|
+
class: "setting-color-icon",
|
|
327
|
+
style: O({
|
|
328
|
+
background: l.color,
|
|
329
|
+
border: l.id === E.value ? "0.02rem solid #0065FC" : ""
|
|
330
|
+
})
|
|
331
|
+
}, null, 4),
|
|
332
|
+
t("div", {
|
|
333
|
+
class: "setting-color-name",
|
|
334
|
+
style: O({ color: l.id === E.value ? "#0065FC" : "" })
|
|
335
|
+
}, [
|
|
336
|
+
h(K(l.name) + " ", 1),
|
|
337
|
+
l.id === E.value ? (i(), p(Be, {
|
|
338
|
+
key: 0,
|
|
339
|
+
color: "#0065fc",
|
|
340
|
+
size: "0.24rem"
|
|
341
|
+
}, {
|
|
342
|
+
default: b(() => [
|
|
343
|
+
d(Ue)
|
|
344
|
+
]),
|
|
345
|
+
_: 1
|
|
346
|
+
})) : g("", !0)
|
|
347
|
+
], 4)
|
|
348
|
+
], 10, Bl))), 128))
|
|
349
|
+
])
|
|
350
|
+
]),
|
|
351
|
+
t("div", Al, [
|
|
352
|
+
d(ge, { height: "188" }, {
|
|
353
|
+
default: b(() => [
|
|
354
|
+
t("div", $l, [
|
|
355
|
+
e[41] || (e[41] = t("div", null, "显示边缘", -1)),
|
|
356
|
+
t("div", null, [
|
|
357
|
+
d(V, {
|
|
358
|
+
modelValue: S.value,
|
|
359
|
+
"onUpdate:modelValue": e[14] || (e[14] = (l) => S.value = l),
|
|
360
|
+
size: "large",
|
|
361
|
+
onChange: e[15] || (e[15] = (l) => j())
|
|
362
|
+
}, null, 8, ["modelValue"])
|
|
363
|
+
])
|
|
364
|
+
]),
|
|
365
|
+
t("div", Pl, [
|
|
366
|
+
e[42] || (e[42] = t("div", null, "光源强度", -1)),
|
|
367
|
+
t("div", Dl, [
|
|
368
|
+
d(q, {
|
|
369
|
+
modelValue: U.value,
|
|
370
|
+
"onUpdate:modelValue": e[16] || (e[16] = (l) => U.value = l),
|
|
371
|
+
onInput: e[17] || (e[17] = (l) => ue(U.value))
|
|
372
|
+
}, null, 8, ["modelValue"])
|
|
373
|
+
])
|
|
374
|
+
]),
|
|
375
|
+
t("div", Nl, [
|
|
376
|
+
e[43] || (e[43] = t("div", null, "透视/正交", -1)),
|
|
377
|
+
t("div", null, [
|
|
378
|
+
d(V, {
|
|
379
|
+
modelValue: k.value,
|
|
380
|
+
"onUpdate:modelValue": e[18] || (e[18] = (l) => k.value = l),
|
|
381
|
+
size: "large",
|
|
382
|
+
onChange: ve
|
|
383
|
+
}, null, 8, ["modelValue"])
|
|
384
|
+
])
|
|
385
|
+
]),
|
|
386
|
+
t("div", zl, [
|
|
387
|
+
e[44] || (e[44] = t("div", null, "2D/3D", -1)),
|
|
388
|
+
t("div", null, [
|
|
389
|
+
d(V, {
|
|
390
|
+
modelValue: P.value,
|
|
391
|
+
"onUpdate:modelValue": e[19] || (e[19] = (l) => P.value = l),
|
|
392
|
+
size: "large",
|
|
393
|
+
onChange: re
|
|
394
|
+
}, null, 8, ["modelValue"])
|
|
395
|
+
])
|
|
396
|
+
]),
|
|
397
|
+
t("div", Ml, [
|
|
398
|
+
e[45] || (e[45] = t("div", null, "模型倒置", -1)),
|
|
399
|
+
t("div", null, [
|
|
400
|
+
d(V, {
|
|
401
|
+
modelValue: s.value,
|
|
402
|
+
"onUpdate:modelValue": e[20] || (e[20] = (l) => s.value = l),
|
|
403
|
+
size: "large",
|
|
404
|
+
onChange: e[21] || (e[21] = (l) => ae())
|
|
405
|
+
}, null, 8, ["modelValue"])
|
|
406
|
+
])
|
|
407
|
+
]),
|
|
408
|
+
t("div", _l, [
|
|
409
|
+
e[46] || (e[46] = t("div", null, "Z轴向上", -1)),
|
|
410
|
+
t("div", null, [
|
|
411
|
+
d(V, {
|
|
412
|
+
modelValue: C.value,
|
|
413
|
+
"onUpdate:modelValue": e[22] || (e[22] = (l) => C.value = l),
|
|
414
|
+
size: "large",
|
|
415
|
+
onChange: e[23] || (e[23] = (l) => z())
|
|
416
|
+
}, null, 8, ["modelValue"])
|
|
417
|
+
])
|
|
418
|
+
]),
|
|
419
|
+
t("div", Fl, [
|
|
420
|
+
e[47] || (e[47] = t("div", null, "显示模型空间", -1)),
|
|
421
|
+
t("div", null, [
|
|
422
|
+
d(V, {
|
|
423
|
+
modelValue: D.value,
|
|
424
|
+
"onUpdate:modelValue": e[24] || (e[24] = (l) => D.value = l),
|
|
425
|
+
size: "large",
|
|
426
|
+
onChange: ce
|
|
427
|
+
}, null, 8, ["modelValue"])
|
|
428
|
+
])
|
|
429
|
+
]),
|
|
430
|
+
t("div", xl, [
|
|
431
|
+
e[48] || (e[48] = t("div", null, "空间效果", -1)),
|
|
432
|
+
d(pe, {
|
|
433
|
+
modelValue: a.value,
|
|
434
|
+
"onUpdate:modelValue": e[25] || (e[25] = (l) => a.value = l)
|
|
435
|
+
}, {
|
|
436
|
+
default: b(() => [
|
|
437
|
+
(i(!0), m(G, null, Y(B.value, (l) => (i(), p(fe, {
|
|
438
|
+
key: l,
|
|
439
|
+
label: l,
|
|
440
|
+
onChange: (R) => me(l)
|
|
441
|
+
}, null, 8, ["label", "onChange"]))), 128))
|
|
442
|
+
]),
|
|
443
|
+
_: 1
|
|
444
|
+
}, 8, ["modelValue"])
|
|
445
|
+
]),
|
|
446
|
+
t("div", Ll, [
|
|
447
|
+
e[49] || (e[49] = t("div", null, "缩放速率", -1)),
|
|
448
|
+
t("div", Ol, [
|
|
449
|
+
d(q, {
|
|
450
|
+
modelValue: N.value,
|
|
451
|
+
"onUpdate:modelValue": e[26] || (e[26] = (l) => N.value = l),
|
|
452
|
+
onInput: e[27] || (e[27] = (l) => Ie(N.value))
|
|
453
|
+
}, null, 8, ["modelValue"])
|
|
454
|
+
])
|
|
455
|
+
])
|
|
456
|
+
]),
|
|
457
|
+
_: 1
|
|
458
|
+
})
|
|
459
|
+
])
|
|
460
|
+
])
|
|
461
|
+
])) : (i(), p(Te, {
|
|
462
|
+
key: 0,
|
|
463
|
+
class: "setting_contaier",
|
|
464
|
+
width: T.value,
|
|
465
|
+
panelTitle: "设置",
|
|
466
|
+
"click-handle": f,
|
|
467
|
+
style: { height: "var(--setting-panel-height)" }
|
|
468
|
+
}, {
|
|
469
|
+
default: b(() => [
|
|
470
|
+
t("div", rl, [
|
|
471
|
+
d(ge, null, {
|
|
472
|
+
default: b(() => [
|
|
473
|
+
e[38] || (e[38] = t("div", { class: "setting-title" }, "效果", -1)),
|
|
474
|
+
t("div", {
|
|
475
|
+
class: "setting-effect",
|
|
476
|
+
onClick: e[0] || (e[0] = (l) => x())
|
|
477
|
+
}, [
|
|
478
|
+
e[28] || (e[28] = h(" 背景颜色 ")),
|
|
479
|
+
t("div", {
|
|
480
|
+
class: "choose-color",
|
|
481
|
+
style: O({ background: F.value })
|
|
482
|
+
}, null, 4)
|
|
483
|
+
]),
|
|
484
|
+
_.value ? (i(), m("div", vl, [
|
|
485
|
+
(i(!0), m(G, null, Y(n(he), (l) => (i(), m("div", {
|
|
486
|
+
key: l.id,
|
|
487
|
+
class: y(["color-item", { "color-item-active": E.value === l.id }]),
|
|
488
|
+
onClick: (R) => de(l)
|
|
489
|
+
}, [
|
|
490
|
+
t("div", {
|
|
491
|
+
class: "bg",
|
|
492
|
+
style: O({ background: l.color, border: l.id === 4 ? "1px solid #F1F1F1" : "none" })
|
|
493
|
+
}, null, 4),
|
|
494
|
+
h(" " + K(l.name), 1)
|
|
495
|
+
], 10, cl))), 128))
|
|
496
|
+
])) : g("", !0),
|
|
497
|
+
t("div", ml, [
|
|
498
|
+
e[29] || (e[29] = h(" 显示边缘 ")),
|
|
499
|
+
d(V, {
|
|
500
|
+
modelValue: S.value,
|
|
501
|
+
"onUpdate:modelValue": e[1] || (e[1] = (l) => S.value = l),
|
|
502
|
+
style: { "--el-switch-on-color": "#0065fc" },
|
|
503
|
+
onChange: e[2] || (e[2] = (l) => j())
|
|
504
|
+
}, null, 8, ["modelValue"])
|
|
505
|
+
]),
|
|
506
|
+
t("div", fl, [
|
|
507
|
+
e[30] || (e[30] = h(" 光源强度 ")),
|
|
508
|
+
t("div", pl, [
|
|
509
|
+
d(q, {
|
|
510
|
+
modelValue: U.value,
|
|
511
|
+
"onUpdate:modelValue": e[3] || (e[3] = (l) => U.value = l),
|
|
512
|
+
onInput: e[4] || (e[4] = (l) => ue(U.value))
|
|
513
|
+
}, null, 8, ["modelValue"])
|
|
514
|
+
])
|
|
515
|
+
]),
|
|
516
|
+
n(Z)("skyboxImg") ? (i(), m("div", gl, " 外观模式 ")) : g("", !0),
|
|
517
|
+
n(Z)("skyboxImg") ? (i(), m("div", Vl, [
|
|
518
|
+
e[31] || (e[31] = h(" 天空盒 ")),
|
|
519
|
+
d(V, {
|
|
520
|
+
modelValue: M.value,
|
|
521
|
+
"onUpdate:modelValue": e[5] || (e[5] = (l) => M.value = l),
|
|
522
|
+
style: { "--el-switch-on-color": "#0065fc" },
|
|
523
|
+
onChange: Se
|
|
524
|
+
}, null, 8, ["modelValue"])
|
|
525
|
+
])) : g("", !0),
|
|
526
|
+
e[39] || (e[39] = t("div", { class: "setting-title" }, "模型视角切换", -1)),
|
|
527
|
+
t("div", yl, [
|
|
528
|
+
e[32] || (e[32] = h(" 透视/正交 ")),
|
|
529
|
+
d(V, {
|
|
530
|
+
modelValue: k.value,
|
|
531
|
+
"onUpdate:modelValue": e[6] || (e[6] = (l) => k.value = l),
|
|
532
|
+
style: { "--el-switch-on-color": "#0065fc" },
|
|
533
|
+
onChange: ve
|
|
534
|
+
}, null, 8, ["modelValue"])
|
|
535
|
+
]),
|
|
536
|
+
t("div", bl, [
|
|
537
|
+
e[33] || (e[33] = h(" 2D/3D ")),
|
|
538
|
+
d(V, {
|
|
539
|
+
modelValue: P.value,
|
|
540
|
+
"onUpdate:modelValue": e[7] || (e[7] = (l) => P.value = l),
|
|
541
|
+
style: { "--el-switch-on-color": "#0065fc" },
|
|
542
|
+
onChange: re
|
|
543
|
+
}, null, 8, ["modelValue"])
|
|
544
|
+
]),
|
|
545
|
+
t("div", wl, [
|
|
546
|
+
e[34] || (e[34] = t("div", null, "模型倒置", -1)),
|
|
547
|
+
t("div", null, [
|
|
548
|
+
d(V, {
|
|
549
|
+
modelValue: s.value,
|
|
550
|
+
"onUpdate:modelValue": e[8] || (e[8] = (l) => s.value = l),
|
|
551
|
+
style: { "--el-switch-on-color": "#0065fc" },
|
|
552
|
+
onChange: e[9] || (e[9] = (l) => ae())
|
|
553
|
+
}, null, 8, ["modelValue"])
|
|
554
|
+
])
|
|
555
|
+
]),
|
|
556
|
+
t("div", kl, [
|
|
557
|
+
e[35] || (e[35] = t("div", null, "Z轴向上", -1)),
|
|
558
|
+
t("div", null, [
|
|
559
|
+
d(V, {
|
|
560
|
+
modelValue: C.value,
|
|
561
|
+
"onUpdate:modelValue": e[10] || (e[10] = (l) => C.value = l),
|
|
562
|
+
style: { "--el-switch-on-color": "#0065fc" },
|
|
563
|
+
onChange: e[11] || (e[11] = (l) => z())
|
|
564
|
+
}, null, 8, ["modelValue"])
|
|
565
|
+
])
|
|
566
|
+
]),
|
|
567
|
+
t("div", hl, [
|
|
568
|
+
e[36] || (e[36] = h(" 显示模型空间 ")),
|
|
569
|
+
d(V, {
|
|
570
|
+
modelValue: D.value,
|
|
571
|
+
"onUpdate:modelValue": e[12] || (e[12] = (l) => D.value = l),
|
|
572
|
+
style: { "--el-switch-on-color": "#0065fc" },
|
|
573
|
+
onChange: ce
|
|
574
|
+
}, null, 8, ["modelValue"])
|
|
575
|
+
]),
|
|
576
|
+
t("div", Cl, [
|
|
577
|
+
e[37] || (e[37] = h(" 空间效果 ")),
|
|
578
|
+
d(pe, {
|
|
579
|
+
modelValue: a.value,
|
|
580
|
+
"onUpdate:modelValue": e[13] || (e[13] = (l) => a.value = l),
|
|
581
|
+
size: "small"
|
|
582
|
+
}, {
|
|
583
|
+
default: b(() => [
|
|
584
|
+
(i(!0), m(G, null, Y(B.value, (l) => (i(), p(fe, {
|
|
585
|
+
key: l,
|
|
586
|
+
label: l,
|
|
587
|
+
onChange: (R) => me(l)
|
|
588
|
+
}, null, 8, ["label", "onChange"]))), 128))
|
|
589
|
+
]),
|
|
590
|
+
_: 1
|
|
591
|
+
}, 8, ["modelValue"])
|
|
592
|
+
])
|
|
593
|
+
]),
|
|
594
|
+
_: 1
|
|
595
|
+
})
|
|
596
|
+
])
|
|
597
|
+
]),
|
|
598
|
+
_: 1
|
|
599
|
+
}, 8, ["width"]));
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
}), Xl = /* @__PURE__ */ He(Kl, [["__scopeId", "data-v-bf1d7ea9"]]);
|
|
603
|
+
export {
|
|
604
|
+
Xl as default
|
|
605
|
+
};
|