@xtctwins/tctwins-bimx-engine 0.2.55 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{alert-C0MgdbKf.mjs → Alert-CSiEPFGt.mjs} +5 -5
- package/dist/{AnnotationTool-CPBZcbp_.mjs → AnnotationTool-CKzHkqWM.mjs} +80 -80
- package/dist/BIMX_Viewer_Lib.es.js +1 -1
- package/dist/BIMX_Viewer_Lib.umd.js +224 -169
- package/dist/{CommentTool-ChVib2Wg.mjs → CommentTool-5HhGDqpg.mjs} +575 -555
- package/dist/{HiddenTool-CilrXe5l.mjs → HiddenTool-BGFoHMWC.mjs} +9 -9
- package/dist/{InspectorTool-BXArGZHO.mjs → InspectorTool-DD3w7k07.mjs} +27 -27
- package/dist/{MeasureTool-DtUiP4t1.mjs → MeasureTool-COR8QLDf.mjs} +118 -94
- package/dist/{MouseTool-2Nxz447f.mjs → MouseTool-OxODcO4X.mjs} +27 -24
- package/dist/{NavigateTool-COsSnxyD.mjs → NavigateTool-Bw6GFzsg.mjs} +5 -5
- package/dist/{panel.vue_vue_type_style_index_0_lang-CN9vybau.mjs → Panel.vue_vue_type_style_index_0_lang-DgM_qGLO.mjs} +4 -4
- package/dist/{RoamTool-CjRywSYn.mjs → RoamTool-X-b0hsmJ.mjs} +7 -7
- package/dist/ScreenShotTool-0xSJZBBw.mjs +430 -0
- package/dist/SectionTool-BqI2Qnk5.mjs +343 -0
- package/dist/SettingTool-CGkRGfZH.mjs +747 -0
- package/dist/StructureTree-CWAXoI0r.mjs +1662 -0
- package/dist/{tallPanel-Ddd7gAie.mjs → TallPanel-CR5vNQ4c.mjs} +8 -8
- package/dist/bimTools-D3TraX9d.mjs +75 -0
- package/dist/el-slider-CBVU9_og.mjs +1040 -0
- package/dist/{index-DTeJ8S3e.mjs → index-CwRGVhoT.mjs} +44953 -46755
- package/dist/style.css +1 -1
- package/package.json +4 -3
- package/types/components/bcf/AddObjectOrAnno.vue.d.ts +16 -0
- package/types/components/bcf/BCFAddPanel.vue.d.ts +55 -0
- package/types/components/bcf/BCFDetailPanel.vue.d.ts +59 -0
- package/types/components/bcf/BCFDisplayList.vue.d.ts +18 -0
- package/types/components/bcf/BCFFilter.vue.d.ts +14 -0
- package/types/components/bcf/BCFTool.vue.d.ts +15 -0
- package/types/components/bcf/CheckObjectPanel.vue.d.ts +11 -0
- package/types/components/bcf/CommentInput.vue.d.ts +51 -0
- package/types/components/bcf/CommentsView.vue.d.ts +48 -0
- package/types/components/bcf/DialogPanel.vue.d.ts +15 -0
- package/types/components/bcf/ImageView.vue.d.ts +17 -0
- package/types/components/bcf/ImageZoomIn.vue.d.ts +9 -0
- package/types/components/bcf/MobileBCFAdd.vue.d.ts +56 -0
- package/types/components/bcf/MobileBCFDetail.vue.d.ts +55 -0
- package/types/components/bcf/MobileBCFDisplayList.vue.d.ts +498 -0
- package/types/components/bcf/MobileBCFFilter.vue.d.ts +475 -0
- package/types/components/bcf/MobileBCFTool.vue.d.ts +17 -0
- package/types/components/bcf/MobileCommentInput.vue.d.ts +54 -0
- package/types/components/bcf/MobileCommentsView.vue.d.ts +17 -0
- package/types/components/bcf/SelectPanel.vue.d.ts +12 -0
- package/types/components/comment/mobile/MobileCommentAdd.vue.d.ts +14 -0
- package/types/components/comment/mobile/MobileDetail.vue.d.ts +11 -0
- package/types/components/comment/mobile/MobileDraw.vue.d.ts +17 -0
- package/types/components/comment/mobile/MobileFilter.vue.d.ts +475 -0
- package/types/components/comment/mobile/MobileList.vue.d.ts +497 -0
- package/types/components/comment/mobile/MobileZoomIn.vue.d.ts +9 -0
- package/types/components/comment/pc/PcDraw.vue.d.ts +14 -0
- package/types/components/shared/Alert.vue.d.ts +32 -0
- package/types/components/shared/CloseButton.vue.d.ts +50 -0
- package/types/components/shared/CloseButtonDark.vue.d.ts +32 -0
- package/types/components/shared/EmptyPage.vue.d.ts +6 -0
- package/types/components/shared/Loading.vue.d.ts +2 -0
- package/types/components/shared/Panel.vue.d.ts +47 -0
- package/types/components/shared/Prompt.vue.d.ts +8 -0
- package/types/components/shared/RectangleButton.vue.d.ts +106 -0
- package/types/components/shared/TallPanel.vue.d.ts +69 -0
- package/types/components/shared/TallPanelNoPos.vue.d.ts +82 -0
- package/types/components/tools/AnnotationTool.vue.d.ts +14 -0
- package/types/components/tools/AppToolbar.vue.d.ts +27 -0
- package/types/components/tools/ClickEvent.vue.d.ts +6 -0
- package/types/components/tools/CommentTool.vue.d.ts +45 -0
- package/types/components/tools/HiddenTool.vue.d.ts +12 -0
- package/types/components/tools/InspectorTool.vue.d.ts +14 -0
- package/types/components/tools/MeasureTool.vue.d.ts +14 -0
- package/types/components/tools/MouseTool.vue.d.ts +6 -0
- package/types/components/tools/NavigateTool.vue.d.ts +10 -0
- package/types/components/tools/RoamTool.vue.d.ts +12 -0
- package/types/components/tools/ScreenShotTool.vue.d.ts +10 -0
- package/types/components/tools/SectionTool.vue.d.ts +14 -0
- package/types/components/tools/SettingTool.vue.d.ts +13 -0
- package/types/components/tools/StructureTree.vue.d.ts +11645 -0
- package/types/components/tools/Toolbar.vue.d.ts +10 -0
- package/types/composables/useBimViewerEvent.d.ts +44 -0
- package/types/composables/useEmitHandler.d.ts +2 -0
- package/types/composables/useToolActive.d.ts +1 -0
- package/types/composables/useToolReady.d.ts +1 -0
- package/types/i18n/index.d.ts +5 -1
- package/types/i18n/locales/en-US.d.ts +1 -0
- package/types/i18n/locales/zh-CN.d.ts +1 -0
- package/types/store/bcfReflect.d.ts +13 -81
- package/types/store/const/app.d.ts +66 -0
- package/types/store/const/bimTools.d.ts +81 -0
- package/types/store/const/project.d.ts +48 -0
- package/types/store/const/theme.d.ts +16 -0
- package/types/store/const/toolbar.d.ts +26 -0
- package/types/store/const.d.ts +11 -228
- package/types/store/toolbars.d.ts +22 -0
- package/types/store/userInfoStore.d.ts +1 -1
- package/types/stores/viewerStore.d.ts +112 -0
- package/types/types/bcf.d.ts +83 -0
- package/types/types/events.d.ts +88 -0
- package/types/utils/OSSHelper.d.ts +27 -0
- package/types/utils/cacheInfo.d.ts +26 -3
- package/types/utils/dbscan.d.ts +1 -0
- package/types/utils/eventBus.d.ts +1 -83
- package/types/viewerManager/viewerManager.d.ts +53 -3
- package/dist/ScreenShotTool-g1dzvqn2.mjs +0 -500
- package/dist/SectionTool-DlnlE6Pv.mjs +0 -331
- package/dist/SettingTool-y_hp2XrJ.mjs +0 -815
- package/dist/StructureTree-CtJ4Yf5_.mjs +0 -1846
- package/dist/const-DOnRsYpZ.mjs +0 -389
- package/dist/el-input-number-BjEspzGk.mjs +0 -1169
package/types/store/const.d.ts
CHANGED
|
@@ -1,228 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export declare const USER_DEFAULT_POPOVER_AVATAR: string;
|
|
13
|
-
export declare const INVALID_FILENAME: RegExp;
|
|
14
|
-
export declare const TABLIST: ({
|
|
15
|
-
id: number;
|
|
16
|
-
name: string;
|
|
17
|
-
showIcon: boolean;
|
|
18
|
-
type: string;
|
|
19
|
-
active: boolean;
|
|
20
|
-
iconUpActive?: undefined;
|
|
21
|
-
iconDownActive?: undefined;
|
|
22
|
-
} | {
|
|
23
|
-
id: number;
|
|
24
|
-
name: string;
|
|
25
|
-
showIcon: boolean;
|
|
26
|
-
type: string;
|
|
27
|
-
active: boolean;
|
|
28
|
-
iconUpActive: boolean;
|
|
29
|
-
iconDownActive: boolean;
|
|
30
|
-
} | {
|
|
31
|
-
id: number;
|
|
32
|
-
name: string;
|
|
33
|
-
showIcon: boolean;
|
|
34
|
-
type: string;
|
|
35
|
-
active?: undefined;
|
|
36
|
-
iconUpActive?: undefined;
|
|
37
|
-
iconDownActive?: undefined;
|
|
38
|
-
})[];
|
|
39
|
-
export declare const CREATEITEM: {
|
|
40
|
-
projectId: number;
|
|
41
|
-
isCreat: boolean;
|
|
42
|
-
operate: number;
|
|
43
|
-
}[];
|
|
44
|
-
export declare const TABLE_TABS: {
|
|
45
|
-
id: number;
|
|
46
|
-
num: string;
|
|
47
|
-
fileType: string;
|
|
48
|
-
name: string;
|
|
49
|
-
img: string;
|
|
50
|
-
}[];
|
|
51
|
-
export declare const ACCOUNT_APP_ID = "wx74d8c813cb7fd518";
|
|
52
|
-
export declare const CHOOSETYPELIST: {
|
|
53
|
-
id: number;
|
|
54
|
-
name: string;
|
|
55
|
-
data: number[];
|
|
56
|
-
}[];
|
|
57
|
-
export declare const FILETYPE: {
|
|
58
|
-
id: number;
|
|
59
|
-
name: string;
|
|
60
|
-
data: number[];
|
|
61
|
-
}[];
|
|
62
|
-
export declare const BULK_OPERATION: {
|
|
63
|
-
id: number;
|
|
64
|
-
name: string;
|
|
65
|
-
}[];
|
|
66
|
-
export declare const ALLOCATION_ROLE_LIST: {
|
|
67
|
-
id: number;
|
|
68
|
-
name: string;
|
|
69
|
-
label: string;
|
|
70
|
-
}[];
|
|
71
|
-
export declare const PROJECT_CHOOSE_TYPE: {
|
|
72
|
-
id: number;
|
|
73
|
-
name: string;
|
|
74
|
-
label: string;
|
|
75
|
-
}[];
|
|
76
|
-
export declare const DIRECTORY_LIST: {
|
|
77
|
-
id: number;
|
|
78
|
-
name: string;
|
|
79
|
-
label: string;
|
|
80
|
-
isShow: boolean;
|
|
81
|
-
color: string;
|
|
82
|
-
}[];
|
|
83
|
-
export declare const CONVERT_STATUS: {
|
|
84
|
-
unconverted: number;
|
|
85
|
-
converting: number;
|
|
86
|
-
convertSuccessful: number;
|
|
87
|
-
convertFailed: number;
|
|
88
|
-
};
|
|
89
|
-
export declare const STRUCTURE_TREE_LIST: {
|
|
90
|
-
id: number;
|
|
91
|
-
name: string;
|
|
92
|
-
}[];
|
|
93
|
-
export declare const MEMBER_BENEFITS: {
|
|
94
|
-
id: number;
|
|
95
|
-
name: string;
|
|
96
|
-
img: string;
|
|
97
|
-
}[];
|
|
98
|
-
export declare const MEMBER_TYPE_LIST: {
|
|
99
|
-
id: number;
|
|
100
|
-
name: string;
|
|
101
|
-
}[];
|
|
102
|
-
export declare const PROVOLEGE_LIST: {
|
|
103
|
-
id: number;
|
|
104
|
-
name: string;
|
|
105
|
-
}[];
|
|
106
|
-
export declare const LINE_WEIGHT_LIST: {
|
|
107
|
-
id: number;
|
|
108
|
-
size: string;
|
|
109
|
-
}[];
|
|
110
|
-
export declare const TIPS_COLOR: {
|
|
111
|
-
id: number;
|
|
112
|
-
color: string;
|
|
113
|
-
}[];
|
|
114
|
-
export declare const FONT_SIZE_LIST: {
|
|
115
|
-
id: number;
|
|
116
|
-
name: string;
|
|
117
|
-
label: string;
|
|
118
|
-
fontSize: string;
|
|
119
|
-
}[];
|
|
120
|
-
export declare const COMMENT_TOOL_LIST: {
|
|
121
|
-
id: number;
|
|
122
|
-
name: string;
|
|
123
|
-
label: string;
|
|
124
|
-
buttontype: string;
|
|
125
|
-
img: string;
|
|
126
|
-
imgActive: string;
|
|
127
|
-
svg: string;
|
|
128
|
-
svgActive: string;
|
|
129
|
-
isShow: boolean;
|
|
130
|
-
}[];
|
|
131
|
-
export declare const TOOL_BAR_LIST: {
|
|
132
|
-
id: number;
|
|
133
|
-
name: string;
|
|
134
|
-
isShowDelimiter: boolean;
|
|
135
|
-
img: string;
|
|
136
|
-
imgActive: string;
|
|
137
|
-
}[];
|
|
138
|
-
export declare const TOOL_BAR_APP_LIST: {
|
|
139
|
-
id: number;
|
|
140
|
-
code: string;
|
|
141
|
-
name: string;
|
|
142
|
-
isShowDelimiter: boolean;
|
|
143
|
-
img: string;
|
|
144
|
-
imgActive: string;
|
|
145
|
-
}[];
|
|
146
|
-
export declare const TOOL_BAR_APP_SHARED_LIST: {
|
|
147
|
-
id: number;
|
|
148
|
-
code: string;
|
|
149
|
-
name: string;
|
|
150
|
-
isShowDelimiter: boolean;
|
|
151
|
-
img: string;
|
|
152
|
-
imgActive: string;
|
|
153
|
-
}[];
|
|
154
|
-
export declare const BG_COLOR_APP_LIST: {
|
|
155
|
-
id: number;
|
|
156
|
-
name: string;
|
|
157
|
-
color: string;
|
|
158
|
-
rgb: number[];
|
|
159
|
-
}[];
|
|
160
|
-
export declare const BG_COLOR_LIST: {
|
|
161
|
-
id: number;
|
|
162
|
-
name: string;
|
|
163
|
-
label: string;
|
|
164
|
-
color: string;
|
|
165
|
-
rgb: number[];
|
|
166
|
-
}[];
|
|
167
|
-
export declare const ENJOY_MEMBER_LIST: {
|
|
168
|
-
id: number;
|
|
169
|
-
name: string;
|
|
170
|
-
label: string;
|
|
171
|
-
}[];
|
|
172
|
-
export declare const VALIDITY_PERIOD_LIST: {
|
|
173
|
-
id: string;
|
|
174
|
-
name: string;
|
|
175
|
-
label: string;
|
|
176
|
-
}[];
|
|
177
|
-
export declare const ROLE_LIST: {
|
|
178
|
-
id: number;
|
|
179
|
-
name: string;
|
|
180
|
-
label: string;
|
|
181
|
-
}[];
|
|
182
|
-
export declare const MEASUREMENT: {
|
|
183
|
-
id: number;
|
|
184
|
-
code: string;
|
|
185
|
-
name: string;
|
|
186
|
-
label: string;
|
|
187
|
-
img: string;
|
|
188
|
-
imgActive: string;
|
|
189
|
-
svg: string;
|
|
190
|
-
svgActive: string;
|
|
191
|
-
}[];
|
|
192
|
-
export declare const SCREEN_LIST: ({
|
|
193
|
-
id: number;
|
|
194
|
-
name: string;
|
|
195
|
-
width: string;
|
|
196
|
-
height: string;
|
|
197
|
-
label?: undefined;
|
|
198
|
-
} | {
|
|
199
|
-
id: number;
|
|
200
|
-
label: string;
|
|
201
|
-
name?: undefined;
|
|
202
|
-
width?: undefined;
|
|
203
|
-
height?: undefined;
|
|
204
|
-
})[];
|
|
205
|
-
export declare const NAVIGATE_LIST: {
|
|
206
|
-
id: number;
|
|
207
|
-
code: string;
|
|
208
|
-
name: string;
|
|
209
|
-
label: string;
|
|
210
|
-
dir_num: number;
|
|
211
|
-
img: string;
|
|
212
|
-
imgActive: string;
|
|
213
|
-
}[];
|
|
214
|
-
export declare const ANNOTATION_LIST: {
|
|
215
|
-
id: number;
|
|
216
|
-
code: AnnoType;
|
|
217
|
-
name: string;
|
|
218
|
-
okType: string;
|
|
219
|
-
img: string;
|
|
220
|
-
img_active: string;
|
|
221
|
-
imgActive: string;
|
|
222
|
-
}[];
|
|
223
|
-
export declare const HIDDEN_LIST: {
|
|
224
|
-
id: number;
|
|
225
|
-
name: string;
|
|
226
|
-
img: string;
|
|
227
|
-
img_active: string;
|
|
228
|
-
}[];
|
|
1
|
+
/**
|
|
2
|
+
* const.ts — 常量桶文件
|
|
3
|
+
*
|
|
4
|
+
* 所有常量已按职责拆分到 const/ 子目录中的独立文件。
|
|
5
|
+
* 本文件统一重导出,保持 `import { ... } from "@/store/const"` 的向后兼容性。
|
|
6
|
+
*/
|
|
7
|
+
export { MENU, TOKEN, IS_FOLD, USER_INFO, USER_LIST, ENTIRE_ROLES, KEYID, CACHE_LOGIN_USER_INFO, KEYSECRET, USER_DEFAULT_AVATAR, USER_DEFAULT_POPOVER_AVATAR, INVALID_FILENAME, TABLIST, CREATEITEM, TABLE_TABS, ACCOUNT_APP_ID, CHOOSETYPELIST, FILETYPE, CONVERT_STATUS, } from './const/app';
|
|
8
|
+
export { ALLOCATION_ROLE_LIST, PROJECT_CHOOSE_TYPE, DIRECTORY_LIST, MEMBER_BENEFITS, MEMBER_TYPE_LIST, PROVOLEGE_LIST, ENJOY_MEMBER_LIST, VALIDITY_PERIOD_LIST, ROLE_LIST, } from './const/project';
|
|
9
|
+
export { BULK_OPERATION, MEASUREMENT, LINE_WEIGHT_LIST, TIPS_COLOR, FONT_SIZE_LIST, COMMENT_TOOL_LIST, ANNOTATION_LIST, HIDDEN_LIST, SCREEN_LIST, NAVIGATE_LIST, STRUCTURE_TREE_LIST, } from './const/bimTools';
|
|
10
|
+
export { TOOL_BAR_LIST, TOOL_BAR_APP_LIST, TOOL_BAR_APP_SHARED_LIST, } from './const/toolbar';
|
|
11
|
+
export { BG_COLOR_APP_LIST, BG_COLOR_LIST, } from './const/theme';
|
|
@@ -841,9 +841,31 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
841
841
|
ifToolAllReady(): boolean;
|
|
842
842
|
setReadyTools(toolIds: number[]): void;
|
|
843
843
|
}>;
|
|
844
|
+
/**
|
|
845
|
+
* 初始化工具栏:关闭所有工具面板、清空就绪和激活状态
|
|
846
|
+
*
|
|
847
|
+
* @remarks 通常在模型加载前或切换模型时调用
|
|
848
|
+
*/
|
|
844
849
|
export declare function InitToolBar(): void;
|
|
845
850
|
export declare let MobileToolOrder: string[];
|
|
846
851
|
export declare let PcToolOrder: string[];
|
|
852
|
+
/**
|
|
853
|
+
* 设置 PC 端工具栏排序
|
|
854
|
+
*
|
|
855
|
+
* @param order - 工具 key 数组,按期望的显示顺序排列
|
|
856
|
+
*/
|
|
847
857
|
export declare function setPcToolOrder(order: string[]): void;
|
|
858
|
+
/**
|
|
859
|
+
* 设置移动端工具栏排序
|
|
860
|
+
*
|
|
861
|
+
* @param order - 工具 key 数组,按期望的显示顺序排列
|
|
862
|
+
*/
|
|
848
863
|
export declare function setMobileToolOrder(order: string[]): void;
|
|
864
|
+
/**
|
|
865
|
+
* 按指定顺序对数组排序
|
|
866
|
+
*
|
|
867
|
+
* @param a - 待排序的 key 数组
|
|
868
|
+
* @param b - 排序依据(所有可能的 key 按期望顺序排列)
|
|
869
|
+
* @returns 排序后的 key 数组(仅包含 b 中存在的元素)
|
|
870
|
+
*/
|
|
849
871
|
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
|
-
|
|
23
|
+
getStaffName: (state: {
|
|
24
24
|
userId: number;
|
|
25
25
|
staffList: any;
|
|
26
26
|
} & import('pinia').PiniaCustomStateProperties<{
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
export declare const useViewerStore: import('pinia').StoreDefinition<"viewer", Pick<{
|
|
2
|
+
viewerInstance: import('vue').Ref<any, any>;
|
|
3
|
+
isReady: import('vue').ComputedRef<boolean>;
|
|
4
|
+
viewerState: import('vue').Ref<{
|
|
5
|
+
measureType: "distance" | "angle";
|
|
6
|
+
}, {
|
|
7
|
+
measureType: "distance" | "angle";
|
|
8
|
+
} | {
|
|
9
|
+
measureType: "distance" | "angle";
|
|
10
|
+
}>;
|
|
11
|
+
entityState: import('vue').Ref<{
|
|
12
|
+
xrayedObjectIds: string[];
|
|
13
|
+
highlightedObjectIds: string[];
|
|
14
|
+
selectedObjectIds: string[];
|
|
15
|
+
visibleObjectIds: string[];
|
|
16
|
+
edgesObjectIds: string[];
|
|
17
|
+
}, {
|
|
18
|
+
xrayedObjectIds: string[];
|
|
19
|
+
highlightedObjectIds: string[];
|
|
20
|
+
selectedObjectIds: string[];
|
|
21
|
+
visibleObjectIds: string[];
|
|
22
|
+
edgesObjectIds: string[];
|
|
23
|
+
} | {
|
|
24
|
+
xrayedObjectIds: string[];
|
|
25
|
+
highlightedObjectIds: string[];
|
|
26
|
+
selectedObjectIds: string[];
|
|
27
|
+
visibleObjectIds: string[];
|
|
28
|
+
edgesObjectIds: string[];
|
|
29
|
+
}>;
|
|
30
|
+
setViewerInstance: (instance: any) => void;
|
|
31
|
+
configViewer: (eventTarget?: string) => void;
|
|
32
|
+
saveViewerState: (content: Record<string, any>) => void;
|
|
33
|
+
setToolActiveById: (id: number, active?: boolean) => void;
|
|
34
|
+
setToolActiveByKey: (key: string, active?: boolean) => void;
|
|
35
|
+
setAllClose: () => void;
|
|
36
|
+
destroyViewer: () => void;
|
|
37
|
+
showRequestBusy: (show: boolean, callback?: Function) => void;
|
|
38
|
+
}, "viewerInstance" | "viewerState" | "entityState">, Pick<{
|
|
39
|
+
viewerInstance: import('vue').Ref<any, any>;
|
|
40
|
+
isReady: import('vue').ComputedRef<boolean>;
|
|
41
|
+
viewerState: import('vue').Ref<{
|
|
42
|
+
measureType: "distance" | "angle";
|
|
43
|
+
}, {
|
|
44
|
+
measureType: "distance" | "angle";
|
|
45
|
+
} | {
|
|
46
|
+
measureType: "distance" | "angle";
|
|
47
|
+
}>;
|
|
48
|
+
entityState: import('vue').Ref<{
|
|
49
|
+
xrayedObjectIds: string[];
|
|
50
|
+
highlightedObjectIds: string[];
|
|
51
|
+
selectedObjectIds: string[];
|
|
52
|
+
visibleObjectIds: string[];
|
|
53
|
+
edgesObjectIds: string[];
|
|
54
|
+
}, {
|
|
55
|
+
xrayedObjectIds: string[];
|
|
56
|
+
highlightedObjectIds: string[];
|
|
57
|
+
selectedObjectIds: string[];
|
|
58
|
+
visibleObjectIds: string[];
|
|
59
|
+
edgesObjectIds: string[];
|
|
60
|
+
} | {
|
|
61
|
+
xrayedObjectIds: string[];
|
|
62
|
+
highlightedObjectIds: string[];
|
|
63
|
+
selectedObjectIds: string[];
|
|
64
|
+
visibleObjectIds: string[];
|
|
65
|
+
edgesObjectIds: string[];
|
|
66
|
+
}>;
|
|
67
|
+
setViewerInstance: (instance: any) => void;
|
|
68
|
+
configViewer: (eventTarget?: string) => void;
|
|
69
|
+
saveViewerState: (content: Record<string, any>) => void;
|
|
70
|
+
setToolActiveById: (id: number, active?: boolean) => void;
|
|
71
|
+
setToolActiveByKey: (key: string, active?: boolean) => void;
|
|
72
|
+
setAllClose: () => void;
|
|
73
|
+
destroyViewer: () => void;
|
|
74
|
+
showRequestBusy: (show: boolean, callback?: Function) => void;
|
|
75
|
+
}, "isReady">, Pick<{
|
|
76
|
+
viewerInstance: import('vue').Ref<any, any>;
|
|
77
|
+
isReady: import('vue').ComputedRef<boolean>;
|
|
78
|
+
viewerState: import('vue').Ref<{
|
|
79
|
+
measureType: "distance" | "angle";
|
|
80
|
+
}, {
|
|
81
|
+
measureType: "distance" | "angle";
|
|
82
|
+
} | {
|
|
83
|
+
measureType: "distance" | "angle";
|
|
84
|
+
}>;
|
|
85
|
+
entityState: import('vue').Ref<{
|
|
86
|
+
xrayedObjectIds: string[];
|
|
87
|
+
highlightedObjectIds: string[];
|
|
88
|
+
selectedObjectIds: string[];
|
|
89
|
+
visibleObjectIds: string[];
|
|
90
|
+
edgesObjectIds: string[];
|
|
91
|
+
}, {
|
|
92
|
+
xrayedObjectIds: string[];
|
|
93
|
+
highlightedObjectIds: string[];
|
|
94
|
+
selectedObjectIds: string[];
|
|
95
|
+
visibleObjectIds: string[];
|
|
96
|
+
edgesObjectIds: string[];
|
|
97
|
+
} | {
|
|
98
|
+
xrayedObjectIds: string[];
|
|
99
|
+
highlightedObjectIds: string[];
|
|
100
|
+
selectedObjectIds: string[];
|
|
101
|
+
visibleObjectIds: string[];
|
|
102
|
+
edgesObjectIds: string[];
|
|
103
|
+
}>;
|
|
104
|
+
setViewerInstance: (instance: any) => void;
|
|
105
|
+
configViewer: (eventTarget?: string) => void;
|
|
106
|
+
saveViewerState: (content: Record<string, any>) => void;
|
|
107
|
+
setToolActiveById: (id: number, active?: boolean) => void;
|
|
108
|
+
setToolActiveByKey: (key: string, active?: boolean) => void;
|
|
109
|
+
setAllClose: () => void;
|
|
110
|
+
destroyViewer: () => void;
|
|
111
|
+
showRequestBusy: (show: boolean, callback?: Function) => void;
|
|
112
|
+
}, "setViewerInstance" | "configViewer" | "saveViewerState" | "setToolActiveById" | "setToolActiveByKey" | "setAllClose" | "destroyViewer" | "showRequestBusy">>;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { InputBCFView } from '@xtctwins/tctwins-bimx-viewer/types/src/toolbar/BCFTool';
|
|
2
|
+
/** BCF 用户信息 */
|
|
3
|
+
export type BcfUserInfo = {
|
|
4
|
+
avatar: string;
|
|
5
|
+
createTime: string;
|
|
6
|
+
updateTime: any;
|
|
7
|
+
email: string;
|
|
8
|
+
inviteId: number;
|
|
9
|
+
inviteUserName: string;
|
|
10
|
+
mobile: string;
|
|
11
|
+
role: number;
|
|
12
|
+
status: number;
|
|
13
|
+
userId: number;
|
|
14
|
+
userName: string;
|
|
15
|
+
self: boolean;
|
|
16
|
+
};
|
|
17
|
+
/** BCF 列表 + 人员信息的组合载荷 */
|
|
18
|
+
export type BcfContent = {
|
|
19
|
+
userId: number;
|
|
20
|
+
bcfList: BcfTopicTotal[];
|
|
21
|
+
staffList: BcfUserInfo[];
|
|
22
|
+
};
|
|
23
|
+
/** BCF 评论输入 */
|
|
24
|
+
export type BcfInputComment = {
|
|
25
|
+
guid?: string;
|
|
26
|
+
date: string;
|
|
27
|
+
userId?: number;
|
|
28
|
+
author: string | number;
|
|
29
|
+
comment: string;
|
|
30
|
+
snapshotList?: any[];
|
|
31
|
+
modified_author?: string;
|
|
32
|
+
modified_date?: string;
|
|
33
|
+
viewPoint?: string;
|
|
34
|
+
};
|
|
35
|
+
/** 服务端返回的完整 BCF 议题 */
|
|
36
|
+
export type BcfTopicTotal = {
|
|
37
|
+
_id: number;
|
|
38
|
+
fileId: number;
|
|
39
|
+
userId: number;
|
|
40
|
+
guid?: string;
|
|
41
|
+
title: string;
|
|
42
|
+
author: number | string;
|
|
43
|
+
createDate: string;
|
|
44
|
+
index: number;
|
|
45
|
+
priority?: string;
|
|
46
|
+
type?: string;
|
|
47
|
+
stage?: string;
|
|
48
|
+
status?: string;
|
|
49
|
+
labels?: string[] | undefined;
|
|
50
|
+
dueDate?: string;
|
|
51
|
+
assignedTo?: string | number;
|
|
52
|
+
description?: string;
|
|
53
|
+
viewPoints?: InputBCFView[];
|
|
54
|
+
comments?: BcfInputComment[];
|
|
55
|
+
server_assigned_id?: string;
|
|
56
|
+
reference_links?: string[] | undefined;
|
|
57
|
+
modified_date?: string;
|
|
58
|
+
modified_author?: string;
|
|
59
|
+
related_topics?: string[] | undefined;
|
|
60
|
+
};
|
|
61
|
+
/** 新创建的 BCF 议题(guid 还没有服务端分配时) */
|
|
62
|
+
export type BcfTopic = {
|
|
63
|
+
guid?: string;
|
|
64
|
+
title: string;
|
|
65
|
+
author: number | string;
|
|
66
|
+
createDate: string;
|
|
67
|
+
index?: number;
|
|
68
|
+
priority?: string;
|
|
69
|
+
type?: string;
|
|
70
|
+
stage?: string;
|
|
71
|
+
status?: string;
|
|
72
|
+
labels?: string[] | undefined;
|
|
73
|
+
dueDate?: string;
|
|
74
|
+
assignedTo?: string | number;
|
|
75
|
+
description?: string;
|
|
76
|
+
viewPoints?: InputBCFView[];
|
|
77
|
+
comments?: BcfInputComment[];
|
|
78
|
+
server_assigned_id?: string;
|
|
79
|
+
reference_links?: string[] | undefined;
|
|
80
|
+
modified_date?: string;
|
|
81
|
+
modified_author?: string;
|
|
82
|
+
related_topics?: string[] | undefined;
|
|
83
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { ComponentName } from '../store/toolbars';
|
|
2
|
+
import { BcfTopic, BcfTopicTotal, BcfInputComment } from './bcf';
|
|
3
|
+
import { ToolDir } from '../store/initConfigs';
|
|
4
|
+
/** 标注附件类型 */
|
|
5
|
+
export type AnnoType = "file" | "image" | "record" | "text" | "video";
|
|
6
|
+
/** 漫游事件类型 */
|
|
7
|
+
export type RoamEvent = "goUp" | "goDown" | "goLeft" | "goRight" | "goForward" | "goBackward" | "stop";
|
|
8
|
+
/** 测量工具类型 */
|
|
9
|
+
export type MeasureTool = "distance" | "angle";
|
|
10
|
+
/**
|
|
11
|
+
* 组件间事件通信的载荷结构
|
|
12
|
+
*
|
|
13
|
+
* @remarks 通过 mitt emitter 发送,event_target 标识事件来源组件,event_name 标识事件名。
|
|
14
|
+
*/
|
|
15
|
+
export type EventContent = {
|
|
16
|
+
/** 是否来自工具(true)还是 UI 组件(false) */
|
|
17
|
+
isTool: boolean;
|
|
18
|
+
/** 触发事件的目标组件 */
|
|
19
|
+
event_target: ComponentName | "BimXViewer" | "ToolBar";
|
|
20
|
+
/** 事件名称 */
|
|
21
|
+
event_name: string;
|
|
22
|
+
/** 事件载荷 */
|
|
23
|
+
content: {
|
|
24
|
+
content?: any;
|
|
25
|
+
id?: any;
|
|
26
|
+
msg?: string;
|
|
27
|
+
code?: 200 | -1;
|
|
28
|
+
item?: any;
|
|
29
|
+
type?: string;
|
|
30
|
+
toolId?: number;
|
|
31
|
+
toolKey?: string;
|
|
32
|
+
color?: string;
|
|
33
|
+
active?: boolean;
|
|
34
|
+
enable?: boolean;
|
|
35
|
+
tool_type?: AnnoType;
|
|
36
|
+
annoId?: string;
|
|
37
|
+
object?: any;
|
|
38
|
+
currentAnnotation?: any;
|
|
39
|
+
rawFile?: any;
|
|
40
|
+
targetAnno?: any;
|
|
41
|
+
status?: string | boolean;
|
|
42
|
+
nodeId?: string | number;
|
|
43
|
+
entityId?: string | number;
|
|
44
|
+
objectId?: string | number;
|
|
45
|
+
viewer_nodeId?: string | number;
|
|
46
|
+
active_tree?: number;
|
|
47
|
+
img_data?: string;
|
|
48
|
+
roam?: RoamEvent;
|
|
49
|
+
newSets?: any;
|
|
50
|
+
newComment?: any;
|
|
51
|
+
direction?: number;
|
|
52
|
+
measureTool?: MeasureTool;
|
|
53
|
+
newMeasure?: any;
|
|
54
|
+
measurePrefer?: any;
|
|
55
|
+
bcf?: BcfTopic | BcfTopicTotal;
|
|
56
|
+
bcfId?: number;
|
|
57
|
+
bcf_guid?: string;
|
|
58
|
+
bcf_cmt?: BcfInputComment;
|
|
59
|
+
bcf_cmt_guid?: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
type InstructionName = "updateCmtList" | "checkCmtDetail" | "newComment" | "updateBcfList" | "checkBcfDetail" | "changeBackgroundColor" | "setNavCube" | "setAnnoStatus" | "lastSetsContent";
|
|
63
|
+
/**
|
|
64
|
+
* 跨组件指令通信结构
|
|
65
|
+
*
|
|
66
|
+
* @remarks 用于父子组件间的指令传递,如更新列表、检查详情等。
|
|
67
|
+
*/
|
|
68
|
+
export type InstructionContent = {
|
|
69
|
+
instruct_name: InstructionName;
|
|
70
|
+
content: {
|
|
71
|
+
code?: any;
|
|
72
|
+
guid?: any;
|
|
73
|
+
msg?: any;
|
|
74
|
+
type?: any;
|
|
75
|
+
active?: boolean;
|
|
76
|
+
color?: string;
|
|
77
|
+
move?: boolean;
|
|
78
|
+
pos?: ToolDir;
|
|
79
|
+
posNum?: number[];
|
|
80
|
+
index?: number;
|
|
81
|
+
cmtList?: any;
|
|
82
|
+
cmtDetail?: any;
|
|
83
|
+
bcfList?: BcfTopicTotal[];
|
|
84
|
+
bcfDetail?: BcfTopicTotal;
|
|
85
|
+
lastSet?: any;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
export {};
|
|
@@ -1,5 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OSSHelper — 阿里云 OSS 文件操作辅助类
|
|
3
|
+
*
|
|
4
|
+
* 提供从 OSS 读取文件、下载 Buffer、获取 JSON 元数据等能力。
|
|
5
|
+
* 内部通过 STS 临时凭证自动创建 OSSClient 实例。
|
|
6
|
+
*/
|
|
1
7
|
export default class OSSHelper {
|
|
8
|
+
/**
|
|
9
|
+
* 从 OSS 获取文件的 ArrayBuffer
|
|
10
|
+
*
|
|
11
|
+
* @param filePath - OSS 文件路径
|
|
12
|
+
* @param done - 成功回调,接收 Buffer 数据
|
|
13
|
+
* @param error - 可选,失败回调
|
|
14
|
+
*/
|
|
2
15
|
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
|
+
*/
|
|
3
24
|
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
|
+
*/
|
|
4
31
|
static downloadFile(filePath: string): Promise<ArrayBuffer>;
|
|
5
32
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
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
|
|
5
10
|
*/
|
|
6
11
|
declare enum StorageType {
|
|
7
12
|
l = "localStorage",
|
|
@@ -9,10 +14,28 @@ declare enum StorageType {
|
|
|
9
14
|
}
|
|
10
15
|
declare class MyStorage {
|
|
11
16
|
storage: Storage;
|
|
17
|
+
/**
|
|
18
|
+
* @param type - StorageType.l 为 localStorage,StorageType.s 为 sessionStorage
|
|
19
|
+
*/
|
|
12
20
|
constructor(type: StorageType);
|
|
21
|
+
/**
|
|
22
|
+
* 写入缓存
|
|
23
|
+
*
|
|
24
|
+
* @param key - 缓存键
|
|
25
|
+
* @param value - 缓存值(会被 JSON.stringify)
|
|
26
|
+
* @param expires - false 永不过期;true 默认 1 小时;number 为秒数
|
|
27
|
+
*/
|
|
13
28
|
set(key: string, value: any, expires?: boolean | number): void;
|
|
29
|
+
/**
|
|
30
|
+
* 读取缓存,过期自动清除并返回 null
|
|
31
|
+
*
|
|
32
|
+
* @param key - 缓存键
|
|
33
|
+
* @returns 缓存值(JSON 解析后),过期或不存在时返回 null
|
|
34
|
+
*/
|
|
14
35
|
get(key: string): any;
|
|
36
|
+
/** 删除指定缓存 */
|
|
15
37
|
remove(key: string): void;
|
|
38
|
+
/** 清空所有缓存 */
|
|
16
39
|
clear(): void;
|
|
17
40
|
}
|
|
18
41
|
declare const LStorage: MyStorage;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function startDBSCAN(modelId: string): void;
|