@xtctwins/tctwins-industry-engine 0.0.1
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 +5 -0
- package/dist/AnnotationTool-p1JXCwLS.mjs +129 -0
- package/dist/BCFTool-Cssf2dIk.mjs +25118 -0
- package/dist/CommentTool-Bug4iFC9.mjs +167 -0
- package/dist/Industry_Viewer_Lib.es.js +12 -0
- package/dist/Industry_Viewer_Lib.umd.js +633 -0
- package/dist/InspectorTool-BJzXtOU-.mjs +674 -0
- package/dist/MeasureTool-Dkrz8dS6.mjs +168 -0
- package/dist/MouseTool-Cvc5G90V.mjs +80 -0
- package/dist/NavigateTool-DwEEE5nd.mjs +52 -0
- package/dist/RoamTool-dChjfNvn.mjs +212 -0
- package/dist/ScreenShotTool-CPrA7pEa.mjs +357 -0
- package/dist/SectionTool-Du-V6U-J.mjs +217 -0
- package/dist/SettingTool-X6AjiptI.mjs +691 -0
- package/dist/StructureTree-CHhrQiDL.mjs +1591 -0
- package/dist/XRayTool-Ci1SR92x.mjs +57 -0
- package/dist/alert-BzjOjWCu.mjs +46 -0
- package/dist/const-DeViLYl5.mjs +266 -0
- package/dist/el-checkbox-DeNYO9VE.mjs +460 -0
- package/dist/el-input-number-CsUyeV_5.mjs +858 -0
- package/dist/index-CBO0Vhj8.mjs +99354 -0
- package/dist/index.html +17 -0
- package/dist/panel.vue_vue_type_style_index_0_lang-CUi6naB0.mjs +61 -0
- package/dist/style.css +1 -0
- package/dist/tallPanel-D226sbKd.mjs +84 -0
- package/package.json +65 -0
- package/types/App.vue.d.ts +2 -0
- package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +55 -0
- package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +59 -0
- package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +18 -0
- package/types/components/BCFComponents/BCFFilter.vue.d.ts +14 -0
- package/types/components/BCFComponents/BCFTool.vue.d.ts +15 -0
- package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +16 -0
- package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +11 -0
- package/types/components/BCFComponents/commentInput.vue.d.ts +51 -0
- package/types/components/BCFComponents/commentsView.vue.d.ts +48 -0
- package/types/components/BCFComponents/dialogPanel.vue.d.ts +15 -0
- package/types/components/BCFComponents/imageView.vue.d.ts +17 -0
- package/types/components/BCFComponents/imageZoomIn.vue.d.ts +9 -0
- package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +14 -0
- package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +6 -0
- package/types/components/BimViewerComponents/CommentTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/InspectorTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/MeasureTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/MouseTool.vue.d.ts +6 -0
- package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +10 -0
- package/types/components/BimViewerComponents/RoamTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/ScreenShotTool.vue.d.ts +10 -0
- package/types/components/BimViewerComponents/SectionTool.vue.d.ts +10 -0
- package/types/components/BimViewerComponents/SettingTool.vue.d.ts +13 -0
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +3053 -0
- package/types/components/BimViewerComponents/Toolbar.vue.d.ts +10 -0
- package/types/components/BimViewerComponents/XRayTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +27 -0
- package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +56 -0
- package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +55 -0
- package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +278 -0
- package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +255 -0
- package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +15 -0
- package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +54 -0
- package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +17 -0
- package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +12 -0
- package/types/components/index.d.ts +3 -0
- package/types/components/industryViewer.vue.d.ts +18 -0
- package/types/components/utilsComponents/alert.vue.d.ts +32 -0
- package/types/components/utilsComponents/closeButton.vue.d.ts +50 -0
- package/types/components/utilsComponents/closeButton_dark.vue.d.ts +32 -0
- package/types/components/utilsComponents/emptyPage.vue.d.ts +6 -0
- package/types/components/utilsComponents/loading.vue.d.ts +2 -0
- package/types/components/utilsComponents/panel.vue.d.ts +47 -0
- package/types/components/utilsComponents/rectangleButton.vue.d.ts +106 -0
- package/types/components/utilsComponents/tallPanel.vue.d.ts +69 -0
- package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +82 -0
- package/types/index.d.ts +31 -0
- package/types/main.d.ts +1 -0
- package/types/pages/viewerEntry.vue.d.ts +59 -0
- package/types/services/request/config.d.ts +8 -0
- package/types/store/bcfManager.d.ts +11 -0
- package/types/store/bcfReflect.d.ts +88 -0
- package/types/store/const.d.ts +211 -0
- package/types/store/initConfigs.d.ts +58 -0
- package/types/store/propertyReflect.d.ts +1 -0
- package/types/store/themeManager.d.ts +8 -0
- package/types/store/toolbars.d.ts +392 -0
- package/types/utils/OSSHelper.d.ts +4 -0
- package/types/utils/cacheInfo.d.ts +20 -0
- package/types/utils/dateFormat.d.ts +2 -0
- package/types/utils/dpscan.d.ts +1 -0
- package/types/utils/eventBus.d.ts +86 -0
- package/types/utils/roles.d.ts +1 -0
- package/types/utils/splitType.d.ts +3 -0
- package/types/utils/timer.d.ts +9 -0
- package/types/viewerManager/initial/viewerInitial.d.ts +7 -0
- package/types/viewerManager/load/loadModel.d.ts +1 -0
- package/types/viewerManager/viewerManager.d.ts +12 -0
|
@@ -0,0 +1,691 @@
|
|
|
1
|
+
var Ne = Object.defineProperty;
|
|
2
|
+
var Fe = (u, g, y) => g in u ? Ne(u, g, { enumerable: !0, configurable: !0, writable: !0, value: y }) : u[g] = y;
|
|
3
|
+
var H = (u, g, y) => Fe(u, typeof g != "symbol" ? g + "" : g, y);
|
|
4
|
+
import { S as Oe, D as Le, m as le, W as Ke, M as We, U as me, i as oe, d as ve, F as ce, G as fe, X as pe, P as Re, J as Ze, u as Ge, Q as He, K as _e, Y as Ye, j as Ee, E as L, Z as De, $ as je, _ as qe, w as Je, p as Qe, T as Ae, q as F, t as _, x as Xe, y as el, z as ll } from "./index-CBO0Vhj8.mjs";
|
|
5
|
+
import { _ as tl } from "./panel.vue_vue_type_style_index_0_lang-CUi6naB0.mjs";
|
|
6
|
+
/* empty css */
|
|
7
|
+
import { E as ol, a as nl } from "./el-checkbox-DeNYO9VE.mjs";
|
|
8
|
+
import { E as il } from "./el-input-number-CsUyeV_5.mjs";
|
|
9
|
+
import { defineComponent as be, computed as O, ref as m, watch as ge, onMounted as Ue, openBlock as s, createElementBlock as f, normalizeClass as T, unref as i, withModifiers as sl, createElementVNode as t, withKeys as al, createBlock as h, withCtx as E, resolveDynamicComponent as Y, createCommentVNode as p, toDisplayString as J, normalizeStyle as q, createVNode as d, renderSlot as Be, nextTick as ul, onBeforeUnmount as dl, resolveComponent as rl, Fragment as j, createTextVNode as M, renderList as te } from "vue";
|
|
10
|
+
import { B as K } from "./const-DeViLYl5.mjs";
|
|
11
|
+
import { Loading as vl } from "@element-plus/icons-vue";
|
|
12
|
+
const cl = (u) => ["", ...Oe].includes(u), ml = Le({
|
|
13
|
+
modelValue: {
|
|
14
|
+
type: [Boolean, String, Number],
|
|
15
|
+
default: !1
|
|
16
|
+
},
|
|
17
|
+
disabled: Boolean,
|
|
18
|
+
loading: Boolean,
|
|
19
|
+
size: {
|
|
20
|
+
type: String,
|
|
21
|
+
validator: cl
|
|
22
|
+
},
|
|
23
|
+
width: {
|
|
24
|
+
type: [String, Number],
|
|
25
|
+
default: ""
|
|
26
|
+
},
|
|
27
|
+
inlinePrompt: Boolean,
|
|
28
|
+
inactiveActionIcon: {
|
|
29
|
+
type: le
|
|
30
|
+
},
|
|
31
|
+
activeActionIcon: {
|
|
32
|
+
type: le
|
|
33
|
+
},
|
|
34
|
+
activeIcon: {
|
|
35
|
+
type: le
|
|
36
|
+
},
|
|
37
|
+
inactiveIcon: {
|
|
38
|
+
type: le
|
|
39
|
+
},
|
|
40
|
+
activeText: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: ""
|
|
43
|
+
},
|
|
44
|
+
inactiveText: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: ""
|
|
47
|
+
},
|
|
48
|
+
activeValue: {
|
|
49
|
+
type: [Boolean, String, Number],
|
|
50
|
+
default: !0
|
|
51
|
+
},
|
|
52
|
+
inactiveValue: {
|
|
53
|
+
type: [Boolean, String, Number],
|
|
54
|
+
default: !1
|
|
55
|
+
},
|
|
56
|
+
name: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: ""
|
|
59
|
+
},
|
|
60
|
+
validateEvent: {
|
|
61
|
+
type: Boolean,
|
|
62
|
+
default: !0
|
|
63
|
+
},
|
|
64
|
+
beforeChange: {
|
|
65
|
+
type: Ke(Function)
|
|
66
|
+
},
|
|
67
|
+
id: String,
|
|
68
|
+
tabindex: {
|
|
69
|
+
type: [String, Number]
|
|
70
|
+
},
|
|
71
|
+
...We(["ariaLabel"])
|
|
72
|
+
}), fl = {
|
|
73
|
+
[me]: (u) => oe(u) || ve(u) || ce(u),
|
|
74
|
+
[fe]: (u) => oe(u) || ve(u) || ce(u),
|
|
75
|
+
[pe]: (u) => oe(u) || ve(u) || ce(u)
|
|
76
|
+
}, ye = "ElSwitch", pl = be({
|
|
77
|
+
name: ye
|
|
78
|
+
}), gl = /* @__PURE__ */ be({
|
|
79
|
+
...pl,
|
|
80
|
+
props: ml,
|
|
81
|
+
emits: fl,
|
|
82
|
+
setup(u, { expose: g, emit: y }) {
|
|
83
|
+
const v = u, { formItem: x } = Re(), S = Ze(), a = Ge("switch"), { inputId: D } = He(v, {
|
|
84
|
+
formItemContext: x
|
|
85
|
+
}), k = _e(O(() => v.loading)), z = m(v.modelValue !== !1), b = m(), $ = m(), A = O(() => [
|
|
86
|
+
a.b(),
|
|
87
|
+
a.m(S.value),
|
|
88
|
+
a.is("disabled", k.value),
|
|
89
|
+
a.is("checked", c.value)
|
|
90
|
+
]), W = O(() => [
|
|
91
|
+
a.e("label"),
|
|
92
|
+
a.em("label", "left"),
|
|
93
|
+
a.is("active", !c.value)
|
|
94
|
+
]), B = O(() => [
|
|
95
|
+
a.e("label"),
|
|
96
|
+
a.em("label", "right"),
|
|
97
|
+
a.is("active", c.value)
|
|
98
|
+
]), I = O(() => ({
|
|
99
|
+
width: Ye(v.width)
|
|
100
|
+
}));
|
|
101
|
+
ge(() => v.modelValue, () => {
|
|
102
|
+
z.value = !0;
|
|
103
|
+
});
|
|
104
|
+
const N = O(() => z.value ? v.modelValue : !1), c = O(() => N.value === v.activeValue);
|
|
105
|
+
[v.activeValue, v.inactiveValue].includes(N.value) || (y(me, v.inactiveValue), y(fe, v.inactiveValue), y(pe, v.inactiveValue)), ge(c, (o) => {
|
|
106
|
+
var V;
|
|
107
|
+
b.value.checked = o, v.validateEvent && ((V = x == null ? void 0 : x.validate) == null || V.call(x, "change").catch((Z) => Ee(Z)));
|
|
108
|
+
});
|
|
109
|
+
const U = () => {
|
|
110
|
+
const o = c.value ? v.inactiveValue : v.activeValue;
|
|
111
|
+
y(me, o), y(fe, o), y(pe, o), ul(() => {
|
|
112
|
+
b.value.checked = c.value;
|
|
113
|
+
});
|
|
114
|
+
}, C = () => {
|
|
115
|
+
if (k.value)
|
|
116
|
+
return;
|
|
117
|
+
const { beforeChange: o } = v;
|
|
118
|
+
if (!o) {
|
|
119
|
+
U();
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
const V = o();
|
|
123
|
+
[
|
|
124
|
+
De(V),
|
|
125
|
+
oe(V)
|
|
126
|
+
].includes(!0) || je(ye, "beforeChange must return type `Promise<boolean>` or `boolean`"), De(V) ? V.then((w) => {
|
|
127
|
+
w && U();
|
|
128
|
+
}).catch((w) => {
|
|
129
|
+
Ee(ye, `some error occurred: ${w}`);
|
|
130
|
+
}) : V && U();
|
|
131
|
+
}, R = () => {
|
|
132
|
+
var o, V;
|
|
133
|
+
(V = (o = b.value) == null ? void 0 : o.focus) == null || V.call(o);
|
|
134
|
+
};
|
|
135
|
+
return Ue(() => {
|
|
136
|
+
b.value.checked = c.value;
|
|
137
|
+
}), g({
|
|
138
|
+
focus: R,
|
|
139
|
+
checked: c
|
|
140
|
+
}), (o, V) => (s(), f("div", {
|
|
141
|
+
class: T(i(A)),
|
|
142
|
+
onClick: sl(C, ["prevent"])
|
|
143
|
+
}, [
|
|
144
|
+
t("input", {
|
|
145
|
+
id: i(D),
|
|
146
|
+
ref_key: "input",
|
|
147
|
+
ref: b,
|
|
148
|
+
class: T(i(a).e("input")),
|
|
149
|
+
type: "checkbox",
|
|
150
|
+
role: "switch",
|
|
151
|
+
"aria-checked": i(c),
|
|
152
|
+
"aria-disabled": i(k),
|
|
153
|
+
"aria-label": o.ariaLabel,
|
|
154
|
+
name: o.name,
|
|
155
|
+
"true-value": o.activeValue,
|
|
156
|
+
"false-value": o.inactiveValue,
|
|
157
|
+
disabled: i(k),
|
|
158
|
+
tabindex: o.tabindex,
|
|
159
|
+
onChange: U,
|
|
160
|
+
onKeydown: al(C, ["enter"])
|
|
161
|
+
}, null, 42, ["id", "aria-checked", "aria-disabled", "aria-label", "name", "true-value", "false-value", "disabled", "tabindex", "onKeydown"]),
|
|
162
|
+
!o.inlinePrompt && (o.inactiveIcon || o.inactiveText) ? (s(), f("span", {
|
|
163
|
+
key: 0,
|
|
164
|
+
class: T(i(W))
|
|
165
|
+
}, [
|
|
166
|
+
o.inactiveIcon ? (s(), h(i(L), { key: 0 }, {
|
|
167
|
+
default: E(() => [
|
|
168
|
+
(s(), h(Y(o.inactiveIcon)))
|
|
169
|
+
]),
|
|
170
|
+
_: 1
|
|
171
|
+
})) : p("v-if", !0),
|
|
172
|
+
!o.inactiveIcon && o.inactiveText ? (s(), f("span", {
|
|
173
|
+
key: 1,
|
|
174
|
+
"aria-hidden": i(c)
|
|
175
|
+
}, J(o.inactiveText), 9, ["aria-hidden"])) : p("v-if", !0)
|
|
176
|
+
], 2)) : p("v-if", !0),
|
|
177
|
+
t("span", {
|
|
178
|
+
ref_key: "core",
|
|
179
|
+
ref: $,
|
|
180
|
+
class: T(i(a).e("core")),
|
|
181
|
+
style: q(i(I))
|
|
182
|
+
}, [
|
|
183
|
+
o.inlinePrompt ? (s(), f("div", {
|
|
184
|
+
key: 0,
|
|
185
|
+
class: T(i(a).e("inner"))
|
|
186
|
+
}, [
|
|
187
|
+
o.activeIcon || o.inactiveIcon ? (s(), h(i(L), {
|
|
188
|
+
key: 0,
|
|
189
|
+
class: T(i(a).is("icon"))
|
|
190
|
+
}, {
|
|
191
|
+
default: E(() => [
|
|
192
|
+
(s(), h(Y(i(c) ? o.activeIcon : o.inactiveIcon)))
|
|
193
|
+
]),
|
|
194
|
+
_: 1
|
|
195
|
+
}, 8, ["class"])) : o.activeText || o.inactiveText ? (s(), f("span", {
|
|
196
|
+
key: 1,
|
|
197
|
+
class: T(i(a).is("text")),
|
|
198
|
+
"aria-hidden": !i(c)
|
|
199
|
+
}, J(i(c) ? o.activeText : o.inactiveText), 11, ["aria-hidden"])) : p("v-if", !0)
|
|
200
|
+
], 2)) : p("v-if", !0),
|
|
201
|
+
t("div", {
|
|
202
|
+
class: T(i(a).e("action"))
|
|
203
|
+
}, [
|
|
204
|
+
o.loading ? (s(), h(i(L), {
|
|
205
|
+
key: 0,
|
|
206
|
+
class: T(i(a).is("loading"))
|
|
207
|
+
}, {
|
|
208
|
+
default: E(() => [
|
|
209
|
+
d(i(vl))
|
|
210
|
+
]),
|
|
211
|
+
_: 1
|
|
212
|
+
}, 8, ["class"])) : i(c) ? Be(o.$slots, "active-action", { key: 1 }, () => [
|
|
213
|
+
o.activeActionIcon ? (s(), h(i(L), { key: 0 }, {
|
|
214
|
+
default: E(() => [
|
|
215
|
+
(s(), h(Y(o.activeActionIcon)))
|
|
216
|
+
]),
|
|
217
|
+
_: 1
|
|
218
|
+
})) : p("v-if", !0)
|
|
219
|
+
]) : i(c) ? p("v-if", !0) : Be(o.$slots, "inactive-action", { key: 2 }, () => [
|
|
220
|
+
o.inactiveActionIcon ? (s(), h(i(L), { key: 0 }, {
|
|
221
|
+
default: E(() => [
|
|
222
|
+
(s(), h(Y(o.inactiveActionIcon)))
|
|
223
|
+
]),
|
|
224
|
+
_: 1
|
|
225
|
+
})) : p("v-if", !0)
|
|
226
|
+
])
|
|
227
|
+
], 2)
|
|
228
|
+
], 6),
|
|
229
|
+
!o.inlinePrompt && (o.activeIcon || o.activeText) ? (s(), f("span", {
|
|
230
|
+
key: 1,
|
|
231
|
+
class: T(i(B))
|
|
232
|
+
}, [
|
|
233
|
+
o.activeIcon ? (s(), h(i(L), { key: 0 }, {
|
|
234
|
+
default: E(() => [
|
|
235
|
+
(s(), h(Y(o.activeIcon)))
|
|
236
|
+
]),
|
|
237
|
+
_: 1
|
|
238
|
+
})) : p("v-if", !0),
|
|
239
|
+
!o.activeIcon && o.activeText ? (s(), f("span", {
|
|
240
|
+
key: 1,
|
|
241
|
+
"aria-hidden": !i(c)
|
|
242
|
+
}, J(o.activeText), 9, ["aria-hidden"])) : p("v-if", !0)
|
|
243
|
+
], 2)) : p("v-if", !0)
|
|
244
|
+
], 10, ["onClick"]));
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
var yl = /* @__PURE__ */ qe(gl, [["__file", "switch.vue"]]);
|
|
248
|
+
const bl = Je(yl);
|
|
249
|
+
class Vl {
|
|
250
|
+
constructor(g) {
|
|
251
|
+
H(this, "duration");
|
|
252
|
+
H(this, "active");
|
|
253
|
+
H(this, "remainingTime");
|
|
254
|
+
H(this, "timerInterval");
|
|
255
|
+
this.duration = g, this.remainingTime = g, this.active = !1;
|
|
256
|
+
}
|
|
257
|
+
start(g) {
|
|
258
|
+
this.active && (this.remainingTime = this.duration, clearInterval(this.timerInterval)), this.active = !0;
|
|
259
|
+
const y = () => {
|
|
260
|
+
if (this.remainingTime <= 0) {
|
|
261
|
+
clearInterval(this.timerInterval), this.active = !1, this.remainingTime = this.duration, g();
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
this.remainingTime -= 1;
|
|
265
|
+
};
|
|
266
|
+
this.timerInterval = setInterval(y, 1e3);
|
|
267
|
+
}
|
|
268
|
+
// 停止倒计时
|
|
269
|
+
stop() {
|
|
270
|
+
this.active && (clearInterval(this.timerInterval), this.active = !1);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
const wl = { style: { height: "var(--setting-content-height)" } }, hl = {
|
|
274
|
+
key: 0,
|
|
275
|
+
class: "color-list"
|
|
276
|
+
}, kl = ["onClick"], Cl = { class: "setting-effect" }, Sl = { class: "setting-effect" }, Il = { class: "light-slider" }, Tl = {
|
|
277
|
+
key: 1,
|
|
278
|
+
class: "setting-title"
|
|
279
|
+
}, El = {
|
|
280
|
+
key: 2,
|
|
281
|
+
class: "setting-effect"
|
|
282
|
+
}, Dl = { class: "setting-effect" }, Al = { class: "setting-effect" }, Bl = { class: "setting-effect" }, Ul = { class: "setting-effect" }, $l = { class: "setting-effect" }, Ml = { class: "setting-effect" }, zl = { class: "setting_panel" }, Pl = { class: "setting-title-box" }, xl = { class: "setting-title-icon" }, Nl = { class: "setting-color-box" }, Fl = { class: "setting-color-list" }, Ol = ["onClick"], Ll = { class: "setting-config-box" }, Kl = { class: "setting-switch-item" }, Wl = { class: "setting-switch-item" }, Rl = { class: "light-slider" }, Zl = { class: "setting-switch-item" }, Gl = { class: "setting-switch-item" }, Hl = { class: "setting-switch-item" }, _l = { class: "setting-switch-item" }, Yl = { class: "setting-switch-item" }, jl = { class: "setting-switch-item" }, ql = { class: "setting-switch-item" }, Jl = { class: "speed-slider" }, Ql = /* @__PURE__ */ be({
|
|
283
|
+
__name: "SettingTool",
|
|
284
|
+
props: {
|
|
285
|
+
instruction: {},
|
|
286
|
+
componentId: {}
|
|
287
|
+
},
|
|
288
|
+
emits: ["closePanel", "emitHandler"],
|
|
289
|
+
setup(u, { emit: g }) {
|
|
290
|
+
const y = Qe(), v = u, x = m(0);
|
|
291
|
+
Ue(() => {
|
|
292
|
+
y.setReadyById(v.componentId), Ae.currentTheme == "blue" ? x.value = 240 : Ae.currentTheme == "light-gray" && (x.value = 202);
|
|
293
|
+
});
|
|
294
|
+
let S;
|
|
295
|
+
const a = m(!1), D = m(!1), k = m(!1), z = m(!1), b = m(!1), $ = m(!0), A = m(!1), W = m(!1), B = m(1), I = m(50), N = m(!1), c = new Vl(5);
|
|
296
|
+
ge(
|
|
297
|
+
() => y.isToolActive(v.componentId),
|
|
298
|
+
(n) => {
|
|
299
|
+
n === !1 && (c.stop(), N.value && Ve());
|
|
300
|
+
}
|
|
301
|
+
);
|
|
302
|
+
const U = m(50), C = m(["亮"]), R = m(["亮", "暗"]), o = m("linear-gradient(180deg, #fffefb 0%, #daebff 100%)"), V = g, Z = () => {
|
|
303
|
+
S = window.bimViewer, S.viewer.scene.on("aabb", () => {
|
|
304
|
+
Q(A.value), X(C.value[0]);
|
|
305
|
+
});
|
|
306
|
+
}, w = () => {
|
|
307
|
+
N.value = !0, c.start(() => {
|
|
308
|
+
Ve();
|
|
309
|
+
});
|
|
310
|
+
}, Ve = () => {
|
|
311
|
+
var e, r;
|
|
312
|
+
let n;
|
|
313
|
+
F("isMobile") ? n = {
|
|
314
|
+
backgroundColor: ((e = K.find((P) => P.id == B.value)) == null ? void 0 : e.name) ?? "渐变蓝",
|
|
315
|
+
showEdges: k.value,
|
|
316
|
+
lightIntensity: I.value,
|
|
317
|
+
skyBox: z.value,
|
|
318
|
+
orthoMode: b.value,
|
|
319
|
+
modelType2D: $.value,
|
|
320
|
+
yAxisDown: a.value,
|
|
321
|
+
zAxisUp: D.value,
|
|
322
|
+
showSpace: A.value,
|
|
323
|
+
spaceEffect: C.value[0],
|
|
324
|
+
touchDollySpeed: U.value
|
|
325
|
+
} : n = {
|
|
326
|
+
backgroundColor: ((r = K.find((P) => P.id == B.value)) == null ? void 0 : r.name) ?? "渐变蓝",
|
|
327
|
+
showEdges: k.value,
|
|
328
|
+
lightIntensity: I.value,
|
|
329
|
+
skyBox: z.value,
|
|
330
|
+
orthoMode: b.value,
|
|
331
|
+
modelType2D: $.value,
|
|
332
|
+
yAxisDown: a.value,
|
|
333
|
+
zAxisUp: D.value,
|
|
334
|
+
showSpace: A.value,
|
|
335
|
+
spaceEffect: C.value[0]
|
|
336
|
+
}, $e({
|
|
337
|
+
isTool: !0,
|
|
338
|
+
event_target: "SettingTool",
|
|
339
|
+
event_name: "saveSetting",
|
|
340
|
+
content: {
|
|
341
|
+
newSets: n
|
|
342
|
+
}
|
|
343
|
+
}), N.value = !1;
|
|
344
|
+
}, we = (n) => {
|
|
345
|
+
const e = n.lastSet, r = K.find((P) => P.name == e.backgroundColor);
|
|
346
|
+
B.value = r ? r.id : 1, ae(r ?? K[0]), k.value = e.showEdges, de(k.value), I.value = e.lightIntensity, ue(I.value), b.value = e.orthoMode, G(b.value), $.value = e.modelType2D, re($.value), A.value = e.showSpace, Q(A.value), C.value = [e.spaceEffect], X(C.value[0]), a.value = e.yAxisDown, a.value && se(), D.value = e.zAxisUp, D.value && ie(), F("isMobile") ? (U.value = e.touchDollySpeed, Ce(U.value)) : (z.value = e.skyBox, ke(z.value)), N.value = !1;
|
|
347
|
+
};
|
|
348
|
+
_.on("BimViewer", Z), _.on("lastSetsContent", we), dl(() => {
|
|
349
|
+
_.off("BimViewer", Z), _.off("lastSetsContent", we);
|
|
350
|
+
});
|
|
351
|
+
const $e = (n) => {
|
|
352
|
+
V("emitHandler", n);
|
|
353
|
+
}, ne = (n) => {
|
|
354
|
+
n && n.target.id != "setting_back" || (V("closePanel"), he(!1));
|
|
355
|
+
}, he = (n = !W.value) => {
|
|
356
|
+
W.value = n;
|
|
357
|
+
}, ie = (n) => {
|
|
358
|
+
w(), window.bimViewer.setWorldAxisZUp(D.value), G(b.value);
|
|
359
|
+
}, se = (n) => {
|
|
360
|
+
w(), window.bimViewer.setWorldAxisYDown(a.value), G(b.value);
|
|
361
|
+
}, ae = (n) => {
|
|
362
|
+
w(), B.value = n.id, o.value = n.color, _.emit("changeBackgroundColor", n.color);
|
|
363
|
+
}, ue = (n) => {
|
|
364
|
+
w(), S.setLightIntensity(n);
|
|
365
|
+
}, de = (n) => {
|
|
366
|
+
w(), S.setAllObjectsEdges(n);
|
|
367
|
+
}, re = (n) => {
|
|
368
|
+
w(), S.SetThreeDModeActive(n), F("isMobile") && (window.bimViewer.navCubeMode.visible = !1);
|
|
369
|
+
}, G = (n) => {
|
|
370
|
+
w(), S.SetOrthoModeActive(n);
|
|
371
|
+
}, Q = (n) => {
|
|
372
|
+
w(), S.SetShowSpaceModeActive(n);
|
|
373
|
+
}, X = (n) => {
|
|
374
|
+
w(), n == "亮" ? window.bimViewer.setSpaceMaterialColor(1) : window.bimViewer.setSpaceMaterialColor(2), C.value = R.value.includes(n) ? [n] : [];
|
|
375
|
+
}, ke = (n) => {
|
|
376
|
+
w(), S.SetSkyBoxToolActive(n);
|
|
377
|
+
}, Ce = (n) => {
|
|
378
|
+
w(), n == 0 ? S.viewer.cameraControl.customTouchDollyRate = 0.05 / 50 : S.viewer.cameraControl.customTouchDollyRate = n / 50;
|
|
379
|
+
};
|
|
380
|
+
return (n, e) => {
|
|
381
|
+
const r = bl, P = il, Se = ol, Ie = nl, Te = Xe, Me = tl, ze = el, Pe = rl("SuccessFilled"), xe = L;
|
|
382
|
+
return s(), f(j, null, [
|
|
383
|
+
i(F)("isMobile") ? p("", !0) : (s(), h(Me, {
|
|
384
|
+
key: 0,
|
|
385
|
+
class: "setting_contaier",
|
|
386
|
+
width: x.value,
|
|
387
|
+
panelTitle: "设置",
|
|
388
|
+
"click-handle": ne,
|
|
389
|
+
style: { height: "var(--setting-panel-height)" }
|
|
390
|
+
}, {
|
|
391
|
+
default: E(() => [
|
|
392
|
+
t("div", wl, [
|
|
393
|
+
d(Te, null, {
|
|
394
|
+
default: E(() => [
|
|
395
|
+
e[45] || (e[45] = t("div", { class: "setting-title" }, "效果", -1)),
|
|
396
|
+
t("div", {
|
|
397
|
+
class: "setting-effect",
|
|
398
|
+
onClick: e[0] || (e[0] = (l) => he())
|
|
399
|
+
}, [
|
|
400
|
+
e[35] || (e[35] = M(" 背景颜色 ")),
|
|
401
|
+
t("div", {
|
|
402
|
+
class: "choose-color",
|
|
403
|
+
style: q({ background: o.value })
|
|
404
|
+
}, null, 4)
|
|
405
|
+
]),
|
|
406
|
+
W.value ? (s(), f("div", hl, [
|
|
407
|
+
(s(!0), f(j, null, te(i(K), (l) => (s(), f("div", {
|
|
408
|
+
key: l.id,
|
|
409
|
+
class: T(["color-item", { "color-item-active": B.value === l.id }]),
|
|
410
|
+
onClick: (ee) => ae(l)
|
|
411
|
+
}, [
|
|
412
|
+
t("div", {
|
|
413
|
+
class: "bg",
|
|
414
|
+
style: q({ background: l.color, border: l.id === 4 ? "1px solid #F1F1F1" : "none" })
|
|
415
|
+
}, null, 4),
|
|
416
|
+
M(" " + J(l.name), 1)
|
|
417
|
+
], 10, kl))), 128))
|
|
418
|
+
])) : p("", !0),
|
|
419
|
+
t("div", Cl, [
|
|
420
|
+
e[36] || (e[36] = M(" 显示边缘 ")),
|
|
421
|
+
d(r, {
|
|
422
|
+
modelValue: k.value,
|
|
423
|
+
"onUpdate:modelValue": e[1] || (e[1] = (l) => k.value = l),
|
|
424
|
+
style: { "--el-switch-on-color": "#0065fc" },
|
|
425
|
+
onChange: e[2] || (e[2] = (l) => de())
|
|
426
|
+
}, null, 8, ["modelValue"])
|
|
427
|
+
]),
|
|
428
|
+
t("div", Sl, [
|
|
429
|
+
e[37] || (e[37] = M(" 光源强度 ")),
|
|
430
|
+
t("div", Il, [
|
|
431
|
+
d(P, {
|
|
432
|
+
modelValue: I.value,
|
|
433
|
+
"onUpdate:modelValue": e[3] || (e[3] = (l) => I.value = l),
|
|
434
|
+
onInput: e[4] || (e[4] = (l) => ue(I.value))
|
|
435
|
+
}, null, 8, ["modelValue"])
|
|
436
|
+
])
|
|
437
|
+
]),
|
|
438
|
+
i(F)("skyboxImg") ? (s(), f("div", Tl, " 外观模式 ")) : p("", !0),
|
|
439
|
+
i(F)("skyboxImg") ? (s(), f("div", El, [
|
|
440
|
+
e[38] || (e[38] = M(" 天空盒 ")),
|
|
441
|
+
d(r, {
|
|
442
|
+
modelValue: z.value,
|
|
443
|
+
"onUpdate:modelValue": e[5] || (e[5] = (l) => z.value = l),
|
|
444
|
+
style: { "--el-switch-on-color": "#0065fc" },
|
|
445
|
+
onChange: e[6] || (e[6] = (l) => ke())
|
|
446
|
+
}, null, 8, ["modelValue"])
|
|
447
|
+
])) : p("", !0),
|
|
448
|
+
e[46] || (e[46] = t("div", { class: "setting-title" }, "模型视角切换", -1)),
|
|
449
|
+
t("div", Dl, [
|
|
450
|
+
e[39] || (e[39] = M(" 透视/正交 ")),
|
|
451
|
+
d(r, {
|
|
452
|
+
modelValue: b.value,
|
|
453
|
+
"onUpdate:modelValue": e[7] || (e[7] = (l) => b.value = l),
|
|
454
|
+
style: { "--el-switch-on-color": "#0065fc" },
|
|
455
|
+
onChange: e[8] || (e[8] = (l) => G())
|
|
456
|
+
}, null, 8, ["modelValue"])
|
|
457
|
+
]),
|
|
458
|
+
t("div", Al, [
|
|
459
|
+
e[40] || (e[40] = M(" 2D/3D ")),
|
|
460
|
+
d(r, {
|
|
461
|
+
modelValue: $.value,
|
|
462
|
+
"onUpdate:modelValue": e[9] || (e[9] = (l) => $.value = l),
|
|
463
|
+
style: { "--el-switch-on-color": "#0065fc" },
|
|
464
|
+
onChange: e[10] || (e[10] = (l) => re())
|
|
465
|
+
}, null, 8, ["modelValue"])
|
|
466
|
+
]),
|
|
467
|
+
t("div", Bl, [
|
|
468
|
+
e[41] || (e[41] = t("div", null, "模型倒置", -1)),
|
|
469
|
+
t("div", null, [
|
|
470
|
+
d(r, {
|
|
471
|
+
modelValue: a.value,
|
|
472
|
+
"onUpdate:modelValue": e[11] || (e[11] = (l) => a.value = l),
|
|
473
|
+
style: { "--el-switch-on-color": "#0065fc" },
|
|
474
|
+
onChange: e[12] || (e[12] = (l) => se())
|
|
475
|
+
}, null, 8, ["modelValue"])
|
|
476
|
+
])
|
|
477
|
+
]),
|
|
478
|
+
t("div", Ul, [
|
|
479
|
+
e[42] || (e[42] = t("div", null, "Z轴向上", -1)),
|
|
480
|
+
t("div", null, [
|
|
481
|
+
d(r, {
|
|
482
|
+
modelValue: D.value,
|
|
483
|
+
"onUpdate:modelValue": e[13] || (e[13] = (l) => D.value = l),
|
|
484
|
+
style: { "--el-switch-on-color": "#0065fc" },
|
|
485
|
+
onChange: e[14] || (e[14] = (l) => ie())
|
|
486
|
+
}, null, 8, ["modelValue"])
|
|
487
|
+
])
|
|
488
|
+
]),
|
|
489
|
+
t("div", $l, [
|
|
490
|
+
e[43] || (e[43] = M(" 显示模型空间 ")),
|
|
491
|
+
d(r, {
|
|
492
|
+
modelValue: A.value,
|
|
493
|
+
"onUpdate:modelValue": e[15] || (e[15] = (l) => A.value = l),
|
|
494
|
+
style: { "--el-switch-on-color": "#0065fc" },
|
|
495
|
+
onChange: e[16] || (e[16] = (l) => Q())
|
|
496
|
+
}, null, 8, ["modelValue"])
|
|
497
|
+
]),
|
|
498
|
+
t("div", Ml, [
|
|
499
|
+
e[44] || (e[44] = M(" 空间效果 ")),
|
|
500
|
+
d(Ie, {
|
|
501
|
+
modelValue: C.value,
|
|
502
|
+
"onUpdate:modelValue": e[17] || (e[17] = (l) => C.value = l),
|
|
503
|
+
size: "small"
|
|
504
|
+
}, {
|
|
505
|
+
default: E(() => [
|
|
506
|
+
(s(!0), f(j, null, te(R.value, (l) => (s(), h(Se, {
|
|
507
|
+
key: l,
|
|
508
|
+
label: l,
|
|
509
|
+
onChange: (ee) => X(l)
|
|
510
|
+
}, null, 8, ["label", "onChange"]))), 128))
|
|
511
|
+
]),
|
|
512
|
+
_: 1
|
|
513
|
+
}, 8, ["modelValue"])
|
|
514
|
+
])
|
|
515
|
+
]),
|
|
516
|
+
_: 1
|
|
517
|
+
})
|
|
518
|
+
])
|
|
519
|
+
]),
|
|
520
|
+
_: 1
|
|
521
|
+
}, 8, ["width"])),
|
|
522
|
+
i(F)("isMobile") ? (s(), f("div", {
|
|
523
|
+
key: 1,
|
|
524
|
+
id: "setting_back",
|
|
525
|
+
class: "setting_back",
|
|
526
|
+
onClick: ne
|
|
527
|
+
}, [
|
|
528
|
+
t("div", zl, [
|
|
529
|
+
t("div", Pl, [
|
|
530
|
+
e[47] || (e[47] = t("div", { class: "setting-title" }, "设置", -1)),
|
|
531
|
+
t("div", xl, [
|
|
532
|
+
d(ze, {
|
|
533
|
+
width: 0.4,
|
|
534
|
+
"size-type": "rem",
|
|
535
|
+
"click-handle": ne
|
|
536
|
+
})
|
|
537
|
+
])
|
|
538
|
+
]),
|
|
539
|
+
t("div", Nl, [
|
|
540
|
+
t("div", Fl, [
|
|
541
|
+
(s(!0), f(j, null, te(i(K), (l, ee) => (s(), f("div", {
|
|
542
|
+
key: ee,
|
|
543
|
+
class: T(["setting-color-item", {
|
|
544
|
+
"setting-color-item-active": B.value === l.id
|
|
545
|
+
}]),
|
|
546
|
+
onClick: (Xl) => ae(l)
|
|
547
|
+
}, [
|
|
548
|
+
t("div", {
|
|
549
|
+
class: "setting-color-icon",
|
|
550
|
+
style: q({
|
|
551
|
+
background: l.color,
|
|
552
|
+
border: l.id === B.value ? "0.02rem solid #0065FC" : ""
|
|
553
|
+
})
|
|
554
|
+
}, null, 4),
|
|
555
|
+
t("div", {
|
|
556
|
+
class: "setting-color-name",
|
|
557
|
+
style: q({ color: l.id === B.value ? "#0065FC" : "" })
|
|
558
|
+
}, [
|
|
559
|
+
M(J(l.name) + " ", 1),
|
|
560
|
+
l.id === B.value ? (s(), h(xe, {
|
|
561
|
+
key: 0,
|
|
562
|
+
color: "#0065fc",
|
|
563
|
+
size: "0.24rem"
|
|
564
|
+
}, {
|
|
565
|
+
default: E(() => [
|
|
566
|
+
d(Pe)
|
|
567
|
+
]),
|
|
568
|
+
_: 1
|
|
569
|
+
})) : p("", !0)
|
|
570
|
+
], 4)
|
|
571
|
+
], 10, Ol))), 128))
|
|
572
|
+
])
|
|
573
|
+
]),
|
|
574
|
+
t("div", Ll, [
|
|
575
|
+
d(Te, { height: "188" }, {
|
|
576
|
+
default: E(() => [
|
|
577
|
+
t("div", Kl, [
|
|
578
|
+
e[48] || (e[48] = t("div", null, "显示边缘", -1)),
|
|
579
|
+
t("div", null, [
|
|
580
|
+
d(r, {
|
|
581
|
+
modelValue: k.value,
|
|
582
|
+
"onUpdate:modelValue": e[18] || (e[18] = (l) => k.value = l),
|
|
583
|
+
size: "large",
|
|
584
|
+
onChange: e[19] || (e[19] = (l) => de())
|
|
585
|
+
}, null, 8, ["modelValue"])
|
|
586
|
+
])
|
|
587
|
+
]),
|
|
588
|
+
t("div", Wl, [
|
|
589
|
+
e[49] || (e[49] = t("div", null, "光源强度", -1)),
|
|
590
|
+
t("div", Rl, [
|
|
591
|
+
d(P, {
|
|
592
|
+
modelValue: I.value,
|
|
593
|
+
"onUpdate:modelValue": e[20] || (e[20] = (l) => I.value = l),
|
|
594
|
+
onInput: e[21] || (e[21] = (l) => ue(I.value))
|
|
595
|
+
}, null, 8, ["modelValue"])
|
|
596
|
+
])
|
|
597
|
+
]),
|
|
598
|
+
t("div", Zl, [
|
|
599
|
+
e[50] || (e[50] = t("div", null, "透视/正交", -1)),
|
|
600
|
+
t("div", null, [
|
|
601
|
+
d(r, {
|
|
602
|
+
modelValue: b.value,
|
|
603
|
+
"onUpdate:modelValue": e[22] || (e[22] = (l) => b.value = l),
|
|
604
|
+
size: "large",
|
|
605
|
+
onChange: e[23] || (e[23] = (l) => G())
|
|
606
|
+
}, null, 8, ["modelValue"])
|
|
607
|
+
])
|
|
608
|
+
]),
|
|
609
|
+
t("div", Gl, [
|
|
610
|
+
e[51] || (e[51] = t("div", null, "2D/3D", -1)),
|
|
611
|
+
t("div", null, [
|
|
612
|
+
d(r, {
|
|
613
|
+
modelValue: $.value,
|
|
614
|
+
"onUpdate:modelValue": e[24] || (e[24] = (l) => $.value = l),
|
|
615
|
+
size: "large",
|
|
616
|
+
onChange: e[25] || (e[25] = (l) => re())
|
|
617
|
+
}, null, 8, ["modelValue"])
|
|
618
|
+
])
|
|
619
|
+
]),
|
|
620
|
+
t("div", Hl, [
|
|
621
|
+
e[52] || (e[52] = t("div", null, "模型倒置", -1)),
|
|
622
|
+
t("div", null, [
|
|
623
|
+
d(r, {
|
|
624
|
+
modelValue: a.value,
|
|
625
|
+
"onUpdate:modelValue": e[26] || (e[26] = (l) => a.value = l),
|
|
626
|
+
size: "large",
|
|
627
|
+
onChange: e[27] || (e[27] = (l) => se())
|
|
628
|
+
}, null, 8, ["modelValue"])
|
|
629
|
+
])
|
|
630
|
+
]),
|
|
631
|
+
t("div", _l, [
|
|
632
|
+
e[53] || (e[53] = t("div", null, "Z轴向上", -1)),
|
|
633
|
+
t("div", null, [
|
|
634
|
+
d(r, {
|
|
635
|
+
modelValue: D.value,
|
|
636
|
+
"onUpdate:modelValue": e[28] || (e[28] = (l) => D.value = l),
|
|
637
|
+
size: "large",
|
|
638
|
+
onChange: e[29] || (e[29] = (l) => ie())
|
|
639
|
+
}, null, 8, ["modelValue"])
|
|
640
|
+
])
|
|
641
|
+
]),
|
|
642
|
+
t("div", Yl, [
|
|
643
|
+
e[54] || (e[54] = t("div", null, "显示模型空间", -1)),
|
|
644
|
+
t("div", null, [
|
|
645
|
+
d(r, {
|
|
646
|
+
modelValue: A.value,
|
|
647
|
+
"onUpdate:modelValue": e[30] || (e[30] = (l) => A.value = l),
|
|
648
|
+
size: "large",
|
|
649
|
+
onChange: e[31] || (e[31] = (l) => Q())
|
|
650
|
+
}, null, 8, ["modelValue"])
|
|
651
|
+
])
|
|
652
|
+
]),
|
|
653
|
+
t("div", jl, [
|
|
654
|
+
e[55] || (e[55] = t("div", null, "空间效果", -1)),
|
|
655
|
+
d(Ie, {
|
|
656
|
+
modelValue: C.value,
|
|
657
|
+
"onUpdate:modelValue": e[32] || (e[32] = (l) => C.value = l)
|
|
658
|
+
}, {
|
|
659
|
+
default: E(() => [
|
|
660
|
+
(s(!0), f(j, null, te(R.value, (l) => (s(), h(Se, {
|
|
661
|
+
key: l,
|
|
662
|
+
label: l,
|
|
663
|
+
onChange: (ee) => X(l)
|
|
664
|
+
}, null, 8, ["label", "onChange"]))), 128))
|
|
665
|
+
]),
|
|
666
|
+
_: 1
|
|
667
|
+
}, 8, ["modelValue"])
|
|
668
|
+
]),
|
|
669
|
+
t("div", ql, [
|
|
670
|
+
e[56] || (e[56] = t("div", null, "缩放速率", -1)),
|
|
671
|
+
t("div", Jl, [
|
|
672
|
+
d(P, {
|
|
673
|
+
modelValue: U.value,
|
|
674
|
+
"onUpdate:modelValue": e[33] || (e[33] = (l) => U.value = l),
|
|
675
|
+
onInput: e[34] || (e[34] = (l) => Ce(U.value))
|
|
676
|
+
}, null, 8, ["modelValue"])
|
|
677
|
+
])
|
|
678
|
+
])
|
|
679
|
+
]),
|
|
680
|
+
_: 1
|
|
681
|
+
})
|
|
682
|
+
])
|
|
683
|
+
])
|
|
684
|
+
])) : p("", !0)
|
|
685
|
+
], 64);
|
|
686
|
+
};
|
|
687
|
+
}
|
|
688
|
+
}), dt = /* @__PURE__ */ ll(Ql, [["__scopeId", "data-v-44bb4715"]]);
|
|
689
|
+
export {
|
|
690
|
+
dt as default
|
|
691
|
+
};
|