@xtctwins/tctwins-bimx-engine 0.3.7 → 0.3.9
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/{AnnotationTool-CkIV37UE.mjs → AnnotationTool-BN1cQJZT.mjs} +32 -32
- package/dist/BIMX_Viewer_Lib.es.js +4 -4
- package/dist/BIMX_Viewer_Lib.umd.js +211 -211
- package/dist/{CameraViewTool-DeYagyPC.mjs → CameraViewTool-DoHrCSBa.mjs} +36 -36
- package/dist/{CommentTool-C1JukDRV.mjs → CommentTool-DzpiIRq5.mjs} +137 -137
- package/dist/{HiddenTool-CKIjuVdE.mjs → HiddenTool-DKl-Td4d.mjs} +14 -14
- package/dist/{InspectorTool-DqCIiob9.mjs → InspectorTool-ButMlfJZ.mjs} +12 -12
- package/dist/{MeasureTool-IHXJjZNc.mjs → MeasureTool-HA7KurNk.mjs} +57 -57
- package/dist/{MouseTool-C6IbMsSE.mjs → MouseTool-Cx7FUkja.mjs} +12 -12
- package/dist/{NavigateTool-DSBy4FZy.mjs → NavigateTool-CHspxjfw.mjs} +3 -3
- package/dist/{RoamTool-CvVZdDiz.mjs → RoamTool-CvErAJ4s.mjs} +15 -15
- package/dist/ScreenShotTool-BKFYnVZ5.mjs +430 -0
- package/dist/{SectionTool-BinUb4wa.mjs → SectionTool-Dc_qndpy.mjs} +60 -60
- package/dist/SettingTool-BYVwI27m.mjs +695 -0
- package/dist/StructureTree-CNrEg0TP.mjs +1686 -0
- package/dist/{alert-CWKghdMc.mjs → alert-BE0cXifr.mjs} +6 -6
- package/dist/el-slider-D_kA0TiT.mjs +1059 -0
- package/dist/{index-B9qL5nx5.mjs → index-s9bhlFsR.mjs} +63680 -62167
- package/dist/{panel.vue_vue_type_style_index_0_lang-D7G9bR05.mjs → panel.vue_vue_type_style_index_0_lang-D0m8xJuR.mjs} +1 -1
- package/dist/style.css +3 -3
- package/dist/{tallPanel-CHmr0WiN.mjs → tallPanel-C_lzWM4i.mjs} +10 -10
- package/package.json +11 -3
- package/types/App.vue.d.ts +3 -1
- package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +38 -10
- package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +37 -9
- package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +5 -7
- package/types/components/BCFComponents/BCFFilter.vue.d.ts +5 -7
- package/types/components/BCFComponents/BCFTool.vue.d.ts +4 -7
- package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +5 -7
- package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +5 -6
- package/types/components/BCFComponents/commentInput.vue.d.ts +36 -10
- package/types/components/BCFComponents/commentsView.vue.d.ts +36 -7
- package/types/components/BCFComponents/dialogPanel.vue.d.ts +5 -8
- package/types/components/BCFComponents/imageView.vue.d.ts +5 -7
- package/types/components/BCFComponents/imageZoomIn.vue.d.ts +5 -6
- package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/AppToolbar.vue.d.ts +18 -1
- package/types/components/BimViewerComponents/CameraViewTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/CommentTool.vue.d.ts +32 -1
- package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/MobileCommentsTool/add.vue.d.ts +6 -8
- package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +4 -5
- package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +2 -2
- package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +270 -1
- package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +291 -7
- package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +5 -6
- package/types/components/BimViewerComponents/MouseTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/PCCommentTool/pcdraw.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/RoamTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/SettingTool.vue.d.ts +4 -6
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +11642 -1
- package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
- package/types/components/BimxViewerComp.vue.d.ts +7 -25
- package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +37 -10
- package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +37 -9
- package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +291 -7
- package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +270 -1
- package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +5 -8
- package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +38 -12
- package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +7 -9
- package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +5 -7
- package/types/components/utilsComponents/alert.vue.d.ts +1 -1
- package/types/components/utilsComponents/closeButton.vue.d.ts +1 -1
- package/types/components/utilsComponents/closeButton_dark.vue.d.ts +1 -1
- package/types/components/utilsComponents/emptyPage.vue.d.ts +1 -1
- package/types/components/utilsComponents/loading.vue.d.ts +1 -1
- package/types/components/utilsComponents/panel.vue.d.ts +8 -2
- package/types/components/utilsComponents/prompt.vue.d.ts +1 -1
- package/types/components/utilsComponents/rectangleButton.vue.d.ts +3 -1
- package/types/components/utilsComponents/tallPanel.vue.d.ts +13 -3
- package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +13 -3
- package/types/pages/BimxViewerEntry.vue.d.ts +4 -67
- package/types/store/toolbars.d.ts +50 -50
- package/types/utils/OSSHelper.d.ts +0 -2
- package/types/viewerManager/load/loadModel.d.ts +0 -83
- package/dist/ScreenShotTool-DdIU0vQg.mjs +0 -357
- package/dist/SettingTool-Bm2OgXES.mjs +0 -657
- package/dist/StructureTree-CPDEM-gp.mjs +0 -1583
- package/dist/el-input-number-DXVRwG5u.mjs +0 -818
- package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +0 -22
- package/types/components/BimViewerComponents/emptyPage.vue.d.ts +0 -8
- package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +0 -10
- package/types/components/bimxViewer.vue.d.ts +0 -27
- package/types/pages/viewerEntry.vue.d.ts +0 -116
- package/types/tests/cmt.d.ts +0 -1
|
@@ -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
|
-
|
|
6
|
+
type __VLS_Props = {
|
|
7
7
|
instruction?: InstructionContent | undefined;
|
|
8
8
|
fileId?: string;
|
|
9
9
|
fileName?: string;
|
|
@@ -14,10 +14,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
14
14
|
multiModel?: boolean;
|
|
15
15
|
filePaths?: string[];
|
|
16
16
|
modelIds?: string[];
|
|
17
|
-
/** 多模型是否顺序加载:true 等待每个模型加载完成再加载下一个;false 按 loadInterval 毫秒间隔依次发起,默认 true */
|
|
18
|
-
loadSequential?: boolean;
|
|
19
|
-
/** 非顺序加载时发起下一个模型的间隔毫秒数,默认 200 */
|
|
20
|
-
loadInterval?: number;
|
|
21
17
|
themeColor?: ThemeColor;
|
|
22
18
|
topHeight?: number;
|
|
23
19
|
bottomHeight?: number;
|
|
@@ -63,69 +59,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
63
59
|
userInfo?: UserInfo;
|
|
64
60
|
editPrivilege?: EditPrivilege;
|
|
65
61
|
locale?: Locale;
|
|
66
|
-
}
|
|
62
|
+
};
|
|
63
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
67
64
|
emitHandler: (...args: any[]) => void;
|
|
68
|
-
}, string, import('vue').PublicProps, Readonly<{
|
|
69
|
-
instruction?: InstructionContent | undefined;
|
|
70
|
-
fileId?: string;
|
|
71
|
-
fileName?: string;
|
|
72
|
-
filePath?: string;
|
|
73
|
-
modelBuffer?: ArrayBuffer;
|
|
74
|
-
metaBuffer?: ArrayBuffer;
|
|
75
|
-
modelType?: string;
|
|
76
|
-
multiModel?: boolean;
|
|
77
|
-
filePaths?: string[];
|
|
78
|
-
modelIds?: string[];
|
|
79
|
-
/** 多模型是否顺序加载:true 等待每个模型加载完成再加载下一个;false 按 loadInterval 毫秒间隔依次发起,默认 true */
|
|
80
|
-
loadSequential?: boolean;
|
|
81
|
-
/** 非顺序加载时发起下一个模型的间隔毫秒数,默认 200 */
|
|
82
|
-
loadInterval?: number;
|
|
83
|
-
themeColor?: ThemeColor;
|
|
84
|
-
topHeight?: number;
|
|
85
|
-
bottomHeight?: number;
|
|
86
|
-
leftWidth?: number;
|
|
87
|
-
rightWidth?: number;
|
|
88
|
-
treePos?: TallPanelPos;
|
|
89
|
-
inspectorPos?: TallPanelPos;
|
|
90
|
-
commentPos?: ToolPos;
|
|
91
|
-
annotationPos?: ToolPos;
|
|
92
|
-
roamPos?: ToolPos;
|
|
93
|
-
navCubePos?: NavCubePos;
|
|
94
|
-
navCubeSize?: number;
|
|
95
|
-
skyboxImg?: HTMLImageElement;
|
|
96
|
-
commentOffset?: Offset;
|
|
97
|
-
measureOffset?: Offset;
|
|
98
|
-
hideTool?: boolean;
|
|
99
|
-
phone?: boolean;
|
|
100
|
-
loadMeta?: boolean;
|
|
101
|
-
showNavCube?: boolean;
|
|
102
|
-
outliersDetect?: boolean;
|
|
103
|
-
backButton?: boolean;
|
|
104
|
-
backgroundColor?: string;
|
|
105
|
-
tree?: boolean;
|
|
106
|
-
reset?: boolean;
|
|
107
|
-
roam?: boolean;
|
|
108
|
-
cameraView?: boolean;
|
|
109
|
-
measure?: boolean;
|
|
110
|
-
section?: boolean;
|
|
111
|
-
comment?: boolean;
|
|
112
|
-
anno?: boolean;
|
|
113
|
-
screenshot?: boolean;
|
|
114
|
-
inspector?: boolean;
|
|
115
|
-
setting?: boolean;
|
|
116
|
-
fullscreen?: boolean;
|
|
117
|
-
navigate?: boolean;
|
|
118
|
-
share?: boolean;
|
|
119
|
-
cooperate?: boolean;
|
|
120
|
-
hidden?: boolean;
|
|
121
|
-
bcf?: boolean;
|
|
122
|
-
mouse?: boolean;
|
|
123
|
-
enjoy?: boolean;
|
|
124
|
-
bcfContent?: BcfContent;
|
|
125
|
-
userInfo?: UserInfo;
|
|
126
|
-
editPrivilege?: EditPrivilege;
|
|
127
|
-
locale?: Locale;
|
|
128
|
-
}> & Readonly<{
|
|
65
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
129
66
|
onEmitHandler?: ((...args: any[]) => any) | undefined;
|
|
130
67
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
131
68
|
export default _default;
|
|
@@ -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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
231
|
+
position?: 0 | 1 | 2 | undefined;
|
|
232
232
|
}[];
|
|
233
233
|
visibleToolIds: number[];
|
|
234
234
|
readyToolIds: number[];
|
|
@@ -251,7 +251,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
251
251
|
img: string;
|
|
252
252
|
imgActive: string;
|
|
253
253
|
isActive: boolean;
|
|
254
|
-
position?:
|
|
254
|
+
position?: 0 | 1 | 2 | undefined;
|
|
255
255
|
}[];
|
|
256
256
|
mTools: {
|
|
257
257
|
id: number;
|
|
@@ -263,7 +263,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
263
263
|
img: string;
|
|
264
264
|
imgActive: string;
|
|
265
265
|
isActive: boolean;
|
|
266
|
-
position?:
|
|
266
|
+
position?: 0 | 1 | 2 | undefined;
|
|
267
267
|
}[];
|
|
268
268
|
visibleToolIds: number[];
|
|
269
269
|
readyToolIds: number[];
|
|
@@ -286,7 +286,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
286
286
|
img: string;
|
|
287
287
|
imgActive: string;
|
|
288
288
|
isActive: boolean;
|
|
289
|
-
position?:
|
|
289
|
+
position?: 0 | 1 | 2 | undefined;
|
|
290
290
|
}[];
|
|
291
291
|
mTools: {
|
|
292
292
|
id: number;
|
|
@@ -298,7 +298,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
298
298
|
img: string;
|
|
299
299
|
imgActive: string;
|
|
300
300
|
isActive: boolean;
|
|
301
|
-
position?:
|
|
301
|
+
position?: 0 | 1 | 2 | undefined;
|
|
302
302
|
}[];
|
|
303
303
|
visibleToolIds: number[];
|
|
304
304
|
readyToolIds: number[];
|
|
@@ -321,7 +321,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
321
321
|
img: string;
|
|
322
322
|
imgActive: string;
|
|
323
323
|
isActive: boolean;
|
|
324
|
-
position?:
|
|
324
|
+
position?: 0 | 1 | 2 | undefined;
|
|
325
325
|
}[];
|
|
326
326
|
mTools: {
|
|
327
327
|
id: number;
|
|
@@ -333,7 +333,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
333
333
|
img: string;
|
|
334
334
|
imgActive: string;
|
|
335
335
|
isActive: boolean;
|
|
336
|
-
position?:
|
|
336
|
+
position?: 0 | 1 | 2 | undefined;
|
|
337
337
|
}[];
|
|
338
338
|
visibleToolIds: number[];
|
|
339
339
|
readyToolIds: number[];
|
|
@@ -356,7 +356,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
356
356
|
img: string;
|
|
357
357
|
imgActive: string;
|
|
358
358
|
isActive: boolean;
|
|
359
|
-
position?:
|
|
359
|
+
position?: 0 | 1 | 2 | undefined;
|
|
360
360
|
}[];
|
|
361
361
|
mTools: {
|
|
362
362
|
id: number;
|
|
@@ -368,7 +368,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
368
368
|
img: string;
|
|
369
369
|
imgActive: string;
|
|
370
370
|
isActive: boolean;
|
|
371
|
-
position?:
|
|
371
|
+
position?: 0 | 1 | 2 | undefined;
|
|
372
372
|
}[];
|
|
373
373
|
visibleToolIds: number[];
|
|
374
374
|
readyToolIds: number[];
|
|
@@ -391,7 +391,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
391
391
|
img: string;
|
|
392
392
|
imgActive: string;
|
|
393
393
|
isActive: boolean;
|
|
394
|
-
position?:
|
|
394
|
+
position?: 0 | 1 | 2 | undefined;
|
|
395
395
|
}[];
|
|
396
396
|
mTools: {
|
|
397
397
|
id: number;
|
|
@@ -403,7 +403,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
403
403
|
img: string;
|
|
404
404
|
imgActive: string;
|
|
405
405
|
isActive: boolean;
|
|
406
|
-
position?:
|
|
406
|
+
position?: 0 | 1 | 2 | undefined;
|
|
407
407
|
}[];
|
|
408
408
|
visibleToolIds: number[];
|
|
409
409
|
readyToolIds: number[];
|
|
@@ -426,7 +426,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
426
426
|
img: string;
|
|
427
427
|
imgActive: string;
|
|
428
428
|
isActive: boolean;
|
|
429
|
-
position?:
|
|
429
|
+
position?: 0 | 1 | 2 | undefined;
|
|
430
430
|
}[];
|
|
431
431
|
mTools: {
|
|
432
432
|
id: number;
|
|
@@ -438,7 +438,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
438
438
|
img: string;
|
|
439
439
|
imgActive: string;
|
|
440
440
|
isActive: boolean;
|
|
441
|
-
position?:
|
|
441
|
+
position?: 0 | 1 | 2 | undefined;
|
|
442
442
|
}[];
|
|
443
443
|
visibleToolIds: number[];
|
|
444
444
|
readyToolIds: number[];
|
|
@@ -480,7 +480,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
480
480
|
img: string;
|
|
481
481
|
imgActive: string;
|
|
482
482
|
isActive: boolean;
|
|
483
|
-
position?:
|
|
483
|
+
position?: 0 | 1 | 2 | undefined;
|
|
484
484
|
}[];
|
|
485
485
|
mTools: {
|
|
486
486
|
id: number;
|
|
@@ -492,7 +492,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
492
492
|
img: string;
|
|
493
493
|
imgActive: string;
|
|
494
494
|
isActive: boolean;
|
|
495
|
-
position?:
|
|
495
|
+
position?: 0 | 1 | 2 | undefined;
|
|
496
496
|
}[];
|
|
497
497
|
visibleToolIds: number[];
|
|
498
498
|
readyToolIds: number[];
|
|
@@ -512,7 +512,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
512
512
|
img: string;
|
|
513
513
|
imgActive: string;
|
|
514
514
|
isActive: boolean;
|
|
515
|
-
position?:
|
|
515
|
+
position?: 0 | 1 | 2 | undefined;
|
|
516
516
|
}[];
|
|
517
517
|
visibleTools: (state: {
|
|
518
518
|
isPc: boolean;
|
|
@@ -526,7 +526,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
526
526
|
img: string;
|
|
527
527
|
imgActive: string;
|
|
528
528
|
isActive: boolean;
|
|
529
|
-
position?:
|
|
529
|
+
position?: 0 | 1 | 2 | undefined;
|
|
530
530
|
}[];
|
|
531
531
|
mTools: {
|
|
532
532
|
id: number;
|
|
@@ -538,7 +538,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
538
538
|
img: string;
|
|
539
539
|
imgActive: string;
|
|
540
540
|
isActive: boolean;
|
|
541
|
-
position?:
|
|
541
|
+
position?: 0 | 1 | 2 | undefined;
|
|
542
542
|
}[];
|
|
543
543
|
visibleToolIds: number[];
|
|
544
544
|
readyToolIds: number[];
|
|
@@ -561,7 +561,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
561
561
|
img: string;
|
|
562
562
|
imgActive: string;
|
|
563
563
|
isActive: boolean;
|
|
564
|
-
position?:
|
|
564
|
+
position?: 0 | 1 | 2 | undefined;
|
|
565
565
|
}[];
|
|
566
566
|
mTools: {
|
|
567
567
|
id: number;
|
|
@@ -573,7 +573,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
573
573
|
img: string;
|
|
574
574
|
imgActive: string;
|
|
575
575
|
isActive: boolean;
|
|
576
|
-
position?:
|
|
576
|
+
position?: 0 | 1 | 2 | undefined;
|
|
577
577
|
}[];
|
|
578
578
|
visibleToolIds: number[];
|
|
579
579
|
readyToolIds: number[];
|
|
@@ -596,7 +596,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
596
596
|
img: string;
|
|
597
597
|
imgActive: string;
|
|
598
598
|
isActive: boolean;
|
|
599
|
-
position?:
|
|
599
|
+
position?: 0 | 1 | 2 | undefined;
|
|
600
600
|
}[];
|
|
601
601
|
mTools: {
|
|
602
602
|
id: number;
|
|
@@ -608,7 +608,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
608
608
|
img: string;
|
|
609
609
|
imgActive: string;
|
|
610
610
|
isActive: boolean;
|
|
611
|
-
position?:
|
|
611
|
+
position?: 0 | 1 | 2 | undefined;
|
|
612
612
|
}[];
|
|
613
613
|
visibleToolIds: number[];
|
|
614
614
|
readyToolIds: number[];
|
|
@@ -631,7 +631,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
631
631
|
img: string;
|
|
632
632
|
imgActive: string;
|
|
633
633
|
isActive: boolean;
|
|
634
|
-
position?:
|
|
634
|
+
position?: 0 | 1 | 2 | undefined;
|
|
635
635
|
}[];
|
|
636
636
|
mTools: {
|
|
637
637
|
id: number;
|
|
@@ -643,7 +643,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
643
643
|
img: string;
|
|
644
644
|
imgActive: string;
|
|
645
645
|
isActive: boolean;
|
|
646
|
-
position?:
|
|
646
|
+
position?: 0 | 1 | 2 | undefined;
|
|
647
647
|
}[];
|
|
648
648
|
visibleToolIds: number[];
|
|
649
649
|
readyToolIds: number[];
|
|
@@ -666,7 +666,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
666
666
|
img: string;
|
|
667
667
|
imgActive: string;
|
|
668
668
|
isActive: boolean;
|
|
669
|
-
position?:
|
|
669
|
+
position?: 0 | 1 | 2 | undefined;
|
|
670
670
|
}[];
|
|
671
671
|
mTools: {
|
|
672
672
|
id: number;
|
|
@@ -678,7 +678,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
678
678
|
img: string;
|
|
679
679
|
imgActive: string;
|
|
680
680
|
isActive: boolean;
|
|
681
|
-
position?:
|
|
681
|
+
position?: 0 | 1 | 2 | undefined;
|
|
682
682
|
}[];
|
|
683
683
|
visibleToolIds: number[];
|
|
684
684
|
readyToolIds: number[];
|
|
@@ -701,7 +701,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
701
701
|
img: string;
|
|
702
702
|
imgActive: string;
|
|
703
703
|
isActive: boolean;
|
|
704
|
-
position?:
|
|
704
|
+
position?: 0 | 1 | 2 | undefined;
|
|
705
705
|
}[];
|
|
706
706
|
mTools: {
|
|
707
707
|
id: number;
|
|
@@ -713,7 +713,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
713
713
|
img: string;
|
|
714
714
|
imgActive: string;
|
|
715
715
|
isActive: boolean;
|
|
716
|
-
position?:
|
|
716
|
+
position?: 0 | 1 | 2 | undefined;
|
|
717
717
|
}[];
|
|
718
718
|
visibleToolIds: number[];
|
|
719
719
|
readyToolIds: number[];
|
|
@@ -736,7 +736,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
736
736
|
img: string;
|
|
737
737
|
imgActive: string;
|
|
738
738
|
isActive: boolean;
|
|
739
|
-
position?:
|
|
739
|
+
position?: 0 | 1 | 2 | undefined;
|
|
740
740
|
}[];
|
|
741
741
|
mTools: {
|
|
742
742
|
id: number;
|
|
@@ -748,7 +748,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
748
748
|
img: string;
|
|
749
749
|
imgActive: string;
|
|
750
750
|
isActive: boolean;
|
|
751
|
-
position?:
|
|
751
|
+
position?: 0 | 1 | 2 | undefined;
|
|
752
752
|
}[];
|
|
753
753
|
visibleToolIds: number[];
|
|
754
754
|
readyToolIds: number[];
|
|
@@ -771,7 +771,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
771
771
|
img: string;
|
|
772
772
|
imgActive: string;
|
|
773
773
|
isActive: boolean;
|
|
774
|
-
position?:
|
|
774
|
+
position?: 0 | 1 | 2 | undefined;
|
|
775
775
|
}[];
|
|
776
776
|
mTools: {
|
|
777
777
|
id: number;
|
|
@@ -783,7 +783,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
783
783
|
img: string;
|
|
784
784
|
imgActive: string;
|
|
785
785
|
isActive: boolean;
|
|
786
|
-
position?:
|
|
786
|
+
position?: 0 | 1 | 2 | undefined;
|
|
787
787
|
}[];
|
|
788
788
|
visibleToolIds: number[];
|
|
789
789
|
readyToolIds: number[];
|
|
@@ -806,7 +806,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
806
806
|
img: string;
|
|
807
807
|
imgActive: string;
|
|
808
808
|
isActive: boolean;
|
|
809
|
-
position?:
|
|
809
|
+
position?: 0 | 1 | 2 | undefined;
|
|
810
810
|
}[];
|
|
811
811
|
mTools: {
|
|
812
812
|
id: number;
|
|
@@ -818,7 +818,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
818
818
|
img: string;
|
|
819
819
|
imgActive: string;
|
|
820
820
|
isActive: boolean;
|
|
821
|
-
position?:
|
|
821
|
+
position?: 0 | 1 | 2 | undefined;
|
|
822
822
|
}[];
|
|
823
823
|
visibleToolIds: number[];
|
|
824
824
|
readyToolIds: number[];
|
|
@@ -841,7 +841,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
841
841
|
img: string;
|
|
842
842
|
imgActive: string;
|
|
843
843
|
isActive: boolean;
|
|
844
|
-
position?:
|
|
844
|
+
position?: 0 | 1 | 2 | undefined;
|
|
845
845
|
}[];
|
|
846
846
|
mTools: {
|
|
847
847
|
id: number;
|
|
@@ -853,7 +853,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
853
853
|
img: string;
|
|
854
854
|
imgActive: string;
|
|
855
855
|
isActive: boolean;
|
|
856
|
-
position?:
|
|
856
|
+
position?: 0 | 1 | 2 | undefined;
|
|
857
857
|
}[];
|
|
858
858
|
visibleToolIds: number[];
|
|
859
859
|
readyToolIds: number[];
|
|
@@ -876,7 +876,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
876
876
|
img: string;
|
|
877
877
|
imgActive: string;
|
|
878
878
|
isActive: boolean;
|
|
879
|
-
position?:
|
|
879
|
+
position?: 0 | 1 | 2 | undefined;
|
|
880
880
|
}[];
|
|
881
881
|
mTools: {
|
|
882
882
|
id: number;
|
|
@@ -888,7 +888,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
888
888
|
img: string;
|
|
889
889
|
imgActive: string;
|
|
890
890
|
isActive: boolean;
|
|
891
|
-
position?:
|
|
891
|
+
position?: 0 | 1 | 2 | undefined;
|
|
892
892
|
}[];
|
|
893
893
|
visibleToolIds: number[];
|
|
894
894
|
readyToolIds: number[];
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export default class OSSHelper {
|
|
2
2
|
static getBuffer(filePath: string, done: Function, error?: Function): Promise<void>;
|
|
3
|
-
/** 下载单个文件并返回 ArrayBuffer(Promise 风格,便于并发) */
|
|
4
|
-
static fetchBuffer(filePath: string): Promise<ArrayBuffer>;
|
|
5
3
|
static requestFileFromOSS(filePath: string, isFile: boolean, done: Function, error: Function): Promise<void>;
|
|
6
4
|
static downloadFile(filePath: string): Promise<ArrayBuffer>;
|
|
7
5
|
}
|
|
@@ -1,32 +1,3 @@
|
|
|
1
|
-
export interface ModelLoadResult {
|
|
2
|
-
code: 200 | -1;
|
|
3
|
-
result: string;
|
|
4
|
-
msg?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface ModelLoadItem {
|
|
7
|
-
/** 模型 ID;为空时由 filePath 推导 */
|
|
8
|
-
modelId?: string;
|
|
9
|
-
/** 下载来源路径(http 完整地址 或 OSS 相对地址),为空表示直接使用 buffer */
|
|
10
|
-
filePath?: string;
|
|
11
|
-
/** 已下载好的模型二进制(filePath 为空时必填) */
|
|
12
|
-
buffer?: ArrayBuffer;
|
|
13
|
-
/** 已就绪的 meta 二进制(可选) */
|
|
14
|
-
metaBuffer?: ArrayBuffer;
|
|
15
|
-
/** 透传引擎 cfg:{ position, scale, rotation, matrix, origin, brightness, ... } */
|
|
16
|
-
options?: Record<string, any>;
|
|
17
|
-
}
|
|
18
|
-
export interface ModelLoaderConfig {
|
|
19
|
-
/** 模型类型(xtc / glb / ifc),默认 xtc */
|
|
20
|
-
modelType?: string;
|
|
21
|
-
/** 是否加载 meta(.xts);不传则运行时取 getConfig("loadMeta") */
|
|
22
|
-
loadMeta?: boolean;
|
|
23
|
-
/** 事件回调:modelLoaded / metaLoading / metaLoaded */
|
|
24
|
-
emit?: (event_name: string, content: any) => void;
|
|
25
|
-
/** 多模型是否顺序加载:true 等待每个模型加载完成再加载下一个;false 按 loadInterval 间隔依次发起,默认 true */
|
|
26
|
-
sequential?: boolean;
|
|
27
|
-
/** 非顺序加载时,发起下一个模型的间隔毫秒数,默认 200 */
|
|
28
|
-
loadInterval?: number;
|
|
29
|
-
}
|
|
30
1
|
/**
|
|
31
2
|
* BIMX 模型加载
|
|
32
3
|
* @param modelId 模型 ID
|
|
@@ -38,57 +9,3 @@ export interface ModelLoaderConfig {
|
|
|
38
9
|
* - position / rotation / scale / origin / alignTo: 多模型坐标对齐参数
|
|
39
10
|
*/
|
|
40
11
|
export default function viewerLoadModel(modelId: string, modelType: string, modelArrayBuffer: ArrayBuffer, callback?: Function, options?: Record<string, any>): void;
|
|
41
|
-
/**
|
|
42
|
-
* 模型加载器:统一封装「下载 -> 引擎加载 -> meta 加载」。
|
|
43
|
-
*
|
|
44
|
-
* 相比逐模型串行「下载-加载」,这里会:
|
|
45
|
-
* - 多模型时先并发下载全部模型 + meta,再串行交给引擎(消除模型间的网络间隔);
|
|
46
|
-
* - 单文件(model + meta)也是并发下载;
|
|
47
|
-
* - OSS STS client 在 OSSHelper 内缓存复用,不再每个文件都申请一次凭证。
|
|
48
|
-
*/
|
|
49
|
-
export declare class ModelLoader {
|
|
50
|
-
private modelType;
|
|
51
|
-
private loadMetaOverride?;
|
|
52
|
-
private emit;
|
|
53
|
-
/** 多模型是否顺序加载(默认 true) */
|
|
54
|
-
private sequential;
|
|
55
|
-
/** 非顺序加载的发起间隔(毫秒,默认 200) */
|
|
56
|
-
private loadInterval;
|
|
57
|
-
private metaBuffer?;
|
|
58
|
-
private metaReady;
|
|
59
|
-
private metaEventsBound;
|
|
60
|
-
private pendingMetaModel?;
|
|
61
|
-
constructor(config?: ModelLoaderConfig);
|
|
62
|
-
/** 运行时判断是否加载 meta(跟随 config,避免 setup 阶段 getConfig 尚未就绪) */
|
|
63
|
-
private getLoadMeta;
|
|
64
|
-
/** viewer 销毁/重建时重置内部 meta 状态 */
|
|
65
|
-
reset(): void;
|
|
66
|
-
/** 外部传入已就绪的 meta buffer(单模型外部 buffer 场景,可能晚于模型到达) */
|
|
67
|
-
setMetaBuffer(buffer?: ArrayBuffer): void;
|
|
68
|
-
/** 下载单个文件(http 直连 / OSS),返回 Promise<ArrayBuffer> */
|
|
69
|
-
private fetch;
|
|
70
|
-
/** 模型主体下载路径:http 直接用原地址;OSS 补上 .xtc 等类型后缀 */
|
|
71
|
-
private downloadModelPath;
|
|
72
|
-
/** 加载单个已就绪 buffer 的模型到引擎,模型成功后自动处理 meta */
|
|
73
|
-
loadSingle(modelId: string, buffer: ArrayBuffer, metaBuffer?: ArrayBuffer, options?: Record<string, any>): Promise<ModelLoadResult>;
|
|
74
|
-
/** 引擎模型加载成功后处理 meta:可用则立即加载,否则挂起等 setMetaBuffer */
|
|
75
|
-
private handleMetaAfterModelLoad;
|
|
76
|
-
private loadMetadata;
|
|
77
|
-
/** 绑定引擎 meta 事件(只绑一次),转发给 emit */
|
|
78
|
-
private bindMetaEvents;
|
|
79
|
-
/** 按路径加载单个模型:并发下载 model + meta,下载完再引擎加载 */
|
|
80
|
-
loadFromPath(modelId: string, filePath: string, options?: Record<string, any>): Promise<ModelLoadResult | undefined>;
|
|
81
|
-
/** 下载 meta(.xts);失败不阻断主流程 */
|
|
82
|
-
private downloadMeta;
|
|
83
|
-
/**
|
|
84
|
-
* 多模型加载:先并发下载全部模型(含 meta),再交给引擎加载。
|
|
85
|
-
*
|
|
86
|
-
* 引擎加载调度由 config.sequential 决定:
|
|
87
|
-
* - sequential=true(默认):等待每个模型加载完成后再加载下一个(原循环方式);
|
|
88
|
-
* - sequential=false:不等每个模型加载完成,按 loadInterval 毫秒间隔依次发起下一个。
|
|
89
|
-
* @returns 每个模型的加载结果
|
|
90
|
-
*/
|
|
91
|
-
loadMulti(items: ModelLoadItem[]): Promise<ModelLoadResult[]>;
|
|
92
|
-
/** 延迟指定毫秒数 */
|
|
93
|
-
private sleep;
|
|
94
|
-
}
|