@xtctwins/tctwins-bimx-engine 0.3.0 → 0.3.2

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 (168) hide show
  1. package/README.md +193 -196
  2. package/dist/{alert-ChDNxVgQ.mjs → Alert-5pEYzrMO.mjs} +8 -8
  3. package/dist/AnnotationTool-B3tDIyWy.mjs +239 -0
  4. package/dist/BIMX_Viewer_Lib.es.js +3 -3
  5. package/dist/BIMX_Viewer_Lib.umd.js +222 -175
  6. package/dist/CommentTool--UgPVIZZ.mjs +1541 -0
  7. package/dist/{HiddenTool-CoPawMRd.mjs → HiddenTool-rORoKTeD.mjs} +16 -16
  8. package/dist/{InspectorTool-BIvnydPf.mjs → InspectorTool-l4bDxTia.mjs} +66 -66
  9. package/dist/{MeasureTool-BUi0QI_R.mjs → MeasureTool-d-EV6m2R.mjs} +126 -102
  10. package/dist/{MouseTool-CdVwRiX1.mjs → MouseTool-DKMcdeRD.mjs} +35 -32
  11. package/dist/{NavigateTool-DoP9z3yP.mjs → NavigateTool-BNvZ8Oat.mjs} +13 -13
  12. package/dist/{panel.vue_vue_type_style_index_0_lang-BaSZShh_.mjs → Panel.vue_vue_type_style_index_0_lang-C4tqfy-B.mjs} +2 -2
  13. package/dist/{RoamTool-POFy076i.mjs → RoamTool-DJu93SVl.mjs} +14 -14
  14. package/dist/ScreenShotTool-D2h0Qjtv.mjs +430 -0
  15. package/dist/SectionTool-DHw2Zfzv.mjs +343 -0
  16. package/dist/SettingTool-D13GBT87.mjs +747 -0
  17. package/dist/StructureTree-DHaOzAP9.mjs +1662 -0
  18. package/dist/{tallPanel-DKlcFjrl.mjs → TallPanel-DtXOSzmF.mjs} +14 -14
  19. package/dist/bimTools-D3TraX9d.mjs +75 -0
  20. package/dist/el-slider-CHaMBaUG.mjs +1040 -0
  21. package/dist/{index-Dsq1epCY.mjs → index-BDupeKSG.mjs} +55597 -53543
  22. package/dist/index.html +17 -17
  23. package/dist/style.css +1 -1
  24. package/package.json +4 -3
  25. package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +38 -10
  26. package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +37 -9
  27. package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +5 -7
  28. package/types/components/BCFComponents/BCFFilter.vue.d.ts +5 -7
  29. package/types/components/BCFComponents/BCFTool.vue.d.ts +4 -7
  30. package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +5 -7
  31. package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +5 -6
  32. package/types/components/BCFComponents/commentInput.vue.d.ts +36 -10
  33. package/types/components/BCFComponents/commentsView.vue.d.ts +36 -7
  34. package/types/components/BCFComponents/dialogPanel.vue.d.ts +5 -8
  35. package/types/components/BCFComponents/imageView.vue.d.ts +5 -7
  36. package/types/components/BCFComponents/imageZoomIn.vue.d.ts +5 -6
  37. package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
  38. package/types/components/BimViewerComponents/AppToolbar.vue.d.ts +18 -1
  39. package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +1 -1
  40. package/types/components/BimViewerComponents/CommentTool.vue.d.ts +32 -1
  41. package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
  42. package/types/components/BimViewerComponents/InspectorTool.vue.d.ts +2 -0
  43. package/types/components/BimViewerComponents/MeasureTool.vue.d.ts +2 -0
  44. package/types/components/BimViewerComponents/MobileCommentsTool/{add.vue.d.ts → MobileCommentAdd.vue.d.ts} +6 -8
  45. package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +4 -5
  46. package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +2 -2
  47. package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +478 -1
  48. package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +499 -7
  49. package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +5 -6
  50. package/types/components/BimViewerComponents/MouseTool.vue.d.ts +1 -1
  51. package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +1 -1
  52. package/types/components/BimViewerComponents/PCCommentTool/pcdraw.vue.d.ts +1 -1
  53. package/types/components/BimViewerComponents/RoamTool.vue.d.ts +1 -1
  54. package/types/components/BimViewerComponents/SectionTool.vue.d.ts +4 -0
  55. package/types/components/BimViewerComponents/SettingTool.vue.d.ts +4 -6
  56. package/types/components/BimViewerComponents/StructureTree.vue.d.ts +4026 -1
  57. package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
  58. package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +18 -1
  59. package/types/components/BimxViewerComp.vue.d.ts +7 -14
  60. package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +37 -10
  61. package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +37 -9
  62. package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +499 -7
  63. package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +478 -1
  64. package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +5 -8
  65. package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +38 -12
  66. package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +7 -9
  67. package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +5 -7
  68. package/types/components/bcf/AddObjectOrAnno.vue.d.ts +16 -0
  69. package/types/components/bcf/BCFAddPanel.vue.d.ts +55 -0
  70. package/types/components/bcf/BCFDetailPanel.vue.d.ts +59 -0
  71. package/types/components/bcf/BCFDisplayList.vue.d.ts +18 -0
  72. package/types/components/bcf/BCFFilter.vue.d.ts +14 -0
  73. package/types/components/bcf/BCFTool.vue.d.ts +15 -0
  74. package/types/components/bcf/CheckObjectPanel.vue.d.ts +11 -0
  75. package/types/components/bcf/CommentInput.vue.d.ts +51 -0
  76. package/types/components/bcf/CommentsView.vue.d.ts +48 -0
  77. package/types/components/bcf/DialogPanel.vue.d.ts +15 -0
  78. package/types/components/bcf/ImageView.vue.d.ts +17 -0
  79. package/types/components/bcf/ImageZoomIn.vue.d.ts +9 -0
  80. package/types/components/bcf/MobileBCFAdd.vue.d.ts +56 -0
  81. package/types/components/bcf/MobileBCFDetail.vue.d.ts +55 -0
  82. package/types/components/bcf/MobileBCFDisplayList.vue.d.ts +498 -0
  83. package/types/components/bcf/MobileBCFFilter.vue.d.ts +475 -0
  84. package/types/components/bcf/MobileBCFTool.vue.d.ts +17 -0
  85. package/types/components/bcf/MobileCommentInput.vue.d.ts +54 -0
  86. package/types/components/bcf/MobileCommentsView.vue.d.ts +17 -0
  87. package/types/components/bcf/SelectPanel.vue.d.ts +12 -0
  88. package/types/components/bimxViewer.vue.d.ts +7 -14
  89. package/types/components/comment/mobile/MobileCommentAdd.vue.d.ts +14 -0
  90. package/types/components/comment/mobile/MobileDetail.vue.d.ts +11 -0
  91. package/types/components/comment/mobile/MobileDraw.vue.d.ts +17 -0
  92. package/types/components/comment/mobile/MobileFilter.vue.d.ts +475 -0
  93. package/types/components/comment/mobile/MobileList.vue.d.ts +497 -0
  94. package/types/components/comment/mobile/MobileZoomIn.vue.d.ts +9 -0
  95. package/types/components/comment/pc/PcDraw.vue.d.ts +14 -0
  96. package/types/components/shared/Alert.vue.d.ts +32 -0
  97. package/types/components/shared/CloseButton.vue.d.ts +50 -0
  98. package/types/components/shared/CloseButtonDark.vue.d.ts +32 -0
  99. package/types/components/shared/EmptyPage.vue.d.ts +6 -0
  100. package/types/components/shared/Loading.vue.d.ts +2 -0
  101. package/types/components/shared/Panel.vue.d.ts +47 -0
  102. package/types/components/shared/Prompt.vue.d.ts +8 -0
  103. package/types/components/shared/RectangleButton.vue.d.ts +106 -0
  104. package/types/components/shared/TallPanel.vue.d.ts +69 -0
  105. package/types/components/shared/TallPanelNoPos.vue.d.ts +82 -0
  106. package/types/components/tools/AnnotationTool.vue.d.ts +14 -0
  107. package/types/components/tools/AppToolbar.vue.d.ts +27 -0
  108. package/types/components/tools/ClickEvent.vue.d.ts +6 -0
  109. package/types/components/tools/CommentTool.vue.d.ts +45 -0
  110. package/types/components/tools/HiddenTool.vue.d.ts +12 -0
  111. package/types/components/tools/InspectorTool.vue.d.ts +14 -0
  112. package/types/components/tools/MeasureTool.vue.d.ts +14 -0
  113. package/types/components/tools/MouseTool.vue.d.ts +6 -0
  114. package/types/components/tools/NavigateTool.vue.d.ts +10 -0
  115. package/types/components/tools/RoamTool.vue.d.ts +12 -0
  116. package/types/components/tools/ScreenShotTool.vue.d.ts +10 -0
  117. package/types/components/tools/SectionTool.vue.d.ts +14 -0
  118. package/types/components/tools/SettingTool.vue.d.ts +13 -0
  119. package/types/components/tools/StructureTree.vue.d.ts +11645 -0
  120. package/types/components/tools/Toolbar.vue.d.ts +10 -0
  121. package/types/components/utilsComponents/alert.vue.d.ts +1 -1
  122. package/types/components/utilsComponents/closeButton.vue.d.ts +1 -1
  123. package/types/components/utilsComponents/closeButton_dark.vue.d.ts +1 -1
  124. package/types/components/utilsComponents/emptyPage.vue.d.ts +1 -1
  125. package/types/components/utilsComponents/loading.vue.d.ts +1 -1
  126. package/types/components/utilsComponents/panel.vue.d.ts +8 -2
  127. package/types/components/utilsComponents/prompt.vue.d.ts +1 -1
  128. package/types/components/utilsComponents/rectangleButton.vue.d.ts +3 -1
  129. package/types/components/utilsComponents/tallPanel.vue.d.ts +13 -3
  130. package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +13 -3
  131. package/types/composables/useBimViewerEvent.d.ts +44 -0
  132. package/types/composables/useEmitHandler.d.ts +2 -0
  133. package/types/composables/useToolActive.d.ts +1 -0
  134. package/types/composables/useToolReady.d.ts +1 -0
  135. package/types/i18n/index.d.ts +5 -1
  136. package/types/i18n/locales/en-US.d.ts +1 -0
  137. package/types/i18n/locales/zh-CN.d.ts +1 -0
  138. package/types/pages/BimxViewerEntry.vue.d.ts +5 -57
  139. package/types/pages/viewerEntry.vue.d.ts +7 -57
  140. package/types/store/bcfReflect.d.ts +13 -81
  141. package/types/store/const/app.d.ts +66 -0
  142. package/types/store/const/bimTools.d.ts +81 -0
  143. package/types/store/const/project.d.ts +48 -0
  144. package/types/store/const/theme.d.ts +16 -0
  145. package/types/store/const/toolbar.d.ts +26 -0
  146. package/types/store/const.d.ts +11 -228
  147. package/types/store/initConfigs.d.ts +1 -1
  148. package/types/store/toolbars.d.ts +68 -46
  149. package/types/store/userInfoStore.d.ts +1 -1
  150. package/types/stores/viewerStore.d.ts +112 -0
  151. package/types/types/bcf.d.ts +83 -0
  152. package/types/types/events.d.ts +88 -0
  153. package/types/utils/OSSHelper.d.ts +27 -0
  154. package/types/utils/cacheInfo.d.ts +26 -3
  155. package/types/utils/dbscan.d.ts +1 -0
  156. package/types/utils/eventBus.d.ts +1 -83
  157. package/types/viewerManager/viewerManager.d.ts +53 -3
  158. package/dist/AnnotationTool-CGRte6Cc.mjs +0 -167
  159. package/dist/CommentTool-CT3wFozB.mjs +0 -1529
  160. package/dist/ScreenShotTool-CcUyU0g7.mjs +0 -357
  161. package/dist/SectionTool-DGjjH3JO.mjs +0 -331
  162. package/dist/SettingTool-CjXfbX5r.mjs +0 -657
  163. package/dist/StructureTree-DdRX-y-V.mjs +0 -1583
  164. package/dist/const-DOnRsYpZ.mjs +0 -389
  165. package/dist/el-input-number-CK5d8pzH.mjs +0 -818
  166. package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +0 -22
  167. package/types/components/BimViewerComponents/emptyPage.vue.d.ts +0 -8
  168. package/types/tests/cmt.d.ts +0 -1
@@ -0,0 +1,10 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ visibleTools?: any;
3
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4
+ emitHandler: (...args: any[]) => void;
5
+ }, string, import('vue').PublicProps, Readonly<{
6
+ visibleTools?: any;
7
+ }> & Readonly<{
8
+ onEmitHandler?: ((...args: any[]) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
10
+ export default _default;
@@ -28,5 +28,5 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
28
28
  width: number;
29
29
  panelTitle: string;
30
30
  clickHandle: Function;
31
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
31
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
32
32
  export default _default;
@@ -46,5 +46,5 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
46
46
  sizeType: string;
47
47
  light: boolean;
48
48
  dark: boolean;
49
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
49
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
50
50
  export default _default;
@@ -28,5 +28,5 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
28
28
  width: number;
29
29
  clickHandle: Function;
30
30
  sizeType: string;
31
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
31
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
32
32
  export default _default;
@@ -2,5 +2,5 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
2
2
  title: StringConstructor;
3
3
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
4
4
  title: StringConstructor;
5
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
5
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
6
6
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
2
2
  export default _default;
@@ -1,6 +1,12 @@
1
1
  declare function __VLS_template(): {
2
- default?(_: {}): any;
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: any;
3
8
  };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
4
10
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
11
  panelTitle: {
6
12
  type: StringConstructor;
@@ -32,7 +38,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
32
38
  panelTitle: string;
33
39
  clickHandle: Function;
34
40
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
35
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
41
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
36
42
  export default _default;
37
43
  type __VLS_WithTemplateSlots<T, S> = T & {
38
44
  new (): {
@@ -4,5 +4,5 @@ declare const _default: import('vue').DefineComponent<{
4
4
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
5
5
  text?: any;
6
6
  type?: any;
7
- }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
7
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
8
8
  export default _default;
@@ -100,5 +100,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
100
100
  imgHeight: number;
101
101
  imgUrl: string;
102
102
  imgActiveUrl: string;
103
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
103
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
104
+ buttonRef: HTMLDivElement;
105
+ }, HTMLDivElement>;
104
106
  export default _default;
@@ -1,6 +1,14 @@
1
1
  declare function __VLS_template(): {
2
- default?(_: {}): any;
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {
7
+ tallPanelWrapper: HTMLDivElement;
8
+ };
9
+ rootEl: HTMLDivElement;
3
10
  };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
4
12
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
13
  panelTitle: {
6
14
  type: StringConstructor;
@@ -49,8 +57,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
49
57
  clickHandle: Function;
50
58
  pos: string;
51
59
  setWidth: boolean;
52
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
53
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
60
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
61
+ tallPanelWrapper: HTMLDivElement;
62
+ }, HTMLDivElement>;
63
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
54
64
  export default _default;
55
65
  type __VLS_WithTemplateSlots<T, S> = T & {
56
66
  new (): {
@@ -1,6 +1,14 @@
1
1
  declare function __VLS_template(): {
2
- default?(_: {}): any;
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {
7
+ tallPanelWrapper: HTMLDivElement;
8
+ };
9
+ rootEl: HTMLDivElement;
3
10
  };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
4
12
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
13
  panelTitle: {
6
14
  type: StringConstructor;
@@ -62,8 +70,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
62
70
  head: boolean;
63
71
  pos: string;
64
72
  setWidth: boolean;
65
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
66
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
73
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
74
+ tallPanelWrapper: HTMLDivElement;
75
+ }, HTMLDivElement>;
76
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
67
77
  export default _default;
68
78
  type __VLS_WithTemplateSlots<T, S> = T & {
69
79
  new (): {
@@ -0,0 +1,44 @@
1
+ /**
2
+ * useBimViewerEvent — 安全订阅 bimViewer 引擎事件,自动清理
3
+ *
4
+ * 使用场景:任何组件需要监听 window.bimViewer.eventTrigger 事件时,
5
+ * 替代手写 on("event", handler) + 手动 off() 的模式。
6
+ *
7
+ * 特性:
8
+ * - 自动 onBeforeUnmount 清理,防止内存泄漏(修复 ClickEvent/MouseTool/BimxViewerComp 缺失清理的问题)
9
+ * - 支持延迟订阅(defer: true),等待引擎就绪("BimViewer" 事件)后再注册
10
+ * - 自动处理 window.bimViewer 为 null/undefined 的边界情况
11
+ * - 类型安全的事件订阅封装
12
+ *
13
+ * @example
14
+ * // 直接订阅(引擎已就绪的场景)
15
+ * useBimViewerEvent({
16
+ * event: "pickedEntity",
17
+ * handler: (entity) => { window.bimViewer.setEntitySelected(entity); },
18
+ * });
19
+ *
20
+ * @example
21
+ * // 延迟订阅(等待引擎就绪)
22
+ * useBimViewerEvent({
23
+ * event: "pickedNothing",
24
+ * handler: () => { focus.value = false; },
25
+ * defer: true,
26
+ * });
27
+ */
28
+ export interface BimViewerEventOptions {
29
+ /** bimViewer engine 事件名(如 "pickedEntity" / "pickedNothing" / "metaLoaded") */
30
+ event: string;
31
+ /** 事件处理器,接收引擎传来的原始数据 */
32
+ handler: (data: any) => void;
33
+ /**
34
+ * 是否延迟订阅。
35
+ * true → 不立即订阅,等待 "BimViewer" 事件(引擎就绪)后再订阅
36
+ * false → onMounted 后立即订阅(引擎此时应已就绪)
37
+ * @default false
38
+ */
39
+ defer?: boolean;
40
+ }
41
+ export declare function useBimViewerEvent(options: BimViewerEventOptions): {
42
+ subscribe: () => void;
43
+ unsubscribe: () => void;
44
+ };
@@ -0,0 +1,2 @@
1
+ import { EventContent } from '../utils/eventBus';
2
+ export declare function useEmitHandler(emit: (event: "emitHandler", content: EventContent) => void): (content: EventContent) => void;
@@ -0,0 +1 @@
1
+ export declare function useToolActive(componentId: number): import('vue').Ref<boolean, boolean>;
@@ -0,0 +1 @@
1
+ export declare function useToolReady(componentId: number): void;
@@ -201,6 +201,7 @@ export declare const messages: {
201
201
  language: string;
202
202
  modelViewSwitch: string;
203
203
  zoomSpeed: string;
204
+ outliersDetect: string;
204
205
  colors: {
205
206
  white: string;
206
207
  lightGray: string;
@@ -585,6 +586,7 @@ export declare const messages: {
585
586
  language: string;
586
587
  modelViewSwitch: string;
587
588
  zoomSpeed: string;
589
+ outliersDetect: string;
588
590
  colors: {
589
591
  white: string;
590
592
  lightGray: string;
@@ -975,6 +977,7 @@ export declare const defaultI18nConfig: {
975
977
  language: string;
976
978
  modelViewSwitch: string;
977
979
  zoomSpeed: string;
980
+ outliersDetect: string;
978
981
  colors: {
979
982
  white: string;
980
983
  lightGray: string;
@@ -1359,6 +1362,7 @@ export declare const defaultI18nConfig: {
1359
1362
  language: string;
1360
1363
  modelViewSwitch: string;
1361
1364
  zoomSpeed: string;
1365
+ outliersDetect: string;
1362
1366
  colors: {
1363
1367
  white: string;
1364
1368
  lightGray: string;
@@ -1548,4 +1552,4 @@ export declare const defaultI18nConfig: {
1548
1552
  export declare const setGlobalI18n: (i18n: any) => void;
1549
1553
  export declare const getGlobalI18n: () => any;
1550
1554
  export declare const getI18nTranslate: () => (key: string, ...args: any[]) => any;
1551
- export declare const useBimxI18n: () => (key: string, ...args: any[]) => any;
1555
+ export declare const useBimxI18n: () => ((key: string, ...args: any[]) => string);
@@ -199,6 +199,7 @@ declare const _default: {
199
199
  language: string;
200
200
  modelViewSwitch: string;
201
201
  zoomSpeed: string;
202
+ outliersDetect: string;
202
203
  colors: {
203
204
  white: string;
204
205
  lightGray: string;
@@ -199,6 +199,7 @@ declare const _default: {
199
199
  language: string;
200
200
  modelViewSwitch: string;
201
201
  zoomSpeed: string;
202
+ outliersDetect: string;
202
203
  colors: {
203
204
  white: string;
204
205
  lightGray: string;
@@ -3,7 +3,7 @@ import { NavCubePos, TallPanelPos, ThemeColor, Offset, ToolPos, EditPrivilege }
3
3
  import { BcfContent } from '../store/bcfReflect';
4
4
  import { UserInfo } from '../store/userInfoStore';
5
5
  import { Locale } from '../i18n';
6
- declare const _default: import('vue').DefineComponent<{
6
+ type __VLS_Props = {
7
7
  instruction?: InstructionContent | undefined;
8
8
  fileId?: string;
9
9
  fileName?: string;
@@ -57,63 +57,11 @@ declare const _default: import('vue').DefineComponent<{
57
57
  userInfo?: UserInfo;
58
58
  editPrivilege?: EditPrivilege;
59
59
  locale?: Locale;
60
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
60
+ hideLogo?: boolean;
61
+ };
62
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
61
63
  emitHandler: (...args: any[]) => void;
62
- }, string, import('vue').PublicProps, Readonly<{
63
- instruction?: InstructionContent | undefined;
64
- fileId?: string;
65
- fileName?: string;
66
- filePath?: string;
67
- modelBuffer?: ArrayBuffer;
68
- metaBuffer?: ArrayBuffer;
69
- modelType?: string;
70
- multiModel?: boolean;
71
- filePaths?: string[];
72
- themeColor?: ThemeColor;
73
- topHeight?: number;
74
- bottomHeight?: number;
75
- leftWidth?: number;
76
- rightWidth?: number;
77
- treePos?: TallPanelPos;
78
- inspectorPos?: TallPanelPos;
79
- commentPos?: ToolPos;
80
- annotationPos?: ToolPos;
81
- roamPos?: ToolPos;
82
- navCubePos?: NavCubePos;
83
- navCubeSize?: number;
84
- skyboxImg?: HTMLImageElement;
85
- commentOffset?: Offset;
86
- measureOffset?: Offset;
87
- hideTool?: boolean;
88
- phone?: boolean;
89
- loadMeta?: boolean;
90
- showNavCube?: boolean;
91
- outliersDetect?: boolean;
92
- backButton?: boolean;
93
- backgroundColor?: string;
94
- tree?: boolean;
95
- reset?: boolean;
96
- roam?: boolean;
97
- measure?: boolean;
98
- section?: boolean;
99
- comment?: boolean;
100
- anno?: boolean;
101
- screenshot?: boolean;
102
- inspector?: boolean;
103
- setting?: boolean;
104
- fullscreen?: boolean;
105
- navigate?: boolean;
106
- share?: boolean;
107
- cooperate?: boolean;
108
- hidden?: boolean;
109
- bcf?: boolean;
110
- mouse?: boolean;
111
- enjoy?: boolean;
112
- bcfContent?: BcfContent;
113
- userInfo?: UserInfo;
114
- editPrivilege?: EditPrivilege;
115
- locale?: Locale;
116
- }> & Readonly<{
64
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
117
65
  onEmitHandler?: ((...args: any[]) => any) | undefined;
118
66
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
119
67
  export default _default;
@@ -1,8 +1,9 @@
1
- import { NavCubePos, TallPanelPos, ThemeColor, Offset, ToolPos, EditPrivilege } from '../store/initConfigs';
2
1
  import { InstructionContent } from '../utils/eventBus';
2
+ import { NavCubePos, TallPanelPos, ThemeColor, Offset, ToolPos, EditPrivilege } from '../store/initConfigs';
3
3
  import { BcfContent } from '../store/bcfReflect';
4
4
  import { UserInfo } from '../store/userInfoStore';
5
- declare const _default: import('vue').DefineComponent<{
5
+ import { Locale } from '../i18n';
6
+ type __VLS_Props = {
6
7
  instruction?: InstructionContent | undefined;
7
8
  fileId?: string;
8
9
  fileName?: string;
@@ -55,62 +56,11 @@ declare const _default: import('vue').DefineComponent<{
55
56
  bcfContent?: BcfContent;
56
57
  userInfo?: UserInfo;
57
58
  editPrivilege?: EditPrivilege;
58
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
59
+ locale?: Locale;
60
+ };
61
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
59
62
  emitHandler: (...args: any[]) => void;
60
- }, string, import('vue').PublicProps, Readonly<{
61
- instruction?: InstructionContent | undefined;
62
- fileId?: string;
63
- fileName?: string;
64
- filePath?: string;
65
- modelBuffer?: ArrayBuffer;
66
- metaBuffer?: ArrayBuffer;
67
- modelType?: string;
68
- multiModel?: boolean;
69
- filePaths?: string[];
70
- themeColor?: ThemeColor;
71
- topHeight?: number;
72
- bottomHeight?: number;
73
- leftWidth?: number;
74
- rightWidth?: number;
75
- treePos?: TallPanelPos;
76
- inspectorPos?: TallPanelPos;
77
- commentPos?: ToolPos;
78
- annotationPos?: ToolPos;
79
- roamPos?: ToolPos;
80
- navCubePos?: NavCubePos;
81
- navCubeSize?: number;
82
- skyboxImg?: HTMLImageElement;
83
- commentOffset?: Offset;
84
- measureOffset?: Offset;
85
- hideTool?: boolean;
86
- phone?: boolean;
87
- loadMeta?: boolean;
88
- showNavCube?: boolean;
89
- outliersDetect?: boolean;
90
- backButton?: boolean;
91
- backgroundColor?: string;
92
- tree?: boolean;
93
- reset?: boolean;
94
- roam?: boolean;
95
- measure?: boolean;
96
- section?: boolean;
97
- comment?: boolean;
98
- anno?: boolean;
99
- screenshot?: boolean;
100
- inspector?: boolean;
101
- setting?: boolean;
102
- fullscreen?: boolean;
103
- navigate?: boolean;
104
- share?: boolean;
105
- cooperate?: boolean;
106
- hidden?: boolean;
107
- bcf?: boolean;
108
- mouse?: boolean;
109
- enjoy?: boolean;
110
- bcfContent?: BcfContent;
111
- userInfo?: UserInfo;
112
- editPrivilege?: EditPrivilege;
113
- }> & Readonly<{
63
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
114
64
  onEmitHandler?: ((...args: any[]) => any) | undefined;
115
65
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
116
66
  export default _default;
@@ -1,86 +1,18 @@
1
- import { InputBCFView } from '@xtctwins/tctwins-bimx-viewer/types/src/toolbar/BCFTool';
2
- export type userInfo = {
3
- avatar: string;
4
- createTime: string;
5
- updateTime: any;
6
- email: string;
7
- inviteId: number;
8
- inviteUserName: string;
9
- mobile: string;
10
- role: number;
11
- status: number;
12
- userId: number;
13
- userName: string;
14
- self: boolean;
15
- };
16
- export type BcfContent = {
17
- userId: number;
18
- bcfList: BcfTopicTotal[];
19
- staffList: userInfo[];
20
- };
21
- export type InputComment = {
22
- guid?: string;
23
- date: string;
24
- userId?: number;
25
- author: string | number;
26
- comment: string;
27
- snapshotList?: any[];
28
- modified_author?: string;
29
- modified_date?: string;
30
- viewPoint?: string;
31
- };
32
- export type BcfTopicTotal = {
33
- _id: number;
34
- fileId: number;
35
- userId: number;
36
- guid?: string;
37
- title: string;
38
- author: number | string;
39
- createDate: string;
40
- index: number;
41
- priority?: string;
42
- type?: string;
43
- stage?: string;
44
- status?: string;
45
- labels?: string[] | undefined;
46
- dueDate?: string;
47
- assignedTo?: string | number;
48
- description?: string;
49
- viewPoints?: InputBCFView[];
50
- comments?: InputComment[];
51
- server_assigned_id?: string;
52
- reference_links?: string[] | undefined;
53
- modified_date?: string;
54
- modified_author?: string;
55
- related_topics?: string[] | undefined;
56
- };
57
- export type BcfTopic = {
58
- guid?: string;
59
- title: string;
60
- author: number | string;
61
- createDate: string;
62
- index?: number;
63
- priority?: string;
64
- type?: string;
65
- stage?: string;
66
- status?: string;
67
- labels?: string[] | undefined;
68
- dueDate?: string;
69
- assignedTo?: string | number;
70
- description?: string;
71
- viewPoints?: InputBCFView[];
72
- comments?: InputComment[];
73
- server_assigned_id?: string;
74
- reference_links?: string[] | undefined;
75
- modified_date?: string;
76
- modified_author?: string;
77
- related_topics?: string[] | undefined;
78
- };
1
+ export type { BcfUserInfo as userInfo, BcfContent, BcfInputComment as InputComment, BcfTopicTotal, BcfTopic, } from '../types/bcf';
79
2
  export declare const getPriority: (priority: string) => string;
80
3
  export declare const getPriorityCh: (priority: string) => any;
81
- export declare const getPriorityColor: (priority: string) => "#F54D4D" | "#86B6FF" | "#D5D5D5";
82
- export declare const getPriorityColorMobile: (priority: string) => "#F54D4D" | "#86B6FF" | "#333333";
83
- export declare const getPriorityTextColor: (priority: string) => "#F54D4D" | "#86B6FF" | "#262626";
4
+ /**
5
+ * 获取优先级的归一化颜色
6
+ *
7
+ * @param priority - 优先级值(支持中英文:高/high/High、中/middle/Middle、低/low/Low)
8
+ * @param variant - 颜色变体:"default" 默认面板 / "mobile" 移动端 / "text" 文字颜色
9
+ * @returns 对应的十六进制颜色值
10
+ */
11
+ export declare const getPriorityColor: (priority: string, variant?: "default" | "mobile" | "text") => string;
12
+ /** 移动端优先级颜色(保持向后兼容) */
13
+ export declare const getPriorityColorMobile: (priority: string) => string;
14
+ /** 文字优先级颜色(保持向后兼容) */
15
+ export declare const getPriorityTextColor: (priority: string) => string;
84
16
  export declare const getStageColor: (stage: string) => "#F54D4D" | "#00AF50" | "#959595";
85
17
  export declare const BCFTYPE: () => any[];
86
18
  export declare const BCFPRIORITY: () => any[];
@@ -0,0 +1,66 @@
1
+ export declare const MENU = "menus";
2
+ export declare const TOKEN = "token";
3
+ export declare const IS_FOLD = "isFold";
4
+ export declare const USER_INFO = "userInfo";
5
+ export declare const USER_LIST = "userList";
6
+ export declare const ENTIRE_ROLES = "entireRoles";
7
+ export declare const KEYID = "LTAI4FvDVqNXSTHoAUqXGMfo";
8
+ export declare const CACHE_LOGIN_USER_INFO = "loginUserInfo";
9
+ export declare const KEYSECRET = "6wusVUYf8w9pW8YOJuGhRouYNHLnwY";
10
+ export declare const USER_DEFAULT_AVATAR: string;
11
+ export declare const USER_DEFAULT_POPOVER_AVATAR: string;
12
+ export declare const INVALID_FILENAME: RegExp;
13
+ export declare const TABLIST: ({
14
+ id: number;
15
+ name: string;
16
+ showIcon: boolean;
17
+ type: string;
18
+ active: boolean;
19
+ iconUpActive?: undefined;
20
+ iconDownActive?: undefined;
21
+ } | {
22
+ id: number;
23
+ name: string;
24
+ showIcon: boolean;
25
+ type: string;
26
+ active: boolean;
27
+ iconUpActive: boolean;
28
+ iconDownActive: boolean;
29
+ } | {
30
+ id: number;
31
+ name: string;
32
+ showIcon: boolean;
33
+ type: string;
34
+ active?: undefined;
35
+ iconUpActive?: undefined;
36
+ iconDownActive?: undefined;
37
+ })[];
38
+ export declare const CREATEITEM: {
39
+ projectId: number;
40
+ isCreat: boolean;
41
+ operate: number;
42
+ }[];
43
+ export declare const TABLE_TABS: {
44
+ id: number;
45
+ num: string;
46
+ fileType: string;
47
+ name: string;
48
+ img: string;
49
+ }[];
50
+ export declare const ACCOUNT_APP_ID = "wx74d8c813cb7fd518";
51
+ export declare const CHOOSETYPELIST: {
52
+ id: number;
53
+ name: string;
54
+ data: number[];
55
+ }[];
56
+ export declare const FILETYPE: {
57
+ id: number;
58
+ name: string;
59
+ data: number[];
60
+ }[];
61
+ export declare const CONVERT_STATUS: {
62
+ unconverted: number;
63
+ converting: number;
64
+ convertSuccessful: number;
65
+ convertFailed: number;
66
+ };
@@ -0,0 +1,81 @@
1
+ import { AnnoType } from '../../utils/eventBus';
2
+ export declare const BULK_OPERATION: {
3
+ id: number;
4
+ name: string;
5
+ }[];
6
+ export declare const MEASUREMENT: {
7
+ id: number;
8
+ code: string;
9
+ name: string;
10
+ label: string;
11
+ img: string;
12
+ imgActive: string;
13
+ svg: string;
14
+ svgActive: string;
15
+ }[];
16
+ export declare const LINE_WEIGHT_LIST: {
17
+ id: number;
18
+ size: string;
19
+ }[];
20
+ export declare const TIPS_COLOR: {
21
+ id: number;
22
+ color: string;
23
+ }[];
24
+ export declare const FONT_SIZE_LIST: {
25
+ id: number;
26
+ name: string;
27
+ label: string;
28
+ fontSize: string;
29
+ }[];
30
+ export declare const COMMENT_TOOL_LIST: {
31
+ id: number;
32
+ name: string;
33
+ label: string;
34
+ buttontype: string;
35
+ img: string;
36
+ imgActive: string;
37
+ svg: string;
38
+ svgActive: string;
39
+ isShow: boolean;
40
+ }[];
41
+ export declare const ANNOTATION_LIST: {
42
+ id: number;
43
+ code: AnnoType;
44
+ name: string;
45
+ okType: string;
46
+ img: string;
47
+ img_active: string;
48
+ imgActive: string;
49
+ }[];
50
+ export declare const HIDDEN_LIST: {
51
+ id: number;
52
+ name: string;
53
+ img: string;
54
+ img_active: string;
55
+ }[];
56
+ export declare const SCREEN_LIST: ({
57
+ id: number;
58
+ name: string;
59
+ width: string;
60
+ height: string;
61
+ label?: undefined;
62
+ } | {
63
+ id: number;
64
+ label: string;
65
+ name?: undefined;
66
+ width?: undefined;
67
+ height?: undefined;
68
+ })[];
69
+ export declare const NAVIGATE_LIST: {
70
+ id: number;
71
+ code: string;
72
+ name: string;
73
+ label: string;
74
+ dir_num: number;
75
+ img: string;
76
+ imgActive: string;
77
+ }[];
78
+ export declare const STRUCTURE_TREE_LIST: {
79
+ id: number;
80
+ name: string;
81
+ }[];