@xtctwins/tctwins-bimx-engine 0.3.2 → 0.3.3

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 (170) hide show
  1. package/README.md +196 -193
  2. package/dist/AnnotationTool-C3o-nYdK.mjs +167 -0
  3. package/dist/BIMX_Viewer_Lib.es.js +3 -3
  4. package/dist/BIMX_Viewer_Lib.umd.js +165 -265
  5. package/dist/CameraViewTool-DaGFzAdV.mjs +164 -0
  6. package/dist/CommentTool-BuqyVt4A.mjs +1529 -0
  7. package/dist/{HiddenTool-rORoKTeD.mjs → HiddenTool-B20p_qDY.mjs} +16 -16
  8. package/dist/{InspectorTool-l4bDxTia.mjs → InspectorTool-ChM2elpV.mjs} +66 -66
  9. package/dist/{MeasureTool-d-EV6m2R.mjs → MeasureTool-BZF__yUT.mjs} +107 -131
  10. package/dist/{MouseTool-DKMcdeRD.mjs → MouseTool-Bhmif0vq.mjs} +32 -35
  11. package/dist/{NavigateTool-BNvZ8Oat.mjs → NavigateTool-DER-SD2Y.mjs} +13 -13
  12. package/dist/{RoamTool-DJu93SVl.mjs → RoamTool-B2fyUtKk.mjs} +14 -14
  13. package/dist/ScreenShotTool-C8iq1Ssm.mjs +357 -0
  14. package/dist/SectionTool-CL95rzx4.mjs +331 -0
  15. package/dist/SettingTool-b9HLJ1iu.mjs +657 -0
  16. package/dist/StructureTree-DlqVbX97.mjs +1583 -0
  17. package/dist/{Alert-5pEYzrMO.mjs → alert-DoM5CyWV.mjs} +8 -8
  18. package/dist/const-DOnRsYpZ.mjs +389 -0
  19. package/dist/el-input-number-Bj97l7q_.mjs +818 -0
  20. package/dist/index-Cslxj2q_.mjs +128302 -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-r40t3eim.mjs} +2 -2
  23. package/dist/style.css +1 -1
  24. package/dist/{TallPanel-DtXOSzmF.mjs → tallPanel-CdjNke7H.mjs} +14 -14
  25. package/package.json +3 -4
  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 +14 -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 +59 -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/viewerManager/viewerManager.d.ts +3 -53
  98. package/dist/AnnotationTool-B3tDIyWy.mjs +0 -239
  99. package/dist/CommentTool--UgPVIZZ.mjs +0 -1541
  100. package/dist/ScreenShotTool-D2h0Qjtv.mjs +0 -430
  101. package/dist/SectionTool-DHw2Zfzv.mjs +0 -343
  102. package/dist/SettingTool-D13GBT87.mjs +0 -747
  103. package/dist/StructureTree-DHaOzAP9.mjs +0 -1662
  104. package/dist/bimTools-D3TraX9d.mjs +0 -75
  105. package/dist/el-slider-CHaMBaUG.mjs +0 -1040
  106. package/dist/index-BDupeKSG.mjs +0 -127986
  107. package/types/components/bcf/AddObjectOrAnno.vue.d.ts +0 -16
  108. package/types/components/bcf/BCFAddPanel.vue.d.ts +0 -55
  109. package/types/components/bcf/BCFDetailPanel.vue.d.ts +0 -59
  110. package/types/components/bcf/BCFDisplayList.vue.d.ts +0 -18
  111. package/types/components/bcf/BCFFilter.vue.d.ts +0 -14
  112. package/types/components/bcf/BCFTool.vue.d.ts +0 -15
  113. package/types/components/bcf/CheckObjectPanel.vue.d.ts +0 -11
  114. package/types/components/bcf/CommentInput.vue.d.ts +0 -51
  115. package/types/components/bcf/CommentsView.vue.d.ts +0 -48
  116. package/types/components/bcf/DialogPanel.vue.d.ts +0 -15
  117. package/types/components/bcf/ImageView.vue.d.ts +0 -17
  118. package/types/components/bcf/ImageZoomIn.vue.d.ts +0 -9
  119. package/types/components/bcf/MobileBCFAdd.vue.d.ts +0 -56
  120. package/types/components/bcf/MobileBCFDetail.vue.d.ts +0 -55
  121. package/types/components/bcf/MobileBCFDisplayList.vue.d.ts +0 -498
  122. package/types/components/bcf/MobileBCFFilter.vue.d.ts +0 -475
  123. package/types/components/bcf/MobileBCFTool.vue.d.ts +0 -17
  124. package/types/components/bcf/MobileCommentInput.vue.d.ts +0 -54
  125. package/types/components/bcf/MobileCommentsView.vue.d.ts +0 -17
  126. package/types/components/bcf/SelectPanel.vue.d.ts +0 -12
  127. package/types/components/comment/mobile/MobileCommentAdd.vue.d.ts +0 -14
  128. package/types/components/comment/mobile/MobileDetail.vue.d.ts +0 -11
  129. package/types/components/comment/mobile/MobileDraw.vue.d.ts +0 -17
  130. package/types/components/comment/mobile/MobileFilter.vue.d.ts +0 -475
  131. package/types/components/comment/mobile/MobileList.vue.d.ts +0 -497
  132. package/types/components/comment/mobile/MobileZoomIn.vue.d.ts +0 -9
  133. package/types/components/comment/pc/PcDraw.vue.d.ts +0 -14
  134. package/types/components/shared/Alert.vue.d.ts +0 -32
  135. package/types/components/shared/CloseButton.vue.d.ts +0 -50
  136. package/types/components/shared/CloseButtonDark.vue.d.ts +0 -32
  137. package/types/components/shared/EmptyPage.vue.d.ts +0 -6
  138. package/types/components/shared/Loading.vue.d.ts +0 -2
  139. package/types/components/shared/Panel.vue.d.ts +0 -47
  140. package/types/components/shared/Prompt.vue.d.ts +0 -8
  141. package/types/components/shared/RectangleButton.vue.d.ts +0 -106
  142. package/types/components/shared/TallPanel.vue.d.ts +0 -69
  143. package/types/components/shared/TallPanelNoPos.vue.d.ts +0 -82
  144. package/types/components/tools/AnnotationTool.vue.d.ts +0 -14
  145. package/types/components/tools/AppToolbar.vue.d.ts +0 -27
  146. package/types/components/tools/ClickEvent.vue.d.ts +0 -6
  147. package/types/components/tools/CommentTool.vue.d.ts +0 -45
  148. package/types/components/tools/HiddenTool.vue.d.ts +0 -12
  149. package/types/components/tools/InspectorTool.vue.d.ts +0 -14
  150. package/types/components/tools/MeasureTool.vue.d.ts +0 -14
  151. package/types/components/tools/MouseTool.vue.d.ts +0 -6
  152. package/types/components/tools/RoamTool.vue.d.ts +0 -12
  153. package/types/components/tools/ScreenShotTool.vue.d.ts +0 -10
  154. package/types/components/tools/SectionTool.vue.d.ts +0 -14
  155. package/types/components/tools/SettingTool.vue.d.ts +0 -13
  156. package/types/components/tools/StructureTree.vue.d.ts +0 -11645
  157. package/types/components/tools/Toolbar.vue.d.ts +0 -10
  158. package/types/composables/useBimViewerEvent.d.ts +0 -44
  159. package/types/composables/useEmitHandler.d.ts +0 -2
  160. package/types/composables/useToolActive.d.ts +0 -1
  161. package/types/composables/useToolReady.d.ts +0 -1
  162. package/types/store/const/app.d.ts +0 -66
  163. package/types/store/const/bimTools.d.ts +0 -81
  164. package/types/store/const/project.d.ts +0 -48
  165. package/types/store/const/theme.d.ts +0 -16
  166. package/types/store/const/toolbar.d.ts +0 -26
  167. package/types/stores/viewerStore.d.ts +0 -112
  168. package/types/types/bcf.d.ts +0 -83
  169. package/types/types/events.d.ts +0 -88
  170. package/types/utils/dbscan.d.ts +0 -1
@@ -1,4 +1,4 @@
1
- export type ComponentName = "StructureTree" | "InspectorTool" | "HiddenTool" | "RoamTool" | "MeasureTool" | "SectionTool" | "CommentTool" | "AnnotationTool" | "ScreenShotTool" | "SettingTool" | "NavigateTool" | "BCFTool" | "MouseTool";
1
+ export type ComponentName = "StructureTree" | "InspectorTool" | "HiddenTool" | "RoamTool" | "CameraViewTool" | "MeasureTool" | "SectionTool" | "CommentTool" | "AnnotationTool" | "ScreenShotTool" | "SettingTool" | "NavigateTool" | "BCFTool" | "MouseTool";
2
2
  export type Tool = {
3
3
  id: number;
4
4
  key: string;
@@ -30,7 +30,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
30
30
  img: string;
31
31
  imgActive: string;
32
32
  isActive: boolean;
33
- position?: 0 | 1 | 2 | undefined;
33
+ position?: (0 | 1 | 2) | undefined;
34
34
  }[];
35
35
  mTools: {
36
36
  id: number;
@@ -42,7 +42,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
42
42
  img: string;
43
43
  imgActive: string;
44
44
  isActive: boolean;
45
- position?: 0 | 1 | 2 | undefined;
45
+ position?: (0 | 1 | 2) | undefined;
46
46
  }[];
47
47
  visibleToolIds: number[];
48
48
  readyToolIds: number[];
@@ -62,7 +62,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
62
62
  img: string;
63
63
  imgActive: string;
64
64
  isActive: boolean;
65
- position?: 0 | 1 | 2 | undefined;
65
+ position?: (0 | 1 | 2) | undefined;
66
66
  }[];
67
67
  visibleTools: (state: {
68
68
  isPc: boolean;
@@ -76,7 +76,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
76
76
  img: string;
77
77
  imgActive: string;
78
78
  isActive: boolean;
79
- position?: 0 | 1 | 2 | undefined;
79
+ position?: (0 | 1 | 2) | undefined;
80
80
  }[];
81
81
  mTools: {
82
82
  id: number;
@@ -88,7 +88,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
88
88
  img: string;
89
89
  imgActive: string;
90
90
  isActive: boolean;
91
- position?: 0 | 1 | 2 | undefined;
91
+ position?: (0 | 1 | 2) | undefined;
92
92
  }[];
93
93
  visibleToolIds: number[];
94
94
  readyToolIds: number[];
@@ -111,7 +111,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
111
111
  img: string;
112
112
  imgActive: string;
113
113
  isActive: boolean;
114
- position?: 0 | 1 | 2 | undefined;
114
+ position?: (0 | 1 | 2) | undefined;
115
115
  }[];
116
116
  mTools: {
117
117
  id: number;
@@ -123,7 +123,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
123
123
  img: string;
124
124
  imgActive: string;
125
125
  isActive: boolean;
126
- position?: 0 | 1 | 2 | undefined;
126
+ position?: (0 | 1 | 2) | undefined;
127
127
  }[];
128
128
  visibleToolIds: number[];
129
129
  readyToolIds: number[];
@@ -146,7 +146,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
146
146
  img: string;
147
147
  imgActive: string;
148
148
  isActive: boolean;
149
- position?: 0 | 1 | 2 | undefined;
149
+ position?: (0 | 1 | 2) | undefined;
150
150
  }[];
151
151
  mTools: {
152
152
  id: number;
@@ -158,7 +158,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
158
158
  img: string;
159
159
  imgActive: string;
160
160
  isActive: boolean;
161
- position?: 0 | 1 | 2 | undefined;
161
+ position?: (0 | 1 | 2) | undefined;
162
162
  }[];
163
163
  visibleToolIds: number[];
164
164
  readyToolIds: number[];
@@ -181,7 +181,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
181
181
  img: string;
182
182
  imgActive: string;
183
183
  isActive: boolean;
184
- position?: 0 | 1 | 2 | undefined;
184
+ position?: (0 | 1 | 2) | undefined;
185
185
  }[];
186
186
  mTools: {
187
187
  id: number;
@@ -193,7 +193,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
193
193
  img: string;
194
194
  imgActive: string;
195
195
  isActive: boolean;
196
- position?: 0 | 1 | 2 | undefined;
196
+ position?: (0 | 1 | 2) | undefined;
197
197
  }[];
198
198
  visibleToolIds: number[];
199
199
  readyToolIds: number[];
@@ -216,7 +216,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
216
216
  img: string;
217
217
  imgActive: string;
218
218
  isActive: boolean;
219
- position?: 0 | 1 | 2 | undefined;
219
+ position?: (0 | 1 | 2) | undefined;
220
220
  }[];
221
221
  mTools: {
222
222
  id: number;
@@ -228,7 +228,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
228
228
  img: string;
229
229
  imgActive: string;
230
230
  isActive: boolean;
231
- position?: 0 | 1 | 2 | undefined;
231
+ position?: (0 | 1 | 2) | undefined;
232
232
  }[];
233
233
  visibleToolIds: number[];
234
234
  readyToolIds: number[];
@@ -239,6 +239,41 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
239
239
  visibleToolIds: number[];
240
240
  readyToolIds: number[];
241
241
  }>) => (toolId: number) => Tool | undefined;
242
+ getToolByKey: (state: {
243
+ isPc: boolean;
244
+ pTools: {
245
+ id: number;
246
+ key: string;
247
+ name: string;
248
+ hasActiveState: boolean;
249
+ component: ComponentName | "";
250
+ isShowDelimiter: boolean;
251
+ img: string;
252
+ imgActive: string;
253
+ isActive: boolean;
254
+ position?: (0 | 1 | 2) | undefined;
255
+ }[];
256
+ mTools: {
257
+ id: number;
258
+ key: string;
259
+ name: string;
260
+ hasActiveState: boolean;
261
+ component: ComponentName | "";
262
+ isShowDelimiter: boolean;
263
+ img: string;
264
+ imgActive: string;
265
+ isActive: boolean;
266
+ position?: (0 | 1 | 2) | undefined;
267
+ }[];
268
+ visibleToolIds: number[];
269
+ readyToolIds: number[];
270
+ } & import('pinia').PiniaCustomStateProperties<{
271
+ isPc: boolean;
272
+ pTools: Tool[];
273
+ mTools: Tool[];
274
+ visibleToolIds: number[];
275
+ readyToolIds: number[];
276
+ }>) => (key: string) => Tool | undefined;
242
277
  hasActiveState: (state: {
243
278
  isPc: boolean;
244
279
  pTools: {
@@ -251,7 +286,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
251
286
  img: string;
252
287
  imgActive: string;
253
288
  isActive: boolean;
254
- position?: 0 | 1 | 2 | undefined;
289
+ position?: (0 | 1 | 2) | undefined;
255
290
  }[];
256
291
  mTools: {
257
292
  id: number;
@@ -263,7 +298,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
263
298
  img: string;
264
299
  imgActive: string;
265
300
  isActive: boolean;
266
- position?: 0 | 1 | 2 | undefined;
301
+ position?: (0 | 1 | 2) | undefined;
267
302
  }[];
268
303
  visibleToolIds: number[];
269
304
  readyToolIds: number[];
@@ -286,7 +321,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
286
321
  img: string;
287
322
  imgActive: string;
288
323
  isActive: boolean;
289
- position?: 0 | 1 | 2 | undefined;
324
+ position?: (0 | 1 | 2) | undefined;
290
325
  }[];
291
326
  mTools: {
292
327
  id: number;
@@ -298,7 +333,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
298
333
  img: string;
299
334
  imgActive: string;
300
335
  isActive: boolean;
301
- position?: 0 | 1 | 2 | undefined;
336
+ position?: (0 | 1 | 2) | undefined;
302
337
  }[];
303
338
  visibleToolIds: number[];
304
339
  readyToolIds: number[];
@@ -321,7 +356,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
321
356
  img: string;
322
357
  imgActive: string;
323
358
  isActive: boolean;
324
- position?: 0 | 1 | 2 | undefined;
359
+ position?: (0 | 1 | 2) | undefined;
325
360
  }[];
326
361
  mTools: {
327
362
  id: number;
@@ -333,7 +368,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
333
368
  img: string;
334
369
  imgActive: string;
335
370
  isActive: boolean;
336
- position?: 0 | 1 | 2 | undefined;
371
+ position?: (0 | 1 | 2) | undefined;
337
372
  }[];
338
373
  visibleToolIds: number[];
339
374
  readyToolIds: number[];
@@ -356,7 +391,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
356
391
  img: string;
357
392
  imgActive: string;
358
393
  isActive: boolean;
359
- position?: 0 | 1 | 2 | undefined;
394
+ position?: (0 | 1 | 2) | undefined;
360
395
  }[];
361
396
  mTools: {
362
397
  id: number;
@@ -368,7 +403,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
368
403
  img: string;
369
404
  imgActive: string;
370
405
  isActive: boolean;
371
- position?: 0 | 1 | 2 | undefined;
406
+ position?: (0 | 1 | 2) | undefined;
372
407
  }[];
373
408
  visibleToolIds: number[];
374
409
  readyToolIds: number[];
@@ -391,7 +426,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
391
426
  img: string;
392
427
  imgActive: string;
393
428
  isActive: boolean;
394
- position?: 0 | 1 | 2 | undefined;
429
+ position?: (0 | 1 | 2) | undefined;
395
430
  }[];
396
431
  mTools: {
397
432
  id: number;
@@ -403,7 +438,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
403
438
  img: string;
404
439
  imgActive: string;
405
440
  isActive: boolean;
406
- position?: 0 | 1 | 2 | undefined;
441
+ position?: (0 | 1 | 2) | undefined;
407
442
  }[];
408
443
  visibleToolIds: number[];
409
444
  readyToolIds: number[];
@@ -445,7 +480,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
445
480
  img: string;
446
481
  imgActive: string;
447
482
  isActive: boolean;
448
- position?: 0 | 1 | 2 | undefined;
483
+ position?: (0 | 1 | 2) | undefined;
449
484
  }[];
450
485
  mTools: {
451
486
  id: number;
@@ -457,7 +492,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
457
492
  img: string;
458
493
  imgActive: string;
459
494
  isActive: boolean;
460
- position?: 0 | 1 | 2 | undefined;
495
+ position?: (0 | 1 | 2) | undefined;
461
496
  }[];
462
497
  visibleToolIds: number[];
463
498
  readyToolIds: number[];
@@ -477,7 +512,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
477
512
  img: string;
478
513
  imgActive: string;
479
514
  isActive: boolean;
480
- position?: 0 | 1 | 2 | undefined;
515
+ position?: (0 | 1 | 2) | undefined;
481
516
  }[];
482
517
  visibleTools: (state: {
483
518
  isPc: boolean;
@@ -491,7 +526,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
491
526
  img: string;
492
527
  imgActive: string;
493
528
  isActive: boolean;
494
- position?: 0 | 1 | 2 | undefined;
529
+ position?: (0 | 1 | 2) | undefined;
495
530
  }[];
496
531
  mTools: {
497
532
  id: number;
@@ -503,7 +538,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
503
538
  img: string;
504
539
  imgActive: string;
505
540
  isActive: boolean;
506
- position?: 0 | 1 | 2 | undefined;
541
+ position?: (0 | 1 | 2) | undefined;
507
542
  }[];
508
543
  visibleToolIds: number[];
509
544
  readyToolIds: number[];
@@ -526,7 +561,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
526
561
  img: string;
527
562
  imgActive: string;
528
563
  isActive: boolean;
529
- position?: 0 | 1 | 2 | undefined;
564
+ position?: (0 | 1 | 2) | undefined;
530
565
  }[];
531
566
  mTools: {
532
567
  id: number;
@@ -538,7 +573,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
538
573
  img: string;
539
574
  imgActive: string;
540
575
  isActive: boolean;
541
- position?: 0 | 1 | 2 | undefined;
576
+ position?: (0 | 1 | 2) | undefined;
542
577
  }[];
543
578
  visibleToolIds: number[];
544
579
  readyToolIds: number[];
@@ -561,7 +596,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
561
596
  img: string;
562
597
  imgActive: string;
563
598
  isActive: boolean;
564
- position?: 0 | 1 | 2 | undefined;
599
+ position?: (0 | 1 | 2) | undefined;
565
600
  }[];
566
601
  mTools: {
567
602
  id: number;
@@ -573,7 +608,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
573
608
  img: string;
574
609
  imgActive: string;
575
610
  isActive: boolean;
576
- position?: 0 | 1 | 2 | undefined;
611
+ position?: (0 | 1 | 2) | undefined;
577
612
  }[];
578
613
  visibleToolIds: number[];
579
614
  readyToolIds: number[];
@@ -596,7 +631,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
596
631
  img: string;
597
632
  imgActive: string;
598
633
  isActive: boolean;
599
- position?: 0 | 1 | 2 | undefined;
634
+ position?: (0 | 1 | 2) | undefined;
600
635
  }[];
601
636
  mTools: {
602
637
  id: number;
@@ -608,7 +643,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
608
643
  img: string;
609
644
  imgActive: string;
610
645
  isActive: boolean;
611
- position?: 0 | 1 | 2 | undefined;
646
+ position?: (0 | 1 | 2) | undefined;
612
647
  }[];
613
648
  visibleToolIds: number[];
614
649
  readyToolIds: number[];
@@ -631,7 +666,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
631
666
  img: string;
632
667
  imgActive: string;
633
668
  isActive: boolean;
634
- position?: 0 | 1 | 2 | undefined;
669
+ position?: (0 | 1 | 2) | undefined;
635
670
  }[];
636
671
  mTools: {
637
672
  id: number;
@@ -643,7 +678,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
643
678
  img: string;
644
679
  imgActive: string;
645
680
  isActive: boolean;
646
- position?: 0 | 1 | 2 | undefined;
681
+ position?: (0 | 1 | 2) | undefined;
647
682
  }[];
648
683
  visibleToolIds: number[];
649
684
  readyToolIds: number[];
@@ -654,6 +689,41 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
654
689
  visibleToolIds: number[];
655
690
  readyToolIds: number[];
656
691
  }>) => (toolId: number) => Tool | undefined;
692
+ getToolByKey: (state: {
693
+ isPc: boolean;
694
+ pTools: {
695
+ id: number;
696
+ key: string;
697
+ name: string;
698
+ hasActiveState: boolean;
699
+ component: ComponentName | "";
700
+ isShowDelimiter: boolean;
701
+ img: string;
702
+ imgActive: string;
703
+ isActive: boolean;
704
+ position?: (0 | 1 | 2) | undefined;
705
+ }[];
706
+ mTools: {
707
+ id: number;
708
+ key: string;
709
+ name: string;
710
+ hasActiveState: boolean;
711
+ component: ComponentName | "";
712
+ isShowDelimiter: boolean;
713
+ img: string;
714
+ imgActive: string;
715
+ isActive: boolean;
716
+ position?: (0 | 1 | 2) | undefined;
717
+ }[];
718
+ visibleToolIds: number[];
719
+ readyToolIds: number[];
720
+ } & import('pinia').PiniaCustomStateProperties<{
721
+ isPc: boolean;
722
+ pTools: Tool[];
723
+ mTools: Tool[];
724
+ visibleToolIds: number[];
725
+ readyToolIds: number[];
726
+ }>) => (key: string) => Tool | undefined;
657
727
  hasActiveState: (state: {
658
728
  isPc: boolean;
659
729
  pTools: {
@@ -666,7 +736,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
666
736
  img: string;
667
737
  imgActive: string;
668
738
  isActive: boolean;
669
- position?: 0 | 1 | 2 | undefined;
739
+ position?: (0 | 1 | 2) | undefined;
670
740
  }[];
671
741
  mTools: {
672
742
  id: number;
@@ -678,7 +748,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
678
748
  img: string;
679
749
  imgActive: string;
680
750
  isActive: boolean;
681
- position?: 0 | 1 | 2 | undefined;
751
+ position?: (0 | 1 | 2) | undefined;
682
752
  }[];
683
753
  visibleToolIds: number[];
684
754
  readyToolIds: number[];
@@ -701,7 +771,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
701
771
  img: string;
702
772
  imgActive: string;
703
773
  isActive: boolean;
704
- position?: 0 | 1 | 2 | undefined;
774
+ position?: (0 | 1 | 2) | undefined;
705
775
  }[];
706
776
  mTools: {
707
777
  id: number;
@@ -713,7 +783,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
713
783
  img: string;
714
784
  imgActive: string;
715
785
  isActive: boolean;
716
- position?: 0 | 1 | 2 | undefined;
786
+ position?: (0 | 1 | 2) | undefined;
717
787
  }[];
718
788
  visibleToolIds: number[];
719
789
  readyToolIds: number[];
@@ -736,7 +806,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
736
806
  img: string;
737
807
  imgActive: string;
738
808
  isActive: boolean;
739
- position?: 0 | 1 | 2 | undefined;
809
+ position?: (0 | 1 | 2) | undefined;
740
810
  }[];
741
811
  mTools: {
742
812
  id: number;
@@ -748,7 +818,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
748
818
  img: string;
749
819
  imgActive: string;
750
820
  isActive: boolean;
751
- position?: 0 | 1 | 2 | undefined;
821
+ position?: (0 | 1 | 2) | undefined;
752
822
  }[];
753
823
  visibleToolIds: number[];
754
824
  readyToolIds: number[];
@@ -771,7 +841,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
771
841
  img: string;
772
842
  imgActive: string;
773
843
  isActive: boolean;
774
- position?: 0 | 1 | 2 | undefined;
844
+ position?: (0 | 1 | 2) | undefined;
775
845
  }[];
776
846
  mTools: {
777
847
  id: number;
@@ -783,7 +853,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
783
853
  img: string;
784
854
  imgActive: string;
785
855
  isActive: boolean;
786
- position?: 0 | 1 | 2 | undefined;
856
+ position?: (0 | 1 | 2) | undefined;
787
857
  }[];
788
858
  visibleToolIds: number[];
789
859
  readyToolIds: number[];
@@ -806,7 +876,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
806
876
  img: string;
807
877
  imgActive: string;
808
878
  isActive: boolean;
809
- position?: 0 | 1 | 2 | undefined;
879
+ position?: (0 | 1 | 2) | undefined;
810
880
  }[];
811
881
  mTools: {
812
882
  id: number;
@@ -818,7 +888,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
818
888
  img: string;
819
889
  imgActive: string;
820
890
  isActive: boolean;
821
- position?: 0 | 1 | 2 | undefined;
891
+ position?: (0 | 1 | 2) | undefined;
822
892
  }[];
823
893
  visibleToolIds: number[];
824
894
  readyToolIds: number[];
@@ -841,31 +911,9 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
841
911
  ifToolAllReady(): boolean;
842
912
  setReadyTools(toolIds: number[]): void;
843
913
  }>;
844
- /**
845
- * 初始化工具栏:关闭所有工具面板、清空就绪和激活状态
846
- *
847
- * @remarks 通常在模型加载前或切换模型时调用
848
- */
849
914
  export declare function InitToolBar(): void;
850
915
  export declare let MobileToolOrder: string[];
851
916
  export declare let PcToolOrder: string[];
852
- /**
853
- * 设置 PC 端工具栏排序
854
- *
855
- * @param order - 工具 key 数组,按期望的显示顺序排列
856
- */
857
917
  export declare function setPcToolOrder(order: string[]): void;
858
- /**
859
- * 设置移动端工具栏排序
860
- *
861
- * @param order - 工具 key 数组,按期望的显示顺序排列
862
- */
863
918
  export declare function setMobileToolOrder(order: string[]): void;
864
- /**
865
- * 按指定顺序对数组排序
866
- *
867
- * @param a - 待排序的 key 数组
868
- * @param b - 排序依据(所有可能的 key 按期望顺序排列)
869
- * @returns 排序后的 key 数组(仅包含 b 中存在的元素)
870
- */
871
919
  export declare function sortArrayByOrder(a: any, b: any): any;
@@ -20,7 +20,7 @@ export declare const useUserInfoStore: import('pinia').StoreDefinition<"userInfo
20
20
  userId: number;
21
21
  staffList: any;
22
22
  }>) => any;
23
- getStaffName: (state: {
23
+ getStuffName: (state: {
24
24
  userId: number;
25
25
  staffList: any;
26
26
  } & import('pinia').PiniaCustomStateProperties<{
@@ -0,0 +1 @@
1
+ export {};
@@ -1,32 +1,5 @@
1
- /**
2
- * OSSHelper — 阿里云 OSS 文件操作辅助类
3
- *
4
- * 提供从 OSS 读取文件、下载 Buffer、获取 JSON 元数据等能力。
5
- * 内部通过 STS 临时凭证自动创建 OSSClient 实例。
6
- */
7
1
  export default class OSSHelper {
8
- /**
9
- * 从 OSS 获取文件的 ArrayBuffer
10
- *
11
- * @param filePath - OSS 文件路径
12
- * @param done - 成功回调,接收 Buffer 数据
13
- * @param error - 可选,失败回调
14
- */
15
2
  static getBuffer(filePath: string, done: Function, error?: Function): Promise<void>;
16
- /**
17
- * 从 OSS 请求文件(支持单文件和多文件模式)
18
- *
19
- * @param filePath - OSS 目录路径
20
- * @param isFile - true 读取 metadata.json,false 读取 index.json
21
- * @param done - 成功回调,接收解析后的 JSON 对象
22
- * @param error - 失败回调
23
- */
24
3
  static requestFileFromOSS(filePath: string, isFile: boolean, done: Function, error: Function): Promise<void>;
25
- /**
26
- * 通过 HTTP 下载文件(非 OSS)
27
- *
28
- * @param filePath - 文件的完整 HTTP URL
29
- * @returns 文件的 ArrayBuffer
30
- */
31
4
  static downloadFile(filePath: string): Promise<ArrayBuffer>;
32
5
  }
@@ -1,12 +1,7 @@
1
1
  /**
2
- * 本地缓存封装
3
- *
4
- * 基于 localStorage / sessionStorage,支持过期时间自动清除。
5
- *
6
- * @example
7
- * import { LStorage, SStorage } from "@/utils/cacheInfo";
8
- * LStorage.set("key", data, 3600); // 1 小时后过期
9
- * const val = LStorage.get("key"); // 过期自动返回 null
2
+ * 本地缓存
3
+ * LStorage
4
+ * sStorage
10
5
  */
11
6
  declare enum StorageType {
12
7
  l = "localStorage",
@@ -14,28 +9,10 @@ declare enum StorageType {
14
9
  }
15
10
  declare class MyStorage {
16
11
  storage: Storage;
17
- /**
18
- * @param type - StorageType.l 为 localStorage,StorageType.s 为 sessionStorage
19
- */
20
12
  constructor(type: StorageType);
21
- /**
22
- * 写入缓存
23
- *
24
- * @param key - 缓存键
25
- * @param value - 缓存值(会被 JSON.stringify)
26
- * @param expires - false 永不过期;true 默认 1 小时;number 为秒数
27
- */
28
13
  set(key: string, value: any, expires?: boolean | number): void;
29
- /**
30
- * 读取缓存,过期自动清除并返回 null
31
- *
32
- * @param key - 缓存键
33
- * @returns 缓存值(JSON 解析后),过期或不存在时返回 null
34
- */
35
14
  get(key: string): any;
36
- /** 删除指定缓存 */
37
15
  remove(key: string): void;
38
- /** 清空所有缓存 */
39
16
  clear(): void;
40
17
  }
41
18
  declare const LStorage: MyStorage;