@xtctwins/tctwins-bimx-engine 0.3.0 → 0.3.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 +193 -196
- package/dist/{alert-ChDNxVgQ.mjs → Alert-5pEYzrMO.mjs} +8 -8
- package/dist/AnnotationTool-B3tDIyWy.mjs +239 -0
- package/dist/BIMX_Viewer_Lib.es.js +3 -3
- package/dist/BIMX_Viewer_Lib.umd.js +222 -175
- package/dist/CommentTool--UgPVIZZ.mjs +1541 -0
- package/dist/{HiddenTool-CoPawMRd.mjs → HiddenTool-rORoKTeD.mjs} +16 -16
- package/dist/{InspectorTool-BIvnydPf.mjs → InspectorTool-l4bDxTia.mjs} +66 -66
- package/dist/{MeasureTool-BUi0QI_R.mjs → MeasureTool-d-EV6m2R.mjs} +126 -102
- package/dist/{MouseTool-CdVwRiX1.mjs → MouseTool-DKMcdeRD.mjs} +35 -32
- package/dist/{NavigateTool-DoP9z3yP.mjs → NavigateTool-BNvZ8Oat.mjs} +13 -13
- package/dist/{panel.vue_vue_type_style_index_0_lang-BaSZShh_.mjs → Panel.vue_vue_type_style_index_0_lang-C4tqfy-B.mjs} +2 -2
- package/dist/{RoamTool-POFy076i.mjs → RoamTool-DJu93SVl.mjs} +14 -14
- package/dist/ScreenShotTool-D2h0Qjtv.mjs +430 -0
- package/dist/SectionTool-DHw2Zfzv.mjs +343 -0
- package/dist/SettingTool-D13GBT87.mjs +747 -0
- package/dist/StructureTree-DHaOzAP9.mjs +1662 -0
- package/dist/{tallPanel-DKlcFjrl.mjs → TallPanel-DtXOSzmF.mjs} +14 -14
- package/dist/bimTools-D3TraX9d.mjs +75 -0
- package/dist/el-slider-CHaMBaUG.mjs +1040 -0
- package/dist/{index-Dsq1epCY.mjs → index-BDupeKSG.mjs} +55597 -53543
- package/dist/index.html +17 -17
- package/dist/style.css +1 -1
- package/package.json +4 -3
- package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +38 -10
- package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +37 -9
- package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +5 -7
- package/types/components/BCFComponents/BCFFilter.vue.d.ts +5 -7
- package/types/components/BCFComponents/BCFTool.vue.d.ts +4 -7
- package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +5 -7
- package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +5 -6
- package/types/components/BCFComponents/commentInput.vue.d.ts +36 -10
- package/types/components/BCFComponents/commentsView.vue.d.ts +36 -7
- package/types/components/BCFComponents/dialogPanel.vue.d.ts +5 -8
- package/types/components/BCFComponents/imageView.vue.d.ts +5 -7
- package/types/components/BCFComponents/imageZoomIn.vue.d.ts +5 -6
- package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/AppToolbar.vue.d.ts +18 -1
- package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/CommentTool.vue.d.ts +32 -1
- package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/InspectorTool.vue.d.ts +2 -0
- package/types/components/BimViewerComponents/MeasureTool.vue.d.ts +2 -0
- package/types/components/BimViewerComponents/MobileCommentsTool/{add.vue.d.ts → MobileCommentAdd.vue.d.ts} +6 -8
- package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +4 -5
- package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +2 -2
- package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +478 -1
- package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +499 -7
- package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +5 -6
- package/types/components/BimViewerComponents/MouseTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/PCCommentTool/pcdraw.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/RoamTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/SectionTool.vue.d.ts +4 -0
- package/types/components/BimViewerComponents/SettingTool.vue.d.ts +4 -6
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +4026 -1
- package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +18 -1
- package/types/components/BimxViewerComp.vue.d.ts +7 -14
- package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +37 -10
- package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +37 -9
- package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +499 -7
- package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +478 -1
- package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +5 -8
- package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +38 -12
- package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +7 -9
- package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +5 -7
- package/types/components/bcf/AddObjectOrAnno.vue.d.ts +16 -0
- package/types/components/bcf/BCFAddPanel.vue.d.ts +55 -0
- package/types/components/bcf/BCFDetailPanel.vue.d.ts +59 -0
- package/types/components/bcf/BCFDisplayList.vue.d.ts +18 -0
- package/types/components/bcf/BCFFilter.vue.d.ts +14 -0
- package/types/components/bcf/BCFTool.vue.d.ts +15 -0
- package/types/components/bcf/CheckObjectPanel.vue.d.ts +11 -0
- package/types/components/bcf/CommentInput.vue.d.ts +51 -0
- package/types/components/bcf/CommentsView.vue.d.ts +48 -0
- package/types/components/bcf/DialogPanel.vue.d.ts +15 -0
- package/types/components/bcf/ImageView.vue.d.ts +17 -0
- package/types/components/bcf/ImageZoomIn.vue.d.ts +9 -0
- package/types/components/bcf/MobileBCFAdd.vue.d.ts +56 -0
- package/types/components/bcf/MobileBCFDetail.vue.d.ts +55 -0
- package/types/components/bcf/MobileBCFDisplayList.vue.d.ts +498 -0
- package/types/components/bcf/MobileBCFFilter.vue.d.ts +475 -0
- package/types/components/bcf/MobileBCFTool.vue.d.ts +17 -0
- package/types/components/bcf/MobileCommentInput.vue.d.ts +54 -0
- package/types/components/bcf/MobileCommentsView.vue.d.ts +17 -0
- package/types/components/bcf/SelectPanel.vue.d.ts +12 -0
- package/types/components/bimxViewer.vue.d.ts +7 -14
- package/types/components/comment/mobile/MobileCommentAdd.vue.d.ts +14 -0
- package/types/components/comment/mobile/MobileDetail.vue.d.ts +11 -0
- package/types/components/comment/mobile/MobileDraw.vue.d.ts +17 -0
- package/types/components/comment/mobile/MobileFilter.vue.d.ts +475 -0
- package/types/components/comment/mobile/MobileList.vue.d.ts +497 -0
- package/types/components/comment/mobile/MobileZoomIn.vue.d.ts +9 -0
- package/types/components/comment/pc/PcDraw.vue.d.ts +14 -0
- package/types/components/shared/Alert.vue.d.ts +32 -0
- package/types/components/shared/CloseButton.vue.d.ts +50 -0
- package/types/components/shared/CloseButtonDark.vue.d.ts +32 -0
- package/types/components/shared/EmptyPage.vue.d.ts +6 -0
- package/types/components/shared/Loading.vue.d.ts +2 -0
- package/types/components/shared/Panel.vue.d.ts +47 -0
- package/types/components/shared/Prompt.vue.d.ts +8 -0
- package/types/components/shared/RectangleButton.vue.d.ts +106 -0
- package/types/components/shared/TallPanel.vue.d.ts +69 -0
- package/types/components/shared/TallPanelNoPos.vue.d.ts +82 -0
- package/types/components/tools/AnnotationTool.vue.d.ts +14 -0
- package/types/components/tools/AppToolbar.vue.d.ts +27 -0
- package/types/components/tools/ClickEvent.vue.d.ts +6 -0
- package/types/components/tools/CommentTool.vue.d.ts +45 -0
- package/types/components/tools/HiddenTool.vue.d.ts +12 -0
- package/types/components/tools/InspectorTool.vue.d.ts +14 -0
- package/types/components/tools/MeasureTool.vue.d.ts +14 -0
- package/types/components/tools/MouseTool.vue.d.ts +6 -0
- package/types/components/tools/NavigateTool.vue.d.ts +10 -0
- package/types/components/tools/RoamTool.vue.d.ts +12 -0
- package/types/components/tools/ScreenShotTool.vue.d.ts +10 -0
- package/types/components/tools/SectionTool.vue.d.ts +14 -0
- package/types/components/tools/SettingTool.vue.d.ts +13 -0
- package/types/components/tools/StructureTree.vue.d.ts +11645 -0
- package/types/components/tools/Toolbar.vue.d.ts +10 -0
- package/types/components/utilsComponents/alert.vue.d.ts +1 -1
- package/types/components/utilsComponents/closeButton.vue.d.ts +1 -1
- package/types/components/utilsComponents/closeButton_dark.vue.d.ts +1 -1
- package/types/components/utilsComponents/emptyPage.vue.d.ts +1 -1
- package/types/components/utilsComponents/loading.vue.d.ts +1 -1
- package/types/components/utilsComponents/panel.vue.d.ts +8 -2
- package/types/components/utilsComponents/prompt.vue.d.ts +1 -1
- package/types/components/utilsComponents/rectangleButton.vue.d.ts +3 -1
- package/types/components/utilsComponents/tallPanel.vue.d.ts +13 -3
- package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +13 -3
- package/types/composables/useBimViewerEvent.d.ts +44 -0
- package/types/composables/useEmitHandler.d.ts +2 -0
- package/types/composables/useToolActive.d.ts +1 -0
- package/types/composables/useToolReady.d.ts +1 -0
- package/types/i18n/index.d.ts +5 -1
- package/types/i18n/locales/en-US.d.ts +1 -0
- package/types/i18n/locales/zh-CN.d.ts +1 -0
- package/types/pages/BimxViewerEntry.vue.d.ts +5 -57
- package/types/pages/viewerEntry.vue.d.ts +7 -57
- package/types/store/bcfReflect.d.ts +13 -81
- package/types/store/const/app.d.ts +66 -0
- package/types/store/const/bimTools.d.ts +81 -0
- package/types/store/const/project.d.ts +48 -0
- package/types/store/const/theme.d.ts +16 -0
- package/types/store/const/toolbar.d.ts +26 -0
- package/types/store/const.d.ts +11 -228
- package/types/store/initConfigs.d.ts +1 -1
- package/types/store/toolbars.d.ts +68 -46
- package/types/store/userInfoStore.d.ts +1 -1
- package/types/stores/viewerStore.d.ts +112 -0
- package/types/types/bcf.d.ts +83 -0
- package/types/types/events.d.ts +88 -0
- package/types/utils/OSSHelper.d.ts +27 -0
- package/types/utils/cacheInfo.d.ts +26 -3
- package/types/utils/dbscan.d.ts +1 -0
- package/types/utils/eventBus.d.ts +1 -83
- package/types/viewerManager/viewerManager.d.ts +53 -3
- package/dist/AnnotationTool-CGRte6Cc.mjs +0 -167
- package/dist/CommentTool-CT3wFozB.mjs +0 -1529
- package/dist/ScreenShotTool-CcUyU0g7.mjs +0 -357
- package/dist/SectionTool-DGjjH3JO.mjs +0 -331
- package/dist/SettingTool-CjXfbX5r.mjs +0 -657
- package/dist/StructureTree-DdRX-y-V.mjs +0 -1583
- package/dist/const-DOnRsYpZ.mjs +0 -389
- package/dist/el-input-number-CK5d8pzH.mjs +0 -818
- package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +0 -22
- package/types/components/BimViewerComponents/emptyPage.vue.d.ts +0 -8
- package/types/tests/cmt.d.ts +0 -1
|
@@ -0,0 +1,747 @@
|
|
|
1
|
+
import { c as Ke, aj as ye, d as ae, l as ge, a8 as he, a7 as pe, a9 as we, b as Re, e as ne, ab as We, f as He, af as je, a as Ge, u as Ye, ag as Ze, ac as _e, ak as qe, q as De, N as Je, E as O, al as Ae, am as Qe, w as Xe, A as et, B as tt, T as Ue, C as M, D as W, G as lt, an as ot, p as nt, H as it, V as st, K as at, I as ut } from "./index-BDupeKSG.mjs";
|
|
2
|
+
import { _ as dt } from "./Panel.vue_vue_type_style_index_0_lang-C4tqfy-B.mjs";
|
|
3
|
+
import { E as ct } from "./el-slider-CHaMBaUG.mjs";
|
|
4
|
+
import { Loading as vt } from "@element-plus/icons-vue";
|
|
5
|
+
import { defineComponent as Be, computed as L, ref as f, shallowRef as rt, watch as Ve, onMounted as Me, openBlock as s, createElementBlock as g, withModifiers as mt, normalizeClass as C, createElementVNode as l, withKeys as ft, unref as n, renderSlot as H, createBlock as w, withCtx as S, resolveDynamicComponent as j, createCommentVNode as b, toDisplayString as a, normalizeStyle as ee, createVNode as v, nextTick as gt, onBeforeUnmount as ht, Fragment as ie, createTextVNode as E, renderList as be } from "vue";
|
|
6
|
+
import { T as bt } from "./timer-DoTiGoWP.mjs";
|
|
7
|
+
const yt = (o) => ["", ...Ke].includes(o), pt = Re({
|
|
8
|
+
/**
|
|
9
|
+
* @description binding value, it should be equivalent to either `active-value` or `inactive-value`, by default it's `boolean` type
|
|
10
|
+
*/
|
|
11
|
+
modelValue: {
|
|
12
|
+
type: [
|
|
13
|
+
Boolean,
|
|
14
|
+
String,
|
|
15
|
+
Number
|
|
16
|
+
],
|
|
17
|
+
default: !1
|
|
18
|
+
},
|
|
19
|
+
/**
|
|
20
|
+
* @description whether Switch is disabled
|
|
21
|
+
*/
|
|
22
|
+
disabled: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: void 0
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* @description whether Switch is in loading state
|
|
28
|
+
*/
|
|
29
|
+
loading: Boolean,
|
|
30
|
+
/**
|
|
31
|
+
* @description size of Switch
|
|
32
|
+
*/
|
|
33
|
+
size: {
|
|
34
|
+
type: String,
|
|
35
|
+
validator: yt
|
|
36
|
+
},
|
|
37
|
+
/**
|
|
38
|
+
* @description width of Switch
|
|
39
|
+
*/
|
|
40
|
+
width: {
|
|
41
|
+
type: [String, Number],
|
|
42
|
+
default: ""
|
|
43
|
+
},
|
|
44
|
+
/**
|
|
45
|
+
* @description whether icon or text is displayed inside dot, only the first character will be rendered for text
|
|
46
|
+
*/
|
|
47
|
+
inlinePrompt: Boolean,
|
|
48
|
+
/**
|
|
49
|
+
* @description component of the icon displayed in action when in `off` state
|
|
50
|
+
*/
|
|
51
|
+
inactiveActionIcon: { type: ne },
|
|
52
|
+
/**
|
|
53
|
+
* @description component of the icon displayed in action when in `on` state
|
|
54
|
+
*/
|
|
55
|
+
activeActionIcon: { type: ne },
|
|
56
|
+
/**
|
|
57
|
+
* @description component of the icon displayed when in `on` state, overrides `active-text`
|
|
58
|
+
*/
|
|
59
|
+
activeIcon: { type: ne },
|
|
60
|
+
/**
|
|
61
|
+
* @description component of the icon displayed when in `off` state, overrides `inactive-text`
|
|
62
|
+
*/
|
|
63
|
+
inactiveIcon: { type: ne },
|
|
64
|
+
/**
|
|
65
|
+
* @description text displayed when in `on` state
|
|
66
|
+
*/
|
|
67
|
+
activeText: {
|
|
68
|
+
type: String,
|
|
69
|
+
default: ""
|
|
70
|
+
},
|
|
71
|
+
/**
|
|
72
|
+
* @description text displayed when in `off` state
|
|
73
|
+
*/
|
|
74
|
+
inactiveText: {
|
|
75
|
+
type: String,
|
|
76
|
+
default: ""
|
|
77
|
+
},
|
|
78
|
+
/**
|
|
79
|
+
* @description switch value when in `on` state
|
|
80
|
+
*/
|
|
81
|
+
activeValue: {
|
|
82
|
+
type: [
|
|
83
|
+
Boolean,
|
|
84
|
+
String,
|
|
85
|
+
Number
|
|
86
|
+
],
|
|
87
|
+
default: !0
|
|
88
|
+
},
|
|
89
|
+
/**
|
|
90
|
+
* @description switch value when in `off` state
|
|
91
|
+
*/
|
|
92
|
+
inactiveValue: {
|
|
93
|
+
type: [
|
|
94
|
+
Boolean,
|
|
95
|
+
String,
|
|
96
|
+
Number
|
|
97
|
+
],
|
|
98
|
+
default: !1
|
|
99
|
+
},
|
|
100
|
+
/**
|
|
101
|
+
* @description input name of Switch
|
|
102
|
+
*/
|
|
103
|
+
name: {
|
|
104
|
+
type: String,
|
|
105
|
+
default: ""
|
|
106
|
+
},
|
|
107
|
+
/**
|
|
108
|
+
* @description whether to trigger form validation
|
|
109
|
+
*/
|
|
110
|
+
validateEvent: {
|
|
111
|
+
type: Boolean,
|
|
112
|
+
default: !0
|
|
113
|
+
},
|
|
114
|
+
/**
|
|
115
|
+
* @description before-change hook before the switch state changes. If `false` is returned or a `Promise` is returned and then is rejected, will stop switching
|
|
116
|
+
*/
|
|
117
|
+
beforeChange: { type: He(Function) },
|
|
118
|
+
/**
|
|
119
|
+
* @description id for input
|
|
120
|
+
*/
|
|
121
|
+
id: String,
|
|
122
|
+
/**
|
|
123
|
+
* @description tabindex for input
|
|
124
|
+
*/
|
|
125
|
+
tabindex: { type: [String, Number] },
|
|
126
|
+
...We(["ariaLabel"])
|
|
127
|
+
}), wt = {
|
|
128
|
+
[we]: (o) => ae(o) || ge(o) || he(o),
|
|
129
|
+
[pe]: (o) => ae(o) || ge(o) || he(o),
|
|
130
|
+
[ye]: (o) => ae(o) || ge(o) || he(o)
|
|
131
|
+
}, Vt = [
|
|
132
|
+
"id",
|
|
133
|
+
"aria-checked",
|
|
134
|
+
"aria-disabled",
|
|
135
|
+
"aria-label",
|
|
136
|
+
"name",
|
|
137
|
+
"true-value",
|
|
138
|
+
"false-value",
|
|
139
|
+
"disabled",
|
|
140
|
+
"tabindex"
|
|
141
|
+
], kt = ["aria-hidden"], Ct = { key: 1 }, St = { key: 1 }, Et = ["aria-hidden"], se = "ElSwitch";
|
|
142
|
+
var It = /* @__PURE__ */ Be({
|
|
143
|
+
name: se,
|
|
144
|
+
__name: "switch",
|
|
145
|
+
props: pt,
|
|
146
|
+
emits: wt,
|
|
147
|
+
setup(o, { expose: ue, emit: u }) {
|
|
148
|
+
const h = o, x = u, { formItem: T } = je(), Y = Ge(), d = Ye("switch"), { inputId: Z } = Ze(h, { formItemContext: T }), $ = _e(L(() => {
|
|
149
|
+
if (h.loading) return !0;
|
|
150
|
+
})), _ = f(h.modelValue !== !1), y = rt(), q = L(() => [
|
|
151
|
+
d.b(),
|
|
152
|
+
d.m(Y.value),
|
|
153
|
+
d.is("disabled", $.value),
|
|
154
|
+
d.is("checked", r.value)
|
|
155
|
+
]), I = L(() => [
|
|
156
|
+
d.e("label"),
|
|
157
|
+
d.em("label", "left"),
|
|
158
|
+
d.is("active", !r.value)
|
|
159
|
+
]), te = L(() => [
|
|
160
|
+
d.e("label"),
|
|
161
|
+
d.em("label", "right"),
|
|
162
|
+
d.is("active", r.value)
|
|
163
|
+
]), le = L(() => ({ width: qe(h.width) }));
|
|
164
|
+
Ve(() => h.modelValue, () => {
|
|
165
|
+
_.value = !0;
|
|
166
|
+
});
|
|
167
|
+
const K = L(() => _.value ? h.modelValue : !1), r = L(() => K.value === h.activeValue);
|
|
168
|
+
[h.activeValue, h.inactiveValue].includes(K.value) || (De(se, "model-value must be active-value or inactive-value"), x(we, h.inactiveValue), x(pe, h.inactiveValue), x(ye, h.inactiveValue)), Ve(r, (c) => {
|
|
169
|
+
var p;
|
|
170
|
+
y.value.checked = c, h.validateEvent && ((p = T == null ? void 0 : T.validate) == null || p.call(T, "change").catch(Je));
|
|
171
|
+
});
|
|
172
|
+
const z = () => {
|
|
173
|
+
const c = r.value ? h.inactiveValue : h.activeValue;
|
|
174
|
+
x(we, c), x(pe, c), x(ye, c), gt(() => {
|
|
175
|
+
y.value.checked = r.value;
|
|
176
|
+
});
|
|
177
|
+
}, k = () => {
|
|
178
|
+
if ($.value) return;
|
|
179
|
+
const { beforeChange: c } = h;
|
|
180
|
+
if (!c) {
|
|
181
|
+
z();
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
const p = c();
|
|
185
|
+
[Ae(p), ae(p)].includes(!0) || Qe(se, "beforeChange must return type `Promise<boolean>` or `boolean`"), Ae(p) ? p.then((V) => {
|
|
186
|
+
V && z();
|
|
187
|
+
}).catch((V) => {
|
|
188
|
+
De(se, `some error occurred: ${V}`);
|
|
189
|
+
}) : p && z();
|
|
190
|
+
}, J = () => {
|
|
191
|
+
var c, p;
|
|
192
|
+
(p = (c = y.value) == null ? void 0 : c.focus) == null || p.call(c);
|
|
193
|
+
};
|
|
194
|
+
return Me(() => {
|
|
195
|
+
y.value.checked = r.value;
|
|
196
|
+
}), ue({
|
|
197
|
+
/**
|
|
198
|
+
* @description manual focus to the switch component
|
|
199
|
+
**/
|
|
200
|
+
focus: J,
|
|
201
|
+
/**
|
|
202
|
+
* @description whether Switch is checked
|
|
203
|
+
*/
|
|
204
|
+
checked: r
|
|
205
|
+
}), (c, p) => (s(), g("div", {
|
|
206
|
+
class: C(q.value),
|
|
207
|
+
onClick: mt(k, ["prevent"])
|
|
208
|
+
}, [
|
|
209
|
+
l("input", {
|
|
210
|
+
id: n(Z),
|
|
211
|
+
ref_key: "input",
|
|
212
|
+
ref: y,
|
|
213
|
+
class: C(n(d).e("input")),
|
|
214
|
+
type: "checkbox",
|
|
215
|
+
role: "switch",
|
|
216
|
+
"aria-checked": r.value,
|
|
217
|
+
"aria-disabled": n($),
|
|
218
|
+
"aria-label": o.ariaLabel,
|
|
219
|
+
name: o.name,
|
|
220
|
+
"true-value": o.activeValue,
|
|
221
|
+
"false-value": o.inactiveValue,
|
|
222
|
+
disabled: n($),
|
|
223
|
+
tabindex: o.tabindex,
|
|
224
|
+
onChange: z,
|
|
225
|
+
onKeydown: ft(k, ["enter"])
|
|
226
|
+
}, null, 42, Vt),
|
|
227
|
+
!o.inlinePrompt && (o.inactiveIcon || o.inactiveText || c.$slots.inactive) ? (s(), g("span", {
|
|
228
|
+
key: 0,
|
|
229
|
+
class: C(I.value)
|
|
230
|
+
}, [H(c.$slots, "inactive", {}, () => [o.inactiveIcon ? (s(), w(n(O), { key: 0 }, {
|
|
231
|
+
default: S(() => [(s(), w(j(o.inactiveIcon)))]),
|
|
232
|
+
_: 1
|
|
233
|
+
})) : b("v-if", !0), !o.inactiveIcon && o.inactiveText ? (s(), g("span", {
|
|
234
|
+
key: 1,
|
|
235
|
+
"aria-hidden": r.value
|
|
236
|
+
}, a(o.inactiveText), 9, kt)) : b("v-if", !0)])], 2)) : b("v-if", !0),
|
|
237
|
+
l("span", {
|
|
238
|
+
class: C(n(d).e("core")),
|
|
239
|
+
style: ee(le.value)
|
|
240
|
+
}, [o.inlinePrompt ? (s(), g("div", {
|
|
241
|
+
key: 0,
|
|
242
|
+
class: C(n(d).e("inner"))
|
|
243
|
+
}, [r.value ? (s(), g("div", {
|
|
244
|
+
key: 1,
|
|
245
|
+
class: C(n(d).e("inner-wrapper"))
|
|
246
|
+
}, [H(c.$slots, "active", {}, () => [o.activeIcon ? (s(), w(n(O), { key: 0 }, {
|
|
247
|
+
default: S(() => [(s(), w(j(o.activeIcon)))]),
|
|
248
|
+
_: 1
|
|
249
|
+
})) : b("v-if", !0), !o.activeIcon && o.activeText ? (s(), g("span", St, a(o.activeText), 1)) : b("v-if", !0)])], 2)) : (s(), g("div", {
|
|
250
|
+
key: 0,
|
|
251
|
+
class: C(n(d).e("inner-wrapper"))
|
|
252
|
+
}, [H(c.$slots, "inactive", {}, () => [o.inactiveIcon ? (s(), w(n(O), { key: 0 }, {
|
|
253
|
+
default: S(() => [(s(), w(j(o.inactiveIcon)))]),
|
|
254
|
+
_: 1
|
|
255
|
+
})) : b("v-if", !0), !o.inactiveIcon && o.inactiveText ? (s(), g("span", Ct, a(o.inactiveText), 1)) : b("v-if", !0)])], 2))], 2)) : b("v-if", !0), l("div", { class: C(n(d).e("action")) }, [o.loading ? (s(), w(n(O), {
|
|
256
|
+
key: 0,
|
|
257
|
+
class: C(n(d).is("loading"))
|
|
258
|
+
}, {
|
|
259
|
+
default: S(() => [v(n(vt))]),
|
|
260
|
+
_: 1
|
|
261
|
+
}, 8, ["class"])) : r.value ? H(c.$slots, "active-action", { key: 1 }, () => [o.activeActionIcon ? (s(), w(n(O), { key: 0 }, {
|
|
262
|
+
default: S(() => [(s(), w(j(o.activeActionIcon)))]),
|
|
263
|
+
_: 1
|
|
264
|
+
})) : b("v-if", !0)]) : r.value ? b("v-if", !0) : H(c.$slots, "inactive-action", { key: 2 }, () => [o.inactiveActionIcon ? (s(), w(n(O), { key: 0 }, {
|
|
265
|
+
default: S(() => [(s(), w(j(o.inactiveActionIcon)))]),
|
|
266
|
+
_: 1
|
|
267
|
+
})) : b("v-if", !0)])], 2)], 6),
|
|
268
|
+
!o.inlinePrompt && (o.activeIcon || o.activeText || c.$slots.active) ? (s(), g("span", {
|
|
269
|
+
key: 1,
|
|
270
|
+
class: C(te.value)
|
|
271
|
+
}, [H(c.$slots, "active", {}, () => [o.activeIcon ? (s(), w(n(O), { key: 0 }, {
|
|
272
|
+
default: S(() => [(s(), w(j(o.activeIcon)))]),
|
|
273
|
+
_: 1
|
|
274
|
+
})) : b("v-if", !0), !o.activeIcon && o.activeText ? (s(), g("span", {
|
|
275
|
+
key: 1,
|
|
276
|
+
"aria-hidden": !r.value
|
|
277
|
+
}, a(o.activeText), 9, Et)) : b("v-if", !0)])], 2)) : b("v-if", !0)
|
|
278
|
+
], 2));
|
|
279
|
+
}
|
|
280
|
+
}), xt = It;
|
|
281
|
+
const Tt = Xe(xt), G = [
|
|
282
|
+
{
|
|
283
|
+
id: 1,
|
|
284
|
+
name: "渐变蓝",
|
|
285
|
+
label: "bgColor.gradientBlue",
|
|
286
|
+
color: "linear-gradient(180deg, #fffefb 0%, #daebff 100%)",
|
|
287
|
+
rgb: [0.9254, 0.9607, 1]
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
id: 2,
|
|
291
|
+
name: "纯灰度",
|
|
292
|
+
label: "bgColor.gray",
|
|
293
|
+
color: "#F0F0F0",
|
|
294
|
+
rgb: [0.9411, 0.9411, 0.9411]
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
id: 3,
|
|
298
|
+
name: "昏暗天空",
|
|
299
|
+
label: "bgColor.dimSky",
|
|
300
|
+
color: "#323237",
|
|
301
|
+
rgb: [0.196, 0.196, 0.2156]
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
id: 4,
|
|
305
|
+
name: "纯白色",
|
|
306
|
+
label: "bgColor.white",
|
|
307
|
+
color: "#FFF",
|
|
308
|
+
rgb: [1, 1, 1]
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
id: 5,
|
|
312
|
+
name: "奶白蓝",
|
|
313
|
+
label: "bgColor.milkBlue",
|
|
314
|
+
color: "#ECF5FF",
|
|
315
|
+
rgb: [0.98, 0.98, 0.98]
|
|
316
|
+
}
|
|
317
|
+
], $t = { style: { height: "var(--setting-content-height)" } }, Dt = { class: "setting-title" }, At = {
|
|
318
|
+
key: 0,
|
|
319
|
+
class: "color-list"
|
|
320
|
+
}, Ut = ["onClick"], Bt = { class: "setting-effect" }, Mt = { class: "setting-effect" }, zt = { class: "light-slider" }, Nt = {
|
|
321
|
+
key: 1,
|
|
322
|
+
class: "setting-title"
|
|
323
|
+
}, Ft = {
|
|
324
|
+
key: 2,
|
|
325
|
+
class: "setting-effect"
|
|
326
|
+
}, Pt = { class: "setting-title" }, Ot = { class: "setting-effect" }, Lt = { class: "setting-effect" }, Kt = { class: "setting-effect" }, Rt = { class: "setting-effect" }, Wt = { class: "setting-effect" }, Ht = { class: "setting-effect" }, jt = { class: "setting-effect" }, Gt = {
|
|
327
|
+
key: 1,
|
|
328
|
+
class: "setting_panel"
|
|
329
|
+
}, Yt = { class: "setting-title-box" }, Zt = { class: "setting-title" }, _t = { class: "setting-title-icon" }, qt = { class: "setting-color-box" }, Jt = { class: "setting-color-list" }, Qt = ["onClick"], Xt = { class: "setting-config-box" }, el = { class: "setting-switch-item" }, tl = { class: "setting-switch-item" }, ll = { class: "setting-switch-item" }, ol = { class: "setting-switch-item" }, nl = { class: "setting-switch-item" }, il = { class: "setting-switch-item" }, sl = { class: "setting-switch-item" }, al = { class: "setting-switch-item" }, ul = { class: "setting-switch-item" }, dl = { class: "light-slider" }, cl = { class: "setting-switch-item" }, vl = { class: "speed-slider" }, rl = /* @__PURE__ */ Be({
|
|
330
|
+
__name: "SettingTool",
|
|
331
|
+
props: {
|
|
332
|
+
instruction: {},
|
|
333
|
+
componentId: {}
|
|
334
|
+
},
|
|
335
|
+
emits: ["closePanel", "emitHandler"],
|
|
336
|
+
setup(o, { emit: ue }) {
|
|
337
|
+
const u = et(), h = tt(), x = o, T = ue, Y = f(0);
|
|
338
|
+
let d;
|
|
339
|
+
Me(() => {
|
|
340
|
+
h.setReadyById(x.componentId), Ue.currentTheme == "blue" ? Y.value = 240 : Ue.currentTheme == "light-gray" && (Y.value = 202);
|
|
341
|
+
});
|
|
342
|
+
const Z = f(!1), $ = f(!1), _ = new bt(5);
|
|
343
|
+
Ve(
|
|
344
|
+
() => h.isToolActive(x.componentId),
|
|
345
|
+
(i) => {
|
|
346
|
+
i === !1 ? (_.stop(), $.value && Ee()) : Z.value || (Z.value = !0);
|
|
347
|
+
}
|
|
348
|
+
);
|
|
349
|
+
const y = () => {
|
|
350
|
+
Z.value && ($.value = !0, _.start(() => {
|
|
351
|
+
Ee();
|
|
352
|
+
}));
|
|
353
|
+
}, q = f(!1), I = f(1), te = f("linear-gradient(180deg, #fffefb 0%, #daebff 100%)"), le = (i = !q.value) => {
|
|
354
|
+
q.value = i;
|
|
355
|
+
}, K = (i) => {
|
|
356
|
+
y(), I.value = i.id, te.value = i.color, W.emit("changeBackgroundColor", i.color);
|
|
357
|
+
}, r = f(!1), z = (i) => {
|
|
358
|
+
y(), d.setAllObjectsEdges(i), i || d.setObjectsEdges(st.entityState.edgesObjectIds, !0);
|
|
359
|
+
}, k = f(50), J = (i) => {
|
|
360
|
+
y(), d.setLightIntensity(i);
|
|
361
|
+
}, c = f(!1), p = (i) => {
|
|
362
|
+
y(), d.SetSkyBoxToolActive(i);
|
|
363
|
+
}, V = f(!1), Q = (i) => {
|
|
364
|
+
y(), d.SetOrthoModeActive(i);
|
|
365
|
+
}, X = f(M("outliersDetect")), ke = (i) => {
|
|
366
|
+
at("outliersDetect", X.value);
|
|
367
|
+
}, N = f(!0), de = (i) => {
|
|
368
|
+
y(), d.SetThreeDModeActive(i), M("isMobile") && (window.bimViewer.navCubeMode.visible = !1);
|
|
369
|
+
}, D = f(!1), A = f(!1), ce = (i) => {
|
|
370
|
+
y(), window.bimViewer.setWorldAxisYDown(D.value), Q(V.value);
|
|
371
|
+
}, ve = (i) => {
|
|
372
|
+
y(), window.bimViewer.setWorldAxisZUp(A.value), Q(V.value);
|
|
373
|
+
}, U = f(!1), oe = (i) => {
|
|
374
|
+
y(), d.SetShowSpaceModeActive(i), re(F.value ? 1 : 2);
|
|
375
|
+
}, R = f(["亮"]), Ce = f(["亮", "暗"]), ze = {
|
|
376
|
+
亮: "setting.spaceEffects.bright",
|
|
377
|
+
暗: "setting.spaceEffects.dark"
|
|
378
|
+
}, F = f(!1), re = (i) => {
|
|
379
|
+
y(), i == "亮" ? window.bimViewer.setSpaceMaterialColor(1) : window.bimViewer.setSpaceMaterialColor(2), R.value = Ce.value.includes(i) ? [i] : [];
|
|
380
|
+
}, me = (i = !F.value) => {
|
|
381
|
+
y(), window.bimViewer.setSpaceMaterialColor(i ? 2 : 1);
|
|
382
|
+
}, P = f(50), Se = (i) => {
|
|
383
|
+
y(), i == 0 ? d.viewer.cameraControl.customTouchDollyRate = 0.05 / 50 : d.viewer.cameraControl.customTouchDollyRate = i / 50;
|
|
384
|
+
}, Ee = () => {
|
|
385
|
+
var e, m;
|
|
386
|
+
let i;
|
|
387
|
+
M("isMobile") ? i = {
|
|
388
|
+
backgroundColor: ((e = G.find((B) => B.id == I.value)) == null ? void 0 : e.name) ?? "渐变蓝",
|
|
389
|
+
showEdges: r.value,
|
|
390
|
+
lightIntensity: k.value,
|
|
391
|
+
skyBox: c.value,
|
|
392
|
+
orthoMode: V.value,
|
|
393
|
+
modelType2D: N.value,
|
|
394
|
+
yAxisDown: D.value,
|
|
395
|
+
zAxisUp: A.value,
|
|
396
|
+
showSpace: U.value,
|
|
397
|
+
spaceEffect: F.value,
|
|
398
|
+
touchDollySpeed: P.value
|
|
399
|
+
} : i = {
|
|
400
|
+
backgroundColor: ((m = G.find((B) => B.id == I.value)) == null ? void 0 : m.name) ?? "渐变蓝",
|
|
401
|
+
showEdges: r.value,
|
|
402
|
+
lightIntensity: k.value,
|
|
403
|
+
skyBox: c.value,
|
|
404
|
+
orthoMode: V.value,
|
|
405
|
+
modelType2D: N.value,
|
|
406
|
+
yAxisDown: D.value,
|
|
407
|
+
zAxisUp: A.value,
|
|
408
|
+
showSpace: U.value,
|
|
409
|
+
spaceEffect: R.value[0],
|
|
410
|
+
touchDollySpeed: P.value
|
|
411
|
+
}, Ne({
|
|
412
|
+
isTool: !0,
|
|
413
|
+
event_target: "SettingTool",
|
|
414
|
+
event_name: "saveSetting",
|
|
415
|
+
content: {
|
|
416
|
+
newSets: i
|
|
417
|
+
}
|
|
418
|
+
}), $.value = !1;
|
|
419
|
+
}, Ie = (i) => {
|
|
420
|
+
const e = i.lastSet, m = G.find((B) => B.name == e.backgroundColor);
|
|
421
|
+
I.value = m ? m.id : 1, K(m ?? G[0]), r.value = e.showEdges, z(r.value), k.value = e.lightIntensity, J(k.value), V.value = e.orthoMode, Q(V.value), N.value = e.modelType2D, de(N.value), U.value = e.showSpace, oe(U.value), M("isMobile") ? (F.value = typeof e.spaceEffect == "string" ? e.spaceEffect == "亮" : typeof e.spaceEffect == "boolean" ? e.spaceEffect : !0, me(F.value)) : (R.value = [e.spaceEffect], re(R.value[0])), D.value = e.yAxisDown, D.value && ce(), A.value = e.zAxisUp, A.value && ve(), P.value = e.touchDollySpeed ?? 50, M("isMobile") ? Se(P.value) : (c.value = e.skyBox, p(c.value)), $.value = !1;
|
|
422
|
+
}, xe = () => {
|
|
423
|
+
d = window.bimViewer, d.viewer.scene.on("aabb", () => {
|
|
424
|
+
oe(U.value), me(!0);
|
|
425
|
+
});
|
|
426
|
+
};
|
|
427
|
+
W.on("BimViewer", xe), W.on("lastSetsContent", Ie), ht(() => {
|
|
428
|
+
W.off("BimViewer", xe), W.off("lastSetsContent", Ie);
|
|
429
|
+
});
|
|
430
|
+
const Ne = (i) => {
|
|
431
|
+
T("emitHandler", i);
|
|
432
|
+
}, Te = (i) => {
|
|
433
|
+
i && i.target.id != "setting_back" || (W.emit("hideToolbar", !1), T("closePanel"), le(!1));
|
|
434
|
+
};
|
|
435
|
+
return (i, e) => {
|
|
436
|
+
const m = Tt, B = ct, Fe = nt, Pe = ot, $e = lt, Oe = dt, Le = it;
|
|
437
|
+
return s(), g(ie, null, [
|
|
438
|
+
n(M)("isMobile") ? b("", !0) : (s(), w(Oe, {
|
|
439
|
+
key: 0,
|
|
440
|
+
class: "setting_contaier",
|
|
441
|
+
width: Y.value,
|
|
442
|
+
panelTitle: n(u)("setting.title"),
|
|
443
|
+
"click-handle": Te,
|
|
444
|
+
style: { height: "var(--setting-panel-height)" }
|
|
445
|
+
}, {
|
|
446
|
+
default: S(() => [
|
|
447
|
+
l("div", $t, [
|
|
448
|
+
v($e, null, {
|
|
449
|
+
default: S(() => [
|
|
450
|
+
l("div", Dt, a(n(u)("setting.effect")), 1),
|
|
451
|
+
l("div", {
|
|
452
|
+
class: "setting-effect",
|
|
453
|
+
onClick: e[0] || (e[0] = (t) => le())
|
|
454
|
+
}, [
|
|
455
|
+
E(a(n(u)("setting.bgColor")) + " ", 1),
|
|
456
|
+
l("div", {
|
|
457
|
+
class: "choose-color",
|
|
458
|
+
style: ee({ background: te.value })
|
|
459
|
+
}, null, 4)
|
|
460
|
+
]),
|
|
461
|
+
q.value ? (s(), g("div", At, [
|
|
462
|
+
(s(!0), g(ie, null, be(n(G), (t) => (s(), g("div", {
|
|
463
|
+
key: t.id,
|
|
464
|
+
class: C(["color-item", { "color-item-active": I.value === t.id }]),
|
|
465
|
+
onClick: (fe) => K(t)
|
|
466
|
+
}, [
|
|
467
|
+
l("div", {
|
|
468
|
+
class: "bg",
|
|
469
|
+
style: ee({ background: t.color, border: t.id === 4 ? "1px solid #F1F1F1" : "none" })
|
|
470
|
+
}, null, 4),
|
|
471
|
+
E(" " + a(n(u)(t.label || t.name)), 1)
|
|
472
|
+
], 10, Ut))), 128))
|
|
473
|
+
])) : b("", !0),
|
|
474
|
+
l("div", Bt, [
|
|
475
|
+
E(a(n(u)("setting.showEdges")) + " ", 1),
|
|
476
|
+
v(m, {
|
|
477
|
+
modelValue: r.value,
|
|
478
|
+
"onUpdate:modelValue": e[1] || (e[1] = (t) => r.value = t),
|
|
479
|
+
style: { "--el-switch-on-color": "#0065fc" },
|
|
480
|
+
onChange: e[2] || (e[2] = (t) => z())
|
|
481
|
+
}, null, 8, ["modelValue"])
|
|
482
|
+
]),
|
|
483
|
+
l("div", Mt, [
|
|
484
|
+
E(a(n(u)("setting.lightIntensity")) + " ", 1),
|
|
485
|
+
l("div", zt, [
|
|
486
|
+
v(B, {
|
|
487
|
+
modelValue: k.value,
|
|
488
|
+
"onUpdate:modelValue": e[3] || (e[3] = (t) => k.value = t),
|
|
489
|
+
onInput: e[4] || (e[4] = (t) => J(k.value))
|
|
490
|
+
}, null, 8, ["modelValue"])
|
|
491
|
+
])
|
|
492
|
+
]),
|
|
493
|
+
n(M)("skyboxImg") ? (s(), g("div", Nt, a(n(u)("setting.appearance")), 1)) : b("", !0),
|
|
494
|
+
n(M)("skyboxImg") ? (s(), g("div", Ft, [
|
|
495
|
+
E(a(n(u)("setting.skybox")) + " ", 1),
|
|
496
|
+
v(m, {
|
|
497
|
+
modelValue: c.value,
|
|
498
|
+
"onUpdate:modelValue": e[5] || (e[5] = (t) => c.value = t),
|
|
499
|
+
style: { "--el-switch-on-color": "#0065fc" },
|
|
500
|
+
onChange: e[6] || (e[6] = (t) => p())
|
|
501
|
+
}, null, 8, ["modelValue"])
|
|
502
|
+
])) : b("", !0),
|
|
503
|
+
l("div", Pt, a(n(u)("setting.modelViewSwitch")), 1),
|
|
504
|
+
l("div", Ot, [
|
|
505
|
+
E(a(n(u)("setting.perspective")) + " ", 1),
|
|
506
|
+
v(m, {
|
|
507
|
+
modelValue: V.value,
|
|
508
|
+
"onUpdate:modelValue": e[7] || (e[7] = (t) => V.value = t),
|
|
509
|
+
style: { "--el-switch-on-color": "#0065fc" },
|
|
510
|
+
onChange: e[8] || (e[8] = (t) => Q())
|
|
511
|
+
}, null, 8, ["modelValue"])
|
|
512
|
+
]),
|
|
513
|
+
l("div", Lt, [
|
|
514
|
+
E(a(n(u)("setting.outliersDetect")) + " ", 1),
|
|
515
|
+
v(m, {
|
|
516
|
+
modelValue: X.value,
|
|
517
|
+
"onUpdate:modelValue": e[9] || (e[9] = (t) => X.value = t),
|
|
518
|
+
style: { "--el-switch-on-color": "#0065fc" },
|
|
519
|
+
onChange: e[10] || (e[10] = (t) => ke())
|
|
520
|
+
}, null, 8, ["modelValue"])
|
|
521
|
+
]),
|
|
522
|
+
l("div", Kt, [
|
|
523
|
+
E(a(n(u)("setting.mode2d3d")) + " ", 1),
|
|
524
|
+
v(m, {
|
|
525
|
+
modelValue: N.value,
|
|
526
|
+
"onUpdate:modelValue": e[11] || (e[11] = (t) => N.value = t),
|
|
527
|
+
style: { "--el-switch-on-color": "#0065fc" },
|
|
528
|
+
onChange: e[12] || (e[12] = (t) => de())
|
|
529
|
+
}, null, 8, ["modelValue"])
|
|
530
|
+
]),
|
|
531
|
+
l("div", Rt, [
|
|
532
|
+
l("div", null, a(n(u)("setting.modelInvert")), 1),
|
|
533
|
+
l("div", null, [
|
|
534
|
+
v(m, {
|
|
535
|
+
modelValue: D.value,
|
|
536
|
+
"onUpdate:modelValue": e[13] || (e[13] = (t) => D.value = t),
|
|
537
|
+
style: { "--el-switch-on-color": "#0065fc" },
|
|
538
|
+
onChange: e[14] || (e[14] = (t) => ce())
|
|
539
|
+
}, null, 8, ["modelValue"])
|
|
540
|
+
])
|
|
541
|
+
]),
|
|
542
|
+
l("div", Wt, [
|
|
543
|
+
l("div", null, a(n(u)("setting.zAxisUp")), 1),
|
|
544
|
+
l("div", null, [
|
|
545
|
+
v(m, {
|
|
546
|
+
modelValue: A.value,
|
|
547
|
+
"onUpdate:modelValue": e[15] || (e[15] = (t) => A.value = t),
|
|
548
|
+
style: { "--el-switch-on-color": "#0065fc" },
|
|
549
|
+
onChange: e[16] || (e[16] = (t) => ve())
|
|
550
|
+
}, null, 8, ["modelValue"])
|
|
551
|
+
])
|
|
552
|
+
]),
|
|
553
|
+
l("div", Ht, [
|
|
554
|
+
E(a(n(u)("setting.modelSpace")) + " ", 1),
|
|
555
|
+
v(m, {
|
|
556
|
+
modelValue: U.value,
|
|
557
|
+
"onUpdate:modelValue": e[17] || (e[17] = (t) => U.value = t),
|
|
558
|
+
style: { "--el-switch-on-color": "#0065fc" },
|
|
559
|
+
onChange: e[18] || (e[18] = (t) => oe())
|
|
560
|
+
}, null, 8, ["modelValue"])
|
|
561
|
+
]),
|
|
562
|
+
l("div", jt, [
|
|
563
|
+
E(a(n(u)("setting.spaceEffect")) + " ", 1),
|
|
564
|
+
v(Pe, {
|
|
565
|
+
modelValue: R.value,
|
|
566
|
+
"onUpdate:modelValue": e[19] || (e[19] = (t) => R.value = t),
|
|
567
|
+
size: "small"
|
|
568
|
+
}, {
|
|
569
|
+
default: S(() => [
|
|
570
|
+
(s(!0), g(ie, null, be(Ce.value, (t) => (s(), w(Fe, {
|
|
571
|
+
key: t,
|
|
572
|
+
value: t,
|
|
573
|
+
onChange: (fe) => re(t)
|
|
574
|
+
}, {
|
|
575
|
+
default: S(() => [
|
|
576
|
+
E(a(n(u)(ze[t])), 1)
|
|
577
|
+
]),
|
|
578
|
+
_: 2
|
|
579
|
+
}, 1032, ["value", "onChange"]))), 128))
|
|
580
|
+
]),
|
|
581
|
+
_: 1
|
|
582
|
+
}, 8, ["modelValue"])
|
|
583
|
+
])
|
|
584
|
+
]),
|
|
585
|
+
_: 1
|
|
586
|
+
})
|
|
587
|
+
])
|
|
588
|
+
]),
|
|
589
|
+
_: 1
|
|
590
|
+
}, 8, ["width", "panelTitle"])),
|
|
591
|
+
n(M)("isMobile") ? (s(), g("div", Gt, [
|
|
592
|
+
l("div", Yt, [
|
|
593
|
+
l("div", Zt, a(n(u)("setting.title")), 1),
|
|
594
|
+
l("div", _t, [
|
|
595
|
+
v(Le, {
|
|
596
|
+
width: 0.4,
|
|
597
|
+
"size-type": "rem",
|
|
598
|
+
"click-handle": Te
|
|
599
|
+
})
|
|
600
|
+
])
|
|
601
|
+
]),
|
|
602
|
+
l("div", qt, [
|
|
603
|
+
l("div", Jt, [
|
|
604
|
+
(s(!0), g(ie, null, be(n(G), (t, fe) => (s(), g("div", {
|
|
605
|
+
key: fe,
|
|
606
|
+
class: C(["setting-color-item", {
|
|
607
|
+
"setting-color-item-active": I.value === t.id
|
|
608
|
+
}]),
|
|
609
|
+
onClick: (ml) => K(t)
|
|
610
|
+
}, [
|
|
611
|
+
l("div", {
|
|
612
|
+
class: "setting-color-icon",
|
|
613
|
+
style: ee({
|
|
614
|
+
background: t.color,
|
|
615
|
+
border: t.id === I.value ? "0.02rem solid #0065FC" : ""
|
|
616
|
+
})
|
|
617
|
+
}, null, 4),
|
|
618
|
+
l("div", {
|
|
619
|
+
class: "setting-color-name",
|
|
620
|
+
style: ee({ color: t.id === I.value ? "#0065FC" : "" })
|
|
621
|
+
}, a(n(u)(t.label || t.name)), 5)
|
|
622
|
+
], 10, Qt))), 128))
|
|
623
|
+
])
|
|
624
|
+
]),
|
|
625
|
+
l("div", Xt, [
|
|
626
|
+
v($e, { height: "230" }, {
|
|
627
|
+
default: S(() => [
|
|
628
|
+
l("div", el, [
|
|
629
|
+
l("div", null, a(n(u)("setting.showEdges")), 1),
|
|
630
|
+
l("div", null, [
|
|
631
|
+
v(m, {
|
|
632
|
+
modelValue: r.value,
|
|
633
|
+
"onUpdate:modelValue": e[20] || (e[20] = (t) => r.value = t),
|
|
634
|
+
size: "small",
|
|
635
|
+
onChange: e[21] || (e[21] = (t) => z())
|
|
636
|
+
}, null, 8, ["modelValue"])
|
|
637
|
+
])
|
|
638
|
+
]),
|
|
639
|
+
l("div", tl, [
|
|
640
|
+
l("div", null, a(n(u)("setting.perspective")), 1),
|
|
641
|
+
l("div", null, [
|
|
642
|
+
v(m, {
|
|
643
|
+
modelValue: V.value,
|
|
644
|
+
"onUpdate:modelValue": e[22] || (e[22] = (t) => V.value = t),
|
|
645
|
+
size: "small",
|
|
646
|
+
onChange: e[23] || (e[23] = (t) => Q())
|
|
647
|
+
}, null, 8, ["modelValue"])
|
|
648
|
+
])
|
|
649
|
+
]),
|
|
650
|
+
l("div", ll, [
|
|
651
|
+
l("div", null, a(n(u)("setting.outliersDetect")), 1),
|
|
652
|
+
l("div", null, [
|
|
653
|
+
v(m, {
|
|
654
|
+
modelValue: X.value,
|
|
655
|
+
"onUpdate:modelValue": e[24] || (e[24] = (t) => X.value = t),
|
|
656
|
+
size: "small",
|
|
657
|
+
onChange: e[25] || (e[25] = (t) => ke())
|
|
658
|
+
}, null, 8, ["modelValue"])
|
|
659
|
+
])
|
|
660
|
+
]),
|
|
661
|
+
l("div", ol, [
|
|
662
|
+
l("div", null, a(n(u)("setting.mode2d3d")), 1),
|
|
663
|
+
l("div", null, [
|
|
664
|
+
v(m, {
|
|
665
|
+
modelValue: N.value,
|
|
666
|
+
"onUpdate:modelValue": e[26] || (e[26] = (t) => N.value = t),
|
|
667
|
+
size: "small",
|
|
668
|
+
onChange: e[27] || (e[27] = (t) => de())
|
|
669
|
+
}, null, 8, ["modelValue"])
|
|
670
|
+
])
|
|
671
|
+
]),
|
|
672
|
+
l("div", nl, [
|
|
673
|
+
l("div", null, a(n(u)("setting.modelInvert")), 1),
|
|
674
|
+
l("div", null, [
|
|
675
|
+
v(m, {
|
|
676
|
+
modelValue: D.value,
|
|
677
|
+
"onUpdate:modelValue": e[28] || (e[28] = (t) => D.value = t),
|
|
678
|
+
size: "small",
|
|
679
|
+
onChange: e[29] || (e[29] = (t) => ce())
|
|
680
|
+
}, null, 8, ["modelValue"])
|
|
681
|
+
])
|
|
682
|
+
]),
|
|
683
|
+
l("div", il, [
|
|
684
|
+
l("div", null, a(n(u)("setting.zAxisUp")), 1),
|
|
685
|
+
l("div", null, [
|
|
686
|
+
v(m, {
|
|
687
|
+
modelValue: A.value,
|
|
688
|
+
"onUpdate:modelValue": e[30] || (e[30] = (t) => A.value = t),
|
|
689
|
+
size: "small",
|
|
690
|
+
onChange: e[31] || (e[31] = (t) => ve())
|
|
691
|
+
}, null, 8, ["modelValue"])
|
|
692
|
+
])
|
|
693
|
+
]),
|
|
694
|
+
l("div", sl, [
|
|
695
|
+
l("div", null, a(n(u)("setting.modelSpace")), 1),
|
|
696
|
+
l("div", null, [
|
|
697
|
+
v(m, {
|
|
698
|
+
modelValue: U.value,
|
|
699
|
+
"onUpdate:modelValue": e[32] || (e[32] = (t) => U.value = t),
|
|
700
|
+
size: "small",
|
|
701
|
+
onChange: e[33] || (e[33] = (t) => oe())
|
|
702
|
+
}, null, 8, ["modelValue"])
|
|
703
|
+
])
|
|
704
|
+
]),
|
|
705
|
+
l("div", al, [
|
|
706
|
+
l("div", null, a(n(u)("setting.spaceEffect")), 1),
|
|
707
|
+
l("div", null, [
|
|
708
|
+
v(m, {
|
|
709
|
+
modelValue: F.value,
|
|
710
|
+
"onUpdate:modelValue": e[34] || (e[34] = (t) => F.value = t),
|
|
711
|
+
size: "small",
|
|
712
|
+
onChange: e[35] || (e[35] = (t) => me())
|
|
713
|
+
}, null, 8, ["modelValue"])
|
|
714
|
+
])
|
|
715
|
+
]),
|
|
716
|
+
l("div", ul, [
|
|
717
|
+
l("div", null, a(n(u)("setting.lightIntensity")), 1),
|
|
718
|
+
l("div", dl, [
|
|
719
|
+
v(B, {
|
|
720
|
+
modelValue: k.value,
|
|
721
|
+
"onUpdate:modelValue": e[36] || (e[36] = (t) => k.value = t),
|
|
722
|
+
onInput: e[37] || (e[37] = (t) => J(k.value))
|
|
723
|
+
}, null, 8, ["modelValue"])
|
|
724
|
+
])
|
|
725
|
+
]),
|
|
726
|
+
l("div", cl, [
|
|
727
|
+
l("div", null, a(n(u)("setting.zoomSpeed")), 1),
|
|
728
|
+
l("div", vl, [
|
|
729
|
+
v(B, {
|
|
730
|
+
modelValue: P.value,
|
|
731
|
+
"onUpdate:modelValue": e[38] || (e[38] = (t) => P.value = t),
|
|
732
|
+
onInput: e[39] || (e[39] = (t) => Se(P.value))
|
|
733
|
+
}, null, 8, ["modelValue"])
|
|
734
|
+
])
|
|
735
|
+
])
|
|
736
|
+
]),
|
|
737
|
+
_: 1
|
|
738
|
+
})
|
|
739
|
+
])
|
|
740
|
+
])) : b("", !0)
|
|
741
|
+
], 64);
|
|
742
|
+
};
|
|
743
|
+
}
|
|
744
|
+
}), wl = /* @__PURE__ */ ut(rl, [["__scopeId", "data-v-874a3737"]]);
|
|
745
|
+
export {
|
|
746
|
+
wl as default
|
|
747
|
+
};
|