@xtctwins/tctwins-bimx-engine 0.3.2 → 0.3.4

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 (172) hide show
  1. package/README.md +196 -193
  2. package/dist/AnnotationTool-o5g0AREJ.mjs +167 -0
  3. package/dist/BIMX_Viewer_Lib.es.js +3 -3
  4. package/dist/BIMX_Viewer_Lib.umd.js +166 -266
  5. package/dist/CameraViewTool-DYukyv5Q.mjs +164 -0
  6. package/dist/CommentTool-0voGtLXB.mjs +1529 -0
  7. package/dist/{HiddenTool-rORoKTeD.mjs → HiddenTool-CB8a3I71.mjs} +16 -16
  8. package/dist/{InspectorTool-l4bDxTia.mjs → InspectorTool-D_zuKOsj.mjs} +66 -66
  9. package/dist/{MeasureTool-d-EV6m2R.mjs → MeasureTool-F0pD5KDj.mjs} +107 -131
  10. package/dist/{MouseTool-DKMcdeRD.mjs → MouseTool-DwVd0jsi.mjs} +32 -35
  11. package/dist/{NavigateTool-BNvZ8Oat.mjs → NavigateTool-D9yL9I0-.mjs} +13 -13
  12. package/dist/{RoamTool-DJu93SVl.mjs → RoamTool-C0cFwyiz.mjs} +14 -14
  13. package/dist/ScreenShotTool-BlQ4pLfp.mjs +357 -0
  14. package/dist/SectionTool-BSqICcbP.mjs +331 -0
  15. package/dist/SettingTool-Jvi1wkwu.mjs +657 -0
  16. package/dist/StructureTree-DQ_lU3sB.mjs +1583 -0
  17. package/dist/{Alert-5pEYzrMO.mjs → alert-Bc55oe1i.mjs} +8 -8
  18. package/dist/const-DOnRsYpZ.mjs +389 -0
  19. package/dist/el-input-number-CpL0IdzD.mjs +818 -0
  20. package/dist/index-BSouWIqa.mjs +129592 -0
  21. package/dist/index.html +17 -17
  22. package/dist/{Panel.vue_vue_type_style_index_0_lang-C4tqfy-B.mjs → panel.vue_vue_type_style_index_0_lang-Bt42YE-8.mjs} +2 -2
  23. package/dist/style.css +1 -1
  24. package/dist/{TallPanel-DtXOSzmF.mjs → tallPanel-DURfdD5Z.mjs} +14 -14
  25. package/package.json +4 -7
  26. package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +10 -38
  27. package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +22 -0
  28. package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +9 -37
  29. package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +7 -5
  30. package/types/components/BCFComponents/BCFFilter.vue.d.ts +7 -5
  31. package/types/components/BCFComponents/BCFTool.vue.d.ts +7 -4
  32. package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +7 -5
  33. package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +6 -5
  34. package/types/components/BCFComponents/commentInput.vue.d.ts +10 -36
  35. package/types/components/BCFComponents/commentsView.vue.d.ts +7 -36
  36. package/types/components/BCFComponents/dialogPanel.vue.d.ts +8 -5
  37. package/types/components/BCFComponents/imageView.vue.d.ts +7 -5
  38. package/types/components/BCFComponents/imageZoomIn.vue.d.ts +6 -5
  39. package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
  40. package/types/components/BimViewerComponents/AppToolbar.vue.d.ts +1 -18
  41. package/types/components/{tools/NavigateTool.vue.d.ts → BimViewerComponents/CameraViewTool.vue.d.ts} +3 -1
  42. package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +1 -1
  43. package/types/components/BimViewerComponents/CommentTool.vue.d.ts +1 -32
  44. package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
  45. package/types/components/BimViewerComponents/InspectorTool.vue.d.ts +0 -2
  46. package/types/components/BimViewerComponents/MeasureTool.vue.d.ts +0 -2
  47. package/types/components/BimViewerComponents/MobileCommentsTool/{MobileCommentAdd.vue.d.ts → add.vue.d.ts} +8 -6
  48. package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +5 -4
  49. package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +2 -2
  50. package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +1 -478
  51. package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +7 -499
  52. package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +6 -5
  53. package/types/components/BimViewerComponents/MouseTool.vue.d.ts +1 -1
  54. package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +1 -1
  55. package/types/components/BimViewerComponents/PCCommentTool/pcdraw.vue.d.ts +1 -1
  56. package/types/components/BimViewerComponents/RoamTool.vue.d.ts +1 -1
  57. package/types/components/BimViewerComponents/SectionTool.vue.d.ts +0 -4
  58. package/types/components/BimViewerComponents/SettingTool.vue.d.ts +6 -4
  59. package/types/components/BimViewerComponents/StructureTree.vue.d.ts +1 -4026
  60. package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
  61. package/types/components/BimViewerComponents/emptyPage.vue.d.ts +8 -0
  62. package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +1 -18
  63. package/types/components/BimxViewerComp.vue.d.ts +20 -7
  64. package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +10 -37
  65. package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +9 -37
  66. package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +7 -499
  67. package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +1 -478
  68. package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +8 -5
  69. package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +12 -38
  70. package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +9 -7
  71. package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +7 -5
  72. package/types/components/bimxViewer.vue.d.ts +14 -7
  73. package/types/components/utilsComponents/alert.vue.d.ts +1 -1
  74. package/types/components/utilsComponents/closeButton.vue.d.ts +1 -1
  75. package/types/components/utilsComponents/closeButton_dark.vue.d.ts +1 -1
  76. package/types/components/utilsComponents/emptyPage.vue.d.ts +1 -1
  77. package/types/components/utilsComponents/loading.vue.d.ts +1 -1
  78. package/types/components/utilsComponents/panel.vue.d.ts +2 -8
  79. package/types/components/utilsComponents/prompt.vue.d.ts +1 -1
  80. package/types/components/utilsComponents/rectangleButton.vue.d.ts +1 -3
  81. package/types/components/utilsComponents/tallPanel.vue.d.ts +3 -13
  82. package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +3 -13
  83. package/types/i18n/index.d.ts +5 -5
  84. package/types/i18n/locales/en-US.d.ts +1 -1
  85. package/types/i18n/locales/zh-CN.d.ts +1 -1
  86. package/types/pages/BimxViewerEntry.vue.d.ts +61 -5
  87. package/types/pages/viewerEntry.vue.d.ts +57 -7
  88. package/types/store/bcfReflect.d.ts +81 -13
  89. package/types/store/const.d.ts +228 -11
  90. package/types/store/initConfigs.d.ts +1 -1
  91. package/types/store/toolbars.d.ts +117 -69
  92. package/types/store/userInfoStore.d.ts +1 -1
  93. package/types/tests/cmt.d.ts +1 -0
  94. package/types/utils/OSSHelper.d.ts +0 -27
  95. package/types/utils/cacheInfo.d.ts +3 -26
  96. package/types/utils/eventBus.d.ts +87 -1
  97. package/types/utils/splitType.d.ts +1 -0
  98. package/types/viewerManager/load/loadModel.d.ts +1 -1
  99. package/types/viewerManager/viewerManager.d.ts +3 -53
  100. package/dist/AnnotationTool-B3tDIyWy.mjs +0 -239
  101. package/dist/CommentTool--UgPVIZZ.mjs +0 -1541
  102. package/dist/ScreenShotTool-D2h0Qjtv.mjs +0 -430
  103. package/dist/SectionTool-DHw2Zfzv.mjs +0 -343
  104. package/dist/SettingTool-D13GBT87.mjs +0 -747
  105. package/dist/StructureTree-DHaOzAP9.mjs +0 -1662
  106. package/dist/bimTools-D3TraX9d.mjs +0 -75
  107. package/dist/el-slider-CHaMBaUG.mjs +0 -1040
  108. package/dist/index-BDupeKSG.mjs +0 -127986
  109. package/types/components/bcf/AddObjectOrAnno.vue.d.ts +0 -16
  110. package/types/components/bcf/BCFAddPanel.vue.d.ts +0 -55
  111. package/types/components/bcf/BCFDetailPanel.vue.d.ts +0 -59
  112. package/types/components/bcf/BCFDisplayList.vue.d.ts +0 -18
  113. package/types/components/bcf/BCFFilter.vue.d.ts +0 -14
  114. package/types/components/bcf/BCFTool.vue.d.ts +0 -15
  115. package/types/components/bcf/CheckObjectPanel.vue.d.ts +0 -11
  116. package/types/components/bcf/CommentInput.vue.d.ts +0 -51
  117. package/types/components/bcf/CommentsView.vue.d.ts +0 -48
  118. package/types/components/bcf/DialogPanel.vue.d.ts +0 -15
  119. package/types/components/bcf/ImageView.vue.d.ts +0 -17
  120. package/types/components/bcf/ImageZoomIn.vue.d.ts +0 -9
  121. package/types/components/bcf/MobileBCFAdd.vue.d.ts +0 -56
  122. package/types/components/bcf/MobileBCFDetail.vue.d.ts +0 -55
  123. package/types/components/bcf/MobileBCFDisplayList.vue.d.ts +0 -498
  124. package/types/components/bcf/MobileBCFFilter.vue.d.ts +0 -475
  125. package/types/components/bcf/MobileBCFTool.vue.d.ts +0 -17
  126. package/types/components/bcf/MobileCommentInput.vue.d.ts +0 -54
  127. package/types/components/bcf/MobileCommentsView.vue.d.ts +0 -17
  128. package/types/components/bcf/SelectPanel.vue.d.ts +0 -12
  129. package/types/components/comment/mobile/MobileCommentAdd.vue.d.ts +0 -14
  130. package/types/components/comment/mobile/MobileDetail.vue.d.ts +0 -11
  131. package/types/components/comment/mobile/MobileDraw.vue.d.ts +0 -17
  132. package/types/components/comment/mobile/MobileFilter.vue.d.ts +0 -475
  133. package/types/components/comment/mobile/MobileList.vue.d.ts +0 -497
  134. package/types/components/comment/mobile/MobileZoomIn.vue.d.ts +0 -9
  135. package/types/components/comment/pc/PcDraw.vue.d.ts +0 -14
  136. package/types/components/shared/Alert.vue.d.ts +0 -32
  137. package/types/components/shared/CloseButton.vue.d.ts +0 -50
  138. package/types/components/shared/CloseButtonDark.vue.d.ts +0 -32
  139. package/types/components/shared/EmptyPage.vue.d.ts +0 -6
  140. package/types/components/shared/Loading.vue.d.ts +0 -2
  141. package/types/components/shared/Panel.vue.d.ts +0 -47
  142. package/types/components/shared/Prompt.vue.d.ts +0 -8
  143. package/types/components/shared/RectangleButton.vue.d.ts +0 -106
  144. package/types/components/shared/TallPanel.vue.d.ts +0 -69
  145. package/types/components/shared/TallPanelNoPos.vue.d.ts +0 -82
  146. package/types/components/tools/AnnotationTool.vue.d.ts +0 -14
  147. package/types/components/tools/AppToolbar.vue.d.ts +0 -27
  148. package/types/components/tools/ClickEvent.vue.d.ts +0 -6
  149. package/types/components/tools/CommentTool.vue.d.ts +0 -45
  150. package/types/components/tools/HiddenTool.vue.d.ts +0 -12
  151. package/types/components/tools/InspectorTool.vue.d.ts +0 -14
  152. package/types/components/tools/MeasureTool.vue.d.ts +0 -14
  153. package/types/components/tools/MouseTool.vue.d.ts +0 -6
  154. package/types/components/tools/RoamTool.vue.d.ts +0 -12
  155. package/types/components/tools/ScreenShotTool.vue.d.ts +0 -10
  156. package/types/components/tools/SectionTool.vue.d.ts +0 -14
  157. package/types/components/tools/SettingTool.vue.d.ts +0 -13
  158. package/types/components/tools/StructureTree.vue.d.ts +0 -11645
  159. package/types/components/tools/Toolbar.vue.d.ts +0 -10
  160. package/types/composables/useBimViewerEvent.d.ts +0 -44
  161. package/types/composables/useEmitHandler.d.ts +0 -2
  162. package/types/composables/useToolActive.d.ts +0 -1
  163. package/types/composables/useToolReady.d.ts +0 -1
  164. package/types/store/const/app.d.ts +0 -66
  165. package/types/store/const/bimTools.d.ts +0 -81
  166. package/types/store/const/project.d.ts +0 -48
  167. package/types/store/const/theme.d.ts +0 -16
  168. package/types/store/const/toolbar.d.ts +0 -26
  169. package/types/stores/viewerStore.d.ts +0 -112
  170. package/types/types/bcf.d.ts +0 -83
  171. package/types/types/events.d.ts +0 -88
  172. package/types/utils/dbscan.d.ts +0 -1
@@ -1,747 +0,0 @@
1
- import { c as Ke, aj as ye, d as ae, l as ge, a8 as he, a7 as pe, a9 as we, b as Re, e as ne, ab as We, f as He, af as je, a as Ge, u as Ye, ag as Ze, ac as _e, ak as qe, q as De, N as Je, E as O, al as Ae, am as Qe, w as Xe, A as et, B as tt, T as Ue, C as M, D as W, G as lt, an as ot, p as nt, H as it, V as st, K as at, I as ut } from "./index-BDupeKSG.mjs";
2
- import { _ as dt } from "./Panel.vue_vue_type_style_index_0_lang-C4tqfy-B.mjs";
3
- import { E as ct } from "./el-slider-CHaMBaUG.mjs";
4
- import { Loading as vt } from "@element-plus/icons-vue";
5
- import { defineComponent as Be, computed as L, ref as f, shallowRef as rt, watch as Ve, onMounted as Me, openBlock as s, createElementBlock as g, withModifiers as mt, normalizeClass as C, createElementVNode as l, withKeys as ft, unref as n, renderSlot as H, createBlock as w, withCtx as S, resolveDynamicComponent as j, createCommentVNode as b, toDisplayString as a, normalizeStyle as ee, createVNode as v, nextTick as gt, onBeforeUnmount as ht, Fragment as ie, createTextVNode as E, renderList as be } from "vue";
6
- import { T as bt } from "./timer-DoTiGoWP.mjs";
7
- const yt = (o) => ["", ...Ke].includes(o), pt = Re({
8
- /**
9
- * @description binding value, it should be equivalent to either `active-value` or `inactive-value`, by default it's `boolean` type
10
- */
11
- modelValue: {
12
- type: [
13
- Boolean,
14
- String,
15
- Number
16
- ],
17
- default: !1
18
- },
19
- /**
20
- * @description whether Switch is disabled
21
- */
22
- disabled: {
23
- type: Boolean,
24
- default: void 0
25
- },
26
- /**
27
- * @description whether Switch is in loading state
28
- */
29
- loading: Boolean,
30
- /**
31
- * @description size of Switch
32
- */
33
- size: {
34
- type: String,
35
- validator: yt
36
- },
37
- /**
38
- * @description width of Switch
39
- */
40
- width: {
41
- type: [String, Number],
42
- default: ""
43
- },
44
- /**
45
- * @description whether icon or text is displayed inside dot, only the first character will be rendered for text
46
- */
47
- inlinePrompt: Boolean,
48
- /**
49
- * @description component of the icon displayed in action when in `off` state
50
- */
51
- inactiveActionIcon: { type: ne },
52
- /**
53
- * @description component of the icon displayed in action when in `on` state
54
- */
55
- activeActionIcon: { type: ne },
56
- /**
57
- * @description component of the icon displayed when in `on` state, overrides `active-text`
58
- */
59
- activeIcon: { type: ne },
60
- /**
61
- * @description component of the icon displayed when in `off` state, overrides `inactive-text`
62
- */
63
- inactiveIcon: { type: ne },
64
- /**
65
- * @description text displayed when in `on` state
66
- */
67
- activeText: {
68
- type: String,
69
- default: ""
70
- },
71
- /**
72
- * @description text displayed when in `off` state
73
- */
74
- inactiveText: {
75
- type: String,
76
- default: ""
77
- },
78
- /**
79
- * @description switch value when in `on` state
80
- */
81
- activeValue: {
82
- type: [
83
- Boolean,
84
- String,
85
- Number
86
- ],
87
- default: !0
88
- },
89
- /**
90
- * @description switch value when in `off` state
91
- */
92
- inactiveValue: {
93
- type: [
94
- Boolean,
95
- String,
96
- Number
97
- ],
98
- default: !1
99
- },
100
- /**
101
- * @description input name of Switch
102
- */
103
- name: {
104
- type: String,
105
- default: ""
106
- },
107
- /**
108
- * @description whether to trigger form validation
109
- */
110
- validateEvent: {
111
- type: Boolean,
112
- default: !0
113
- },
114
- /**
115
- * @description before-change hook before the switch state changes. If `false` is returned or a `Promise` is returned and then is rejected, will stop switching
116
- */
117
- beforeChange: { type: He(Function) },
118
- /**
119
- * @description id for input
120
- */
121
- id: String,
122
- /**
123
- * @description tabindex for input
124
- */
125
- tabindex: { type: [String, Number] },
126
- ...We(["ariaLabel"])
127
- }), wt = {
128
- [we]: (o) => ae(o) || ge(o) || he(o),
129
- [pe]: (o) => ae(o) || ge(o) || he(o),
130
- [ye]: (o) => ae(o) || ge(o) || he(o)
131
- }, Vt = [
132
- "id",
133
- "aria-checked",
134
- "aria-disabled",
135
- "aria-label",
136
- "name",
137
- "true-value",
138
- "false-value",
139
- "disabled",
140
- "tabindex"
141
- ], kt = ["aria-hidden"], Ct = { key: 1 }, St = { key: 1 }, Et = ["aria-hidden"], se = "ElSwitch";
142
- var It = /* @__PURE__ */ Be({
143
- name: se,
144
- __name: "switch",
145
- props: pt,
146
- emits: wt,
147
- setup(o, { expose: ue, emit: u }) {
148
- const h = o, x = u, { formItem: T } = je(), Y = Ge(), d = Ye("switch"), { inputId: Z } = Ze(h, { formItemContext: T }), $ = _e(L(() => {
149
- if (h.loading) return !0;
150
- })), _ = f(h.modelValue !== !1), y = rt(), q = L(() => [
151
- d.b(),
152
- d.m(Y.value),
153
- d.is("disabled", $.value),
154
- d.is("checked", r.value)
155
- ]), I = L(() => [
156
- d.e("label"),
157
- d.em("label", "left"),
158
- d.is("active", !r.value)
159
- ]), te = L(() => [
160
- d.e("label"),
161
- d.em("label", "right"),
162
- d.is("active", r.value)
163
- ]), le = L(() => ({ width: qe(h.width) }));
164
- Ve(() => h.modelValue, () => {
165
- _.value = !0;
166
- });
167
- const K = L(() => _.value ? h.modelValue : !1), r = L(() => K.value === h.activeValue);
168
- [h.activeValue, h.inactiveValue].includes(K.value) || (De(se, "model-value must be active-value or inactive-value"), x(we, h.inactiveValue), x(pe, h.inactiveValue), x(ye, h.inactiveValue)), Ve(r, (c) => {
169
- var p;
170
- y.value.checked = c, h.validateEvent && ((p = T == null ? void 0 : T.validate) == null || p.call(T, "change").catch(Je));
171
- });
172
- const z = () => {
173
- const c = r.value ? h.inactiveValue : h.activeValue;
174
- x(we, c), x(pe, c), x(ye, c), gt(() => {
175
- y.value.checked = r.value;
176
- });
177
- }, k = () => {
178
- if ($.value) return;
179
- const { beforeChange: c } = h;
180
- if (!c) {
181
- z();
182
- return;
183
- }
184
- const p = c();
185
- [Ae(p), ae(p)].includes(!0) || Qe(se, "beforeChange must return type `Promise<boolean>` or `boolean`"), Ae(p) ? p.then((V) => {
186
- V && z();
187
- }).catch((V) => {
188
- De(se, `some error occurred: ${V}`);
189
- }) : p && z();
190
- }, J = () => {
191
- var c, p;
192
- (p = (c = y.value) == null ? void 0 : c.focus) == null || p.call(c);
193
- };
194
- return Me(() => {
195
- y.value.checked = r.value;
196
- }), ue({
197
- /**
198
- * @description manual focus to the switch component
199
- **/
200
- focus: J,
201
- /**
202
- * @description whether Switch is checked
203
- */
204
- checked: r
205
- }), (c, p) => (s(), g("div", {
206
- class: C(q.value),
207
- onClick: mt(k, ["prevent"])
208
- }, [
209
- l("input", {
210
- id: n(Z),
211
- ref_key: "input",
212
- ref: y,
213
- class: C(n(d).e("input")),
214
- type: "checkbox",
215
- role: "switch",
216
- "aria-checked": r.value,
217
- "aria-disabled": n($),
218
- "aria-label": o.ariaLabel,
219
- name: o.name,
220
- "true-value": o.activeValue,
221
- "false-value": o.inactiveValue,
222
- disabled: n($),
223
- tabindex: o.tabindex,
224
- onChange: z,
225
- onKeydown: ft(k, ["enter"])
226
- }, null, 42, Vt),
227
- !o.inlinePrompt && (o.inactiveIcon || o.inactiveText || c.$slots.inactive) ? (s(), g("span", {
228
- key: 0,
229
- class: C(I.value)
230
- }, [H(c.$slots, "inactive", {}, () => [o.inactiveIcon ? (s(), w(n(O), { key: 0 }, {
231
- default: S(() => [(s(), w(j(o.inactiveIcon)))]),
232
- _: 1
233
- })) : b("v-if", !0), !o.inactiveIcon && o.inactiveText ? (s(), g("span", {
234
- key: 1,
235
- "aria-hidden": r.value
236
- }, a(o.inactiveText), 9, kt)) : b("v-if", !0)])], 2)) : b("v-if", !0),
237
- l("span", {
238
- class: C(n(d).e("core")),
239
- style: ee(le.value)
240
- }, [o.inlinePrompt ? (s(), g("div", {
241
- key: 0,
242
- class: C(n(d).e("inner"))
243
- }, [r.value ? (s(), g("div", {
244
- key: 1,
245
- class: C(n(d).e("inner-wrapper"))
246
- }, [H(c.$slots, "active", {}, () => [o.activeIcon ? (s(), w(n(O), { key: 0 }, {
247
- default: S(() => [(s(), w(j(o.activeIcon)))]),
248
- _: 1
249
- })) : b("v-if", !0), !o.activeIcon && o.activeText ? (s(), g("span", St, a(o.activeText), 1)) : b("v-if", !0)])], 2)) : (s(), g("div", {
250
- key: 0,
251
- class: C(n(d).e("inner-wrapper"))
252
- }, [H(c.$slots, "inactive", {}, () => [o.inactiveIcon ? (s(), w(n(O), { key: 0 }, {
253
- default: S(() => [(s(), w(j(o.inactiveIcon)))]),
254
- _: 1
255
- })) : b("v-if", !0), !o.inactiveIcon && o.inactiveText ? (s(), g("span", Ct, a(o.inactiveText), 1)) : b("v-if", !0)])], 2))], 2)) : b("v-if", !0), l("div", { class: C(n(d).e("action")) }, [o.loading ? (s(), w(n(O), {
256
- key: 0,
257
- class: C(n(d).is("loading"))
258
- }, {
259
- default: S(() => [v(n(vt))]),
260
- _: 1
261
- }, 8, ["class"])) : r.value ? H(c.$slots, "active-action", { key: 1 }, () => [o.activeActionIcon ? (s(), w(n(O), { key: 0 }, {
262
- default: S(() => [(s(), w(j(o.activeActionIcon)))]),
263
- _: 1
264
- })) : b("v-if", !0)]) : r.value ? b("v-if", !0) : H(c.$slots, "inactive-action", { key: 2 }, () => [o.inactiveActionIcon ? (s(), w(n(O), { key: 0 }, {
265
- default: S(() => [(s(), w(j(o.inactiveActionIcon)))]),
266
- _: 1
267
- })) : b("v-if", !0)])], 2)], 6),
268
- !o.inlinePrompt && (o.activeIcon || o.activeText || c.$slots.active) ? (s(), g("span", {
269
- key: 1,
270
- class: C(te.value)
271
- }, [H(c.$slots, "active", {}, () => [o.activeIcon ? (s(), w(n(O), { key: 0 }, {
272
- default: S(() => [(s(), w(j(o.activeIcon)))]),
273
- _: 1
274
- })) : b("v-if", !0), !o.activeIcon && o.activeText ? (s(), g("span", {
275
- key: 1,
276
- "aria-hidden": !r.value
277
- }, a(o.activeText), 9, Et)) : b("v-if", !0)])], 2)) : b("v-if", !0)
278
- ], 2));
279
- }
280
- }), xt = It;
281
- const Tt = Xe(xt), G = [
282
- {
283
- id: 1,
284
- name: "渐变蓝",
285
- label: "bgColor.gradientBlue",
286
- color: "linear-gradient(180deg, #fffefb 0%, #daebff 100%)",
287
- rgb: [0.9254, 0.9607, 1]
288
- },
289
- {
290
- id: 2,
291
- name: "纯灰度",
292
- label: "bgColor.gray",
293
- color: "#F0F0F0",
294
- rgb: [0.9411, 0.9411, 0.9411]
295
- },
296
- {
297
- id: 3,
298
- name: "昏暗天空",
299
- label: "bgColor.dimSky",
300
- color: "#323237",
301
- rgb: [0.196, 0.196, 0.2156]
302
- },
303
- {
304
- id: 4,
305
- name: "纯白色",
306
- label: "bgColor.white",
307
- color: "#FFF",
308
- rgb: [1, 1, 1]
309
- },
310
- {
311
- id: 5,
312
- name: "奶白蓝",
313
- label: "bgColor.milkBlue",
314
- color: "#ECF5FF",
315
- rgb: [0.98, 0.98, 0.98]
316
- }
317
- ], $t = { style: { height: "var(--setting-content-height)" } }, Dt = { class: "setting-title" }, At = {
318
- key: 0,
319
- class: "color-list"
320
- }, Ut = ["onClick"], Bt = { class: "setting-effect" }, Mt = { class: "setting-effect" }, zt = { class: "light-slider" }, Nt = {
321
- key: 1,
322
- class: "setting-title"
323
- }, Ft = {
324
- key: 2,
325
- class: "setting-effect"
326
- }, Pt = { class: "setting-title" }, Ot = { class: "setting-effect" }, Lt = { class: "setting-effect" }, Kt = { class: "setting-effect" }, Rt = { class: "setting-effect" }, Wt = { class: "setting-effect" }, Ht = { class: "setting-effect" }, jt = { class: "setting-effect" }, Gt = {
327
- key: 1,
328
- class: "setting_panel"
329
- }, Yt = { class: "setting-title-box" }, Zt = { class: "setting-title" }, _t = { class: "setting-title-icon" }, qt = { class: "setting-color-box" }, Jt = { class: "setting-color-list" }, Qt = ["onClick"], Xt = { class: "setting-config-box" }, el = { class: "setting-switch-item" }, tl = { class: "setting-switch-item" }, ll = { class: "setting-switch-item" }, ol = { class: "setting-switch-item" }, nl = { class: "setting-switch-item" }, il = { class: "setting-switch-item" }, sl = { class: "setting-switch-item" }, al = { class: "setting-switch-item" }, ul = { class: "setting-switch-item" }, dl = { class: "light-slider" }, cl = { class: "setting-switch-item" }, vl = { class: "speed-slider" }, rl = /* @__PURE__ */ Be({
330
- __name: "SettingTool",
331
- props: {
332
- instruction: {},
333
- componentId: {}
334
- },
335
- emits: ["closePanel", "emitHandler"],
336
- setup(o, { emit: ue }) {
337
- const u = et(), h = tt(), x = o, T = ue, Y = f(0);
338
- let d;
339
- Me(() => {
340
- h.setReadyById(x.componentId), Ue.currentTheme == "blue" ? Y.value = 240 : Ue.currentTheme == "light-gray" && (Y.value = 202);
341
- });
342
- const Z = f(!1), $ = f(!1), _ = new bt(5);
343
- Ve(
344
- () => h.isToolActive(x.componentId),
345
- (i) => {
346
- i === !1 ? (_.stop(), $.value && Ee()) : Z.value || (Z.value = !0);
347
- }
348
- );
349
- const y = () => {
350
- Z.value && ($.value = !0, _.start(() => {
351
- Ee();
352
- }));
353
- }, q = f(!1), I = f(1), te = f("linear-gradient(180deg, #fffefb 0%, #daebff 100%)"), le = (i = !q.value) => {
354
- q.value = i;
355
- }, K = (i) => {
356
- y(), I.value = i.id, te.value = i.color, W.emit("changeBackgroundColor", i.color);
357
- }, r = f(!1), z = (i) => {
358
- y(), d.setAllObjectsEdges(i), i || d.setObjectsEdges(st.entityState.edgesObjectIds, !0);
359
- }, k = f(50), J = (i) => {
360
- y(), d.setLightIntensity(i);
361
- }, c = f(!1), p = (i) => {
362
- y(), d.SetSkyBoxToolActive(i);
363
- }, V = f(!1), Q = (i) => {
364
- y(), d.SetOrthoModeActive(i);
365
- }, X = f(M("outliersDetect")), ke = (i) => {
366
- at("outliersDetect", X.value);
367
- }, N = f(!0), de = (i) => {
368
- y(), d.SetThreeDModeActive(i), M("isMobile") && (window.bimViewer.navCubeMode.visible = !1);
369
- }, D = f(!1), A = f(!1), ce = (i) => {
370
- y(), window.bimViewer.setWorldAxisYDown(D.value), Q(V.value);
371
- }, ve = (i) => {
372
- y(), window.bimViewer.setWorldAxisZUp(A.value), Q(V.value);
373
- }, U = f(!1), oe = (i) => {
374
- y(), d.SetShowSpaceModeActive(i), re(F.value ? 1 : 2);
375
- }, R = f(["亮"]), Ce = f(["亮", "暗"]), ze = {
376
- 亮: "setting.spaceEffects.bright",
377
- 暗: "setting.spaceEffects.dark"
378
- }, F = f(!1), re = (i) => {
379
- y(), i == "亮" ? window.bimViewer.setSpaceMaterialColor(1) : window.bimViewer.setSpaceMaterialColor(2), R.value = Ce.value.includes(i) ? [i] : [];
380
- }, me = (i = !F.value) => {
381
- y(), window.bimViewer.setSpaceMaterialColor(i ? 2 : 1);
382
- }, P = f(50), Se = (i) => {
383
- y(), i == 0 ? d.viewer.cameraControl.customTouchDollyRate = 0.05 / 50 : d.viewer.cameraControl.customTouchDollyRate = i / 50;
384
- }, Ee = () => {
385
- var e, m;
386
- let i;
387
- M("isMobile") ? i = {
388
- backgroundColor: ((e = G.find((B) => B.id == I.value)) == null ? void 0 : e.name) ?? "渐变蓝",
389
- showEdges: r.value,
390
- lightIntensity: k.value,
391
- skyBox: c.value,
392
- orthoMode: V.value,
393
- modelType2D: N.value,
394
- yAxisDown: D.value,
395
- zAxisUp: A.value,
396
- showSpace: U.value,
397
- spaceEffect: F.value,
398
- touchDollySpeed: P.value
399
- } : i = {
400
- backgroundColor: ((m = G.find((B) => B.id == I.value)) == null ? void 0 : m.name) ?? "渐变蓝",
401
- showEdges: r.value,
402
- lightIntensity: k.value,
403
- skyBox: c.value,
404
- orthoMode: V.value,
405
- modelType2D: N.value,
406
- yAxisDown: D.value,
407
- zAxisUp: A.value,
408
- showSpace: U.value,
409
- spaceEffect: R.value[0],
410
- touchDollySpeed: P.value
411
- }, Ne({
412
- isTool: !0,
413
- event_target: "SettingTool",
414
- event_name: "saveSetting",
415
- content: {
416
- newSets: i
417
- }
418
- }), $.value = !1;
419
- }, Ie = (i) => {
420
- const e = i.lastSet, m = G.find((B) => B.name == e.backgroundColor);
421
- I.value = m ? m.id : 1, K(m ?? G[0]), r.value = e.showEdges, z(r.value), k.value = e.lightIntensity, J(k.value), V.value = e.orthoMode, Q(V.value), N.value = e.modelType2D, de(N.value), U.value = e.showSpace, oe(U.value), M("isMobile") ? (F.value = typeof e.spaceEffect == "string" ? e.spaceEffect == "亮" : typeof e.spaceEffect == "boolean" ? e.spaceEffect : !0, me(F.value)) : (R.value = [e.spaceEffect], re(R.value[0])), D.value = e.yAxisDown, D.value && ce(), A.value = e.zAxisUp, A.value && ve(), P.value = e.touchDollySpeed ?? 50, M("isMobile") ? Se(P.value) : (c.value = e.skyBox, p(c.value)), $.value = !1;
422
- }, xe = () => {
423
- d = window.bimViewer, d.viewer.scene.on("aabb", () => {
424
- oe(U.value), me(!0);
425
- });
426
- };
427
- W.on("BimViewer", xe), W.on("lastSetsContent", Ie), ht(() => {
428
- W.off("BimViewer", xe), W.off("lastSetsContent", Ie);
429
- });
430
- const Ne = (i) => {
431
- T("emitHandler", i);
432
- }, Te = (i) => {
433
- i && i.target.id != "setting_back" || (W.emit("hideToolbar", !1), T("closePanel"), le(!1));
434
- };
435
- return (i, e) => {
436
- const m = Tt, B = ct, Fe = nt, Pe = ot, $e = lt, Oe = dt, Le = it;
437
- return s(), g(ie, null, [
438
- n(M)("isMobile") ? b("", !0) : (s(), w(Oe, {
439
- key: 0,
440
- class: "setting_contaier",
441
- width: Y.value,
442
- panelTitle: n(u)("setting.title"),
443
- "click-handle": Te,
444
- style: { height: "var(--setting-panel-height)" }
445
- }, {
446
- default: S(() => [
447
- l("div", $t, [
448
- v($e, null, {
449
- default: S(() => [
450
- l("div", Dt, a(n(u)("setting.effect")), 1),
451
- l("div", {
452
- class: "setting-effect",
453
- onClick: e[0] || (e[0] = (t) => le())
454
- }, [
455
- E(a(n(u)("setting.bgColor")) + " ", 1),
456
- l("div", {
457
- class: "choose-color",
458
- style: ee({ background: te.value })
459
- }, null, 4)
460
- ]),
461
- q.value ? (s(), g("div", At, [
462
- (s(!0), g(ie, null, be(n(G), (t) => (s(), g("div", {
463
- key: t.id,
464
- class: C(["color-item", { "color-item-active": I.value === t.id }]),
465
- onClick: (fe) => K(t)
466
- }, [
467
- l("div", {
468
- class: "bg",
469
- style: ee({ background: t.color, border: t.id === 4 ? "1px solid #F1F1F1" : "none" })
470
- }, null, 4),
471
- E(" " + a(n(u)(t.label || t.name)), 1)
472
- ], 10, Ut))), 128))
473
- ])) : b("", !0),
474
- l("div", Bt, [
475
- E(a(n(u)("setting.showEdges")) + " ", 1),
476
- v(m, {
477
- modelValue: r.value,
478
- "onUpdate:modelValue": e[1] || (e[1] = (t) => r.value = t),
479
- style: { "--el-switch-on-color": "#0065fc" },
480
- onChange: e[2] || (e[2] = (t) => z())
481
- }, null, 8, ["modelValue"])
482
- ]),
483
- l("div", Mt, [
484
- E(a(n(u)("setting.lightIntensity")) + " ", 1),
485
- l("div", zt, [
486
- v(B, {
487
- modelValue: k.value,
488
- "onUpdate:modelValue": e[3] || (e[3] = (t) => k.value = t),
489
- onInput: e[4] || (e[4] = (t) => J(k.value))
490
- }, null, 8, ["modelValue"])
491
- ])
492
- ]),
493
- n(M)("skyboxImg") ? (s(), g("div", Nt, a(n(u)("setting.appearance")), 1)) : b("", !0),
494
- n(M)("skyboxImg") ? (s(), g("div", Ft, [
495
- E(a(n(u)("setting.skybox")) + " ", 1),
496
- v(m, {
497
- modelValue: c.value,
498
- "onUpdate:modelValue": e[5] || (e[5] = (t) => c.value = t),
499
- style: { "--el-switch-on-color": "#0065fc" },
500
- onChange: e[6] || (e[6] = (t) => p())
501
- }, null, 8, ["modelValue"])
502
- ])) : b("", !0),
503
- l("div", Pt, a(n(u)("setting.modelViewSwitch")), 1),
504
- l("div", Ot, [
505
- E(a(n(u)("setting.perspective")) + " ", 1),
506
- v(m, {
507
- modelValue: V.value,
508
- "onUpdate:modelValue": e[7] || (e[7] = (t) => V.value = t),
509
- style: { "--el-switch-on-color": "#0065fc" },
510
- onChange: e[8] || (e[8] = (t) => Q())
511
- }, null, 8, ["modelValue"])
512
- ]),
513
- l("div", Lt, [
514
- E(a(n(u)("setting.outliersDetect")) + " ", 1),
515
- v(m, {
516
- modelValue: X.value,
517
- "onUpdate:modelValue": e[9] || (e[9] = (t) => X.value = t),
518
- style: { "--el-switch-on-color": "#0065fc" },
519
- onChange: e[10] || (e[10] = (t) => ke())
520
- }, null, 8, ["modelValue"])
521
- ]),
522
- l("div", Kt, [
523
- E(a(n(u)("setting.mode2d3d")) + " ", 1),
524
- v(m, {
525
- modelValue: N.value,
526
- "onUpdate:modelValue": e[11] || (e[11] = (t) => N.value = t),
527
- style: { "--el-switch-on-color": "#0065fc" },
528
- onChange: e[12] || (e[12] = (t) => de())
529
- }, null, 8, ["modelValue"])
530
- ]),
531
- l("div", Rt, [
532
- l("div", null, a(n(u)("setting.modelInvert")), 1),
533
- l("div", null, [
534
- v(m, {
535
- modelValue: D.value,
536
- "onUpdate:modelValue": e[13] || (e[13] = (t) => D.value = t),
537
- style: { "--el-switch-on-color": "#0065fc" },
538
- onChange: e[14] || (e[14] = (t) => ce())
539
- }, null, 8, ["modelValue"])
540
- ])
541
- ]),
542
- l("div", Wt, [
543
- l("div", null, a(n(u)("setting.zAxisUp")), 1),
544
- l("div", null, [
545
- v(m, {
546
- modelValue: A.value,
547
- "onUpdate:modelValue": e[15] || (e[15] = (t) => A.value = t),
548
- style: { "--el-switch-on-color": "#0065fc" },
549
- onChange: e[16] || (e[16] = (t) => ve())
550
- }, null, 8, ["modelValue"])
551
- ])
552
- ]),
553
- l("div", Ht, [
554
- E(a(n(u)("setting.modelSpace")) + " ", 1),
555
- v(m, {
556
- modelValue: U.value,
557
- "onUpdate:modelValue": e[17] || (e[17] = (t) => U.value = t),
558
- style: { "--el-switch-on-color": "#0065fc" },
559
- onChange: e[18] || (e[18] = (t) => oe())
560
- }, null, 8, ["modelValue"])
561
- ]),
562
- l("div", jt, [
563
- E(a(n(u)("setting.spaceEffect")) + " ", 1),
564
- v(Pe, {
565
- modelValue: R.value,
566
- "onUpdate:modelValue": e[19] || (e[19] = (t) => R.value = t),
567
- size: "small"
568
- }, {
569
- default: S(() => [
570
- (s(!0), g(ie, null, be(Ce.value, (t) => (s(), w(Fe, {
571
- key: t,
572
- value: t,
573
- onChange: (fe) => re(t)
574
- }, {
575
- default: S(() => [
576
- E(a(n(u)(ze[t])), 1)
577
- ]),
578
- _: 2
579
- }, 1032, ["value", "onChange"]))), 128))
580
- ]),
581
- _: 1
582
- }, 8, ["modelValue"])
583
- ])
584
- ]),
585
- _: 1
586
- })
587
- ])
588
- ]),
589
- _: 1
590
- }, 8, ["width", "panelTitle"])),
591
- n(M)("isMobile") ? (s(), g("div", Gt, [
592
- l("div", Yt, [
593
- l("div", Zt, a(n(u)("setting.title")), 1),
594
- l("div", _t, [
595
- v(Le, {
596
- width: 0.4,
597
- "size-type": "rem",
598
- "click-handle": Te
599
- })
600
- ])
601
- ]),
602
- l("div", qt, [
603
- l("div", Jt, [
604
- (s(!0), g(ie, null, be(n(G), (t, fe) => (s(), g("div", {
605
- key: fe,
606
- class: C(["setting-color-item", {
607
- "setting-color-item-active": I.value === t.id
608
- }]),
609
- onClick: (ml) => K(t)
610
- }, [
611
- l("div", {
612
- class: "setting-color-icon",
613
- style: ee({
614
- background: t.color,
615
- border: t.id === I.value ? "0.02rem solid #0065FC" : ""
616
- })
617
- }, null, 4),
618
- l("div", {
619
- class: "setting-color-name",
620
- style: ee({ color: t.id === I.value ? "#0065FC" : "" })
621
- }, a(n(u)(t.label || t.name)), 5)
622
- ], 10, Qt))), 128))
623
- ])
624
- ]),
625
- l("div", Xt, [
626
- v($e, { height: "230" }, {
627
- default: S(() => [
628
- l("div", el, [
629
- l("div", null, a(n(u)("setting.showEdges")), 1),
630
- l("div", null, [
631
- v(m, {
632
- modelValue: r.value,
633
- "onUpdate:modelValue": e[20] || (e[20] = (t) => r.value = t),
634
- size: "small",
635
- onChange: e[21] || (e[21] = (t) => z())
636
- }, null, 8, ["modelValue"])
637
- ])
638
- ]),
639
- l("div", tl, [
640
- l("div", null, a(n(u)("setting.perspective")), 1),
641
- l("div", null, [
642
- v(m, {
643
- modelValue: V.value,
644
- "onUpdate:modelValue": e[22] || (e[22] = (t) => V.value = t),
645
- size: "small",
646
- onChange: e[23] || (e[23] = (t) => Q())
647
- }, null, 8, ["modelValue"])
648
- ])
649
- ]),
650
- l("div", ll, [
651
- l("div", null, a(n(u)("setting.outliersDetect")), 1),
652
- l("div", null, [
653
- v(m, {
654
- modelValue: X.value,
655
- "onUpdate:modelValue": e[24] || (e[24] = (t) => X.value = t),
656
- size: "small",
657
- onChange: e[25] || (e[25] = (t) => ke())
658
- }, null, 8, ["modelValue"])
659
- ])
660
- ]),
661
- l("div", ol, [
662
- l("div", null, a(n(u)("setting.mode2d3d")), 1),
663
- l("div", null, [
664
- v(m, {
665
- modelValue: N.value,
666
- "onUpdate:modelValue": e[26] || (e[26] = (t) => N.value = t),
667
- size: "small",
668
- onChange: e[27] || (e[27] = (t) => de())
669
- }, null, 8, ["modelValue"])
670
- ])
671
- ]),
672
- l("div", nl, [
673
- l("div", null, a(n(u)("setting.modelInvert")), 1),
674
- l("div", null, [
675
- v(m, {
676
- modelValue: D.value,
677
- "onUpdate:modelValue": e[28] || (e[28] = (t) => D.value = t),
678
- size: "small",
679
- onChange: e[29] || (e[29] = (t) => ce())
680
- }, null, 8, ["modelValue"])
681
- ])
682
- ]),
683
- l("div", il, [
684
- l("div", null, a(n(u)("setting.zAxisUp")), 1),
685
- l("div", null, [
686
- v(m, {
687
- modelValue: A.value,
688
- "onUpdate:modelValue": e[30] || (e[30] = (t) => A.value = t),
689
- size: "small",
690
- onChange: e[31] || (e[31] = (t) => ve())
691
- }, null, 8, ["modelValue"])
692
- ])
693
- ]),
694
- l("div", sl, [
695
- l("div", null, a(n(u)("setting.modelSpace")), 1),
696
- l("div", null, [
697
- v(m, {
698
- modelValue: U.value,
699
- "onUpdate:modelValue": e[32] || (e[32] = (t) => U.value = t),
700
- size: "small",
701
- onChange: e[33] || (e[33] = (t) => oe())
702
- }, null, 8, ["modelValue"])
703
- ])
704
- ]),
705
- l("div", al, [
706
- l("div", null, a(n(u)("setting.spaceEffect")), 1),
707
- l("div", null, [
708
- v(m, {
709
- modelValue: F.value,
710
- "onUpdate:modelValue": e[34] || (e[34] = (t) => F.value = t),
711
- size: "small",
712
- onChange: e[35] || (e[35] = (t) => me())
713
- }, null, 8, ["modelValue"])
714
- ])
715
- ]),
716
- l("div", ul, [
717
- l("div", null, a(n(u)("setting.lightIntensity")), 1),
718
- l("div", dl, [
719
- v(B, {
720
- modelValue: k.value,
721
- "onUpdate:modelValue": e[36] || (e[36] = (t) => k.value = t),
722
- onInput: e[37] || (e[37] = (t) => J(k.value))
723
- }, null, 8, ["modelValue"])
724
- ])
725
- ]),
726
- l("div", cl, [
727
- l("div", null, a(n(u)("setting.zoomSpeed")), 1),
728
- l("div", vl, [
729
- v(B, {
730
- modelValue: P.value,
731
- "onUpdate:modelValue": e[38] || (e[38] = (t) => P.value = t),
732
- onInput: e[39] || (e[39] = (t) => Se(P.value))
733
- }, null, 8, ["modelValue"])
734
- ])
735
- ])
736
- ]),
737
- _: 1
738
- })
739
- ])
740
- ])) : b("", !0)
741
- ], 64);
742
- };
743
- }
744
- }), wl = /* @__PURE__ */ ut(rl, [["__scopeId", "data-v-874a3737"]]);
745
- export {
746
- wl as default
747
- };