@xtctwins/tctwins-industry-engine 0.0.12 → 0.1.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.
Files changed (105) hide show
  1. package/README.md +196 -3
  2. package/dist/01.xtc +0 -0
  3. package/dist/02.xtc +0 -0
  4. package/dist/03.xtc +0 -0
  5. package/dist/AnnotationTool-C5L5i2tf.mjs +166 -0
  6. package/dist/CameraViewTool-CM0qckrp.mjs +164 -0
  7. package/dist/CommentTool-B-6jkY8g.mjs +1528 -0
  8. package/dist/HiddenTool-CoiTnXX_.mjs +56 -0
  9. package/dist/Industry_Viewer_Lib.es.js +10 -5
  10. package/dist/Industry_Viewer_Lib.umd.js +262 -235
  11. package/dist/InspectorTool-D4XjJ3xE.mjs +679 -0
  12. package/dist/MeasureTool-DeguXY8Q.mjs +593 -0
  13. package/dist/MouseTool-MBZQBiey.mjs +84 -0
  14. package/dist/NavigateTool-CJ3Gcn7x.mjs +51 -0
  15. package/dist/OperateTool-CMncJ40d.mjs +185 -0
  16. package/dist/RoamTool-C56sheuh.mjs +287 -0
  17. package/dist/ScreenShotTool-PNCCVzI0.mjs +429 -0
  18. package/dist/SectionTool-CWdsvIBB.mjs +241 -0
  19. package/dist/SettingTool-CWmeVytp.mjs +1787 -0
  20. package/dist/StructureTree-Cjqc9T7J.mjs +1685 -0
  21. package/dist/alert-CYzWSnHi.mjs +52 -0
  22. package/dist/index-DoJj-LVm.mjs +138727 -0
  23. package/dist/index.html +17 -0
  24. package/dist/{panel.vue_vue_type_style_index_0_lang-CCuIP-Pp.mjs → panel.vue_vue_type_style_index_0_lang-Cc0xV2N6.mjs} +3 -3
  25. package/dist/style.css +3 -1
  26. package/dist/{tallPanel-CqKqC6yK.mjs → tallPanel-fxMO0U73.mjs} +24 -24
  27. package/dist/timer-DoTiGoWP.mjs +30 -0
  28. package/package.json +85 -66
  29. package/types/App.vue.d.ts +3 -1
  30. package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +1 -1
  31. package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +1 -1
  32. package/types/components/BCFComponents/BCFFilter.vue.d.ts +2 -2
  33. package/types/components/BCFComponents/commentInput.vue.d.ts +1 -1
  34. package/types/components/BCFComponents/commentsView.vue.d.ts +6 -6
  35. package/types/components/BCFComponents/imageView.vue.d.ts +1 -1
  36. package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
  37. package/types/components/BimViewerComponents/CameraViewTool.vue.d.ts +12 -0
  38. package/types/components/BimViewerComponents/CommentTool.vue.d.ts +34 -1
  39. package/types/components/BimViewerComponents/MobileCommentsTool/add.vue.d.ts +14 -0
  40. package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +11 -0
  41. package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +17 -0
  42. package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +275 -0
  43. package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +297 -0
  44. package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +9 -0
  45. package/types/components/BimViewerComponents/OperateTool.vue.d.ts +12 -0
  46. package/types/components/BimViewerComponents/PCCommentTool/pcdraw.vue.d.ts +14 -0
  47. package/types/components/BimViewerComponents/SectionModeBar.vue.d.ts +2 -0
  48. package/types/components/BimViewerComponents/StructureTree.vue.d.ts +8035 -419
  49. package/types/components/{industryViewer.vue.d.ts → BimxViewerComp.vue.d.ts} +7 -0
  50. package/types/components/IndustryViewerComp.vue.d.ts +25 -0
  51. package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +1 -1
  52. package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +1 -1
  53. package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +100 -308
  54. package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +100 -308
  55. package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +2 -0
  56. package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +4 -4
  57. package/types/components/utilsComponents/alert.vue.d.ts +9 -0
  58. package/types/components/utilsComponents/prompt.vue.d.ts +8 -0
  59. package/types/components/utilsComponents/rectangleButton.vue.d.ts +1 -1
  60. package/types/i18n/index.d.ts +1775 -0
  61. package/types/i18n/locales/en-US.d.ts +441 -0
  62. package/types/i18n/locales/zh-CN.d.ts +441 -0
  63. package/types/i18n/types.d.ts +144 -0
  64. package/types/index.d.ts +8 -5
  65. package/types/pages/{viewerEntry.vue.d.ts → BimxViewerEntry.vue.d.ts} +20 -8
  66. package/types/pages/IndustryViewerEntry.vue.d.ts +71 -0
  67. package/types/services/request/api.d.ts +3 -0
  68. package/types/services/request/index.d.ts +14 -0
  69. package/types/services/request/types.d.ts +12 -0
  70. package/types/store/bcfReflect.d.ts +8 -7
  71. package/types/store/const.d.ts +32 -3
  72. package/types/store/initConfigs.d.ts +3 -3
  73. package/types/store/localeStore.d.ts +12 -0
  74. package/types/store/propertyReflect.d.ts +1 -1
  75. package/types/store/toolbars.d.ts +596 -75
  76. package/types/store/userInfoStore.d.ts +32 -0
  77. package/types/tests/bcf.d.ts +8 -0
  78. package/types/utils/OSSHelper.d.ts +3 -0
  79. package/types/utils/eventBus.d.ts +23 -5
  80. package/types/utils/roles.d.ts +1 -1
  81. package/types/utils/splitType.d.ts +1 -0
  82. package/types/viewerManager/initial/viewerInitial.d.ts +14 -1
  83. package/types/viewerManager/load/loadModel.d.ts +122 -1
  84. package/types/viewerManager/sectionManager.d.ts +524 -0
  85. package/types/viewerManager/viewerManager.d.ts +19 -1
  86. package/dist/AnnotationTool-f7CrC7Dr.mjs +0 -131
  87. package/dist/BCFTool-CdN6SGDL.mjs +0 -25118
  88. package/dist/CommentTool-Cfht7mQS.mjs +0 -168
  89. package/dist/InspectorTool-M_oBYVQA.mjs +0 -674
  90. package/dist/MeasureTool-CxWeQFgY.mjs +0 -167
  91. package/dist/MouseTool-BHbi-fg3.mjs +0 -84
  92. package/dist/NavigateTool-BdUVi4Be.mjs +0 -52
  93. package/dist/RoamTool-Uuxa-94w.mjs +0 -212
  94. package/dist/ScreenShotTool-CZUm8l2Z.mjs +0 -445
  95. package/dist/SectionTool-DZToybAI.mjs +0 -217
  96. package/dist/SettingTool-CYM0qsUs.mjs +0 -770
  97. package/dist/StructureTree-DeXxENMk.mjs +0 -1824
  98. package/dist/XRayTool-Bug-FcKJ.mjs +0 -57
  99. package/dist/alert-DGyQ9rEq.mjs +0 -46
  100. package/dist/const-DeViLYl5.mjs +0 -266
  101. package/dist/el-checkbox-ClYe-8uK.mjs +0 -544
  102. package/dist/el-input-number-Df5HOHuh.mjs +0 -1028
  103. package/dist/index-BNrMlQLr.mjs +0 -101871
  104. /package/types/components/BimViewerComponents/{mobileToolbar.vue.d.ts → AppToolbar.vue.d.ts} +0 -0
  105. /package/types/components/BimViewerComponents/{XRayTool.vue.d.ts → HiddenTool.vue.d.ts} +0 -0
@@ -1,770 +0,0 @@
1
- var Fe = Object.defineProperty;
2
- var Oe = (a, y, E) => y in a ? Fe(a, y, { enumerable: !0, configurable: !0, writable: !0, value: E }) : a[y] = E;
3
- var Y = (a, y, E) => Oe(a, typeof y != "symbol" ? y + "" : y, E);
4
- import { c as xe, d as ne, j as ce, L as me, b as Le, a0 as fe, M as ge, U as ye, S as Re, t as We, s as le, _ as Ke, X as je, a as Ge, u as He, Y as Ze, Q as _e, a1 as Ye, n as Ee, E as F, a2 as $e, a3 as Qe, w as Xe, z as qe, T as Ae, A as x, B as Q, D as Je, F as et, V as tt, G as lt } from "./index-BNrMlQLr.mjs";
5
- import { _ as ot } from "./panel.vue_vue_type_style_index_0_lang-CCuIP-Pp.mjs";
6
- import { a as nt, E as it } from "./el-checkbox-ClYe-8uK.mjs";
7
- /* empty css */
8
- import { E as st } from "./el-input-number-Df5HOHuh.mjs";
9
- import { defineComponent as Be, computed as L, ref as f, shallowRef as at, watch as we, onMounted as De, createElementBlock as r, openBlock as i, withModifiers as ut, normalizeClass as T, createElementVNode as o, createCommentVNode as c, withKeys as dt, unref as u, renderSlot as R, createBlock as g, withCtx as I, resolveDynamicComponent as W, toDisplayString as j, normalizeStyle as q, createVNode as d, nextTick as rt, onBeforeUnmount as vt, resolveComponent as ct, Fragment as X, createTextVNode as N, renderList as oe } from "vue";
10
- import { B as K } from "./const-DeViLYl5.mjs";
11
- import { Loading as mt } from "@element-plus/icons-vue";
12
- const pt = (a) => ["", ...xe].includes(a), ft = Le({
13
- modelValue: {
14
- type: [Boolean, String, Number],
15
- default: !1
16
- },
17
- disabled: {
18
- type: Boolean,
19
- default: void 0
20
- },
21
- loading: Boolean,
22
- size: {
23
- type: String,
24
- validator: pt
25
- },
26
- width: {
27
- type: [String, Number],
28
- default: ""
29
- },
30
- inlinePrompt: Boolean,
31
- inactiveActionIcon: {
32
- type: le
33
- },
34
- activeActionIcon: {
35
- type: le
36
- },
37
- activeIcon: {
38
- type: le
39
- },
40
- inactiveIcon: {
41
- type: le
42
- },
43
- activeText: {
44
- type: String,
45
- default: ""
46
- },
47
- inactiveText: {
48
- type: String,
49
- default: ""
50
- },
51
- activeValue: {
52
- type: [Boolean, String, Number],
53
- default: !0
54
- },
55
- inactiveValue: {
56
- type: [Boolean, String, Number],
57
- default: !1
58
- },
59
- name: {
60
- type: String,
61
- default: ""
62
- },
63
- validateEvent: {
64
- type: Boolean,
65
- default: !0
66
- },
67
- beforeChange: {
68
- type: We(Function)
69
- },
70
- id: String,
71
- tabindex: {
72
- type: [String, Number]
73
- },
74
- ...Re(["ariaLabel"])
75
- }), gt = {
76
- [ye]: (a) => ne(a) || ce(a) || me(a),
77
- [ge]: (a) => ne(a) || ce(a) || me(a),
78
- [fe]: (a) => ne(a) || ce(a) || me(a)
79
- }, yt = ["id", "aria-checked", "aria-disabled", "aria-label", "name", "true-value", "false-value", "disabled", "tabindex"], wt = ["aria-hidden"], Vt = { key: 1 }, bt = { key: 1 }, ht = ["aria-hidden"], pe = "ElSwitch", kt = Be({
80
- name: pe,
81
- __name: "switch",
82
- props: ft,
83
- emits: gt,
84
- setup(a, { expose: y, emit: E }) {
85
- const m = a, M = E, { formItem: w } = je(), $ = Ge(), s = He("switch"), { inputId: z } = Ze(m, {
86
- formItemContext: w
87
- }), A = _e(
88
- L(() => {
89
- if (m.loading)
90
- return !0;
91
- })
92
- ), k = f(m.modelValue !== !1), h = at(), B = L(() => [
93
- s.b(),
94
- s.m($.value),
95
- s.is("disabled", A.value),
96
- s.is("checked", p.value)
97
- ]), G = L(() => [
98
- s.e("label"),
99
- s.em("label", "left"),
100
- s.is("active", !p.value)
101
- ]), D = L(() => [
102
- s.e("label"),
103
- s.em("label", "right"),
104
- s.is("active", p.value)
105
- ]), S = L(() => ({
106
- width: Ye(m.width)
107
- }));
108
- we(
109
- () => m.modelValue,
110
- () => {
111
- k.value = !0;
112
- }
113
- );
114
- const O = L(() => k.value ? m.modelValue : !1), p = L(() => O.value === m.activeValue);
115
- [m.activeValue, m.inactiveValue].includes(O.value) || (M(ye, m.inactiveValue), M(ge, m.inactiveValue), M(fe, m.inactiveValue)), we(p, (l) => {
116
- var V;
117
- h.value.checked = l, m.validateEvent && ((V = w == null ? void 0 : w.validate) == null || V.call(w, "change").catch((Z) => Ee(Z)));
118
- });
119
- const U = () => {
120
- const l = p.value ? m.inactiveValue : m.activeValue;
121
- M(ye, l), M(ge, l), M(fe, l), rt(() => {
122
- h.value.checked = p.value;
123
- });
124
- }, C = () => {
125
- if (A.value)
126
- return;
127
- const { beforeChange: l } = m;
128
- if (!l) {
129
- U();
130
- return;
131
- }
132
- const V = l();
133
- [
134
- $e(V),
135
- ne(V)
136
- ].includes(!0) || Qe(
137
- pe,
138
- "beforeChange must return type `Promise<boolean>` or `boolean`"
139
- ), $e(V) ? V.then((b) => {
140
- b && U();
141
- }).catch((b) => {
142
- Ee(pe, `some error occurred: ${b}`);
143
- }) : V && U();
144
- }, H = () => {
145
- var l, V;
146
- (V = (l = h.value) == null ? void 0 : l.focus) == null || V.call(l);
147
- };
148
- return De(() => {
149
- h.value.checked = p.value;
150
- }), y({
151
- focus: H,
152
- checked: p
153
- }), (l, V) => (i(), r(
154
- "div",
155
- {
156
- class: T(B.value),
157
- onClick: ut(C, ["prevent"])
158
- },
159
- [
160
- o("input", {
161
- id: u(z),
162
- ref_key: "input",
163
- ref: h,
164
- class: T(u(s).e("input")),
165
- type: "checkbox",
166
- role: "switch",
167
- "aria-checked": p.value,
168
- "aria-disabled": u(A),
169
- "aria-label": l.ariaLabel,
170
- name: l.name,
171
- "true-value": l.activeValue,
172
- "false-value": l.inactiveValue,
173
- disabled: u(A),
174
- tabindex: l.tabindex,
175
- onChange: U,
176
- onKeydown: dt(C, ["enter"])
177
- }, null, 42, yt),
178
- !l.inlinePrompt && (l.inactiveIcon || l.inactiveText || l.$slots.inactive) ? (i(), r(
179
- "span",
180
- {
181
- key: 0,
182
- class: T(G.value)
183
- },
184
- [
185
- R(l.$slots, "inactive", {}, () => [
186
- l.inactiveIcon ? (i(), g(u(F), { key: 0 }, {
187
- default: I(() => [
188
- (i(), g(W(l.inactiveIcon)))
189
- ]),
190
- _: 1
191
- })) : c("v-if", !0),
192
- !l.inactiveIcon && l.inactiveText ? (i(), r("span", {
193
- key: 1,
194
- "aria-hidden": p.value
195
- }, j(l.inactiveText), 9, wt)) : c("v-if", !0)
196
- ])
197
- ],
198
- 2
199
- )) : c("v-if", !0),
200
- o(
201
- "span",
202
- {
203
- class: T(u(s).e("core")),
204
- style: q(S.value)
205
- },
206
- [
207
- l.inlinePrompt ? (i(), r(
208
- "div",
209
- {
210
- key: 0,
211
- class: T(u(s).e("inner"))
212
- },
213
- [
214
- p.value ? (i(), r(
215
- "div",
216
- {
217
- key: 1,
218
- class: T(u(s).e("inner-wrapper"))
219
- },
220
- [
221
- R(l.$slots, "active", {}, () => [
222
- l.activeIcon ? (i(), g(u(F), { key: 0 }, {
223
- default: I(() => [
224
- (i(), g(W(l.activeIcon)))
225
- ]),
226
- _: 1
227
- })) : c("v-if", !0),
228
- !l.activeIcon && l.activeText ? (i(), r(
229
- "span",
230
- bt,
231
- j(l.activeText),
232
- 1
233
- )) : c("v-if", !0)
234
- ])
235
- ],
236
- 2
237
- )) : (i(), r(
238
- "div",
239
- {
240
- key: 0,
241
- class: T(u(s).e("inner-wrapper"))
242
- },
243
- [
244
- R(l.$slots, "inactive", {}, () => [
245
- l.inactiveIcon ? (i(), g(u(F), { key: 0 }, {
246
- default: I(() => [
247
- (i(), g(W(l.inactiveIcon)))
248
- ]),
249
- _: 1
250
- })) : c("v-if", !0),
251
- !l.inactiveIcon && l.inactiveText ? (i(), r(
252
- "span",
253
- Vt,
254
- j(l.inactiveText),
255
- 1
256
- )) : c("v-if", !0)
257
- ])
258
- ],
259
- 2
260
- ))
261
- ],
262
- 2
263
- )) : c("v-if", !0),
264
- o(
265
- "div",
266
- {
267
- class: T(u(s).e("action"))
268
- },
269
- [
270
- l.loading ? (i(), g(u(F), {
271
- key: 0,
272
- class: T(u(s).is("loading"))
273
- }, {
274
- default: I(() => [
275
- d(u(mt))
276
- ]),
277
- _: 1
278
- }, 8, ["class"])) : p.value ? R(l.$slots, "active-action", { key: 1 }, () => [
279
- l.activeActionIcon ? (i(), g(u(F), { key: 0 }, {
280
- default: I(() => [
281
- (i(), g(W(l.activeActionIcon)))
282
- ]),
283
- _: 1
284
- })) : c("v-if", !0)
285
- ]) : p.value ? c("v-if", !0) : R(l.$slots, "inactive-action", { key: 2 }, () => [
286
- l.inactiveActionIcon ? (i(), g(u(F), { key: 0 }, {
287
- default: I(() => [
288
- (i(), g(W(l.inactiveActionIcon)))
289
- ]),
290
- _: 1
291
- })) : c("v-if", !0)
292
- ])
293
- ],
294
- 2
295
- )
296
- ],
297
- 6
298
- ),
299
- !l.inlinePrompt && (l.activeIcon || l.activeText || l.$slots.active) ? (i(), r(
300
- "span",
301
- {
302
- key: 1,
303
- class: T(D.value)
304
- },
305
- [
306
- R(l.$slots, "active", {}, () => [
307
- l.activeIcon ? (i(), g(u(F), { key: 0 }, {
308
- default: I(() => [
309
- (i(), g(W(l.activeIcon)))
310
- ]),
311
- _: 1
312
- })) : c("v-if", !0),
313
- !l.activeIcon && l.activeText ? (i(), r("span", {
314
- key: 1,
315
- "aria-hidden": !p.value
316
- }, j(l.activeText), 9, ht)) : c("v-if", !0)
317
- ])
318
- ],
319
- 2
320
- )) : c("v-if", !0)
321
- ],
322
- 2
323
- ));
324
- }
325
- });
326
- var Ct = /* @__PURE__ */ Ke(kt, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);
327
- const It = Xe(Ct);
328
- class St {
329
- constructor(y) {
330
- Y(this, "duration");
331
- Y(this, "active");
332
- Y(this, "remainingTime");
333
- Y(this, "timerInterval");
334
- this.duration = y, this.remainingTime = y, this.active = !1;
335
- }
336
- start(y) {
337
- this.active && (this.remainingTime = this.duration, clearInterval(this.timerInterval)), this.active = !0;
338
- const E = () => {
339
- if (this.remainingTime <= 0) {
340
- clearInterval(this.timerInterval), this.active = !1, this.remainingTime = this.duration, y();
341
- return;
342
- }
343
- this.remainingTime -= 1;
344
- };
345
- this.timerInterval = setInterval(E, 1e3);
346
- }
347
- // 停止倒计时
348
- stop() {
349
- this.active && (clearInterval(this.timerInterval), this.active = !1);
350
- }
351
- }
352
- const Tt = { style: { height: "var(--setting-content-height)" } }, Et = {
353
- key: 0,
354
- class: "color-list"
355
- }, $t = ["onClick"], At = { class: "setting-effect" }, Bt = { class: "setting-effect" }, Dt = { class: "light-slider" }, Ut = {
356
- key: 1,
357
- class: "setting-title"
358
- }, Mt = {
359
- key: 2,
360
- class: "setting-effect"
361
- }, zt = { class: "setting-effect" }, Nt = { class: "setting-effect" }, Pt = { class: "setting-effect" }, Ft = { class: "setting-effect" }, Ot = { class: "setting-effect" }, xt = { class: "setting-effect" }, Lt = { class: "setting_panel" }, Rt = { class: "setting-title-box" }, Wt = { class: "setting-title-icon" }, Kt = { class: "setting-color-box" }, jt = { class: "setting-color-list" }, Gt = ["onClick"], Ht = { class: "setting-config-box" }, Zt = { class: "setting-switch-item" }, _t = { class: "setting-switch-item" }, Yt = { class: "light-slider" }, Qt = { class: "setting-switch-item" }, Xt = { class: "setting-switch-item" }, qt = { class: "setting-switch-item" }, Jt = { class: "setting-switch-item" }, el = { class: "setting-switch-item" }, tl = { class: "setting-switch-item" }, ll = { class: "setting-switch-item" }, ol = { class: "speed-slider" }, nl = /* @__PURE__ */ Be({
362
- __name: "SettingTool",
363
- props: {
364
- instruction: {},
365
- componentId: {}
366
- },
367
- emits: ["closePanel", "emitHandler"],
368
- setup(a, { emit: y }) {
369
- const E = qe(), m = a, M = f(0);
370
- De(() => {
371
- E.setReadyById(m.componentId), Ae.currentTheme == "blue" ? M.value = 240 : Ae.currentTheme == "light-gray" && (M.value = 202);
372
- });
373
- let w;
374
- const $ = f(!1), s = f(!1), z = f(!1), A = f(!1), k = f(!1), h = f(!0), B = f(!1), G = f(!1), D = f(1), S = f(50), O = f(!1), p = new St(5);
375
- we(
376
- () => E.isToolActive(m.componentId),
377
- (n) => {
378
- n === !1 && (p.stop(), O.value && Ve());
379
- }
380
- );
381
- const U = f(50), C = f(["亮"]), H = f(["亮", "暗"]), l = f("linear-gradient(180deg, #fffefb 0%, #daebff 100%)"), V = y, Z = () => {
382
- w = window.bimViewer, w.viewer.scene.on("aabb", () => {
383
- J(B.value), ee(C.value[0]);
384
- });
385
- }, b = () => {
386
- O.value = !0, p.start(() => {
387
- Ve();
388
- });
389
- }, Ve = () => {
390
- var e, v;
391
- let n;
392
- x("isMobile") ? n = {
393
- backgroundColor: ((e = K.find((P) => P.id == D.value)) == null ? void 0 : e.name) ?? "渐变蓝",
394
- showEdges: z.value,
395
- lightIntensity: S.value,
396
- skyBox: A.value,
397
- orthoMode: k.value,
398
- modelType2D: h.value,
399
- yAxisDown: $.value,
400
- zAxisUp: s.value,
401
- showSpace: B.value,
402
- spaceEffect: C.value[0],
403
- touchDollySpeed: U.value
404
- } : n = {
405
- backgroundColor: ((v = K.find((P) => P.id == D.value)) == null ? void 0 : v.name) ?? "渐变蓝",
406
- showEdges: z.value,
407
- lightIntensity: S.value,
408
- skyBox: A.value,
409
- orthoMode: k.value,
410
- modelType2D: h.value,
411
- yAxisDown: $.value,
412
- zAxisUp: s.value,
413
- showSpace: B.value,
414
- spaceEffect: C.value[0]
415
- }, Ue({
416
- isTool: !0,
417
- event_target: "SettingTool",
418
- event_name: "saveSetting",
419
- content: {
420
- newSets: n
421
- }
422
- }), O.value = !1;
423
- }, be = (n) => {
424
- const e = n.lastSet, v = K.find((P) => P.name == e.backgroundColor);
425
- D.value = v ? v.id : 1, ue(v ?? K[0]), z.value = e.showEdges, re(z.value), S.value = e.lightIntensity, de(S.value), k.value = e.orthoMode, _(k.value), h.value = e.modelType2D, ve(h.value), B.value = e.showSpace, J(B.value), C.value = [e.spaceEffect], ee(C.value[0]), $.value = e.yAxisDown, $.value && ae(), s.value = e.zAxisUp, s.value && se(), x("isMobile") ? (U.value = e.touchDollySpeed, Ce(U.value)) : (A.value = e.skyBox, ke(A.value)), O.value = !1;
426
- };
427
- Q.on("BimViewer", Z), Q.on("lastSetsContent", be), vt(() => {
428
- Q.off("BimViewer", Z), Q.off("lastSetsContent", be);
429
- });
430
- const Ue = (n) => {
431
- V("emitHandler", n);
432
- }, ie = (n) => {
433
- n && n.target.id != "setting_back" || (V("closePanel"), he(!1));
434
- }, he = (n = !G.value) => {
435
- G.value = n;
436
- }, se = (n) => {
437
- b(), window.bimViewer.setWorldAxisZUp(s.value), _(k.value);
438
- }, ae = (n) => {
439
- b(), window.bimViewer.setWorldAxisYDown($.value), _(k.value);
440
- }, ue = (n) => {
441
- b(), D.value = n.id, l.value = n.color, Q.emit("changeBackgroundColor", n.color);
442
- }, de = (n) => {
443
- b(), w.setLightIntensity(n);
444
- }, re = (n) => {
445
- b(), w.setAllObjectsEdges(n), n || w.setObjectsEdges(tt.entityState.edgesObjectIds, !0);
446
- }, ve = (n) => {
447
- b(), w.SetThreeDModeActive(n), x("isMobile") && (window.bimViewer.navCubeMode.visible = !1);
448
- }, _ = (n) => {
449
- b(), w.SetOrthoModeActive(n);
450
- }, J = (n) => {
451
- b(), w.SetShowSpaceModeActive(n);
452
- }, ee = (n) => {
453
- b(), n == "亮" ? window.bimViewer.setSpaceMaterialColor(1) : window.bimViewer.setSpaceMaterialColor(2), C.value = H.value.includes(n) ? [n] : [];
454
- }, ke = (n) => {
455
- b(), w.SetSkyBoxToolActive(n);
456
- }, Ce = (n) => {
457
- b(), n == 0 ? w.viewer.cameraControl.customTouchDollyRate = 0.05 / 50 : w.viewer.cameraControl.customTouchDollyRate = n / 50;
458
- };
459
- return (n, e) => {
460
- const v = It, P = st, Ie = it, Se = nt, Te = Je, Me = ot, ze = et, Ne = ct("SuccessFilled"), Pe = F;
461
- return i(), r(X, null, [
462
- u(x)("isMobile") ? c("", !0) : (i(), g(Me, {
463
- key: 0,
464
- class: "setting_contaier",
465
- width: M.value,
466
- panelTitle: "设置",
467
- "click-handle": ie,
468
- style: { height: "var(--setting-panel-height)" }
469
- }, {
470
- default: I(() => [
471
- o("div", Tt, [
472
- d(Te, null, {
473
- default: I(() => [
474
- e[45] || (e[45] = o("div", { class: "setting-title" }, "效果", -1)),
475
- o("div", {
476
- class: "setting-effect",
477
- onClick: e[0] || (e[0] = (t) => he())
478
- }, [
479
- e[35] || (e[35] = N(" 背景颜色 ", -1)),
480
- o("div", {
481
- class: "choose-color",
482
- style: q({ background: l.value })
483
- }, null, 4)
484
- ]),
485
- G.value ? (i(), r("div", Et, [
486
- (i(!0), r(X, null, oe(u(K), (t) => (i(), r("div", {
487
- key: t.id,
488
- class: T(["color-item", { "color-item-active": D.value === t.id }]),
489
- onClick: (te) => ue(t)
490
- }, [
491
- o("div", {
492
- class: "bg",
493
- style: q({ background: t.color, border: t.id === 4 ? "1px solid #F1F1F1" : "none" })
494
- }, null, 4),
495
- N(" " + j(t.name), 1)
496
- ], 10, $t))), 128))
497
- ])) : c("", !0),
498
- o("div", At, [
499
- e[36] || (e[36] = N(" 显示边缘 ", -1)),
500
- d(v, {
501
- modelValue: z.value,
502
- "onUpdate:modelValue": e[1] || (e[1] = (t) => z.value = t),
503
- style: { "--el-switch-on-color": "#0065fc" },
504
- onChange: e[2] || (e[2] = (t) => re())
505
- }, null, 8, ["modelValue"])
506
- ]),
507
- o("div", Bt, [
508
- e[37] || (e[37] = N(" 光源强度 ", -1)),
509
- o("div", Dt, [
510
- d(P, {
511
- modelValue: S.value,
512
- "onUpdate:modelValue": e[3] || (e[3] = (t) => S.value = t),
513
- onInput: e[4] || (e[4] = (t) => de(S.value))
514
- }, null, 8, ["modelValue"])
515
- ])
516
- ]),
517
- u(x)("skyboxImg") ? (i(), r("div", Ut, " 外观模式 ")) : c("", !0),
518
- u(x)("skyboxImg") ? (i(), r("div", Mt, [
519
- e[38] || (e[38] = N(" 天空盒 ", -1)),
520
- d(v, {
521
- modelValue: A.value,
522
- "onUpdate:modelValue": e[5] || (e[5] = (t) => A.value = t),
523
- style: { "--el-switch-on-color": "#0065fc" },
524
- onChange: e[6] || (e[6] = (t) => ke())
525
- }, null, 8, ["modelValue"])
526
- ])) : c("", !0),
527
- e[46] || (e[46] = o("div", { class: "setting-title" }, "模型视角切换", -1)),
528
- o("div", zt, [
529
- e[39] || (e[39] = N(" 透视/正交 ", -1)),
530
- d(v, {
531
- modelValue: k.value,
532
- "onUpdate:modelValue": e[7] || (e[7] = (t) => k.value = t),
533
- style: { "--el-switch-on-color": "#0065fc" },
534
- onChange: e[8] || (e[8] = (t) => _())
535
- }, null, 8, ["modelValue"])
536
- ]),
537
- o("div", Nt, [
538
- e[40] || (e[40] = N(" 2D/3D ", -1)),
539
- d(v, {
540
- modelValue: h.value,
541
- "onUpdate:modelValue": e[9] || (e[9] = (t) => h.value = t),
542
- style: { "--el-switch-on-color": "#0065fc" },
543
- onChange: e[10] || (e[10] = (t) => ve())
544
- }, null, 8, ["modelValue"])
545
- ]),
546
- o("div", Pt, [
547
- e[41] || (e[41] = o("div", null, "模型倒置", -1)),
548
- o("div", null, [
549
- d(v, {
550
- modelValue: $.value,
551
- "onUpdate:modelValue": e[11] || (e[11] = (t) => $.value = t),
552
- style: { "--el-switch-on-color": "#0065fc" },
553
- onChange: e[12] || (e[12] = (t) => ae())
554
- }, null, 8, ["modelValue"])
555
- ])
556
- ]),
557
- o("div", Ft, [
558
- e[42] || (e[42] = o("div", null, "Z轴向上", -1)),
559
- o("div", null, [
560
- d(v, {
561
- modelValue: s.value,
562
- "onUpdate:modelValue": e[13] || (e[13] = (t) => s.value = t),
563
- style: { "--el-switch-on-color": "#0065fc" },
564
- onChange: e[14] || (e[14] = (t) => se())
565
- }, null, 8, ["modelValue"])
566
- ])
567
- ]),
568
- o("div", Ot, [
569
- e[43] || (e[43] = N(" 显示模型空间 ", -1)),
570
- d(v, {
571
- modelValue: B.value,
572
- "onUpdate:modelValue": e[15] || (e[15] = (t) => B.value = t),
573
- style: { "--el-switch-on-color": "#0065fc" },
574
- onChange: e[16] || (e[16] = (t) => J())
575
- }, null, 8, ["modelValue"])
576
- ]),
577
- o("div", xt, [
578
- e[44] || (e[44] = N(" 空间效果 ", -1)),
579
- d(Se, {
580
- modelValue: C.value,
581
- "onUpdate:modelValue": e[17] || (e[17] = (t) => C.value = t),
582
- size: "small"
583
- }, {
584
- default: I(() => [
585
- (i(!0), r(X, null, oe(H.value, (t) => (i(), g(Ie, {
586
- key: t,
587
- label: t,
588
- onChange: (te) => ee(t)
589
- }, null, 8, ["label", "onChange"]))), 128))
590
- ]),
591
- _: 1
592
- }, 8, ["modelValue"])
593
- ])
594
- ]),
595
- _: 1
596
- })
597
- ])
598
- ]),
599
- _: 1
600
- }, 8, ["width"])),
601
- u(x)("isMobile") ? (i(), r("div", {
602
- key: 1,
603
- id: "setting_back",
604
- class: "setting_back",
605
- onClick: ie
606
- }, [
607
- o("div", Lt, [
608
- o("div", Rt, [
609
- e[47] || (e[47] = o("div", { class: "setting-title" }, "设置", -1)),
610
- o("div", Wt, [
611
- d(ze, {
612
- width: 0.4,
613
- "size-type": "rem",
614
- "click-handle": ie
615
- })
616
- ])
617
- ]),
618
- o("div", Kt, [
619
- o("div", jt, [
620
- (i(!0), r(X, null, oe(u(K), (t, te) => (i(), r("div", {
621
- key: te,
622
- class: T(["setting-color-item", {
623
- "setting-color-item-active": D.value === t.id
624
- }]),
625
- onClick: (il) => ue(t)
626
- }, [
627
- o("div", {
628
- class: "setting-color-icon",
629
- style: q({
630
- background: t.color,
631
- border: t.id === D.value ? "0.02rem solid #0065FC" : ""
632
- })
633
- }, null, 4),
634
- o("div", {
635
- class: "setting-color-name",
636
- style: q({ color: t.id === D.value ? "#0065FC" : "" })
637
- }, [
638
- N(j(t.name) + " ", 1),
639
- t.id === D.value ? (i(), g(Pe, {
640
- key: 0,
641
- color: "#0065fc",
642
- size: "0.24rem"
643
- }, {
644
- default: I(() => [
645
- d(Ne)
646
- ]),
647
- _: 1
648
- })) : c("", !0)
649
- ], 4)
650
- ], 10, Gt))), 128))
651
- ])
652
- ]),
653
- o("div", Ht, [
654
- d(Te, { height: "188" }, {
655
- default: I(() => [
656
- o("div", Zt, [
657
- e[48] || (e[48] = o("div", null, "显示边缘", -1)),
658
- o("div", null, [
659
- d(v, {
660
- modelValue: z.value,
661
- "onUpdate:modelValue": e[18] || (e[18] = (t) => z.value = t),
662
- size: "large",
663
- onChange: e[19] || (e[19] = (t) => re())
664
- }, null, 8, ["modelValue"])
665
- ])
666
- ]),
667
- o("div", _t, [
668
- e[49] || (e[49] = o("div", null, "光源强度", -1)),
669
- o("div", Yt, [
670
- d(P, {
671
- modelValue: S.value,
672
- "onUpdate:modelValue": e[20] || (e[20] = (t) => S.value = t),
673
- onInput: e[21] || (e[21] = (t) => de(S.value))
674
- }, null, 8, ["modelValue"])
675
- ])
676
- ]),
677
- o("div", Qt, [
678
- e[50] || (e[50] = o("div", null, "透视/正交", -1)),
679
- o("div", null, [
680
- d(v, {
681
- modelValue: k.value,
682
- "onUpdate:modelValue": e[22] || (e[22] = (t) => k.value = t),
683
- size: "large",
684
- onChange: e[23] || (e[23] = (t) => _())
685
- }, null, 8, ["modelValue"])
686
- ])
687
- ]),
688
- o("div", Xt, [
689
- e[51] || (e[51] = o("div", null, "2D/3D", -1)),
690
- o("div", null, [
691
- d(v, {
692
- modelValue: h.value,
693
- "onUpdate:modelValue": e[24] || (e[24] = (t) => h.value = t),
694
- size: "large",
695
- onChange: e[25] || (e[25] = (t) => ve())
696
- }, null, 8, ["modelValue"])
697
- ])
698
- ]),
699
- o("div", qt, [
700
- e[52] || (e[52] = o("div", null, "模型倒置", -1)),
701
- o("div", null, [
702
- d(v, {
703
- modelValue: $.value,
704
- "onUpdate:modelValue": e[26] || (e[26] = (t) => $.value = t),
705
- size: "large",
706
- onChange: e[27] || (e[27] = (t) => ae())
707
- }, null, 8, ["modelValue"])
708
- ])
709
- ]),
710
- o("div", Jt, [
711
- e[53] || (e[53] = o("div", null, "Z轴向上", -1)),
712
- o("div", null, [
713
- d(v, {
714
- modelValue: s.value,
715
- "onUpdate:modelValue": e[28] || (e[28] = (t) => s.value = t),
716
- size: "large",
717
- onChange: e[29] || (e[29] = (t) => se())
718
- }, null, 8, ["modelValue"])
719
- ])
720
- ]),
721
- o("div", el, [
722
- e[54] || (e[54] = o("div", null, "显示模型空间", -1)),
723
- o("div", null, [
724
- d(v, {
725
- modelValue: B.value,
726
- "onUpdate:modelValue": e[30] || (e[30] = (t) => B.value = t),
727
- size: "large",
728
- onChange: e[31] || (e[31] = (t) => J())
729
- }, null, 8, ["modelValue"])
730
- ])
731
- ]),
732
- o("div", tl, [
733
- e[55] || (e[55] = o("div", null, "空间效果", -1)),
734
- d(Se, {
735
- modelValue: C.value,
736
- "onUpdate:modelValue": e[32] || (e[32] = (t) => C.value = t)
737
- }, {
738
- default: I(() => [
739
- (i(!0), r(X, null, oe(H.value, (t) => (i(), g(Ie, {
740
- key: t,
741
- label: t,
742
- onChange: (te) => ee(t)
743
- }, null, 8, ["label", "onChange"]))), 128))
744
- ]),
745
- _: 1
746
- }, 8, ["modelValue"])
747
- ]),
748
- o("div", ll, [
749
- e[56] || (e[56] = o("div", null, "缩放速率", -1)),
750
- o("div", ol, [
751
- d(P, {
752
- modelValue: U.value,
753
- "onUpdate:modelValue": e[33] || (e[33] = (t) => U.value = t),
754
- onInput: e[34] || (e[34] = (t) => Ce(U.value))
755
- }, null, 8, ["modelValue"])
756
- ])
757
- ])
758
- ]),
759
- _: 1
760
- })
761
- ])
762
- ])
763
- ])) : c("", !0)
764
- ], 64);
765
- };
766
- }
767
- }), fl = /* @__PURE__ */ lt(nl, [["__scopeId", "data-v-98e51265"]]);
768
- export {
769
- fl as default
770
- };