@xtctwins/tctwins-industry-engine 0.0.9 → 0.0.11
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 +3 -3
- package/dist/{AnnotationTool-Dzd5rcwa.mjs → AnnotationTool-BZlQ0NIM.mjs} +14 -14
- package/dist/{BCFTool-kLs0Y5n5.mjs → BCFTool-DAqDUYS-.mjs} +5269 -5269
- package/dist/{CommentTool-BFDzk_5a.mjs → CommentTool-BwHOJoFe.mjs} +28 -28
- package/dist/Industry_Viewer_Lib.es.js +3 -3
- package/dist/Industry_Viewer_Lib.umd.js +144 -152
- package/dist/{InspectorTool-BOeo7StN.mjs → InspectorTool-BK5pX2nZ.mjs} +31 -31
- package/dist/{MeasureTool-qO_ci86K.mjs → MeasureTool-D92Tyu14.mjs} +24 -24
- package/dist/{MouseTool-CLryyMPf.mjs → MouseTool-Dpl4JLyb.mjs} +20 -20
- package/dist/{NavigateTool-BkwZL4ng.mjs → NavigateTool-B5ySsqph.mjs} +6 -6
- package/dist/{RoamTool-DyL44JV3.mjs → RoamTool-Nk4hYPJB.mjs} +12 -12
- package/dist/ScreenShotTool-D1cS2DkF.mjs +445 -0
- package/dist/{SectionTool-BG8pmY3A.mjs → SectionTool-D3885F5s.mjs} +46 -46
- package/dist/SettingTool-BI_soRCO.mjs +770 -0
- package/dist/StructureTree-CCWwAbnr.mjs +1824 -0
- package/dist/{XRayTool-DQeoOCKy.mjs → XRayTool-IRgKMGU8.mjs} +13 -13
- package/dist/{alert-D1vSywdn.mjs → alert-x4uA_EPv.mjs} +5 -5
- package/dist/el-checkbox-_VjUMARt.mjs +544 -0
- package/dist/el-input-number-Chi40nla.mjs +1028 -0
- package/dist/{index-DROkX_fP.mjs → index-CaiiH-9N.mjs} +37845 -35391
- package/dist/{panel.vue_vue_type_style_index_0_lang-Ce406nTf.mjs → panel.vue_vue_type_style_index_0_lang-D3swRKXl.mjs} +6 -6
- package/dist/style.css +1 -1
- package/dist/{tallPanel-CMZIMI6R.mjs → tallPanel-eXWPdhmU.mjs} +14 -14
- package/package.json +66 -65
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +2652 -1668
- package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +264 -36
- package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +264 -36
- package/dist/ScreenShotTool-cho_m-3z.mjs +0 -357
- package/dist/SettingTool-BgBA9v6q.mjs +0 -691
- package/dist/StructureTree-BRY3gEgI.mjs +0 -1591
- package/dist/el-checkbox-BCef2DnV.mjs +0 -460
- package/dist/el-input-number-33CYHG2x.mjs +0 -858
- package/dist/index.html +0 -17
|
@@ -1,691 +0,0 @@
|
|
|
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 G = (u, g, y) => Fe(u, typeof g != "symbol" ? g + "" : g, y);
|
|
4
|
-
import { S as Oe, D as Le, m as te, 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 je, Q as Ge, K as He, Y as _e, j as Ee, E as L, Z as De, $ as Ye, _ as qe, w as Je, p as Qe, T as Ae, q as F, t as H, V as Xe, x as et, y as tt, z as lt } from "./index-DROkX_fP.mjs";
|
|
5
|
-
import { _ as ot } from "./panel.vue_vue_type_style_index_0_lang-Ce406nTf.mjs";
|
|
6
|
-
/* empty css */
|
|
7
|
-
import { E as nt, a as it } from "./el-checkbox-BCef2DnV.mjs";
|
|
8
|
-
import { E as st } from "./el-input-number-33CYHG2x.mjs";
|
|
9
|
-
import { defineComponent as Ve, 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 at, createElementVNode as l, withKeys as ut, createBlock as h, withCtx as E, resolveDynamicComponent as _, createCommentVNode as p, toDisplayString as J, normalizeStyle as q, createVNode as d, renderSlot as Be, nextTick as dt, onBeforeUnmount as rt, resolveComponent as vt, Fragment as Y, createTextVNode as M, renderList as le } from "vue";
|
|
10
|
-
import { B as K } from "./const-DeViLYl5.mjs";
|
|
11
|
-
import { Loading as ct } from "@element-plus/icons-vue";
|
|
12
|
-
const mt = (u) => ["", ...Oe].includes(u), ft = 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: mt
|
|
22
|
-
},
|
|
23
|
-
width: {
|
|
24
|
-
type: [String, Number],
|
|
25
|
-
default: ""
|
|
26
|
-
},
|
|
27
|
-
inlinePrompt: Boolean,
|
|
28
|
-
inactiveActionIcon: {
|
|
29
|
-
type: te
|
|
30
|
-
},
|
|
31
|
-
activeActionIcon: {
|
|
32
|
-
type: te
|
|
33
|
-
},
|
|
34
|
-
activeIcon: {
|
|
35
|
-
type: te
|
|
36
|
-
},
|
|
37
|
-
inactiveIcon: {
|
|
38
|
-
type: te
|
|
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
|
-
}), pt = {
|
|
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", gt = Ve({
|
|
77
|
-
name: ye
|
|
78
|
-
}), yt = /* @__PURE__ */ Ve({
|
|
79
|
-
...gt,
|
|
80
|
-
props: ft,
|
|
81
|
-
emits: pt,
|
|
82
|
-
setup(u, { expose: g, emit: y }) {
|
|
83
|
-
const v = u, { formItem: x } = Re(), k = Ze(), a = je("switch"), { inputId: D } = Ge(v, {
|
|
84
|
-
formItemContext: x
|
|
85
|
-
}), C = He(O(() => v.loading)), z = m(v.modelValue !== !1), V = m(), $ = m(), A = O(() => [
|
|
86
|
-
a.b(),
|
|
87
|
-
a.m(k.value),
|
|
88
|
-
a.is("disabled", C.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: _e(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 b;
|
|
107
|
-
V.value.checked = o, v.validateEvent && ((b = x == null ? void 0 : x.validate) == null || b.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), dt(() => {
|
|
112
|
-
V.value.checked = c.value;
|
|
113
|
-
});
|
|
114
|
-
}, S = () => {
|
|
115
|
-
if (C.value)
|
|
116
|
-
return;
|
|
117
|
-
const { beforeChange: o } = v;
|
|
118
|
-
if (!o) {
|
|
119
|
-
U();
|
|
120
|
-
return;
|
|
121
|
-
}
|
|
122
|
-
const b = o();
|
|
123
|
-
[
|
|
124
|
-
De(b),
|
|
125
|
-
oe(b)
|
|
126
|
-
].includes(!0) || Ye(ye, "beforeChange must return type `Promise<boolean>` or `boolean`"), De(b) ? b.then((w) => {
|
|
127
|
-
w && U();
|
|
128
|
-
}).catch((w) => {
|
|
129
|
-
Ee(ye, `some error occurred: ${w}`);
|
|
130
|
-
}) : b && U();
|
|
131
|
-
}, R = () => {
|
|
132
|
-
var o, b;
|
|
133
|
-
(b = (o = V.value) == null ? void 0 : o.focus) == null || b.call(o);
|
|
134
|
-
};
|
|
135
|
-
return Ue(() => {
|
|
136
|
-
V.value.checked = c.value;
|
|
137
|
-
}), g({
|
|
138
|
-
focus: R,
|
|
139
|
-
checked: c
|
|
140
|
-
}), (o, b) => (s(), f("div", {
|
|
141
|
-
class: T(i(A)),
|
|
142
|
-
onClick: at(S, ["prevent"])
|
|
143
|
-
}, [
|
|
144
|
-
l("input", {
|
|
145
|
-
id: i(D),
|
|
146
|
-
ref_key: "input",
|
|
147
|
-
ref: V,
|
|
148
|
-
class: T(i(a).e("input")),
|
|
149
|
-
type: "checkbox",
|
|
150
|
-
role: "switch",
|
|
151
|
-
"aria-checked": i(c),
|
|
152
|
-
"aria-disabled": i(C),
|
|
153
|
-
"aria-label": o.ariaLabel,
|
|
154
|
-
name: o.name,
|
|
155
|
-
"true-value": o.activeValue,
|
|
156
|
-
"false-value": o.inactiveValue,
|
|
157
|
-
disabled: i(C),
|
|
158
|
-
tabindex: o.tabindex,
|
|
159
|
-
onChange: U,
|
|
160
|
-
onKeydown: ut(S, ["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(_(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
|
-
l("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(_(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
|
-
l("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(ct))
|
|
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(_(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(_(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(_(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 Vt = /* @__PURE__ */ qe(yt, [["__file", "switch.vue"]]);
|
|
248
|
-
const bt = Je(Vt);
|
|
249
|
-
class wt {
|
|
250
|
-
constructor(g) {
|
|
251
|
-
G(this, "duration");
|
|
252
|
-
G(this, "active");
|
|
253
|
-
G(this, "remainingTime");
|
|
254
|
-
G(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 ht = { style: { height: "var(--setting-content-height)" } }, kt = {
|
|
274
|
-
key: 0,
|
|
275
|
-
class: "color-list"
|
|
276
|
-
}, Ct = ["onClick"], St = { class: "setting-effect" }, It = { class: "setting-effect" }, Tt = { class: "light-slider" }, Et = {
|
|
277
|
-
key: 1,
|
|
278
|
-
class: "setting-title"
|
|
279
|
-
}, Dt = {
|
|
280
|
-
key: 2,
|
|
281
|
-
class: "setting-effect"
|
|
282
|
-
}, At = { class: "setting-effect" }, Bt = { class: "setting-effect" }, Ut = { class: "setting-effect" }, $t = { class: "setting-effect" }, Mt = { class: "setting-effect" }, zt = { class: "setting-effect" }, Pt = { class: "setting_panel" }, xt = { class: "setting-title-box" }, Nt = { class: "setting-title-icon" }, Ft = { class: "setting-color-box" }, Ot = { class: "setting-color-list" }, Lt = ["onClick"], Kt = { class: "setting-config-box" }, Wt = { class: "setting-switch-item" }, Rt = { class: "setting-switch-item" }, Zt = { class: "light-slider" }, jt = { class: "setting-switch-item" }, Gt = { class: "setting-switch-item" }, Ht = { class: "setting-switch-item" }, _t = { class: "setting-switch-item" }, Yt = { class: "setting-switch-item" }, qt = { class: "setting-switch-item" }, Jt = { class: "setting-switch-item" }, Qt = { class: "speed-slider" }, Xt = /* @__PURE__ */ Ve({
|
|
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 k;
|
|
295
|
-
const a = m(!1), D = m(!1), C = m(!1), z = m(!1), V = m(!1), $ = m(!0), A = m(!1), W = m(!1), B = m(1), I = m(50), N = m(!1), c = new wt(5);
|
|
296
|
-
ge(
|
|
297
|
-
() => y.isToolActive(v.componentId),
|
|
298
|
-
(n) => {
|
|
299
|
-
n === !1 && (c.stop(), N.value && be());
|
|
300
|
-
}
|
|
301
|
-
);
|
|
302
|
-
const U = m(50), S = m(["亮"]), R = m(["亮", "暗"]), o = m("linear-gradient(180deg, #fffefb 0%, #daebff 100%)"), b = g, Z = () => {
|
|
303
|
-
k = window.bimViewer, k.viewer.scene.on("aabb", () => {
|
|
304
|
-
Q(A.value), X(S.value[0]);
|
|
305
|
-
});
|
|
306
|
-
}, w = () => {
|
|
307
|
-
N.value = !0, c.start(() => {
|
|
308
|
-
be();
|
|
309
|
-
});
|
|
310
|
-
}, be = () => {
|
|
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: C.value,
|
|
316
|
-
lightIntensity: I.value,
|
|
317
|
-
skyBox: z.value,
|
|
318
|
-
orthoMode: V.value,
|
|
319
|
-
modelType2D: $.value,
|
|
320
|
-
yAxisDown: a.value,
|
|
321
|
-
zAxisUp: D.value,
|
|
322
|
-
showSpace: A.value,
|
|
323
|
-
spaceEffect: S.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: C.value,
|
|
328
|
-
lightIntensity: I.value,
|
|
329
|
-
skyBox: z.value,
|
|
330
|
-
orthoMode: V.value,
|
|
331
|
-
modelType2D: $.value,
|
|
332
|
-
yAxisDown: a.value,
|
|
333
|
-
zAxisUp: D.value,
|
|
334
|
-
showSpace: A.value,
|
|
335
|
-
spaceEffect: S.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]), C.value = e.showEdges, de(C.value), I.value = e.lightIntensity, ue(I.value), V.value = e.orthoMode, j(V.value), $.value = e.modelType2D, re($.value), A.value = e.showSpace, Q(A.value), S.value = [e.spaceEffect], X(S.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
|
-
H.on("BimViewer", Z), H.on("lastSetsContent", we), rt(() => {
|
|
349
|
-
H.off("BimViewer", Z), H.off("lastSetsContent", we);
|
|
350
|
-
});
|
|
351
|
-
const $e = (n) => {
|
|
352
|
-
b("emitHandler", n);
|
|
353
|
-
}, ne = (n) => {
|
|
354
|
-
n && n.target.id != "setting_back" || (b("closePanel"), he(!1));
|
|
355
|
-
}, he = (n = !W.value) => {
|
|
356
|
-
W.value = n;
|
|
357
|
-
}, ie = (n) => {
|
|
358
|
-
w(), window.bimViewer.setWorldAxisZUp(D.value), j(V.value);
|
|
359
|
-
}, se = (n) => {
|
|
360
|
-
w(), window.bimViewer.setWorldAxisYDown(a.value), j(V.value);
|
|
361
|
-
}, ae = (n) => {
|
|
362
|
-
w(), B.value = n.id, o.value = n.color, H.emit("changeBackgroundColor", n.color);
|
|
363
|
-
}, ue = (n) => {
|
|
364
|
-
w(), k.setLightIntensity(n);
|
|
365
|
-
}, de = (n) => {
|
|
366
|
-
w(), k.setAllObjectsEdges(n), n || k.setObjectsEdges(Xe.entityState.edgesObjectIds, !0);
|
|
367
|
-
}, re = (n) => {
|
|
368
|
-
w(), k.SetThreeDModeActive(n), F("isMobile") && (window.bimViewer.navCubeMode.visible = !1);
|
|
369
|
-
}, j = (n) => {
|
|
370
|
-
w(), k.SetOrthoModeActive(n);
|
|
371
|
-
}, Q = (n) => {
|
|
372
|
-
w(), k.SetShowSpaceModeActive(n);
|
|
373
|
-
}, X = (n) => {
|
|
374
|
-
w(), n == "亮" ? window.bimViewer.setSpaceMaterialColor(1) : window.bimViewer.setSpaceMaterialColor(2), S.value = R.value.includes(n) ? [n] : [];
|
|
375
|
-
}, ke = (n) => {
|
|
376
|
-
w(), k.SetSkyBoxToolActive(n);
|
|
377
|
-
}, Ce = (n) => {
|
|
378
|
-
w(), n == 0 ? k.viewer.cameraControl.customTouchDollyRate = 0.05 / 50 : k.viewer.cameraControl.customTouchDollyRate = n / 50;
|
|
379
|
-
};
|
|
380
|
-
return (n, e) => {
|
|
381
|
-
const r = bt, P = st, Se = nt, Ie = it, Te = et, Me = ot, ze = tt, Pe = vt("SuccessFilled"), xe = L;
|
|
382
|
-
return s(), f(Y, 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
|
-
l("div", ht, [
|
|
393
|
-
d(Te, null, {
|
|
394
|
-
default: E(() => [
|
|
395
|
-
e[45] || (e[45] = l("div", { class: "setting-title" }, "效果", -1)),
|
|
396
|
-
l("div", {
|
|
397
|
-
class: "setting-effect",
|
|
398
|
-
onClick: e[0] || (e[0] = (t) => he())
|
|
399
|
-
}, [
|
|
400
|
-
e[35] || (e[35] = M(" 背景颜色 ")),
|
|
401
|
-
l("div", {
|
|
402
|
-
class: "choose-color",
|
|
403
|
-
style: q({ background: o.value })
|
|
404
|
-
}, null, 4)
|
|
405
|
-
]),
|
|
406
|
-
W.value ? (s(), f("div", kt, [
|
|
407
|
-
(s(!0), f(Y, null, le(i(K), (t) => (s(), f("div", {
|
|
408
|
-
key: t.id,
|
|
409
|
-
class: T(["color-item", { "color-item-active": B.value === t.id }]),
|
|
410
|
-
onClick: (ee) => ae(t)
|
|
411
|
-
}, [
|
|
412
|
-
l("div", {
|
|
413
|
-
class: "bg",
|
|
414
|
-
style: q({ background: t.color, border: t.id === 4 ? "1px solid #F1F1F1" : "none" })
|
|
415
|
-
}, null, 4),
|
|
416
|
-
M(" " + J(t.name), 1)
|
|
417
|
-
], 10, Ct))), 128))
|
|
418
|
-
])) : p("", !0),
|
|
419
|
-
l("div", St, [
|
|
420
|
-
e[36] || (e[36] = M(" 显示边缘 ")),
|
|
421
|
-
d(r, {
|
|
422
|
-
modelValue: C.value,
|
|
423
|
-
"onUpdate:modelValue": e[1] || (e[1] = (t) => C.value = t),
|
|
424
|
-
style: { "--el-switch-on-color": "#0065fc" },
|
|
425
|
-
onChange: e[2] || (e[2] = (t) => de())
|
|
426
|
-
}, null, 8, ["modelValue"])
|
|
427
|
-
]),
|
|
428
|
-
l("div", It, [
|
|
429
|
-
e[37] || (e[37] = M(" 光源强度 ")),
|
|
430
|
-
l("div", Tt, [
|
|
431
|
-
d(P, {
|
|
432
|
-
modelValue: I.value,
|
|
433
|
-
"onUpdate:modelValue": e[3] || (e[3] = (t) => I.value = t),
|
|
434
|
-
onInput: e[4] || (e[4] = (t) => ue(I.value))
|
|
435
|
-
}, null, 8, ["modelValue"])
|
|
436
|
-
])
|
|
437
|
-
]),
|
|
438
|
-
i(F)("skyboxImg") ? (s(), f("div", Et, " 外观模式 ")) : p("", !0),
|
|
439
|
-
i(F)("skyboxImg") ? (s(), f("div", Dt, [
|
|
440
|
-
e[38] || (e[38] = M(" 天空盒 ")),
|
|
441
|
-
d(r, {
|
|
442
|
-
modelValue: z.value,
|
|
443
|
-
"onUpdate:modelValue": e[5] || (e[5] = (t) => z.value = t),
|
|
444
|
-
style: { "--el-switch-on-color": "#0065fc" },
|
|
445
|
-
onChange: e[6] || (e[6] = (t) => ke())
|
|
446
|
-
}, null, 8, ["modelValue"])
|
|
447
|
-
])) : p("", !0),
|
|
448
|
-
e[46] || (e[46] = l("div", { class: "setting-title" }, "模型视角切换", -1)),
|
|
449
|
-
l("div", At, [
|
|
450
|
-
e[39] || (e[39] = M(" 透视/正交 ")),
|
|
451
|
-
d(r, {
|
|
452
|
-
modelValue: V.value,
|
|
453
|
-
"onUpdate:modelValue": e[7] || (e[7] = (t) => V.value = t),
|
|
454
|
-
style: { "--el-switch-on-color": "#0065fc" },
|
|
455
|
-
onChange: e[8] || (e[8] = (t) => j())
|
|
456
|
-
}, null, 8, ["modelValue"])
|
|
457
|
-
]),
|
|
458
|
-
l("div", Bt, [
|
|
459
|
-
e[40] || (e[40] = M(" 2D/3D ")),
|
|
460
|
-
d(r, {
|
|
461
|
-
modelValue: $.value,
|
|
462
|
-
"onUpdate:modelValue": e[9] || (e[9] = (t) => $.value = t),
|
|
463
|
-
style: { "--el-switch-on-color": "#0065fc" },
|
|
464
|
-
onChange: e[10] || (e[10] = (t) => re())
|
|
465
|
-
}, null, 8, ["modelValue"])
|
|
466
|
-
]),
|
|
467
|
-
l("div", Ut, [
|
|
468
|
-
e[41] || (e[41] = l("div", null, "模型倒置", -1)),
|
|
469
|
-
l("div", null, [
|
|
470
|
-
d(r, {
|
|
471
|
-
modelValue: a.value,
|
|
472
|
-
"onUpdate:modelValue": e[11] || (e[11] = (t) => a.value = t),
|
|
473
|
-
style: { "--el-switch-on-color": "#0065fc" },
|
|
474
|
-
onChange: e[12] || (e[12] = (t) => se())
|
|
475
|
-
}, null, 8, ["modelValue"])
|
|
476
|
-
])
|
|
477
|
-
]),
|
|
478
|
-
l("div", $t, [
|
|
479
|
-
e[42] || (e[42] = l("div", null, "Z轴向上", -1)),
|
|
480
|
-
l("div", null, [
|
|
481
|
-
d(r, {
|
|
482
|
-
modelValue: D.value,
|
|
483
|
-
"onUpdate:modelValue": e[13] || (e[13] = (t) => D.value = t),
|
|
484
|
-
style: { "--el-switch-on-color": "#0065fc" },
|
|
485
|
-
onChange: e[14] || (e[14] = (t) => ie())
|
|
486
|
-
}, null, 8, ["modelValue"])
|
|
487
|
-
])
|
|
488
|
-
]),
|
|
489
|
-
l("div", Mt, [
|
|
490
|
-
e[43] || (e[43] = M(" 显示模型空间 ")),
|
|
491
|
-
d(r, {
|
|
492
|
-
modelValue: A.value,
|
|
493
|
-
"onUpdate:modelValue": e[15] || (e[15] = (t) => A.value = t),
|
|
494
|
-
style: { "--el-switch-on-color": "#0065fc" },
|
|
495
|
-
onChange: e[16] || (e[16] = (t) => Q())
|
|
496
|
-
}, null, 8, ["modelValue"])
|
|
497
|
-
]),
|
|
498
|
-
l("div", zt, [
|
|
499
|
-
e[44] || (e[44] = M(" 空间效果 ")),
|
|
500
|
-
d(Ie, {
|
|
501
|
-
modelValue: S.value,
|
|
502
|
-
"onUpdate:modelValue": e[17] || (e[17] = (t) => S.value = t),
|
|
503
|
-
size: "small"
|
|
504
|
-
}, {
|
|
505
|
-
default: E(() => [
|
|
506
|
-
(s(!0), f(Y, null, le(R.value, (t) => (s(), h(Se, {
|
|
507
|
-
key: t,
|
|
508
|
-
label: t,
|
|
509
|
-
onChange: (ee) => X(t)
|
|
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
|
-
l("div", Pt, [
|
|
529
|
-
l("div", xt, [
|
|
530
|
-
e[47] || (e[47] = l("div", { class: "setting-title" }, "设置", -1)),
|
|
531
|
-
l("div", Nt, [
|
|
532
|
-
d(ze, {
|
|
533
|
-
width: 0.4,
|
|
534
|
-
"size-type": "rem",
|
|
535
|
-
"click-handle": ne
|
|
536
|
-
})
|
|
537
|
-
])
|
|
538
|
-
]),
|
|
539
|
-
l("div", Ft, [
|
|
540
|
-
l("div", Ot, [
|
|
541
|
-
(s(!0), f(Y, null, le(i(K), (t, ee) => (s(), f("div", {
|
|
542
|
-
key: ee,
|
|
543
|
-
class: T(["setting-color-item", {
|
|
544
|
-
"setting-color-item-active": B.value === t.id
|
|
545
|
-
}]),
|
|
546
|
-
onClick: (el) => ae(t)
|
|
547
|
-
}, [
|
|
548
|
-
l("div", {
|
|
549
|
-
class: "setting-color-icon",
|
|
550
|
-
style: q({
|
|
551
|
-
background: t.color,
|
|
552
|
-
border: t.id === B.value ? "0.02rem solid #0065FC" : ""
|
|
553
|
-
})
|
|
554
|
-
}, null, 4),
|
|
555
|
-
l("div", {
|
|
556
|
-
class: "setting-color-name",
|
|
557
|
-
style: q({ color: t.id === B.value ? "#0065FC" : "" })
|
|
558
|
-
}, [
|
|
559
|
-
M(J(t.name) + " ", 1),
|
|
560
|
-
t.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, Lt))), 128))
|
|
572
|
-
])
|
|
573
|
-
]),
|
|
574
|
-
l("div", Kt, [
|
|
575
|
-
d(Te, { height: "188" }, {
|
|
576
|
-
default: E(() => [
|
|
577
|
-
l("div", Wt, [
|
|
578
|
-
e[48] || (e[48] = l("div", null, "显示边缘", -1)),
|
|
579
|
-
l("div", null, [
|
|
580
|
-
d(r, {
|
|
581
|
-
modelValue: C.value,
|
|
582
|
-
"onUpdate:modelValue": e[18] || (e[18] = (t) => C.value = t),
|
|
583
|
-
size: "large",
|
|
584
|
-
onChange: e[19] || (e[19] = (t) => de())
|
|
585
|
-
}, null, 8, ["modelValue"])
|
|
586
|
-
])
|
|
587
|
-
]),
|
|
588
|
-
l("div", Rt, [
|
|
589
|
-
e[49] || (e[49] = l("div", null, "光源强度", -1)),
|
|
590
|
-
l("div", Zt, [
|
|
591
|
-
d(P, {
|
|
592
|
-
modelValue: I.value,
|
|
593
|
-
"onUpdate:modelValue": e[20] || (e[20] = (t) => I.value = t),
|
|
594
|
-
onInput: e[21] || (e[21] = (t) => ue(I.value))
|
|
595
|
-
}, null, 8, ["modelValue"])
|
|
596
|
-
])
|
|
597
|
-
]),
|
|
598
|
-
l("div", jt, [
|
|
599
|
-
e[50] || (e[50] = l("div", null, "透视/正交", -1)),
|
|
600
|
-
l("div", null, [
|
|
601
|
-
d(r, {
|
|
602
|
-
modelValue: V.value,
|
|
603
|
-
"onUpdate:modelValue": e[22] || (e[22] = (t) => V.value = t),
|
|
604
|
-
size: "large",
|
|
605
|
-
onChange: e[23] || (e[23] = (t) => j())
|
|
606
|
-
}, null, 8, ["modelValue"])
|
|
607
|
-
])
|
|
608
|
-
]),
|
|
609
|
-
l("div", Gt, [
|
|
610
|
-
e[51] || (e[51] = l("div", null, "2D/3D", -1)),
|
|
611
|
-
l("div", null, [
|
|
612
|
-
d(r, {
|
|
613
|
-
modelValue: $.value,
|
|
614
|
-
"onUpdate:modelValue": e[24] || (e[24] = (t) => $.value = t),
|
|
615
|
-
size: "large",
|
|
616
|
-
onChange: e[25] || (e[25] = (t) => re())
|
|
617
|
-
}, null, 8, ["modelValue"])
|
|
618
|
-
])
|
|
619
|
-
]),
|
|
620
|
-
l("div", Ht, [
|
|
621
|
-
e[52] || (e[52] = l("div", null, "模型倒置", -1)),
|
|
622
|
-
l("div", null, [
|
|
623
|
-
d(r, {
|
|
624
|
-
modelValue: a.value,
|
|
625
|
-
"onUpdate:modelValue": e[26] || (e[26] = (t) => a.value = t),
|
|
626
|
-
size: "large",
|
|
627
|
-
onChange: e[27] || (e[27] = (t) => se())
|
|
628
|
-
}, null, 8, ["modelValue"])
|
|
629
|
-
])
|
|
630
|
-
]),
|
|
631
|
-
l("div", _t, [
|
|
632
|
-
e[53] || (e[53] = l("div", null, "Z轴向上", -1)),
|
|
633
|
-
l("div", null, [
|
|
634
|
-
d(r, {
|
|
635
|
-
modelValue: D.value,
|
|
636
|
-
"onUpdate:modelValue": e[28] || (e[28] = (t) => D.value = t),
|
|
637
|
-
size: "large",
|
|
638
|
-
onChange: e[29] || (e[29] = (t) => ie())
|
|
639
|
-
}, null, 8, ["modelValue"])
|
|
640
|
-
])
|
|
641
|
-
]),
|
|
642
|
-
l("div", Yt, [
|
|
643
|
-
e[54] || (e[54] = l("div", null, "显示模型空间", -1)),
|
|
644
|
-
l("div", null, [
|
|
645
|
-
d(r, {
|
|
646
|
-
modelValue: A.value,
|
|
647
|
-
"onUpdate:modelValue": e[30] || (e[30] = (t) => A.value = t),
|
|
648
|
-
size: "large",
|
|
649
|
-
onChange: e[31] || (e[31] = (t) => Q())
|
|
650
|
-
}, null, 8, ["modelValue"])
|
|
651
|
-
])
|
|
652
|
-
]),
|
|
653
|
-
l("div", qt, [
|
|
654
|
-
e[55] || (e[55] = l("div", null, "空间效果", -1)),
|
|
655
|
-
d(Ie, {
|
|
656
|
-
modelValue: S.value,
|
|
657
|
-
"onUpdate:modelValue": e[32] || (e[32] = (t) => S.value = t)
|
|
658
|
-
}, {
|
|
659
|
-
default: E(() => [
|
|
660
|
-
(s(!0), f(Y, null, le(R.value, (t) => (s(), h(Se, {
|
|
661
|
-
key: t,
|
|
662
|
-
label: t,
|
|
663
|
-
onChange: (ee) => X(t)
|
|
664
|
-
}, null, 8, ["label", "onChange"]))), 128))
|
|
665
|
-
]),
|
|
666
|
-
_: 1
|
|
667
|
-
}, 8, ["modelValue"])
|
|
668
|
-
]),
|
|
669
|
-
l("div", Jt, [
|
|
670
|
-
e[56] || (e[56] = l("div", null, "缩放速率", -1)),
|
|
671
|
-
l("div", Qt, [
|
|
672
|
-
d(P, {
|
|
673
|
-
modelValue: U.value,
|
|
674
|
-
"onUpdate:modelValue": e[33] || (e[33] = (t) => U.value = t),
|
|
675
|
-
onInput: e[34] || (e[34] = (t) => Ce(U.value))
|
|
676
|
-
}, null, 8, ["modelValue"])
|
|
677
|
-
])
|
|
678
|
-
])
|
|
679
|
-
]),
|
|
680
|
-
_: 1
|
|
681
|
-
})
|
|
682
|
-
])
|
|
683
|
-
])
|
|
684
|
-
])) : p("", !0)
|
|
685
|
-
], 64);
|
|
686
|
-
};
|
|
687
|
-
}
|
|
688
|
-
}), rl = /* @__PURE__ */ lt(Xt, [["__scopeId", "data-v-281730f0"]]);
|
|
689
|
-
export {
|
|
690
|
-
rl as default
|
|
691
|
-
};
|