@xtctwins/tctwins-bimx-engine 0.1.21 → 0.1.22
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-CgiAUuLM.mjs} +12 -12
- package/dist/BIMX_Viewer_Lib.es.js +4 -4
- package/dist/BIMX_Viewer_Lib.umd.js +86 -91
- package/dist/CommentTool-BeT1ECI-.mjs +338 -0
- package/dist/HiddenTool-qqISJ_uV.mjs +58 -0
- package/dist/InspectorTool-CLPjV6WW.mjs +609 -0
- package/dist/MeasureTool-Be-rmUeb.mjs +1540 -0
- package/dist/{NavigateTool-CCIb1X4u.mjs → NavigateTool-C-VsKB0k.mjs} +7 -7
- package/dist/{RoamTool-B1w0efz8.mjs → RoamTool-DdHBNeVg.mjs} +20 -20
- package/dist/{ScreenShotTool-BviRVFSg.mjs → ScreenShotTool-Da7D2dkW.mjs} +67 -67
- package/dist/SectionTool-CHcmUQul.mjs +624 -0
- package/dist/SettingTool-CkR1F4x_.mjs +525 -0
- package/dist/StructureTree-DBu9xTue.mjs +1438 -0
- package/dist/{debounce-Cg3LHv0T.mjs → debounce-DLzt_q3i.mjs} +13 -13
- package/dist/{el-checkbox-lp8vWAXQ.mjs → el-checkbox-DsUGOsl_.mjs} +46 -46
- package/dist/{el-input-Bwqgf3wZ.mjs → el-input-UdjCNTtW.mjs} +66 -68
- package/dist/{el-input-number-0OWyX276.mjs → el-input-number-ySU-dVGM.mjs} +75 -75
- package/dist/{index-CQ8depiU.mjs → index-BfLgpvcd.mjs} +3 -3
- package/dist/{index-CYEu_kT4.mjs → index-DQKkZiNH.mjs} +1 -1
- package/dist/{index-DX-eYsBm.mjs → index-DyFDTMAw.mjs} +1795 -1794
- package/dist/{isEqual-Bg-tyY30.mjs → isEqual-BWlMaoTp.mjs} +9 -9
- package/dist/panel.vue_vue_type_style_index_0_lang-ZCDiwNFo.mjs +96 -0
- package/dist/style.css +1 -1
- package/dist/tallPanel-Cz_n6AsB.mjs +49 -0
- package/package.json +1 -1
- package/types/components/utilsComponents/tallPanel.vue.d.ts +41 -0
- package/types/services/fileApi/fileManager.d.ts +5 -5
- package/types/store/themeManager.d.ts +1 -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
|
@@ -1,536 +0,0 @@
|
|
|
1
|
-
import { a as ke, d as we, S as Ce, Y, f as J, c as Q, u as Se, Z as Ie, l as ve, _ as Ee, a0 as me, t as Te, w as Be, p as Ne, q as H, s as pe, v as Pe } from "./index-DX-eYsBm.mjs";
|
|
2
|
-
import { _ as ze, a as Ue } from "./panel.vue_vue_type_style_index_0_scope_true_lang-BfE1I0S9.mjs";
|
|
3
|
-
import { E as Me, a as $e } from "./el-checkbox-lp8vWAXQ.mjs";
|
|
4
|
-
import { E as Ae } from "./el-input-number-0OWyX276.mjs";
|
|
5
|
-
import { c as De, a as W, U as X, C as ee, I as te, f as Fe, u as Le, g as Oe, j as Ke, E as U } from "./el-input-Bwqgf3wZ.mjs";
|
|
6
|
-
import { defineComponent as oe, computed as z, ref as v, watch as fe, onMounted as be, openBlock as n, createElementBlock as f, normalizeClass as h, unref as i, withModifiers as Ge, createElementVNode as l, withKeys as Re, createBlock as p, withCtx as b, resolveDynamicComponent as K, createCommentVNode as g, toDisplayString as G, normalizeStyle as _, createVNode as r, renderSlot as ge, nextTick as xe, createTextVNode as V, Fragment as j, renderList as q } from "vue";
|
|
7
|
-
import { b as he } from "./const-CbUmfuHy.mjs";
|
|
8
|
-
import { Loading as He } from "@element-plus/icons-vue";
|
|
9
|
-
const We = (d) => ["", ...De].includes(d), je = ke({
|
|
10
|
-
modelValue: {
|
|
11
|
-
type: [Boolean, String, Number],
|
|
12
|
-
default: !1
|
|
13
|
-
},
|
|
14
|
-
disabled: Boolean,
|
|
15
|
-
loading: Boolean,
|
|
16
|
-
size: {
|
|
17
|
-
type: String,
|
|
18
|
-
validator: We
|
|
19
|
-
},
|
|
20
|
-
width: {
|
|
21
|
-
type: [String, Number],
|
|
22
|
-
default: ""
|
|
23
|
-
},
|
|
24
|
-
inlinePrompt: Boolean,
|
|
25
|
-
inactiveActionIcon: {
|
|
26
|
-
type: W
|
|
27
|
-
},
|
|
28
|
-
activeActionIcon: {
|
|
29
|
-
type: W
|
|
30
|
-
},
|
|
31
|
-
activeIcon: {
|
|
32
|
-
type: W
|
|
33
|
-
},
|
|
34
|
-
inactiveIcon: {
|
|
35
|
-
type: W
|
|
36
|
-
},
|
|
37
|
-
activeText: {
|
|
38
|
-
type: String,
|
|
39
|
-
default: ""
|
|
40
|
-
},
|
|
41
|
-
inactiveText: {
|
|
42
|
-
type: String,
|
|
43
|
-
default: ""
|
|
44
|
-
},
|
|
45
|
-
activeValue: {
|
|
46
|
-
type: [Boolean, String, Number],
|
|
47
|
-
default: !0
|
|
48
|
-
},
|
|
49
|
-
inactiveValue: {
|
|
50
|
-
type: [Boolean, String, Number],
|
|
51
|
-
default: !1
|
|
52
|
-
},
|
|
53
|
-
name: {
|
|
54
|
-
type: String,
|
|
55
|
-
default: ""
|
|
56
|
-
},
|
|
57
|
-
validateEvent: {
|
|
58
|
-
type: Boolean,
|
|
59
|
-
default: !0
|
|
60
|
-
},
|
|
61
|
-
beforeChange: {
|
|
62
|
-
type: we(Function)
|
|
63
|
-
},
|
|
64
|
-
id: String,
|
|
65
|
-
tabindex: {
|
|
66
|
-
type: [String, Number]
|
|
67
|
-
},
|
|
68
|
-
...Ce(["ariaLabel"])
|
|
69
|
-
}), qe = {
|
|
70
|
-
[X]: (d) => Y(d) || J(d) || Q(d),
|
|
71
|
-
[ee]: (d) => Y(d) || J(d) || Q(d),
|
|
72
|
-
[te]: (d) => Y(d) || J(d) || Q(d)
|
|
73
|
-
}, le = "ElSwitch", Ye = oe({
|
|
74
|
-
name: le
|
|
75
|
-
}), Ze = /* @__PURE__ */ oe({
|
|
76
|
-
...Ye,
|
|
77
|
-
props: je,
|
|
78
|
-
emits: qe,
|
|
79
|
-
setup(d, { expose: Z, emit: S }) {
|
|
80
|
-
const c = d, { formItem: I } = Fe(), M = Le(), a = Se("switch"), { inputId: E } = Oe(c, {
|
|
81
|
-
formItemContext: I
|
|
82
|
-
}), k = Ke(z(() => c.loading)), D = v(c.modelValue !== !1), y = v(), $ = v(), A = z(() => [
|
|
83
|
-
a.b(),
|
|
84
|
-
a.m(M.value),
|
|
85
|
-
a.is("disabled", k.value),
|
|
86
|
-
a.is("checked", s.value)
|
|
87
|
-
]), F = z(() => [
|
|
88
|
-
a.e("label"),
|
|
89
|
-
a.em("label", "left"),
|
|
90
|
-
a.is("active", !s.value)
|
|
91
|
-
]), T = z(() => [
|
|
92
|
-
a.e("label"),
|
|
93
|
-
a.em("label", "right"),
|
|
94
|
-
a.is("active", s.value)
|
|
95
|
-
]), B = z(() => ({
|
|
96
|
-
width: Ie(c.width)
|
|
97
|
-
}));
|
|
98
|
-
fe(() => c.modelValue, () => {
|
|
99
|
-
D.value = !0;
|
|
100
|
-
});
|
|
101
|
-
const w = z(() => D.value ? c.modelValue : !1), s = z(() => w.value === c.activeValue);
|
|
102
|
-
[c.activeValue, c.inactiveValue].includes(w.value) || (S(X, c.inactiveValue), S(ee, c.inactiveValue), S(te, c.inactiveValue)), fe(s, (e) => {
|
|
103
|
-
var m;
|
|
104
|
-
y.value.checked = e, c.validateEvent && ((m = I == null ? void 0 : I.validate) == null || m.call(I, "change").catch((O) => ve(O)));
|
|
105
|
-
});
|
|
106
|
-
const N = () => {
|
|
107
|
-
const e = s.value ? c.inactiveValue : c.activeValue;
|
|
108
|
-
S(X, e), S(ee, e), S(te, e), xe(() => {
|
|
109
|
-
y.value.checked = s.value;
|
|
110
|
-
});
|
|
111
|
-
}, R = () => {
|
|
112
|
-
if (k.value)
|
|
113
|
-
return;
|
|
114
|
-
const { beforeChange: e } = c;
|
|
115
|
-
if (!e) {
|
|
116
|
-
N();
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
119
|
-
const m = e();
|
|
120
|
-
[
|
|
121
|
-
me(m),
|
|
122
|
-
Y(m)
|
|
123
|
-
].includes(!0) || Te(le, "beforeChange must return type `Promise<boolean>` or `boolean`"), me(m) ? m.then((P) => {
|
|
124
|
-
P && N();
|
|
125
|
-
}).catch((P) => {
|
|
126
|
-
ve(le, `some error occurred: ${P}`);
|
|
127
|
-
}) : m && N();
|
|
128
|
-
}, L = () => {
|
|
129
|
-
var e, m;
|
|
130
|
-
(m = (e = y.value) == null ? void 0 : e.focus) == null || m.call(e);
|
|
131
|
-
};
|
|
132
|
-
return be(() => {
|
|
133
|
-
y.value.checked = s.value;
|
|
134
|
-
}), Z({
|
|
135
|
-
focus: L,
|
|
136
|
-
checked: s
|
|
137
|
-
}), (e, m) => (n(), f("div", {
|
|
138
|
-
class: h(i(A)),
|
|
139
|
-
onClick: Ge(R, ["prevent"])
|
|
140
|
-
}, [
|
|
141
|
-
l("input", {
|
|
142
|
-
id: i(E),
|
|
143
|
-
ref_key: "input",
|
|
144
|
-
ref: y,
|
|
145
|
-
class: h(i(a).e("input")),
|
|
146
|
-
type: "checkbox",
|
|
147
|
-
role: "switch",
|
|
148
|
-
"aria-checked": i(s),
|
|
149
|
-
"aria-disabled": i(k),
|
|
150
|
-
"aria-label": e.ariaLabel,
|
|
151
|
-
name: e.name,
|
|
152
|
-
"true-value": e.activeValue,
|
|
153
|
-
"false-value": e.inactiveValue,
|
|
154
|
-
disabled: i(k),
|
|
155
|
-
tabindex: e.tabindex,
|
|
156
|
-
onChange: N,
|
|
157
|
-
onKeydown: Re(R, ["enter"])
|
|
158
|
-
}, null, 42, ["id", "aria-checked", "aria-disabled", "aria-label", "name", "true-value", "false-value", "disabled", "tabindex", "onKeydown"]),
|
|
159
|
-
!e.inlinePrompt && (e.inactiveIcon || e.inactiveText) ? (n(), f("span", {
|
|
160
|
-
key: 0,
|
|
161
|
-
class: h(i(F))
|
|
162
|
-
}, [
|
|
163
|
-
e.inactiveIcon ? (n(), p(i(U), { key: 0 }, {
|
|
164
|
-
default: b(() => [
|
|
165
|
-
(n(), p(K(e.inactiveIcon)))
|
|
166
|
-
]),
|
|
167
|
-
_: 1
|
|
168
|
-
})) : g("v-if", !0),
|
|
169
|
-
!e.inactiveIcon && e.inactiveText ? (n(), f("span", {
|
|
170
|
-
key: 1,
|
|
171
|
-
"aria-hidden": i(s)
|
|
172
|
-
}, G(e.inactiveText), 9, ["aria-hidden"])) : g("v-if", !0)
|
|
173
|
-
], 2)) : g("v-if", !0),
|
|
174
|
-
l("span", {
|
|
175
|
-
ref_key: "core",
|
|
176
|
-
ref: $,
|
|
177
|
-
class: h(i(a).e("core")),
|
|
178
|
-
style: _(i(B))
|
|
179
|
-
}, [
|
|
180
|
-
e.inlinePrompt ? (n(), f("div", {
|
|
181
|
-
key: 0,
|
|
182
|
-
class: h(i(a).e("inner"))
|
|
183
|
-
}, [
|
|
184
|
-
e.activeIcon || e.inactiveIcon ? (n(), p(i(U), {
|
|
185
|
-
key: 0,
|
|
186
|
-
class: h(i(a).is("icon"))
|
|
187
|
-
}, {
|
|
188
|
-
default: b(() => [
|
|
189
|
-
(n(), p(K(i(s) ? e.activeIcon : e.inactiveIcon)))
|
|
190
|
-
]),
|
|
191
|
-
_: 1
|
|
192
|
-
}, 8, ["class"])) : e.activeText || e.inactiveText ? (n(), f("span", {
|
|
193
|
-
key: 1,
|
|
194
|
-
class: h(i(a).is("text")),
|
|
195
|
-
"aria-hidden": !i(s)
|
|
196
|
-
}, G(i(s) ? e.activeText : e.inactiveText), 11, ["aria-hidden"])) : g("v-if", !0)
|
|
197
|
-
], 2)) : g("v-if", !0),
|
|
198
|
-
l("div", {
|
|
199
|
-
class: h(i(a).e("action"))
|
|
200
|
-
}, [
|
|
201
|
-
e.loading ? (n(), p(i(U), {
|
|
202
|
-
key: 0,
|
|
203
|
-
class: h(i(a).is("loading"))
|
|
204
|
-
}, {
|
|
205
|
-
default: b(() => [
|
|
206
|
-
r(i(He))
|
|
207
|
-
]),
|
|
208
|
-
_: 1
|
|
209
|
-
}, 8, ["class"])) : i(s) ? ge(e.$slots, "active-action", { key: 1 }, () => [
|
|
210
|
-
e.activeActionIcon ? (n(), p(i(U), { key: 0 }, {
|
|
211
|
-
default: b(() => [
|
|
212
|
-
(n(), p(K(e.activeActionIcon)))
|
|
213
|
-
]),
|
|
214
|
-
_: 1
|
|
215
|
-
})) : g("v-if", !0)
|
|
216
|
-
]) : i(s) ? g("v-if", !0) : ge(e.$slots, "inactive-action", { key: 2 }, () => [
|
|
217
|
-
e.inactiveActionIcon ? (n(), p(i(U), { key: 0 }, {
|
|
218
|
-
default: b(() => [
|
|
219
|
-
(n(), p(K(e.inactiveActionIcon)))
|
|
220
|
-
]),
|
|
221
|
-
_: 1
|
|
222
|
-
})) : g("v-if", !0)
|
|
223
|
-
])
|
|
224
|
-
], 2)
|
|
225
|
-
], 6),
|
|
226
|
-
!e.inlinePrompt && (e.activeIcon || e.activeText) ? (n(), f("span", {
|
|
227
|
-
key: 1,
|
|
228
|
-
class: h(i(T))
|
|
229
|
-
}, [
|
|
230
|
-
e.activeIcon ? (n(), p(i(U), { key: 0 }, {
|
|
231
|
-
default: b(() => [
|
|
232
|
-
(n(), p(K(e.activeIcon)))
|
|
233
|
-
]),
|
|
234
|
-
_: 1
|
|
235
|
-
})) : g("v-if", !0),
|
|
236
|
-
!e.activeIcon && e.activeText ? (n(), f("span", {
|
|
237
|
-
key: 1,
|
|
238
|
-
"aria-hidden": !i(s)
|
|
239
|
-
}, G(e.activeText), 9, ["aria-hidden"])) : g("v-if", !0)
|
|
240
|
-
], 2)) : g("v-if", !0)
|
|
241
|
-
], 10, ["onClick"]));
|
|
242
|
-
}
|
|
243
|
-
});
|
|
244
|
-
var Je = /* @__PURE__ */ Ee(Ze, [["__file", "switch.vue"]]);
|
|
245
|
-
const Qe = Be(Je), Xe = {
|
|
246
|
-
key: 0,
|
|
247
|
-
class: "color-list"
|
|
248
|
-
}, et = ["onClick"], tt = { class: "setting-effect" }, lt = { class: "setting-effect" }, ot = { class: "light-slider" }, it = { class: "setting-effect" }, nt = { class: "setting-effect" }, at = { class: "setting-effect" }, st = { class: "setting-effect" }, ct = { class: "setting-effect" }, dt = { class: "setting_panel" }, ut = { class: "setting-title-box" }, rt = /* @__PURE__ */ l("div", { class: "setting-title" }, "设置", -1), vt = { class: "setting-title-icon" }, mt = { class: "setting-color-box" }, pt = { class: "setting-color-list" }, ft = ["onClick"], gt = { class: "setting-config-box" }, ht = { class: "setting-switch-item" }, bt = /* @__PURE__ */ l("div", null, "显示边缘", -1), yt = { class: "setting-switch-item" }, Vt = /* @__PURE__ */ l("div", null, "光源强度", -1), _t = { class: "light-slider" }, kt = { class: "setting-switch-item" }, wt = /* @__PURE__ */ l("div", null, "透视/正交", -1), Ct = { class: "setting-switch-item" }, St = /* @__PURE__ */ l("div", null, "2D/3D", -1), It = { class: "setting-switch-item" }, Et = /* @__PURE__ */ l("div", null, "显示模型空间", -1), Tt = { class: "setting-switch-item" }, Bt = /* @__PURE__ */ l("div", null, "空间效果", -1), Lt = /* @__PURE__ */ oe({
|
|
249
|
-
__name: "SettingTool",
|
|
250
|
-
props: ["componentId"],
|
|
251
|
-
emits: ["closePanel"],
|
|
252
|
-
setup(d, { emit: Z }) {
|
|
253
|
-
const S = Ne(), c = d, I = v(0), M = v(0), a = v(0);
|
|
254
|
-
be(() => {
|
|
255
|
-
S.setReadyById(c.componentId), H("themeColor") == "blue" ? (I.value = 240, M.value = 404, a.value = 14) : H("themeColor") == "light-gray" && (I.value = 202, M.value = 380, a.value = 12);
|
|
256
|
-
});
|
|
257
|
-
let E;
|
|
258
|
-
const k = v(!1), D = v(!0), y = v(!1), $ = v(!0), A = v(!1), F = v(!1), T = v(), B = v(50), w = v(["亮"]), s = v(["亮", "暗"]), N = v("#linear-gradient(180deg, #fffefb 0%, #daebff 100%)"), R = Z;
|
|
259
|
-
pe.on("BimViewer", () => {
|
|
260
|
-
E = window.BimViewer, console.log("BimViewer"), P(!1);
|
|
261
|
-
});
|
|
262
|
-
const L = (u) => {
|
|
263
|
-
u && u.target.id != "setting_back" || (R("closePanel"), e(!1));
|
|
264
|
-
}, e = (u = !F.value) => {
|
|
265
|
-
F.value = u;
|
|
266
|
-
}, m = (u) => {
|
|
267
|
-
T.value = u.id, N.value = u.color, pe.emit("changeBackgroundColor", u.color);
|
|
268
|
-
}, O = (u) => {
|
|
269
|
-
E.setLightIntensity(u);
|
|
270
|
-
}, P = (u) => {
|
|
271
|
-
E.setEdgesEnabled(u);
|
|
272
|
-
}, ie = () => {
|
|
273
|
-
E.SetThreeDModeActive(), H("isMobile") && (window.BimViewer.navCubeMode.visible = !1);
|
|
274
|
-
}, ne = () => {
|
|
275
|
-
E.SetOrthoModeActive();
|
|
276
|
-
}, ae = () => {
|
|
277
|
-
E.SetShowSpaceModeActive();
|
|
278
|
-
}, se = (u) => {
|
|
279
|
-
u == "亮" ? window.BimViewer.setSpaceMaterialColor(1) : window.BimViewer.setSpaceMaterialColor(2), w.value = w.value.includes(u) ? [u] : [];
|
|
280
|
-
};
|
|
281
|
-
return (u, o) => {
|
|
282
|
-
const C = Qe, ce = Ae, de = Me, ue = $e, re = Pe, ye = ze, Ve = Ue, _e = U;
|
|
283
|
-
return i(H)("isMobile") ? (n(), f("div", {
|
|
284
|
-
key: 1,
|
|
285
|
-
id: "setting_back",
|
|
286
|
-
class: "setting_back",
|
|
287
|
-
onClick: L
|
|
288
|
-
}, [
|
|
289
|
-
l("div", dt, [
|
|
290
|
-
l("div", ut, [
|
|
291
|
-
rt,
|
|
292
|
-
l("div", vt, [
|
|
293
|
-
r(Ve, { "click-handle": L })
|
|
294
|
-
])
|
|
295
|
-
]),
|
|
296
|
-
l("div", mt, [
|
|
297
|
-
l("div", pt, [
|
|
298
|
-
(n(!0), f(j, null, q(i(he), (t, x) => (n(), f("div", {
|
|
299
|
-
key: x,
|
|
300
|
-
class: h(["setting-color-item", {
|
|
301
|
-
"setting-color-item-active": T.value === t.id
|
|
302
|
-
}]),
|
|
303
|
-
onClick: (Nt) => m(t)
|
|
304
|
-
}, [
|
|
305
|
-
l("div", {
|
|
306
|
-
class: "setting-color-icon",
|
|
307
|
-
style: _({
|
|
308
|
-
background: t.color,
|
|
309
|
-
border: t.id === T.value ? "0.02rem solid #0065FC" : ""
|
|
310
|
-
})
|
|
311
|
-
}, null, 4),
|
|
312
|
-
l("div", {
|
|
313
|
-
class: "setting-color-name",
|
|
314
|
-
style: _({ color: t.id === T.value ? "#0065FC" : "" })
|
|
315
|
-
}, [
|
|
316
|
-
V(G(t.name) + " ", 1),
|
|
317
|
-
t.id === T.value ? (n(), p(_e, {
|
|
318
|
-
key: 0,
|
|
319
|
-
color: "#0065fc",
|
|
320
|
-
size: "0.24rem"
|
|
321
|
-
})) : g("", !0)
|
|
322
|
-
], 4)
|
|
323
|
-
], 10, ft))), 128))
|
|
324
|
-
])
|
|
325
|
-
]),
|
|
326
|
-
l("div", gt, [
|
|
327
|
-
r(re, { height: "188" }, {
|
|
328
|
-
default: b(() => [
|
|
329
|
-
l("div", ht, [
|
|
330
|
-
bt,
|
|
331
|
-
l("div", null, [
|
|
332
|
-
r(C, {
|
|
333
|
-
modelValue: k.value,
|
|
334
|
-
"onUpdate:modelValue": o[10] || (o[10] = (t) => k.value = t),
|
|
335
|
-
size: "large",
|
|
336
|
-
onChange: o[11] || (o[11] = (t) => P())
|
|
337
|
-
}, null, 8, ["modelValue"])
|
|
338
|
-
])
|
|
339
|
-
]),
|
|
340
|
-
l("div", yt, [
|
|
341
|
-
Vt,
|
|
342
|
-
l("div", _t, [
|
|
343
|
-
r(ce, {
|
|
344
|
-
modelValue: B.value,
|
|
345
|
-
"onUpdate:modelValue": o[12] || (o[12] = (t) => B.value = t),
|
|
346
|
-
onInput: o[13] || (o[13] = (t) => O(B.value))
|
|
347
|
-
}, null, 8, ["modelValue"])
|
|
348
|
-
])
|
|
349
|
-
]),
|
|
350
|
-
l("div", kt, [
|
|
351
|
-
wt,
|
|
352
|
-
l("div", null, [
|
|
353
|
-
r(C, {
|
|
354
|
-
modelValue: y.value,
|
|
355
|
-
"onUpdate:modelValue": o[14] || (o[14] = (t) => y.value = t),
|
|
356
|
-
size: "large",
|
|
357
|
-
onChange: ne
|
|
358
|
-
}, null, 8, ["modelValue"])
|
|
359
|
-
])
|
|
360
|
-
]),
|
|
361
|
-
l("div", Ct, [
|
|
362
|
-
St,
|
|
363
|
-
l("div", null, [
|
|
364
|
-
r(C, {
|
|
365
|
-
modelValue: $.value,
|
|
366
|
-
"onUpdate:modelValue": o[15] || (o[15] = (t) => $.value = t),
|
|
367
|
-
size: "large",
|
|
368
|
-
onChange: ie
|
|
369
|
-
}, null, 8, ["modelValue"])
|
|
370
|
-
])
|
|
371
|
-
]),
|
|
372
|
-
l("div", It, [
|
|
373
|
-
Et,
|
|
374
|
-
l("div", null, [
|
|
375
|
-
r(C, {
|
|
376
|
-
modelValue: A.value,
|
|
377
|
-
"onUpdate:modelValue": o[16] || (o[16] = (t) => A.value = t),
|
|
378
|
-
size: "large",
|
|
379
|
-
onChange: ae
|
|
380
|
-
}, null, 8, ["modelValue"])
|
|
381
|
-
])
|
|
382
|
-
]),
|
|
383
|
-
l("div", Tt, [
|
|
384
|
-
Bt,
|
|
385
|
-
r(ue, {
|
|
386
|
-
modelValue: w.value,
|
|
387
|
-
"onUpdate:modelValue": o[17] || (o[17] = (t) => w.value = t)
|
|
388
|
-
}, {
|
|
389
|
-
default: b(() => [
|
|
390
|
-
(n(!0), f(j, null, q(s.value, (t) => (n(), p(de, {
|
|
391
|
-
key: t,
|
|
392
|
-
label: t,
|
|
393
|
-
onChange: (x) => se(t)
|
|
394
|
-
}, null, 8, ["label", "onChange"]))), 128))
|
|
395
|
-
]),
|
|
396
|
-
_: 1
|
|
397
|
-
}, 8, ["modelValue"])
|
|
398
|
-
])
|
|
399
|
-
]),
|
|
400
|
-
_: 1
|
|
401
|
-
})
|
|
402
|
-
])
|
|
403
|
-
])
|
|
404
|
-
])) : (n(), p(ye, {
|
|
405
|
-
key: 0,
|
|
406
|
-
class: "setting_contaier",
|
|
407
|
-
width: I.value,
|
|
408
|
-
panelTitle: "设置",
|
|
409
|
-
"click-handle": L,
|
|
410
|
-
style: _({ height: M.value.toString() + "px" })
|
|
411
|
-
}, {
|
|
412
|
-
default: b(() => [
|
|
413
|
-
l("div", {
|
|
414
|
-
style: _({ height: (M.value - 44).toString() + "px" })
|
|
415
|
-
}, [
|
|
416
|
-
r(re, null, {
|
|
417
|
-
default: b(() => [
|
|
418
|
-
l("div", {
|
|
419
|
-
class: "setting-title",
|
|
420
|
-
style: _({ fontSize: a.value.toString() + "px" })
|
|
421
|
-
}, " 效果 ", 4),
|
|
422
|
-
l("div", {
|
|
423
|
-
class: "setting-effect",
|
|
424
|
-
onClick: o[0] || (o[0] = (t) => e())
|
|
425
|
-
}, [
|
|
426
|
-
V(" 背景颜色 "),
|
|
427
|
-
l("div", {
|
|
428
|
-
class: "choose-color",
|
|
429
|
-
style: _({ background: N.value })
|
|
430
|
-
}, null, 4)
|
|
431
|
-
]),
|
|
432
|
-
F.value ? (n(), f("div", Xe, [
|
|
433
|
-
(n(!0), f(j, null, q(i(he), (t) => (n(), f("div", {
|
|
434
|
-
key: t.id,
|
|
435
|
-
class: h(["color-item", { "color-item-active": T.value === t.id }]),
|
|
436
|
-
onClick: (x) => m(t)
|
|
437
|
-
}, [
|
|
438
|
-
l("div", {
|
|
439
|
-
class: "bg",
|
|
440
|
-
style: _({ background: t.color, border: t.id === 4 ? "1px solid #F1F1F1" : "none" })
|
|
441
|
-
}, null, 4),
|
|
442
|
-
V(" " + G(t.name), 1)
|
|
443
|
-
], 10, et))), 128))
|
|
444
|
-
])) : g("", !0),
|
|
445
|
-
l("div", tt, [
|
|
446
|
-
V(" 显示边缘 "),
|
|
447
|
-
r(C, {
|
|
448
|
-
modelValue: k.value,
|
|
449
|
-
"onUpdate:modelValue": o[1] || (o[1] = (t) => k.value = t),
|
|
450
|
-
style: { "--el-switch-on-color": "#0065fc" },
|
|
451
|
-
onChange: o[2] || (o[2] = (t) => P())
|
|
452
|
-
}, null, 8, ["modelValue"])
|
|
453
|
-
]),
|
|
454
|
-
l("div", lt, [
|
|
455
|
-
V(" 光源强度 "),
|
|
456
|
-
l("div", ot, [
|
|
457
|
-
r(ce, {
|
|
458
|
-
modelValue: B.value,
|
|
459
|
-
"onUpdate:modelValue": o[3] || (o[3] = (t) => B.value = t),
|
|
460
|
-
onInput: o[4] || (o[4] = (t) => O(B.value))
|
|
461
|
-
}, null, 8, ["modelValue"])
|
|
462
|
-
])
|
|
463
|
-
]),
|
|
464
|
-
l("div", {
|
|
465
|
-
class: "setting-title",
|
|
466
|
-
style: _({ fontSize: a.value.toString() + "px" })
|
|
467
|
-
}, " 外观模式 ", 4),
|
|
468
|
-
l("div", it, [
|
|
469
|
-
V(" 日间/夜间模式 "),
|
|
470
|
-
r(C, {
|
|
471
|
-
modelValue: D.value,
|
|
472
|
-
"onUpdate:modelValue": o[5] || (o[5] = (t) => D.value = t),
|
|
473
|
-
style: { "--el-switch-on-color": "#0065fc" }
|
|
474
|
-
}, null, 8, ["modelValue"])
|
|
475
|
-
]),
|
|
476
|
-
l("div", {
|
|
477
|
-
class: "setting-title",
|
|
478
|
-
style: _({ fontSize: a.value.toString() + "px" })
|
|
479
|
-
}, " 模型视角切换 ", 4),
|
|
480
|
-
l("div", nt, [
|
|
481
|
-
V(" 透视/正交 "),
|
|
482
|
-
r(C, {
|
|
483
|
-
modelValue: y.value,
|
|
484
|
-
"onUpdate:modelValue": o[6] || (o[6] = (t) => y.value = t),
|
|
485
|
-
style: { "--el-switch-on-color": "#0065fc" },
|
|
486
|
-
onChange: ne
|
|
487
|
-
}, null, 8, ["modelValue"])
|
|
488
|
-
]),
|
|
489
|
-
l("div", at, [
|
|
490
|
-
V(" 2D/3D "),
|
|
491
|
-
r(C, {
|
|
492
|
-
modelValue: $.value,
|
|
493
|
-
"onUpdate:modelValue": o[7] || (o[7] = (t) => $.value = t),
|
|
494
|
-
style: { "--el-switch-on-color": "#0065fc" },
|
|
495
|
-
onChange: ie
|
|
496
|
-
}, null, 8, ["modelValue"])
|
|
497
|
-
]),
|
|
498
|
-
l("div", st, [
|
|
499
|
-
V(" 显示模型空间 "),
|
|
500
|
-
r(C, {
|
|
501
|
-
modelValue: A.value,
|
|
502
|
-
"onUpdate:modelValue": o[8] || (o[8] = (t) => A.value = t),
|
|
503
|
-
style: { "--el-switch-on-color": "#0065fc" },
|
|
504
|
-
onChange: ae
|
|
505
|
-
}, null, 8, ["modelValue"])
|
|
506
|
-
]),
|
|
507
|
-
l("div", ct, [
|
|
508
|
-
V(" 空间效果 "),
|
|
509
|
-
r(ue, {
|
|
510
|
-
modelValue: w.value,
|
|
511
|
-
"onUpdate:modelValue": o[9] || (o[9] = (t) => w.value = t),
|
|
512
|
-
size: "small"
|
|
513
|
-
}, {
|
|
514
|
-
default: b(() => [
|
|
515
|
-
(n(!0), f(j, null, q(s.value, (t) => (n(), p(de, {
|
|
516
|
-
key: t,
|
|
517
|
-
label: t,
|
|
518
|
-
onChange: (x) => se(t)
|
|
519
|
-
}, null, 8, ["label", "onChange"]))), 128))
|
|
520
|
-
]),
|
|
521
|
-
_: 1
|
|
522
|
-
}, 8, ["modelValue"])
|
|
523
|
-
])
|
|
524
|
-
]),
|
|
525
|
-
_: 1
|
|
526
|
-
})
|
|
527
|
-
], 4)
|
|
528
|
-
]),
|
|
529
|
-
_: 1
|
|
530
|
-
}, 8, ["width", "style"]));
|
|
531
|
-
};
|
|
532
|
-
}
|
|
533
|
-
});
|
|
534
|
-
export {
|
|
535
|
-
Lt as default
|
|
536
|
-
};
|