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