@xtctwins/tctwins-bimx-engine 0.3.15 → 0.3.16
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/01.xtc +0 -0
- package/dist/02.xtc +0 -0
- package/dist/03.xtc +0 -0
- package/dist/{AnnotationTool-B6og2Glz.mjs → AnnotationTool-nASKNjgr.mjs} +19 -19
- package/dist/BIMX_Viewer_Lib.es.js +6 -6
- package/dist/BIMX_Viewer_Lib.umd.js +166 -216
- package/dist/{CameraViewTool-DHsH_nT2.mjs → CameraViewTool-DhAfiKWu.mjs} +31 -31
- package/dist/{CommentTool-FNv2gMNk.mjs → CommentTool-a-BELMsU.mjs} +189 -189
- package/dist/{HiddenTool-BDSk2sdn.mjs → HiddenTool-CqWfECbU.mjs} +13 -13
- package/dist/{InspectorTool-1sTEP0Ws.mjs → InspectorTool-x0VVNWza.mjs} +12 -12
- package/dist/{MeasureTool-GbBIX0Yk.mjs → MeasureTool-DznYUEiR.mjs} +120 -120
- package/dist/{MouseTool-BteU7vCT.mjs → MouseTool-D8x8R2Hl.mjs} +8 -8
- package/dist/{NavigateTool-BG3JKhQg.mjs → NavigateTool-D16vm_Ng.mjs} +8 -8
- package/dist/{OperateTool-D3gf6bCT.mjs → OperateTool-_E-8qp5I.mjs} +38 -38
- package/dist/{RoamTool-V9vWQIDB.mjs → RoamTool-ClbGAw0m.mjs} +15 -15
- package/dist/ScreenShotTool-BLHWBbYl.mjs +356 -0
- package/dist/{SectionTool-DMFA7ztx.mjs → SectionTool-BduU5qr3.mjs} +70 -70
- package/dist/SettingTool-Dd-fS2IZ.mjs +1508 -0
- package/dist/StructureTree-Byfx-R9w.mjs +1582 -0
- package/dist/{alert-CbVefMZQ.mjs → alert-GVU1wFz1.mjs} +5 -5
- package/dist/{index-DpV5VBf5.mjs → index-CdBeaeTl.mjs} +55562 -58943
- package/dist/{panel.vue_vue_type_style_index_0_lang-CcDA1fsF.mjs → panel.vue_vue_type_style_index_0_lang-BsP4zr2g.mjs} +1 -1
- package/dist/style.css +3 -3
- package/dist/{tallPanel-Br-fRsqc.mjs → tallPanel-B5pNGD_G.mjs} +10 -10
- package/package.json +2 -2
- package/types/App.vue.d.ts +1 -3
- package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +10 -38
- package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +22 -0
- package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +9 -37
- package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +7 -5
- package/types/components/BCFComponents/BCFFilter.vue.d.ts +7 -5
- package/types/components/BCFComponents/BCFTool.vue.d.ts +7 -4
- package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +7 -5
- package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +6 -5
- package/types/components/BCFComponents/commentInput.vue.d.ts +10 -36
- package/types/components/BCFComponents/commentsView.vue.d.ts +7 -36
- package/types/components/BCFComponents/dialogPanel.vue.d.ts +8 -5
- package/types/components/BCFComponents/imageView.vue.d.ts +7 -5
- package/types/components/BCFComponents/imageZoomIn.vue.d.ts +6 -5
- package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/AppToolbar.vue.d.ts +1 -18
- 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 +1 -32
- package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/MobileCommentsTool/add.vue.d.ts +8 -6
- package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +5 -4
- package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +2 -2
- package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +1 -270
- package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +7 -291
- package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +6 -5
- 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 +6 -4
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +1 -11642
- package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/emptyPage.vue.d.ts +8 -0
- package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +10 -0
- package/types/components/BimxViewerComp.vue.d.ts +23 -7
- package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +10 -37
- package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +9 -37
- package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +7 -291
- package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +1 -270
- package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +8 -5
- package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +12 -38
- package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +9 -7
- package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +7 -5
- package/types/components/bimxViewer.vue.d.ts +27 -0
- 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 +2 -8
- package/types/components/utilsComponents/prompt.vue.d.ts +1 -1
- package/types/components/utilsComponents/rectangleButton.vue.d.ts +1 -3
- package/types/components/utilsComponents/tallPanel.vue.d.ts +3 -13
- package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +3 -13
- package/types/i18n/index.d.ts +16 -0
- package/types/i18n/locales/en-US.d.ts +4 -0
- package/types/i18n/locales/zh-CN.d.ts +4 -0
- package/types/pages/BimxViewerEntry.vue.d.ts +66 -4
- package/types/pages/viewerEntry.vue.d.ts +116 -0
- package/types/store/toolbars.d.ts +50 -50
- package/types/tests/cmt.d.ts +1 -0
- package/types/viewerManager/load/loadModel.d.ts +28 -6
- package/types/viewerManager/sectionManager.d.ts +25 -25
- package/dist/ScreenShotTool-DwZpoH2C.mjs +0 -429
- package/dist/SettingTool-dR6DkE24.mjs +0 -1787
- package/dist/StructureTree-w9pdtGNu.mjs +0 -1685
|
@@ -31,7 +31,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
31
31
|
img: string;
|
|
32
32
|
imgActive: string;
|
|
33
33
|
isActive: boolean;
|
|
34
|
-
position?: 0 | 1 | 2 | undefined;
|
|
34
|
+
position?: (0 | 1 | 2) | undefined;
|
|
35
35
|
}[];
|
|
36
36
|
mTools: {
|
|
37
37
|
id: number;
|
|
@@ -43,7 +43,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
43
43
|
img: string;
|
|
44
44
|
imgActive: string;
|
|
45
45
|
isActive: boolean;
|
|
46
|
-
position?: 0 | 1 | 2 | undefined;
|
|
46
|
+
position?: (0 | 1 | 2) | undefined;
|
|
47
47
|
}[];
|
|
48
48
|
visibleToolIds: number[];
|
|
49
49
|
readyToolIds: number[];
|
|
@@ -65,7 +65,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
65
65
|
img: string;
|
|
66
66
|
imgActive: string;
|
|
67
67
|
isActive: boolean;
|
|
68
|
-
position?: 0 | 1 | 2 | undefined;
|
|
68
|
+
position?: (0 | 1 | 2) | undefined;
|
|
69
69
|
}[];
|
|
70
70
|
visibleTools: (state: {
|
|
71
71
|
isPc: boolean;
|
|
@@ -79,7 +79,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
79
79
|
img: string;
|
|
80
80
|
imgActive: string;
|
|
81
81
|
isActive: boolean;
|
|
82
|
-
position?: 0 | 1 | 2 | undefined;
|
|
82
|
+
position?: (0 | 1 | 2) | undefined;
|
|
83
83
|
}[];
|
|
84
84
|
mTools: {
|
|
85
85
|
id: number;
|
|
@@ -91,7 +91,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
91
91
|
img: string;
|
|
92
92
|
imgActive: string;
|
|
93
93
|
isActive: boolean;
|
|
94
|
-
position?: 0 | 1 | 2 | undefined;
|
|
94
|
+
position?: (0 | 1 | 2) | undefined;
|
|
95
95
|
}[];
|
|
96
96
|
visibleToolIds: number[];
|
|
97
97
|
readyToolIds: number[];
|
|
@@ -116,7 +116,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
116
116
|
img: string;
|
|
117
117
|
imgActive: string;
|
|
118
118
|
isActive: boolean;
|
|
119
|
-
position?: 0 | 1 | 2 | undefined;
|
|
119
|
+
position?: (0 | 1 | 2) | undefined;
|
|
120
120
|
}[];
|
|
121
121
|
mTools: {
|
|
122
122
|
id: number;
|
|
@@ -128,7 +128,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
128
128
|
img: string;
|
|
129
129
|
imgActive: string;
|
|
130
130
|
isActive: boolean;
|
|
131
|
-
position?: 0 | 1 | 2 | undefined;
|
|
131
|
+
position?: (0 | 1 | 2) | undefined;
|
|
132
132
|
}[];
|
|
133
133
|
visibleToolIds: number[];
|
|
134
134
|
readyToolIds: number[];
|
|
@@ -153,7 +153,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
153
153
|
img: string;
|
|
154
154
|
imgActive: string;
|
|
155
155
|
isActive: boolean;
|
|
156
|
-
position?: 0 | 1 | 2 | undefined;
|
|
156
|
+
position?: (0 | 1 | 2) | undefined;
|
|
157
157
|
}[];
|
|
158
158
|
mTools: {
|
|
159
159
|
id: number;
|
|
@@ -165,7 +165,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
165
165
|
img: string;
|
|
166
166
|
imgActive: string;
|
|
167
167
|
isActive: boolean;
|
|
168
|
-
position?: 0 | 1 | 2 | undefined;
|
|
168
|
+
position?: (0 | 1 | 2) | undefined;
|
|
169
169
|
}[];
|
|
170
170
|
visibleToolIds: number[];
|
|
171
171
|
readyToolIds: number[];
|
|
@@ -190,7 +190,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
190
190
|
img: string;
|
|
191
191
|
imgActive: string;
|
|
192
192
|
isActive: boolean;
|
|
193
|
-
position?: 0 | 1 | 2 | undefined;
|
|
193
|
+
position?: (0 | 1 | 2) | undefined;
|
|
194
194
|
}[];
|
|
195
195
|
mTools: {
|
|
196
196
|
id: number;
|
|
@@ -202,7 +202,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
202
202
|
img: string;
|
|
203
203
|
imgActive: string;
|
|
204
204
|
isActive: boolean;
|
|
205
|
-
position?: 0 | 1 | 2 | undefined;
|
|
205
|
+
position?: (0 | 1 | 2) | undefined;
|
|
206
206
|
}[];
|
|
207
207
|
visibleToolIds: number[];
|
|
208
208
|
readyToolIds: number[];
|
|
@@ -227,7 +227,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
227
227
|
img: string;
|
|
228
228
|
imgActive: string;
|
|
229
229
|
isActive: boolean;
|
|
230
|
-
position?: 0 | 1 | 2 | undefined;
|
|
230
|
+
position?: (0 | 1 | 2) | undefined;
|
|
231
231
|
}[];
|
|
232
232
|
mTools: {
|
|
233
233
|
id: number;
|
|
@@ -239,7 +239,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
239
239
|
img: string;
|
|
240
240
|
imgActive: string;
|
|
241
241
|
isActive: boolean;
|
|
242
|
-
position?: 0 | 1 | 2 | undefined;
|
|
242
|
+
position?: (0 | 1 | 2) | undefined;
|
|
243
243
|
}[];
|
|
244
244
|
visibleToolIds: number[];
|
|
245
245
|
readyToolIds: number[];
|
|
@@ -264,7 +264,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
264
264
|
img: string;
|
|
265
265
|
imgActive: string;
|
|
266
266
|
isActive: boolean;
|
|
267
|
-
position?: 0 | 1 | 2 | undefined;
|
|
267
|
+
position?: (0 | 1 | 2) | undefined;
|
|
268
268
|
}[];
|
|
269
269
|
mTools: {
|
|
270
270
|
id: number;
|
|
@@ -276,7 +276,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
276
276
|
img: string;
|
|
277
277
|
imgActive: string;
|
|
278
278
|
isActive: boolean;
|
|
279
|
-
position?: 0 | 1 | 2 | undefined;
|
|
279
|
+
position?: (0 | 1 | 2) | undefined;
|
|
280
280
|
}[];
|
|
281
281
|
visibleToolIds: number[];
|
|
282
282
|
readyToolIds: number[];
|
|
@@ -301,7 +301,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
301
301
|
img: string;
|
|
302
302
|
imgActive: string;
|
|
303
303
|
isActive: boolean;
|
|
304
|
-
position?: 0 | 1 | 2 | undefined;
|
|
304
|
+
position?: (0 | 1 | 2) | undefined;
|
|
305
305
|
}[];
|
|
306
306
|
mTools: {
|
|
307
307
|
id: number;
|
|
@@ -313,7 +313,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
313
313
|
img: string;
|
|
314
314
|
imgActive: string;
|
|
315
315
|
isActive: boolean;
|
|
316
|
-
position?: 0 | 1 | 2 | undefined;
|
|
316
|
+
position?: (0 | 1 | 2) | undefined;
|
|
317
317
|
}[];
|
|
318
318
|
visibleToolIds: number[];
|
|
319
319
|
readyToolIds: number[];
|
|
@@ -338,7 +338,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
338
338
|
img: string;
|
|
339
339
|
imgActive: string;
|
|
340
340
|
isActive: boolean;
|
|
341
|
-
position?: 0 | 1 | 2 | undefined;
|
|
341
|
+
position?: (0 | 1 | 2) | undefined;
|
|
342
342
|
}[];
|
|
343
343
|
mTools: {
|
|
344
344
|
id: number;
|
|
@@ -350,7 +350,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
350
350
|
img: string;
|
|
351
351
|
imgActive: string;
|
|
352
352
|
isActive: boolean;
|
|
353
|
-
position?: 0 | 1 | 2 | undefined;
|
|
353
|
+
position?: (0 | 1 | 2) | undefined;
|
|
354
354
|
}[];
|
|
355
355
|
visibleToolIds: number[];
|
|
356
356
|
readyToolIds: number[];
|
|
@@ -375,7 +375,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
375
375
|
img: string;
|
|
376
376
|
imgActive: string;
|
|
377
377
|
isActive: boolean;
|
|
378
|
-
position?: 0 | 1 | 2 | undefined;
|
|
378
|
+
position?: (0 | 1 | 2) | undefined;
|
|
379
379
|
}[];
|
|
380
380
|
mTools: {
|
|
381
381
|
id: number;
|
|
@@ -387,7 +387,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
387
387
|
img: string;
|
|
388
388
|
imgActive: string;
|
|
389
389
|
isActive: boolean;
|
|
390
|
-
position?: 0 | 1 | 2 | undefined;
|
|
390
|
+
position?: (0 | 1 | 2) | undefined;
|
|
391
391
|
}[];
|
|
392
392
|
visibleToolIds: number[];
|
|
393
393
|
readyToolIds: number[];
|
|
@@ -412,7 +412,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
412
412
|
img: string;
|
|
413
413
|
imgActive: string;
|
|
414
414
|
isActive: boolean;
|
|
415
|
-
position?: 0 | 1 | 2 | undefined;
|
|
415
|
+
position?: (0 | 1 | 2) | undefined;
|
|
416
416
|
}[];
|
|
417
417
|
mTools: {
|
|
418
418
|
id: number;
|
|
@@ -424,7 +424,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
424
424
|
img: string;
|
|
425
425
|
imgActive: string;
|
|
426
426
|
isActive: boolean;
|
|
427
|
-
position?: 0 | 1 | 2 | undefined;
|
|
427
|
+
position?: (0 | 1 | 2) | undefined;
|
|
428
428
|
}[];
|
|
429
429
|
visibleToolIds: number[];
|
|
430
430
|
readyToolIds: number[];
|
|
@@ -449,7 +449,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
449
449
|
img: string;
|
|
450
450
|
imgActive: string;
|
|
451
451
|
isActive: boolean;
|
|
452
|
-
position?: 0 | 1 | 2 | undefined;
|
|
452
|
+
position?: (0 | 1 | 2) | undefined;
|
|
453
453
|
}[];
|
|
454
454
|
mTools: {
|
|
455
455
|
id: number;
|
|
@@ -461,7 +461,7 @@ export declare const useToolbarStore: import('pinia').StoreDefinition<"toolbar",
|
|
|
461
461
|
img: string;
|
|
462
462
|
imgActive: string;
|
|
463
463
|
isActive: boolean;
|
|
464
|
-
position?: 0 | 1 | 2 | undefined;
|
|
464
|
+
position?: (0 | 1 | 2) | undefined;
|
|
465
465
|
}[];
|
|
466
466
|
visibleToolIds: number[];
|
|
467
467
|
readyToolIds: number[];
|
|
@@ -507,7 +507,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
507
507
|
img: string;
|
|
508
508
|
imgActive: string;
|
|
509
509
|
isActive: boolean;
|
|
510
|
-
position?: 0 | 1 | 2 | undefined;
|
|
510
|
+
position?: (0 | 1 | 2) | undefined;
|
|
511
511
|
}[];
|
|
512
512
|
mTools: {
|
|
513
513
|
id: number;
|
|
@@ -519,7 +519,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
519
519
|
img: string;
|
|
520
520
|
imgActive: string;
|
|
521
521
|
isActive: boolean;
|
|
522
|
-
position?: 0 | 1 | 2 | undefined;
|
|
522
|
+
position?: (0 | 1 | 2) | undefined;
|
|
523
523
|
}[];
|
|
524
524
|
visibleToolIds: number[];
|
|
525
525
|
readyToolIds: number[];
|
|
@@ -541,7 +541,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
541
541
|
img: string;
|
|
542
542
|
imgActive: string;
|
|
543
543
|
isActive: boolean;
|
|
544
|
-
position?: 0 | 1 | 2 | undefined;
|
|
544
|
+
position?: (0 | 1 | 2) | undefined;
|
|
545
545
|
}[];
|
|
546
546
|
visibleTools: (state: {
|
|
547
547
|
isPc: boolean;
|
|
@@ -555,7 +555,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
555
555
|
img: string;
|
|
556
556
|
imgActive: string;
|
|
557
557
|
isActive: boolean;
|
|
558
|
-
position?: 0 | 1 | 2 | undefined;
|
|
558
|
+
position?: (0 | 1 | 2) | undefined;
|
|
559
559
|
}[];
|
|
560
560
|
mTools: {
|
|
561
561
|
id: number;
|
|
@@ -567,7 +567,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
567
567
|
img: string;
|
|
568
568
|
imgActive: string;
|
|
569
569
|
isActive: boolean;
|
|
570
|
-
position?: 0 | 1 | 2 | undefined;
|
|
570
|
+
position?: (0 | 1 | 2) | undefined;
|
|
571
571
|
}[];
|
|
572
572
|
visibleToolIds: number[];
|
|
573
573
|
readyToolIds: number[];
|
|
@@ -592,7 +592,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
592
592
|
img: string;
|
|
593
593
|
imgActive: string;
|
|
594
594
|
isActive: boolean;
|
|
595
|
-
position?: 0 | 1 | 2 | undefined;
|
|
595
|
+
position?: (0 | 1 | 2) | undefined;
|
|
596
596
|
}[];
|
|
597
597
|
mTools: {
|
|
598
598
|
id: number;
|
|
@@ -604,7 +604,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
604
604
|
img: string;
|
|
605
605
|
imgActive: string;
|
|
606
606
|
isActive: boolean;
|
|
607
|
-
position?: 0 | 1 | 2 | undefined;
|
|
607
|
+
position?: (0 | 1 | 2) | undefined;
|
|
608
608
|
}[];
|
|
609
609
|
visibleToolIds: number[];
|
|
610
610
|
readyToolIds: number[];
|
|
@@ -629,7 +629,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
629
629
|
img: string;
|
|
630
630
|
imgActive: string;
|
|
631
631
|
isActive: boolean;
|
|
632
|
-
position?: 0 | 1 | 2 | undefined;
|
|
632
|
+
position?: (0 | 1 | 2) | undefined;
|
|
633
633
|
}[];
|
|
634
634
|
mTools: {
|
|
635
635
|
id: number;
|
|
@@ -641,7 +641,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
641
641
|
img: string;
|
|
642
642
|
imgActive: string;
|
|
643
643
|
isActive: boolean;
|
|
644
|
-
position?: 0 | 1 | 2 | undefined;
|
|
644
|
+
position?: (0 | 1 | 2) | undefined;
|
|
645
645
|
}[];
|
|
646
646
|
visibleToolIds: number[];
|
|
647
647
|
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?: 0 | 1 | 2 | undefined;
|
|
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?: 0 | 1 | 2 | undefined;
|
|
681
|
+
position?: (0 | 1 | 2) | undefined;
|
|
682
682
|
}[];
|
|
683
683
|
visibleToolIds: number[];
|
|
684
684
|
readyToolIds: number[];
|
|
@@ -703,7 +703,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
703
703
|
img: string;
|
|
704
704
|
imgActive: string;
|
|
705
705
|
isActive: boolean;
|
|
706
|
-
position?: 0 | 1 | 2 | undefined;
|
|
706
|
+
position?: (0 | 1 | 2) | undefined;
|
|
707
707
|
}[];
|
|
708
708
|
mTools: {
|
|
709
709
|
id: number;
|
|
@@ -715,7 +715,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
715
715
|
img: string;
|
|
716
716
|
imgActive: string;
|
|
717
717
|
isActive: boolean;
|
|
718
|
-
position?: 0 | 1 | 2 | undefined;
|
|
718
|
+
position?: (0 | 1 | 2) | undefined;
|
|
719
719
|
}[];
|
|
720
720
|
visibleToolIds: number[];
|
|
721
721
|
readyToolIds: number[];
|
|
@@ -740,7 +740,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
740
740
|
img: string;
|
|
741
741
|
imgActive: string;
|
|
742
742
|
isActive: boolean;
|
|
743
|
-
position?: 0 | 1 | 2 | undefined;
|
|
743
|
+
position?: (0 | 1 | 2) | undefined;
|
|
744
744
|
}[];
|
|
745
745
|
mTools: {
|
|
746
746
|
id: number;
|
|
@@ -752,7 +752,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
752
752
|
img: string;
|
|
753
753
|
imgActive: string;
|
|
754
754
|
isActive: boolean;
|
|
755
|
-
position?: 0 | 1 | 2 | undefined;
|
|
755
|
+
position?: (0 | 1 | 2) | undefined;
|
|
756
756
|
}[];
|
|
757
757
|
visibleToolIds: number[];
|
|
758
758
|
readyToolIds: number[];
|
|
@@ -777,7 +777,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
777
777
|
img: string;
|
|
778
778
|
imgActive: string;
|
|
779
779
|
isActive: boolean;
|
|
780
|
-
position?: 0 | 1 | 2 | undefined;
|
|
780
|
+
position?: (0 | 1 | 2) | undefined;
|
|
781
781
|
}[];
|
|
782
782
|
mTools: {
|
|
783
783
|
id: number;
|
|
@@ -789,7 +789,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
789
789
|
img: string;
|
|
790
790
|
imgActive: string;
|
|
791
791
|
isActive: boolean;
|
|
792
|
-
position?: 0 | 1 | 2 | undefined;
|
|
792
|
+
position?: (0 | 1 | 2) | undefined;
|
|
793
793
|
}[];
|
|
794
794
|
visibleToolIds: number[];
|
|
795
795
|
readyToolIds: number[];
|
|
@@ -814,7 +814,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
814
814
|
img: string;
|
|
815
815
|
imgActive: string;
|
|
816
816
|
isActive: boolean;
|
|
817
|
-
position?: 0 | 1 | 2 | undefined;
|
|
817
|
+
position?: (0 | 1 | 2) | undefined;
|
|
818
818
|
}[];
|
|
819
819
|
mTools: {
|
|
820
820
|
id: number;
|
|
@@ -826,7 +826,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
826
826
|
img: string;
|
|
827
827
|
imgActive: string;
|
|
828
828
|
isActive: boolean;
|
|
829
|
-
position?: 0 | 1 | 2 | undefined;
|
|
829
|
+
position?: (0 | 1 | 2) | undefined;
|
|
830
830
|
}[];
|
|
831
831
|
visibleToolIds: number[];
|
|
832
832
|
readyToolIds: number[];
|
|
@@ -851,7 +851,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
851
851
|
img: string;
|
|
852
852
|
imgActive: string;
|
|
853
853
|
isActive: boolean;
|
|
854
|
-
position?: 0 | 1 | 2 | undefined;
|
|
854
|
+
position?: (0 | 1 | 2) | undefined;
|
|
855
855
|
}[];
|
|
856
856
|
mTools: {
|
|
857
857
|
id: number;
|
|
@@ -863,7 +863,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
863
863
|
img: string;
|
|
864
864
|
imgActive: string;
|
|
865
865
|
isActive: boolean;
|
|
866
|
-
position?: 0 | 1 | 2 | undefined;
|
|
866
|
+
position?: (0 | 1 | 2) | undefined;
|
|
867
867
|
}[];
|
|
868
868
|
visibleToolIds: number[];
|
|
869
869
|
readyToolIds: 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?: 0 | 1 | 2 | undefined;
|
|
891
|
+
position?: (0 | 1 | 2) | undefined;
|
|
892
892
|
}[];
|
|
893
893
|
mTools: {
|
|
894
894
|
id: number;
|
|
@@ -900,7 +900,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
900
900
|
img: string;
|
|
901
901
|
imgActive: string;
|
|
902
902
|
isActive: boolean;
|
|
903
|
-
position?: 0 | 1 | 2 | undefined;
|
|
903
|
+
position?: (0 | 1 | 2) | undefined;
|
|
904
904
|
}[];
|
|
905
905
|
visibleToolIds: number[];
|
|
906
906
|
readyToolIds: number[];
|
|
@@ -925,7 +925,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
925
925
|
img: string;
|
|
926
926
|
imgActive: string;
|
|
927
927
|
isActive: boolean;
|
|
928
|
-
position?: 0 | 1 | 2 | undefined;
|
|
928
|
+
position?: (0 | 1 | 2) | undefined;
|
|
929
929
|
}[];
|
|
930
930
|
mTools: {
|
|
931
931
|
id: number;
|
|
@@ -937,7 +937,7 @@ export declare function getToolbarStore(): import('pinia').Store<"toolbar", {
|
|
|
937
937
|
img: string;
|
|
938
938
|
imgActive: string;
|
|
939
939
|
isActive: boolean;
|
|
940
|
-
position?: 0 | 1 | 2 | undefined;
|
|
940
|
+
position?: (0 | 1 | 2) | undefined;
|
|
941
941
|
}[];
|
|
942
942
|
visibleToolIds: number[];
|
|
943
943
|
readyToolIds: number[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -58,8 +58,12 @@ export interface ModelLoaderConfig {
|
|
|
58
58
|
* @param options 附加加载参数,透传给接口层 BIMXViewer.loadModel 的 cfg:
|
|
59
59
|
* - brightness: 该模型的颜色亮度系数(1.0 原始,>1 提亮,<1 变暗),如 { brightness: 1.5 }
|
|
60
60
|
* - position / rotation / scale / origin / alignTo: 多模型坐标对齐参数
|
|
61
|
+
* @param onEngineLoadStart 引擎真正开始载入模型(调用 window.bimViewer.loadModel)时触发,
|
|
62
|
+
* 供组件层把 loading 文案从「网络获取」切换到「模型加载」。
|
|
63
|
+
* 可返回 Promise:引擎会先 await(组件层用 requestAnimationFrame 等真实绘制)
|
|
64
|
+
* 再进入会阻塞主线程的 loadModel,确保「模型加载中」文案已上屏。
|
|
61
65
|
*/
|
|
62
|
-
export default function viewerLoadModel(modelId: string, modelType: string, modelArrayBuffer: ArrayBuffer, callback?: Function, options?: Record<string, any>): void
|
|
66
|
+
export default function viewerLoadModel(modelId: string, modelType: string, modelArrayBuffer: ArrayBuffer, callback?: Function, options?: Record<string, any>, onEngineLoadStart?: () => void | Promise<void>): Promise<void>;
|
|
63
67
|
/**
|
|
64
68
|
* 模型加载器:统一封装「下载 -> 引擎加载 -> meta 加载」。
|
|
65
69
|
*
|
|
@@ -92,15 +96,28 @@ export declare class ModelLoader {
|
|
|
92
96
|
private fetch;
|
|
93
97
|
/** 模型主体下载路径:http 直接用原地址;OSS 补上 .xtc 等类型后缀 */
|
|
94
98
|
private downloadModelPath;
|
|
95
|
-
/**
|
|
96
|
-
|
|
99
|
+
/**
|
|
100
|
+
* 加载单个已就绪 buffer 的模型到引擎,模型成功后自动处理 meta。
|
|
101
|
+
*
|
|
102
|
+
* @param waitModelLoaded 为 true 时,Promise 会等到引擎真正抛出 modelLoaded 事件
|
|
103
|
+
* (模型解析并渲染完成)后才 resolve,供组件层精确控制 loading 遮罩的结束时机;
|
|
104
|
+
* 为 false(默认)时保持旧行为,引擎 loadModel 回调即 resolve。
|
|
105
|
+
* @param onEngineLoadStart 引擎真正开始载入模型(调用 window.bimViewer.loadModel)时触发,
|
|
106
|
+
* 供组件层把 loading 文案从「网络获取」切换到「模型加载」。可返回 Promise。
|
|
107
|
+
*/
|
|
108
|
+
loadSingle(modelId: string, buffer: ArrayBuffer, metaBuffer?: ArrayBuffer, options?: Record<string, any>, waitModelLoaded?: boolean, onEngineLoadStart?: () => void | Promise<void>): Promise<ModelLoadResult>;
|
|
97
109
|
/** 引擎模型加载成功后处理 meta:可用则立即加载,否则挂起等 setMetaBuffer */
|
|
98
110
|
private handleMetaAfterModelLoad;
|
|
99
111
|
private loadMetadata;
|
|
100
112
|
/** 绑定引擎 meta 事件(只绑一次),转发给 emit */
|
|
101
113
|
private bindMetaEvents;
|
|
102
|
-
/**
|
|
103
|
-
|
|
114
|
+
/**
|
|
115
|
+
* 按路径加载单个模型:并发下载 model + meta,下载完再引擎加载;下载失败不抛异常。
|
|
116
|
+
*
|
|
117
|
+
* @param onDownloaded 下载完成(即将进入引擎加载)时触发。
|
|
118
|
+
* @param onEngineLoadStart 引擎真正开始载入模型(调用 window.bimViewer.loadModel)时触发。可返回 Promise。
|
|
119
|
+
*/
|
|
120
|
+
loadFromPath(modelId: string, filePath: string, options?: Record<string, any>, waitModelLoaded?: boolean, onDownloaded?: () => void, onEngineLoadStart?: () => void | Promise<void>): Promise<ModelLoadResult | undefined>;
|
|
104
121
|
/** 下载 meta(.xts);失败不阻断主流程 */
|
|
105
122
|
private downloadMeta;
|
|
106
123
|
/** 准备单个模型:并发下载 model + meta,返回可直接加载的数据;下载失败 buffer 为空(不抛异常) */
|
|
@@ -114,8 +131,13 @@ export declare class ModelLoader {
|
|
|
114
131
|
* 这样下载与解析天然重叠,是引擎下最快的加载方式。
|
|
115
132
|
*
|
|
116
133
|
* loadInterval 仅作为可选的发起节流(默认 0 不节流)。
|
|
134
|
+
*
|
|
135
|
+
* @param waitModelLoaded 为 true 时,每个模型都等到引擎 modelLoaded 事件后才算完成,
|
|
136
|
+
* 供组件层精确控制 loading 遮罩的结束时机。
|
|
137
|
+
* @param onEngineLoadStart 引擎真正开始载入模型(调用 window.bimViewer.loadModel)时触发,
|
|
138
|
+
* 供组件层把 loading 文案从「网络获取」切换到「模型加载」。可返回 Promise。
|
|
117
139
|
*/
|
|
118
|
-
loadMulti(items: ModelLoadItem[]): Promise<ModelLoadResult[]>;
|
|
140
|
+
loadMulti(items: ModelLoadItem[], waitModelLoaded?: boolean, onEngineLoadStart?: () => void | Promise<void>): Promise<ModelLoadResult[]>;
|
|
119
141
|
/** 延迟指定毫秒数 */
|
|
120
142
|
private sleep;
|
|
121
143
|
}
|