@xtctwins/tctwins-bimx-engine 0.2.2 → 0.2.4

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