@xtctwins/tctwins-bimx-engine 0.2.21 → 0.2.22
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 -5
- package/dist/{AnnotationTool-wlMzfke3.mjs → AnnotationTool-BAqnoElU.mjs} +32 -32
- package/dist/BIMX_Viewer_Lib.es.js +2 -2
- package/dist/BIMX_Viewer_Lib.umd.js +151 -153
- package/dist/{CommentTool-BFWKjEwL.mjs → CommentTool-QAQnEThT.mjs} +44 -44
- package/dist/{HiddenTool-B39qHPG4.mjs → HiddenTool-YmKJlgqE.mjs} +12 -12
- package/dist/{InspectorTool-DuZMt6ck.mjs → InspectorTool-BrLjImHZ.mjs} +25 -25
- package/dist/{MeasureTool-CAtJhHvn.mjs → MeasureTool-CUZy5ML9.mjs} +36 -36
- package/dist/{NavigateTool-DUJbcOu8.mjs → NavigateTool-DviiOK_a.mjs} +1 -1
- package/dist/{RoamTool-VJukLQbx.mjs → RoamTool-CIkux4Y-.mjs} +19 -19
- package/dist/ScreenShotTool-Bu0M6ur_.mjs +357 -0
- package/dist/{SectionTool-wG-g4bYz.mjs → SectionTool-BJ19Wgfm.mjs} +55 -55
- package/dist/{SettingTool-BJIcCCIF.mjs → SettingTool-CUaDVp_g.mjs} +136 -136
- package/dist/{StructureTree-ArZXIpjJ.mjs → StructureTree-DIW023ER.mjs} +232 -241
- package/dist/{alert-BKbDGve8.mjs → alert-Dv1dFs7z.mjs} +3 -3
- package/dist/el-input-number-C1xkBmQ4.mjs +818 -0
- package/dist/{index-DLOOTr_z.mjs → index-Db6oz6CK.mjs} +44717 -46965
- package/dist/index.html +17 -17
- package/dist/{panel.vue_vue_type_style_index_0_lang-BHeUPt0m.mjs → panel.vue_vue_type_style_index_0_lang-DF0tLFJ-.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{tallPanel-C7-DJpng.mjs → tallPanel-CqAU492j.mjs} +16 -16
- package/package.json +65 -66
- 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 +9 -38
- package/types/components/BCFComponents/commentsView.vue.d.ts +7 -38
- 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/CommentTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/NavigateTool.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 -3042
- package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/emptyPage.vue.d.ts +8 -0
- package/types/components/bimxViewer.vue.d.ts +12 -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/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/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/viewerEntry.vue.d.ts +54 -4
- package/types/store/bcfReflect.d.ts +0 -2
- package/types/store/initConfigs.d.ts +1 -1
- package/dist/ScreenShotTool-DoeDZA0a.mjs +0 -357
- package/dist/el-input-number-BXp6cJeD.mjs +0 -858
- package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +0 -56
- package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +0 -55
- package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +0 -278
- package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +0 -255
- package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +0 -17
- package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +0 -54
- package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +0 -17
- package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +0 -12
- package/types/components/utilsComponents/closeButton_dark.vue.d.ts +0 -32
- package/types/services/request/api.d.ts +0 -3
- package/types/services/request/index.d.ts +0 -14
- package/types/services/request/types.d.ts +0 -12
- package/types/tests/bcf.d.ts +0 -8
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
var Fe = (u, g, y) => g in u ?
|
|
3
|
-
var
|
|
4
|
-
import {
|
|
5
|
-
import { _ as nl } from "./panel.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { E as il } from "./el-input-number-
|
|
7
|
-
import { defineComponent as
|
|
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 { X as Le, G as Oe, k as le, Y as Ke, P as Re, U as me, I as oe, f as ve, H as ce, J as fe, Z as pe, R as We, L as He, u as Ze, S as Ge, M as _e, $ as Ye, d as Ee, c as O, _ as Je, a0 as De, a1 as Xe, w as je, n as qe, T as Ue, o as F, p as _, E as Qe, a2 as el, t as ll, v as tl, x as ol } from "./index-Db6oz6CK.mjs";
|
|
5
|
+
import { _ as nl } from "./panel.vue_vue_type_style_index_0_lang-DF0tLFJ-.mjs";
|
|
6
|
+
import { E as il } from "./el-input-number-C1xkBmQ4.mjs";
|
|
7
|
+
import { defineComponent as Ve, computed as L, ref as m, watch as ge, onMounted as Be, 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 X, createVNode as d, renderSlot as Ae, nextTick as ul, onBeforeUnmount as dl, resolveComponent as rl, Fragment as J, createTextVNode as M, renderList as te } from "vue";
|
|
8
8
|
import { b as K } from "./const-B1FlFgEN.mjs";
|
|
9
9
|
import { Loading as vl } from "@element-plus/icons-vue";
|
|
10
10
|
const cl = (u) => ["", ...Le].includes(u), ml = Oe({
|
|
@@ -66,30 +66,30 @@ const cl = (u) => ["", ...Le].includes(u), ml = Oe({
|
|
|
66
66
|
tabindex: {
|
|
67
67
|
type: [String, Number]
|
|
68
68
|
},
|
|
69
|
-
...
|
|
69
|
+
...Re(["ariaLabel"])
|
|
70
70
|
}), fl = {
|
|
71
71
|
[me]: (u) => oe(u) || ve(u) || ce(u),
|
|
72
72
|
[fe]: (u) => oe(u) || ve(u) || ce(u),
|
|
73
73
|
[pe]: (u) => oe(u) || ve(u) || ce(u)
|
|
74
|
-
}, ye = "ElSwitch", pl =
|
|
74
|
+
}, ye = "ElSwitch", pl = Ve({
|
|
75
75
|
name: ye
|
|
76
|
-
}), gl = /* @__PURE__ */
|
|
76
|
+
}), gl = /* @__PURE__ */ Ve({
|
|
77
77
|
...pl,
|
|
78
78
|
props: ml,
|
|
79
79
|
emits: fl,
|
|
80
80
|
setup(u, { expose: g, emit: y }) {
|
|
81
|
-
const v = u, { formItem:
|
|
82
|
-
formItemContext:
|
|
83
|
-
}), k =
|
|
81
|
+
const v = u, { formItem: x } = We(), I = He(), a = Ze("switch"), { inputId: D } = Ge(v, {
|
|
82
|
+
formItemContext: x
|
|
83
|
+
}), k = _e(L(() => v.loading)), z = m(v.modelValue !== !1), V = m(), $ = m(), U = L(() => [
|
|
84
84
|
a.b(),
|
|
85
85
|
a.m(I.value),
|
|
86
86
|
a.is("disabled", k.value),
|
|
87
87
|
a.is("checked", c.value)
|
|
88
|
-
]),
|
|
88
|
+
]), R = L(() => [
|
|
89
89
|
a.e("label"),
|
|
90
90
|
a.em("label", "left"),
|
|
91
91
|
a.is("active", !c.value)
|
|
92
|
-
]),
|
|
92
|
+
]), A = L(() => [
|
|
93
93
|
a.e("label"),
|
|
94
94
|
a.em("label", "right"),
|
|
95
95
|
a.is("active", c.value)
|
|
@@ -99,15 +99,15 @@ const cl = (u) => ["", ...Le].includes(u), ml = Oe({
|
|
|
99
99
|
ge(() => v.modelValue, () => {
|
|
100
100
|
z.value = !0;
|
|
101
101
|
});
|
|
102
|
-
const
|
|
103
|
-
[v.activeValue, v.inactiveValue].includes(
|
|
104
|
-
var
|
|
105
|
-
|
|
102
|
+
const N = L(() => z.value ? v.modelValue : !1), c = L(() => N.value === v.activeValue);
|
|
103
|
+
[v.activeValue, v.inactiveValue].includes(N.value) || (y(me, v.inactiveValue), y(fe, v.inactiveValue), y(pe, v.inactiveValue)), ge(c, (o) => {
|
|
104
|
+
var b;
|
|
105
|
+
V.value.checked = o, v.validateEvent && ((b = x == null ? void 0 : x.validate) == null || b.call(x, "change").catch((H) => Ee(H)));
|
|
106
106
|
});
|
|
107
107
|
const B = () => {
|
|
108
108
|
const o = c.value ? v.inactiveValue : v.activeValue;
|
|
109
109
|
y(me, o), y(fe, o), y(pe, o), ul(() => {
|
|
110
|
-
|
|
110
|
+
V.value.checked = c.value;
|
|
111
111
|
});
|
|
112
112
|
}, C = () => {
|
|
113
113
|
if (k.value)
|
|
@@ -117,32 +117,32 @@ const cl = (u) => ["", ...Le].includes(u), ml = Oe({
|
|
|
117
117
|
B();
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
|
-
const
|
|
120
|
+
const b = o();
|
|
121
121
|
[
|
|
122
|
-
|
|
123
|
-
oe(
|
|
124
|
-
].includes(!0) ||
|
|
122
|
+
De(b),
|
|
123
|
+
oe(b)
|
|
124
|
+
].includes(!0) || Xe(ye, "beforeChange must return type `Promise<boolean>` or `boolean`"), De(b) ? b.then((w) => {
|
|
125
125
|
w && B();
|
|
126
126
|
}).catch((w) => {
|
|
127
127
|
Ee(ye, `some error occurred: ${w}`);
|
|
128
|
-
}) :
|
|
129
|
-
},
|
|
130
|
-
var o,
|
|
131
|
-
(
|
|
128
|
+
}) : b && B();
|
|
129
|
+
}, W = () => {
|
|
130
|
+
var o, b;
|
|
131
|
+
(b = (o = V.value) == null ? void 0 : o.focus) == null || b.call(o);
|
|
132
132
|
};
|
|
133
133
|
return Be(() => {
|
|
134
|
-
|
|
134
|
+
V.value.checked = c.value;
|
|
135
135
|
}), g({
|
|
136
|
-
focus:
|
|
136
|
+
focus: W,
|
|
137
137
|
checked: c
|
|
138
|
-
}), (o,
|
|
139
|
-
class: T(i(
|
|
138
|
+
}), (o, b) => (s(), f("div", {
|
|
139
|
+
class: T(i(U)),
|
|
140
140
|
onClick: sl(C, ["prevent"])
|
|
141
141
|
}, [
|
|
142
142
|
t("input", {
|
|
143
|
-
id: i(
|
|
143
|
+
id: i(D),
|
|
144
144
|
ref_key: "input",
|
|
145
|
-
ref:
|
|
145
|
+
ref: V,
|
|
146
146
|
class: T(i(a).e("input")),
|
|
147
147
|
type: "checkbox",
|
|
148
148
|
role: "switch",
|
|
@@ -159,7 +159,7 @@ const cl = (u) => ["", ...Le].includes(u), ml = Oe({
|
|
|
159
159
|
}, null, 42, ["id", "aria-checked", "aria-disabled", "aria-label", "name", "true-value", "false-value", "disabled", "tabindex", "onKeydown"]),
|
|
160
160
|
!o.inlinePrompt && (o.inactiveIcon || o.inactiveText) ? (s(), f("span", {
|
|
161
161
|
key: 0,
|
|
162
|
-
class: T(i(
|
|
162
|
+
class: T(i(R))
|
|
163
163
|
}, [
|
|
164
164
|
o.inactiveIcon ? (s(), h(i(O), { key: 0 }, {
|
|
165
165
|
default: E(() => [
|
|
@@ -170,13 +170,13 @@ const cl = (u) => ["", ...Le].includes(u), ml = Oe({
|
|
|
170
170
|
!o.inactiveIcon && o.inactiveText ? (s(), f("span", {
|
|
171
171
|
key: 1,
|
|
172
172
|
"aria-hidden": i(c)
|
|
173
|
-
},
|
|
173
|
+
}, j(o.inactiveText), 9, ["aria-hidden"])) : p("v-if", !0)
|
|
174
174
|
], 2)) : p("v-if", !0),
|
|
175
175
|
t("span", {
|
|
176
176
|
ref_key: "core",
|
|
177
177
|
ref: $,
|
|
178
178
|
class: T(i(a).e("core")),
|
|
179
|
-
style:
|
|
179
|
+
style: X(i(S))
|
|
180
180
|
}, [
|
|
181
181
|
o.inlinePrompt ? (s(), f("div", {
|
|
182
182
|
key: 0,
|
|
@@ -194,7 +194,7 @@ const cl = (u) => ["", ...Le].includes(u), ml = Oe({
|
|
|
194
194
|
key: 1,
|
|
195
195
|
class: T(i(a).is("text")),
|
|
196
196
|
"aria-hidden": !i(c)
|
|
197
|
-
},
|
|
197
|
+
}, j(i(c) ? o.activeText : o.inactiveText), 11, ["aria-hidden"])) : p("v-if", !0)
|
|
198
198
|
], 2)) : p("v-if", !0),
|
|
199
199
|
t("div", {
|
|
200
200
|
class: T(i(a).e("action"))
|
|
@@ -207,14 +207,14 @@ const cl = (u) => ["", ...Le].includes(u), ml = Oe({
|
|
|
207
207
|
d(i(vl))
|
|
208
208
|
]),
|
|
209
209
|
_: 1
|
|
210
|
-
}, 8, ["class"])) : i(c) ?
|
|
210
|
+
}, 8, ["class"])) : i(c) ? Ae(o.$slots, "active-action", { key: 1 }, () => [
|
|
211
211
|
o.activeActionIcon ? (s(), h(i(O), { key: 0 }, {
|
|
212
212
|
default: E(() => [
|
|
213
213
|
(s(), h(Y(o.activeActionIcon)))
|
|
214
214
|
]),
|
|
215
215
|
_: 1
|
|
216
216
|
})) : p("v-if", !0)
|
|
217
|
-
]) : i(c) ? p("v-if", !0) :
|
|
217
|
+
]) : i(c) ? p("v-if", !0) : Ae(o.$slots, "inactive-action", { key: 2 }, () => [
|
|
218
218
|
o.inactiveActionIcon ? (s(), h(i(O), { key: 0 }, {
|
|
219
219
|
default: E(() => [
|
|
220
220
|
(s(), h(Y(o.inactiveActionIcon)))
|
|
@@ -226,7 +226,7 @@ const cl = (u) => ["", ...Le].includes(u), ml = Oe({
|
|
|
226
226
|
], 6),
|
|
227
227
|
!o.inlinePrompt && (o.activeIcon || o.activeText) ? (s(), f("span", {
|
|
228
228
|
key: 1,
|
|
229
|
-
class: T(i(
|
|
229
|
+
class: T(i(A))
|
|
230
230
|
}, [
|
|
231
231
|
o.activeIcon ? (s(), h(i(O), { key: 0 }, {
|
|
232
232
|
default: E(() => [
|
|
@@ -237,19 +237,19 @@ const cl = (u) => ["", ...Le].includes(u), ml = Oe({
|
|
|
237
237
|
!o.activeIcon && o.activeText ? (s(), f("span", {
|
|
238
238
|
key: 1,
|
|
239
239
|
"aria-hidden": !i(c)
|
|
240
|
-
},
|
|
240
|
+
}, j(o.activeText), 9, ["aria-hidden"])) : p("v-if", !0)
|
|
241
241
|
], 2)) : p("v-if", !0)
|
|
242
242
|
], 10, ["onClick"]));
|
|
243
243
|
}
|
|
244
244
|
});
|
|
245
|
-
var yl = /* @__PURE__ */
|
|
246
|
-
const
|
|
247
|
-
class
|
|
245
|
+
var yl = /* @__PURE__ */ Je(gl, [["__file", "switch.vue"]]);
|
|
246
|
+
const Vl = je(yl);
|
|
247
|
+
class bl {
|
|
248
248
|
constructor(g) {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
249
|
+
G(this, "duration");
|
|
250
|
+
G(this, "active");
|
|
251
|
+
G(this, "remainingTime");
|
|
252
|
+
G(this, "timerInterval");
|
|
253
253
|
this.duration = g, this.remainingTime = g, this.active = !1;
|
|
254
254
|
}
|
|
255
255
|
start(g) {
|
|
@@ -277,7 +277,7 @@ const wl = { style: { height: "var(--setting-content-height)" } }, hl = {
|
|
|
277
277
|
}, El = {
|
|
278
278
|
key: 2,
|
|
279
279
|
class: "setting-effect"
|
|
280
|
-
},
|
|
280
|
+
}, Dl = { class: "setting-effect" }, Ul = { class: "setting-effect" }, Al = { class: "setting-effect" }, Bl = { 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" }, Ll = ["onClick"], Ol = { class: "setting-config-box" }, Kl = { class: "setting-switch-item" }, Rl = { class: "setting-switch-item" }, Wl = { class: "light-slider" }, Hl = { class: "setting-switch-item" }, Zl = { class: "setting-switch-item" }, Gl = { class: "setting-switch-item" }, _l = { class: "setting-switch-item" }, Yl = { class: "setting-switch-item" }, Jl = { class: "setting-switch-item" }, Xl = { class: "setting-switch-item" }, jl = { class: "speed-slider" }, ql = /* @__PURE__ */ Ve({
|
|
281
281
|
__name: "SettingTool",
|
|
282
282
|
props: {
|
|
283
283
|
instruction: {},
|
|
@@ -285,51 +285,51 @@ const wl = { style: { height: "var(--setting-content-height)" } }, hl = {
|
|
|
285
285
|
},
|
|
286
286
|
emits: ["closePanel", "emitHandler"],
|
|
287
287
|
setup(u, { emit: g }) {
|
|
288
|
-
const y =
|
|
288
|
+
const y = qe(), v = u, x = m(0);
|
|
289
289
|
Be(() => {
|
|
290
|
-
y.setReadyById(v.componentId),
|
|
290
|
+
y.setReadyById(v.componentId), Ue.currentTheme == "blue" ? x.value = 240 : Ue.currentTheme == "light-gray" && (x.value = 202);
|
|
291
291
|
});
|
|
292
292
|
let I;
|
|
293
|
-
const a = m(!1),
|
|
293
|
+
const a = m(!1), D = m(!1), k = m(!1), z = m(!1), V = m(!1), $ = m(!0), U = m(!1), R = m(!1), A = m(1), S = m(50), N = m(!1), c = new bl(5);
|
|
294
294
|
ge(
|
|
295
295
|
() => y.isToolActive(v.componentId),
|
|
296
296
|
(n) => {
|
|
297
|
-
n === !1 && (c.stop(),
|
|
297
|
+
n === !1 && (c.stop(), N.value && be());
|
|
298
298
|
}
|
|
299
299
|
);
|
|
300
|
-
const B = m(50), C = m(["亮"]),
|
|
300
|
+
const B = m(50), C = m(["亮"]), W = m(["亮", "暗"]), o = m("linear-gradient(180deg, #fffefb 0%, #daebff 100%)"), b = g, H = () => {
|
|
301
301
|
I = window.bimViewer, I.viewer.scene.on("aabb", () => {
|
|
302
|
-
|
|
302
|
+
q(U.value), Q(C.value[0]);
|
|
303
303
|
});
|
|
304
304
|
}, w = () => {
|
|
305
|
-
|
|
306
|
-
|
|
305
|
+
N.value = !0, c.start(() => {
|
|
306
|
+
be();
|
|
307
307
|
});
|
|
308
|
-
},
|
|
308
|
+
}, be = () => {
|
|
309
309
|
var e, r;
|
|
310
310
|
let n;
|
|
311
311
|
F("isMobile") ? n = {
|
|
312
|
-
backgroundColor: ((e = K.find((
|
|
312
|
+
backgroundColor: ((e = K.find((P) => P.id == A.value)) == null ? void 0 : e.name) ?? "渐变蓝",
|
|
313
313
|
showEdges: k.value,
|
|
314
314
|
lightIntensity: S.value,
|
|
315
315
|
skyBox: z.value,
|
|
316
|
-
orthoMode:
|
|
316
|
+
orthoMode: V.value,
|
|
317
317
|
modelType2D: $.value,
|
|
318
318
|
yAxisDown: a.value,
|
|
319
|
-
zAxisUp:
|
|
320
|
-
showSpace:
|
|
319
|
+
zAxisUp: D.value,
|
|
320
|
+
showSpace: U.value,
|
|
321
321
|
spaceEffect: C.value[0],
|
|
322
322
|
touchDollySpeed: B.value
|
|
323
323
|
} : n = {
|
|
324
|
-
backgroundColor: ((r = K.find((
|
|
324
|
+
backgroundColor: ((r = K.find((P) => P.id == A.value)) == null ? void 0 : r.name) ?? "渐变蓝",
|
|
325
325
|
showEdges: k.value,
|
|
326
326
|
lightIntensity: S.value,
|
|
327
327
|
skyBox: z.value,
|
|
328
|
-
orthoMode:
|
|
328
|
+
orthoMode: V.value,
|
|
329
329
|
modelType2D: $.value,
|
|
330
330
|
yAxisDown: a.value,
|
|
331
|
-
zAxisUp:
|
|
332
|
-
showSpace:
|
|
331
|
+
zAxisUp: D.value,
|
|
332
|
+
showSpace: U.value,
|
|
333
333
|
spaceEffect: C.value[0]
|
|
334
334
|
}, $e({
|
|
335
335
|
isTool: !0,
|
|
@@ -338,50 +338,50 @@ const wl = { style: { height: "var(--setting-content-height)" } }, hl = {
|
|
|
338
338
|
content: {
|
|
339
339
|
newSets: n
|
|
340
340
|
}
|
|
341
|
-
}),
|
|
341
|
+
}), N.value = !1;
|
|
342
342
|
}, we = (n) => {
|
|
343
|
-
const e = n.lastSet, r = K.find((
|
|
344
|
-
|
|
343
|
+
const e = n.lastSet, r = K.find((P) => P.name == e.backgroundColor);
|
|
344
|
+
A.value = r ? r.id : 1, ae(r ?? K[0]), k.value = e.showEdges, de(k.value), S.value = e.lightIntensity, ue(S.value), V.value = e.orthoMode, Z(V.value), $.value = e.modelType2D, re($.value), U.value = e.showSpace, q(U.value), C.value = [e.spaceEffect], Q(C.value[0]), a.value = e.yAxisDown, a.value && se(), D.value = e.zAxisUp, D.value && ie(), F("isMobile") ? (B.value = e.touchDollySpeed, Ce(B.value)) : (z.value = e.skyBox, ke(z.value)), N.value = !1;
|
|
345
345
|
};
|
|
346
|
-
|
|
347
|
-
|
|
346
|
+
_.on("BimViewer", H), _.on("lastSetsContent", we), dl(() => {
|
|
347
|
+
_.off("BimViewer", H), _.off("lastSetsContent", we);
|
|
348
348
|
});
|
|
349
349
|
const $e = (n) => {
|
|
350
|
-
|
|
350
|
+
b("emitHandler", n);
|
|
351
351
|
}, ne = (n) => {
|
|
352
|
-
n && n.target.id != "setting_back" || (
|
|
353
|
-
}, he = (n = !
|
|
354
|
-
|
|
352
|
+
n && n.target.id != "setting_back" || (b("closePanel"), he(!1));
|
|
353
|
+
}, he = (n = !R.value) => {
|
|
354
|
+
R.value = n;
|
|
355
355
|
}, ie = (n) => {
|
|
356
|
-
w(), window.bimViewer.setWorldAxisZUp(
|
|
356
|
+
w(), window.bimViewer.setWorldAxisZUp(D.value), Z(V.value);
|
|
357
357
|
}, se = (n) => {
|
|
358
|
-
w(), window.bimViewer.setWorldAxisYDown(a.value),
|
|
358
|
+
w(), window.bimViewer.setWorldAxisYDown(a.value), Z(V.value);
|
|
359
359
|
}, ae = (n) => {
|
|
360
|
-
w(),
|
|
360
|
+
w(), A.value = n.id, o.value = n.color, _.emit("changeBackgroundColor", n.color);
|
|
361
361
|
}, ue = (n) => {
|
|
362
362
|
w(), I.setLightIntensity(n);
|
|
363
363
|
}, de = (n) => {
|
|
364
364
|
w(), I.setEdgesEnabled(n);
|
|
365
365
|
}, re = (n) => {
|
|
366
366
|
w(), I.SetThreeDModeActive(n), F("isMobile") && (window.bimViewer.navCubeMode.visible = !1);
|
|
367
|
-
},
|
|
367
|
+
}, Z = (n) => {
|
|
368
368
|
w(), I.SetOrthoModeActive(n);
|
|
369
|
-
},
|
|
369
|
+
}, q = (n) => {
|
|
370
370
|
w(), I.SetShowSpaceModeActive(n);
|
|
371
371
|
}, Q = (n) => {
|
|
372
|
-
w(), n == "亮" ? window.bimViewer.setSpaceMaterialColor(1) : window.bimViewer.setSpaceMaterialColor(2), C.value =
|
|
372
|
+
w(), n == "亮" ? window.bimViewer.setSpaceMaterialColor(1) : window.bimViewer.setSpaceMaterialColor(2), C.value = W.value.includes(n) ? [n] : [];
|
|
373
373
|
}, ke = (n) => {
|
|
374
374
|
w(), I.SetSkyBoxToolActive(n);
|
|
375
375
|
}, Ce = (n) => {
|
|
376
376
|
w(), n == 0 ? I.viewer.cameraControl.customTouchDollyRate = 0.05 / 50 : I.viewer.cameraControl.customTouchDollyRate = n / 50;
|
|
377
377
|
};
|
|
378
378
|
return (n, e) => {
|
|
379
|
-
const r =
|
|
380
|
-
return s(), f(
|
|
379
|
+
const r = Vl, P = il, Ie = Qe, Se = el, Te = ll, Me = nl, ze = tl, Pe = rl("SuccessFilled"), xe = O;
|
|
380
|
+
return s(), f(J, null, [
|
|
381
381
|
i(F)("isMobile") ? p("", !0) : (s(), h(Me, {
|
|
382
382
|
key: 0,
|
|
383
383
|
class: "setting_contaier",
|
|
384
|
-
width:
|
|
384
|
+
width: x.value,
|
|
385
385
|
panelTitle: "设置",
|
|
386
386
|
"click-handle": ne,
|
|
387
387
|
style: { height: "var(--setting-panel-height)" }
|
|
@@ -398,20 +398,20 @@ const wl = { style: { height: "var(--setting-content-height)" } }, hl = {
|
|
|
398
398
|
e[35] || (e[35] = M(" 背景颜色 ")),
|
|
399
399
|
t("div", {
|
|
400
400
|
class: "choose-color",
|
|
401
|
-
style:
|
|
401
|
+
style: X({ background: o.value })
|
|
402
402
|
}, null, 4)
|
|
403
403
|
]),
|
|
404
|
-
|
|
405
|
-
(s(!0), f(
|
|
404
|
+
R.value ? (s(), f("div", hl, [
|
|
405
|
+
(s(!0), f(J, null, te(i(K), (l) => (s(), f("div", {
|
|
406
406
|
key: l.id,
|
|
407
|
-
class: T(["color-item", { "color-item-active":
|
|
407
|
+
class: T(["color-item", { "color-item-active": A.value === l.id }]),
|
|
408
408
|
onClick: (ee) => ae(l)
|
|
409
409
|
}, [
|
|
410
410
|
t("div", {
|
|
411
411
|
class: "bg",
|
|
412
|
-
style:
|
|
412
|
+
style: X({ background: l.color, border: l.id === 4 ? "1px solid #F1F1F1" : "none" })
|
|
413
413
|
}, null, 4),
|
|
414
|
-
M(" " +
|
|
414
|
+
M(" " + j(l.name), 1)
|
|
415
415
|
], 10, kl))), 128))
|
|
416
416
|
])) : p("", !0),
|
|
417
417
|
t("div", Cl, [
|
|
@@ -426,7 +426,7 @@ const wl = { style: { height: "var(--setting-content-height)" } }, hl = {
|
|
|
426
426
|
t("div", Il, [
|
|
427
427
|
e[37] || (e[37] = M(" 光源强度 ")),
|
|
428
428
|
t("div", Sl, [
|
|
429
|
-
d(
|
|
429
|
+
d(P, {
|
|
430
430
|
modelValue: S.value,
|
|
431
431
|
"onUpdate:modelValue": e[3] || (e[3] = (l) => S.value = l),
|
|
432
432
|
onInput: e[4] || (e[4] = (l) => ue(S.value))
|
|
@@ -444,16 +444,16 @@ const wl = { style: { height: "var(--setting-content-height)" } }, hl = {
|
|
|
444
444
|
}, null, 8, ["modelValue"])
|
|
445
445
|
])) : p("", !0),
|
|
446
446
|
e[46] || (e[46] = t("div", { class: "setting-title" }, "模型视角切换", -1)),
|
|
447
|
-
t("div",
|
|
447
|
+
t("div", Dl, [
|
|
448
448
|
e[39] || (e[39] = M(" 透视/正交 ")),
|
|
449
449
|
d(r, {
|
|
450
|
-
modelValue:
|
|
451
|
-
"onUpdate:modelValue": e[7] || (e[7] = (l) =>
|
|
450
|
+
modelValue: V.value,
|
|
451
|
+
"onUpdate:modelValue": e[7] || (e[7] = (l) => V.value = l),
|
|
452
452
|
style: { "--el-switch-on-color": "#0065fc" },
|
|
453
|
-
onChange: e[8] || (e[8] = (l) =>
|
|
453
|
+
onChange: e[8] || (e[8] = (l) => Z())
|
|
454
454
|
}, null, 8, ["modelValue"])
|
|
455
455
|
]),
|
|
456
|
-
t("div",
|
|
456
|
+
t("div", Ul, [
|
|
457
457
|
e[40] || (e[40] = M(" 2D/3D ")),
|
|
458
458
|
d(r, {
|
|
459
459
|
modelValue: $.value,
|
|
@@ -462,7 +462,7 @@ const wl = { style: { height: "var(--setting-content-height)" } }, hl = {
|
|
|
462
462
|
onChange: e[10] || (e[10] = (l) => re())
|
|
463
463
|
}, null, 8, ["modelValue"])
|
|
464
464
|
]),
|
|
465
|
-
t("div",
|
|
465
|
+
t("div", Al, [
|
|
466
466
|
e[41] || (e[41] = t("div", null, "模型倒置", -1)),
|
|
467
467
|
t("div", null, [
|
|
468
468
|
d(r, {
|
|
@@ -477,8 +477,8 @@ const wl = { style: { height: "var(--setting-content-height)" } }, hl = {
|
|
|
477
477
|
e[42] || (e[42] = t("div", null, "Z轴向上", -1)),
|
|
478
478
|
t("div", null, [
|
|
479
479
|
d(r, {
|
|
480
|
-
modelValue:
|
|
481
|
-
"onUpdate:modelValue": e[13] || (e[13] = (l) =>
|
|
480
|
+
modelValue: D.value,
|
|
481
|
+
"onUpdate:modelValue": e[13] || (e[13] = (l) => D.value = l),
|
|
482
482
|
style: { "--el-switch-on-color": "#0065fc" },
|
|
483
483
|
onChange: e[14] || (e[14] = (l) => ie())
|
|
484
484
|
}, null, 8, ["modelValue"])
|
|
@@ -487,10 +487,10 @@ const wl = { style: { height: "var(--setting-content-height)" } }, hl = {
|
|
|
487
487
|
t("div", $l, [
|
|
488
488
|
e[43] || (e[43] = M(" 显示模型空间 ")),
|
|
489
489
|
d(r, {
|
|
490
|
-
modelValue:
|
|
491
|
-
"onUpdate:modelValue": e[15] || (e[15] = (l) =>
|
|
490
|
+
modelValue: U.value,
|
|
491
|
+
"onUpdate:modelValue": e[15] || (e[15] = (l) => U.value = l),
|
|
492
492
|
style: { "--el-switch-on-color": "#0065fc" },
|
|
493
|
-
onChange: e[16] || (e[16] = (l) =>
|
|
493
|
+
onChange: e[16] || (e[16] = (l) => q())
|
|
494
494
|
}, null, 8, ["modelValue"])
|
|
495
495
|
]),
|
|
496
496
|
t("div", Ml, [
|
|
@@ -501,7 +501,7 @@ const wl = { style: { height: "var(--setting-content-height)" } }, hl = {
|
|
|
501
501
|
size: "small"
|
|
502
502
|
}, {
|
|
503
503
|
default: E(() => [
|
|
504
|
-
(s(!0), f(
|
|
504
|
+
(s(!0), f(J, null, te(W.value, (l) => (s(), h(Ie, {
|
|
505
505
|
key: l,
|
|
506
506
|
label: l,
|
|
507
507
|
onChange: (ee) => Q(l)
|
|
@@ -524,9 +524,9 @@ const wl = { style: { height: "var(--setting-content-height)" } }, hl = {
|
|
|
524
524
|
onClick: ne
|
|
525
525
|
}, [
|
|
526
526
|
t("div", zl, [
|
|
527
|
-
t("div",
|
|
527
|
+
t("div", Pl, [
|
|
528
528
|
e[47] || (e[47] = t("div", { class: "setting-title" }, "设置", -1)),
|
|
529
|
-
t("div",
|
|
529
|
+
t("div", xl, [
|
|
530
530
|
d(ze, {
|
|
531
531
|
width: 0.4,
|
|
532
532
|
"size-type": "rem",
|
|
@@ -534,34 +534,34 @@ const wl = { style: { height: "var(--setting-content-height)" } }, hl = {
|
|
|
534
534
|
})
|
|
535
535
|
])
|
|
536
536
|
]),
|
|
537
|
-
t("div",
|
|
537
|
+
t("div", Nl, [
|
|
538
538
|
t("div", Fl, [
|
|
539
|
-
(s(!0), f(
|
|
539
|
+
(s(!0), f(J, null, te(i(K), (l, ee) => (s(), f("div", {
|
|
540
540
|
key: ee,
|
|
541
541
|
class: T(["setting-color-item", {
|
|
542
|
-
"setting-color-item-active":
|
|
542
|
+
"setting-color-item-active": A.value === l.id
|
|
543
543
|
}]),
|
|
544
544
|
onClick: (Ql) => ae(l)
|
|
545
545
|
}, [
|
|
546
546
|
t("div", {
|
|
547
547
|
class: "setting-color-icon",
|
|
548
|
-
style:
|
|
548
|
+
style: X({
|
|
549
549
|
background: l.color,
|
|
550
|
-
border: l.id ===
|
|
550
|
+
border: l.id === A.value ? "0.02rem solid #0065FC" : ""
|
|
551
551
|
})
|
|
552
552
|
}, null, 4),
|
|
553
553
|
t("div", {
|
|
554
554
|
class: "setting-color-name",
|
|
555
|
-
style:
|
|
555
|
+
style: X({ color: l.id === A.value ? "#0065FC" : "" })
|
|
556
556
|
}, [
|
|
557
|
-
M(
|
|
558
|
-
l.id ===
|
|
557
|
+
M(j(l.name) + " ", 1),
|
|
558
|
+
l.id === A.value ? (s(), h(xe, {
|
|
559
559
|
key: 0,
|
|
560
560
|
color: "#0065fc",
|
|
561
561
|
size: "0.24rem"
|
|
562
562
|
}, {
|
|
563
563
|
default: E(() => [
|
|
564
|
-
d(
|
|
564
|
+
d(Pe)
|
|
565
565
|
]),
|
|
566
566
|
_: 1
|
|
567
567
|
})) : p("", !0)
|
|
@@ -583,28 +583,28 @@ const wl = { style: { height: "var(--setting-content-height)" } }, hl = {
|
|
|
583
583
|
}, null, 8, ["modelValue"])
|
|
584
584
|
])
|
|
585
585
|
]),
|
|
586
|
-
t("div",
|
|
586
|
+
t("div", Rl, [
|
|
587
587
|
e[49] || (e[49] = t("div", null, "光源强度", -1)),
|
|
588
|
-
t("div",
|
|
589
|
-
d(
|
|
588
|
+
t("div", Wl, [
|
|
589
|
+
d(P, {
|
|
590
590
|
modelValue: S.value,
|
|
591
591
|
"onUpdate:modelValue": e[20] || (e[20] = (l) => S.value = l),
|
|
592
592
|
onInput: e[21] || (e[21] = (l) => ue(S.value))
|
|
593
593
|
}, null, 8, ["modelValue"])
|
|
594
594
|
])
|
|
595
595
|
]),
|
|
596
|
-
t("div",
|
|
596
|
+
t("div", Hl, [
|
|
597
597
|
e[50] || (e[50] = t("div", null, "透视/正交", -1)),
|
|
598
598
|
t("div", null, [
|
|
599
599
|
d(r, {
|
|
600
|
-
modelValue:
|
|
601
|
-
"onUpdate:modelValue": e[22] || (e[22] = (l) =>
|
|
600
|
+
modelValue: V.value,
|
|
601
|
+
"onUpdate:modelValue": e[22] || (e[22] = (l) => V.value = l),
|
|
602
602
|
size: "large",
|
|
603
|
-
onChange: e[23] || (e[23] = (l) =>
|
|
603
|
+
onChange: e[23] || (e[23] = (l) => Z())
|
|
604
604
|
}, null, 8, ["modelValue"])
|
|
605
605
|
])
|
|
606
606
|
]),
|
|
607
|
-
t("div",
|
|
607
|
+
t("div", Zl, [
|
|
608
608
|
e[51] || (e[51] = t("div", null, "2D/3D", -1)),
|
|
609
609
|
t("div", null, [
|
|
610
610
|
d(r, {
|
|
@@ -615,7 +615,7 @@ const wl = { style: { height: "var(--setting-content-height)" } }, hl = {
|
|
|
615
615
|
}, null, 8, ["modelValue"])
|
|
616
616
|
])
|
|
617
617
|
]),
|
|
618
|
-
t("div",
|
|
618
|
+
t("div", Gl, [
|
|
619
619
|
e[52] || (e[52] = t("div", null, "模型倒置", -1)),
|
|
620
620
|
t("div", null, [
|
|
621
621
|
d(r, {
|
|
@@ -626,12 +626,12 @@ const wl = { style: { height: "var(--setting-content-height)" } }, hl = {
|
|
|
626
626
|
}, null, 8, ["modelValue"])
|
|
627
627
|
])
|
|
628
628
|
]),
|
|
629
|
-
t("div",
|
|
629
|
+
t("div", _l, [
|
|
630
630
|
e[53] || (e[53] = t("div", null, "Z轴向上", -1)),
|
|
631
631
|
t("div", null, [
|
|
632
632
|
d(r, {
|
|
633
|
-
modelValue:
|
|
634
|
-
"onUpdate:modelValue": e[28] || (e[28] = (l) =>
|
|
633
|
+
modelValue: D.value,
|
|
634
|
+
"onUpdate:modelValue": e[28] || (e[28] = (l) => D.value = l),
|
|
635
635
|
size: "large",
|
|
636
636
|
onChange: e[29] || (e[29] = (l) => ie())
|
|
637
637
|
}, null, 8, ["modelValue"])
|
|
@@ -641,21 +641,21 @@ const wl = { style: { height: "var(--setting-content-height)" } }, hl = {
|
|
|
641
641
|
e[54] || (e[54] = t("div", null, "显示模型空间", -1)),
|
|
642
642
|
t("div", null, [
|
|
643
643
|
d(r, {
|
|
644
|
-
modelValue:
|
|
645
|
-
"onUpdate:modelValue": e[30] || (e[30] = (l) =>
|
|
644
|
+
modelValue: U.value,
|
|
645
|
+
"onUpdate:modelValue": e[30] || (e[30] = (l) => U.value = l),
|
|
646
646
|
size: "large",
|
|
647
|
-
onChange: e[31] || (e[31] = (l) =>
|
|
647
|
+
onChange: e[31] || (e[31] = (l) => q())
|
|
648
648
|
}, null, 8, ["modelValue"])
|
|
649
649
|
])
|
|
650
650
|
]),
|
|
651
|
-
t("div",
|
|
651
|
+
t("div", Jl, [
|
|
652
652
|
e[55] || (e[55] = t("div", null, "空间效果", -1)),
|
|
653
653
|
d(Se, {
|
|
654
654
|
modelValue: C.value,
|
|
655
655
|
"onUpdate:modelValue": e[32] || (e[32] = (l) => C.value = l)
|
|
656
656
|
}, {
|
|
657
657
|
default: E(() => [
|
|
658
|
-
(s(!0), f(
|
|
658
|
+
(s(!0), f(J, null, te(W.value, (l) => (s(), h(Ie, {
|
|
659
659
|
key: l,
|
|
660
660
|
label: l,
|
|
661
661
|
onChange: (ee) => Q(l)
|
|
@@ -664,10 +664,10 @@ const wl = { style: { height: "var(--setting-content-height)" } }, hl = {
|
|
|
664
664
|
_: 1
|
|
665
665
|
}, 8, ["modelValue"])
|
|
666
666
|
]),
|
|
667
|
-
t("div",
|
|
667
|
+
t("div", Xl, [
|
|
668
668
|
e[56] || (e[56] = t("div", null, "缩放速率", -1)),
|
|
669
|
-
t("div",
|
|
670
|
-
d(
|
|
669
|
+
t("div", jl, [
|
|
670
|
+
d(P, {
|
|
671
671
|
modelValue: B.value,
|
|
672
672
|
"onUpdate:modelValue": e[33] || (e[33] = (l) => B.value = l),
|
|
673
673
|
onInput: e[34] || (e[34] = (l) => Ce(B.value))
|
|
@@ -683,7 +683,7 @@ const wl = { style: { height: "var(--setting-content-height)" } }, hl = {
|
|
|
683
683
|
], 64);
|
|
684
684
|
};
|
|
685
685
|
}
|
|
686
|
-
}), at = /* @__PURE__ */ ol(
|
|
686
|
+
}), at = /* @__PURE__ */ ol(ql, [["__scopeId", "data-v-7481f028"]]);
|
|
687
687
|
export {
|
|
688
688
|
at as default
|
|
689
689
|
};
|