@xtctwins/tctwins-bimx-engine 0.3.15 → 0.3.17
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/README.md +196 -196
- package/dist/{AnnotationTool-B6og2Glz.mjs → AnnotationTool-CRKJP6Z_.mjs} +21 -21
- package/dist/BIMX_Viewer_Lib.es.js +1 -1
- package/dist/BIMX_Viewer_Lib.umd.js +105 -105
- package/dist/{CameraViewTool-DHsH_nT2.mjs → CameraViewTool-CcuETkRt.mjs} +12 -12
- package/dist/{CommentTool-FNv2gMNk.mjs → CommentTool-CUfkCRZj.mjs} +10 -10
- package/dist/{HiddenTool-BDSk2sdn.mjs → HiddenTool-BXH5QJP-.mjs} +2 -2
- package/dist/{InspectorTool-1sTEP0Ws.mjs → InspectorTool-DfNptjyX.mjs} +4 -4
- package/dist/{MeasureTool-GbBIX0Yk.mjs → MeasureTool-CXJj1Fhb.mjs} +4 -4
- package/dist/{MouseTool-BteU7vCT.mjs → MouseTool-B7uZ7aDB.mjs} +1 -1
- package/dist/{NavigateTool-BG3JKhQg.mjs → NavigateTool-iCDupABO.mjs} +1 -1
- package/dist/{OperateTool-D3gf6bCT.mjs → OperateTool-CDFqwPpz.mjs} +31 -28
- package/dist/{RoamTool-V9vWQIDB.mjs → RoamTool-DbejO6To.mjs} +2 -2
- package/dist/{ScreenShotTool-DwZpoH2C.mjs → ScreenShotTool-CwKNoZDh.mjs} +4 -4
- package/dist/{SectionTool-DMFA7ztx.mjs → SectionTool-B_YUSKAb.mjs} +4 -4
- package/dist/{SettingTool-dR6DkE24.mjs → SettingTool-ByLSLYye.mjs} +5 -5
- package/dist/{StructureTree-w9pdtGNu.mjs → StructureTree-JKDte9U1.mjs} +4 -4
- package/dist/{alert-CbVefMZQ.mjs → alert-C1hZjT4K.mjs} +15 -15
- package/dist/{index-DpV5VBf5.mjs → index-Amk7_oxr.mjs} +23919 -23862
- package/dist/index.html +17 -17
- package/dist/{panel.vue_vue_type_style_index_0_lang-CcDA1fsF.mjs → panel.vue_vue_type_style_index_0_lang-BWMqOWVZ.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{tallPanel-Br-fRsqc.mjs → tallPanel-B_CsTLWm.mjs} +8 -8
- package/package.json +85 -85
- package/types/App.vue.d.ts +1 -3
- package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +14 -14
- package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +14 -14
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +184 -184
- package/types/components/BimxViewerComp.vue.d.ts +2 -0
- package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +14 -14
- package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +14 -14
- 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 +2 -0
- package/types/viewerManager/load/loadModel.d.ts +28 -6
|
@@ -14,6 +14,8 @@ type __VLS_Props = {
|
|
|
14
14
|
modelOptions?: Record<string, any>[];
|
|
15
15
|
loadSequential?: boolean;
|
|
16
16
|
loadInterval?: number;
|
|
17
|
+
/** 是否显示模型加载遮罩(网络获取 / 模型加载)。默认 false,不显示 */
|
|
18
|
+
showModelLoading?: boolean;
|
|
17
19
|
};
|
|
18
20
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
21
|
emitHandler: (...args: any[]) => void;
|
|
@@ -15,7 +15,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
15
15
|
refresh: () => void;
|
|
16
16
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
17
17
|
bcfCreateDateRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
18
|
-
readonly type: import('element-plus/es/utils/vue/props/types').EpPropFinalized<(new (...args: any[]) => "year" | "
|
|
18
|
+
readonly type: import('element-plus/es/utils/vue/props/types').EpPropFinalized<(new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "quarter" | "quarters" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange" | "quarterrange") | (() => import('element-plus').DatePickerType) | (((new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "quarter" | "quarters" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange" | "quarterrange") | (() => import('element-plus').DatePickerType)) | null)[], unknown, unknown, "date", boolean>;
|
|
19
19
|
readonly showNow: import('element-plus/es/utils/vue/props/types').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
20
20
|
readonly showConfirm: import('element-plus/es/utils/vue/props/types').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
21
21
|
readonly showFooter: import('element-plus/es/utils/vue/props/types').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
@@ -86,7 +86,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
86
86
|
readonly saveOnBlur: import('element-plus/es/utils/vue/props/types').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
87
87
|
readonly prefixIcon: import('element-plus/es/utils/vue/props/types').EpPropFinalized<(new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component) | (((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component)) | null)[], unknown, unknown, "", boolean>;
|
|
88
88
|
readonly size: {
|
|
89
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/vue/props/types').EpPropMergeType<StringConstructor, "" | "default" | "
|
|
89
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/vue/props/types').EpPropMergeType<StringConstructor, "" | "default" | "large" | "small", never>>;
|
|
90
90
|
readonly required: false;
|
|
91
91
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
92
92
|
__epPropKey: true;
|
|
@@ -95,7 +95,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
95
95
|
readonly disabled: import('element-plus/es/utils/vue/props/types').EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
96
96
|
readonly placeholder: import('element-plus/es/utils/vue/props/types').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
97
97
|
readonly popperOptions: import('element-plus/es/utils/vue/props/types').EpPropFinalized<(new (...args: any[]) => Partial<import('element-plus').Options>) | (() => Partial<import('element-plus').Options>) | (((new (...args: any[]) => Partial<import('element-plus').Options>) | (() => Partial<import('element-plus').Options>)) | null)[], unknown, unknown, () => {}, boolean>;
|
|
98
|
-
readonly modelValue: import('element-plus/es/utils/vue/props/types').EpPropFinalized<(new (...args: any[]) => string | number | string[] |
|
|
98
|
+
readonly modelValue: import('element-plus/es/utils/vue/props/types').EpPropFinalized<(new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import('element-plus').ModelValueType | null) | (((new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import('element-plus').ModelValueType | null)) | null)[], unknown, unknown, "", boolean>;
|
|
99
99
|
readonly rangeSeparator: import('element-plus/es/utils/vue/props/types').EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
100
100
|
readonly startPlaceholder: StringConstructor;
|
|
101
101
|
readonly endPlaceholder: StringConstructor;
|
|
@@ -115,23 +115,23 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
115
115
|
}>> & Readonly<{
|
|
116
116
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
117
117
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], import('vue').PublicProps, {
|
|
118
|
-
readonly type: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => "year" | "
|
|
118
|
+
readonly type: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "quarter" | "quarters" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange" | "quarterrange") | (() => import('element-plus').DatePickerType) | (((new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "quarter" | "quarters" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange" | "quarterrange") | (() => import('element-plus').DatePickerType)) | null)[], unknown, unknown>;
|
|
119
119
|
readonly disabled: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
120
|
-
readonly modelValue: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => string | number | string[] |
|
|
120
|
+
readonly modelValue: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import('element-plus').ModelValueType | null) | (((new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import('element-plus').ModelValueType | null)) | null)[], unknown, unknown>;
|
|
121
|
+
readonly validateEvent: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
121
122
|
readonly placeholder: string;
|
|
123
|
+
readonly valueOnClear: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown>;
|
|
122
124
|
readonly readonly: boolean;
|
|
123
125
|
readonly clearable: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
124
126
|
readonly clearIcon: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component) | (((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component)) | null)[], unknown, unknown>;
|
|
125
127
|
readonly prefixIcon: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component) | (((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component)) | null)[], unknown, unknown>;
|
|
126
128
|
readonly tabindex: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown>;
|
|
127
|
-
readonly validateEvent: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
128
129
|
readonly popperClass: import('element-plus/es/utils/typescript').ClassValue;
|
|
129
130
|
readonly popperStyle: import('vue').StyleValue;
|
|
130
131
|
readonly fallbackPlacements: import('element-plus').Placement[];
|
|
131
132
|
readonly placement: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import('element-plus').Placement) | (((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import('element-plus').Placement)) | null)[], import('element-plus').Placement, unknown>;
|
|
132
133
|
readonly popperOptions: Partial<import('element-plus').Options>;
|
|
133
134
|
readonly automaticDropdown: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
134
|
-
readonly valueOnClear: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown>;
|
|
135
135
|
readonly editable: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
136
136
|
readonly saveOnBlur: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
137
137
|
readonly rangeSeparator: string;
|
|
@@ -152,7 +152,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
152
152
|
M: {};
|
|
153
153
|
Defaults: {};
|
|
154
154
|
}, Readonly<import('vue').ExtractPropTypes<{
|
|
155
|
-
readonly type: import('element-plus/es/utils/vue/props/types').EpPropFinalized<(new (...args: any[]) => "year" | "
|
|
155
|
+
readonly type: import('element-plus/es/utils/vue/props/types').EpPropFinalized<(new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "quarter" | "quarters" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange" | "quarterrange") | (() => import('element-plus').DatePickerType) | (((new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "quarter" | "quarters" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange" | "quarterrange") | (() => import('element-plus').DatePickerType)) | null)[], unknown, unknown, "date", boolean>;
|
|
156
156
|
readonly showNow: import('element-plus/es/utils/vue/props/types').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
157
157
|
readonly showConfirm: import('element-plus/es/utils/vue/props/types').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
158
158
|
readonly showFooter: import('element-plus/es/utils/vue/props/types').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
@@ -223,7 +223,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
223
223
|
readonly saveOnBlur: import('element-plus/es/utils/vue/props/types').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
224
224
|
readonly prefixIcon: import('element-plus/es/utils/vue/props/types').EpPropFinalized<(new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component) | (((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component)) | null)[], unknown, unknown, "", boolean>;
|
|
225
225
|
readonly size: {
|
|
226
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/vue/props/types').EpPropMergeType<StringConstructor, "" | "default" | "
|
|
226
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/vue/props/types').EpPropMergeType<StringConstructor, "" | "default" | "large" | "small", never>>;
|
|
227
227
|
readonly required: false;
|
|
228
228
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
229
229
|
__epPropKey: true;
|
|
@@ -232,7 +232,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
232
232
|
readonly disabled: import('element-plus/es/utils/vue/props/types').EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
233
233
|
readonly placeholder: import('element-plus/es/utils/vue/props/types').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
234
234
|
readonly popperOptions: import('element-plus/es/utils/vue/props/types').EpPropFinalized<(new (...args: any[]) => Partial<import('element-plus').Options>) | (() => Partial<import('element-plus').Options>) | (((new (...args: any[]) => Partial<import('element-plus').Options>) | (() => Partial<import('element-plus').Options>)) | null)[], unknown, unknown, () => {}, boolean>;
|
|
235
|
-
readonly modelValue: import('element-plus/es/utils/vue/props/types').EpPropFinalized<(new (...args: any[]) => string | number | string[] |
|
|
235
|
+
readonly modelValue: import('element-plus/es/utils/vue/props/types').EpPropFinalized<(new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import('element-plus').ModelValueType | null) | (((new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import('element-plus').ModelValueType | null)) | null)[], unknown, unknown, "", boolean>;
|
|
236
236
|
readonly rangeSeparator: import('element-plus/es/utils/vue/props/types').EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
237
237
|
readonly startPlaceholder: StringConstructor;
|
|
238
238
|
readonly endPlaceholder: StringConstructor;
|
|
@@ -252,23 +252,23 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
252
252
|
}>> & Readonly<{
|
|
253
253
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
254
254
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
255
|
-
readonly type: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => "year" | "
|
|
255
|
+
readonly type: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "quarter" | "quarters" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange" | "quarterrange") | (() => import('element-plus').DatePickerType) | (((new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "quarter" | "quarters" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange" | "quarterrange") | (() => import('element-plus').DatePickerType)) | null)[], unknown, unknown>;
|
|
256
256
|
readonly disabled: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
257
|
-
readonly modelValue: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => string | number | string[] |
|
|
257
|
+
readonly modelValue: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import('element-plus').ModelValueType | null) | (((new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import('element-plus').ModelValueType | null)) | null)[], unknown, unknown>;
|
|
258
|
+
readonly validateEvent: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
258
259
|
readonly placeholder: string;
|
|
260
|
+
readonly valueOnClear: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown>;
|
|
259
261
|
readonly readonly: boolean;
|
|
260
262
|
readonly clearable: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
261
263
|
readonly clearIcon: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component) | (((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component)) | null)[], unknown, unknown>;
|
|
262
264
|
readonly prefixIcon: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component) | (((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component)) | null)[], unknown, unknown>;
|
|
263
265
|
readonly tabindex: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown>;
|
|
264
|
-
readonly validateEvent: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
265
266
|
readonly popperClass: import('element-plus/es/utils/typescript').ClassValue;
|
|
266
267
|
readonly popperStyle: import('vue').StyleValue;
|
|
267
268
|
readonly fallbackPlacements: import('element-plus').Placement[];
|
|
268
269
|
readonly placement: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import('element-plus').Placement) | (((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import('element-plus').Placement)) | null)[], import('element-plus').Placement, unknown>;
|
|
269
270
|
readonly popperOptions: Partial<import('element-plus').Options>;
|
|
270
271
|
readonly automaticDropdown: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
271
|
-
readonly valueOnClear: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown>;
|
|
272
272
|
readonly editable: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
273
273
|
readonly saveOnBlur: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
274
274
|
readonly rangeSeparator: string;
|
|
@@ -4,7 +4,7 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
4
4
|
refresh: () => void;
|
|
5
5
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
6
6
|
bcfCreateDateRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
7
|
-
readonly type: import('element-plus/es/utils/vue/props/types').EpPropFinalized<(new (...args: any[]) => "year" | "
|
|
7
|
+
readonly type: import('element-plus/es/utils/vue/props/types').EpPropFinalized<(new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "quarter" | "quarters" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange" | "quarterrange") | (() => import('element-plus').DatePickerType) | (((new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "quarter" | "quarters" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange" | "quarterrange") | (() => import('element-plus').DatePickerType)) | null)[], unknown, unknown, "date", boolean>;
|
|
8
8
|
readonly showNow: import('element-plus/es/utils/vue/props/types').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
9
9
|
readonly showConfirm: import('element-plus/es/utils/vue/props/types').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
10
10
|
readonly showFooter: import('element-plus/es/utils/vue/props/types').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
@@ -75,7 +75,7 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
75
75
|
readonly saveOnBlur: import('element-plus/es/utils/vue/props/types').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
76
76
|
readonly prefixIcon: import('element-plus/es/utils/vue/props/types').EpPropFinalized<(new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component) | (((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component)) | null)[], unknown, unknown, "", boolean>;
|
|
77
77
|
readonly size: {
|
|
78
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/vue/props/types').EpPropMergeType<StringConstructor, "" | "default" | "
|
|
78
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/vue/props/types').EpPropMergeType<StringConstructor, "" | "default" | "large" | "small", never>>;
|
|
79
79
|
readonly required: false;
|
|
80
80
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
81
81
|
__epPropKey: true;
|
|
@@ -84,7 +84,7 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
84
84
|
readonly disabled: import('element-plus/es/utils/vue/props/types').EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
85
85
|
readonly placeholder: import('element-plus/es/utils/vue/props/types').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
86
86
|
readonly popperOptions: import('element-plus/es/utils/vue/props/types').EpPropFinalized<(new (...args: any[]) => Partial<import('element-plus').Options>) | (() => Partial<import('element-plus').Options>) | (((new (...args: any[]) => Partial<import('element-plus').Options>) | (() => Partial<import('element-plus').Options>)) | null)[], unknown, unknown, () => {}, boolean>;
|
|
87
|
-
readonly modelValue: import('element-plus/es/utils/vue/props/types').EpPropFinalized<(new (...args: any[]) => string | number | string[] |
|
|
87
|
+
readonly modelValue: import('element-plus/es/utils/vue/props/types').EpPropFinalized<(new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import('element-plus').ModelValueType | null) | (((new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import('element-plus').ModelValueType | null)) | null)[], unknown, unknown, "", boolean>;
|
|
88
88
|
readonly rangeSeparator: import('element-plus/es/utils/vue/props/types').EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
89
89
|
readonly startPlaceholder: StringConstructor;
|
|
90
90
|
readonly endPlaceholder: StringConstructor;
|
|
@@ -104,23 +104,23 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
104
104
|
}>> & Readonly<{
|
|
105
105
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
106
106
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], import('vue').PublicProps, {
|
|
107
|
-
readonly type: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => "year" | "
|
|
107
|
+
readonly type: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "quarter" | "quarters" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange" | "quarterrange") | (() => import('element-plus').DatePickerType) | (((new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "quarter" | "quarters" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange" | "quarterrange") | (() => import('element-plus').DatePickerType)) | null)[], unknown, unknown>;
|
|
108
108
|
readonly disabled: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
109
|
-
readonly modelValue: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => string | number | string[] |
|
|
109
|
+
readonly modelValue: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import('element-plus').ModelValueType | null) | (((new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import('element-plus').ModelValueType | null)) | null)[], unknown, unknown>;
|
|
110
|
+
readonly validateEvent: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
110
111
|
readonly placeholder: string;
|
|
112
|
+
readonly valueOnClear: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown>;
|
|
111
113
|
readonly readonly: boolean;
|
|
112
114
|
readonly clearable: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
113
115
|
readonly clearIcon: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component) | (((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component)) | null)[], unknown, unknown>;
|
|
114
116
|
readonly prefixIcon: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component) | (((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component)) | null)[], unknown, unknown>;
|
|
115
117
|
readonly tabindex: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown>;
|
|
116
|
-
readonly validateEvent: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
117
118
|
readonly popperClass: import('element-plus/es/utils/typescript').ClassValue;
|
|
118
119
|
readonly popperStyle: import('vue').StyleValue;
|
|
119
120
|
readonly fallbackPlacements: import('element-plus').Placement[];
|
|
120
121
|
readonly placement: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import('element-plus').Placement) | (((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import('element-plus').Placement)) | null)[], import('element-plus').Placement, unknown>;
|
|
121
122
|
readonly popperOptions: Partial<import('element-plus').Options>;
|
|
122
123
|
readonly automaticDropdown: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
123
|
-
readonly valueOnClear: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown>;
|
|
124
124
|
readonly editable: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
125
125
|
readonly saveOnBlur: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
126
126
|
readonly rangeSeparator: string;
|
|
@@ -141,7 +141,7 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
141
141
|
M: {};
|
|
142
142
|
Defaults: {};
|
|
143
143
|
}, Readonly<import('vue').ExtractPropTypes<{
|
|
144
|
-
readonly type: import('element-plus/es/utils/vue/props/types').EpPropFinalized<(new (...args: any[]) => "year" | "
|
|
144
|
+
readonly type: import('element-plus/es/utils/vue/props/types').EpPropFinalized<(new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "quarter" | "quarters" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange" | "quarterrange") | (() => import('element-plus').DatePickerType) | (((new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "quarter" | "quarters" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange" | "quarterrange") | (() => import('element-plus').DatePickerType)) | null)[], unknown, unknown, "date", boolean>;
|
|
145
145
|
readonly showNow: import('element-plus/es/utils/vue/props/types').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
146
146
|
readonly showConfirm: import('element-plus/es/utils/vue/props/types').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
147
147
|
readonly showFooter: import('element-plus/es/utils/vue/props/types').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
@@ -212,7 +212,7 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
212
212
|
readonly saveOnBlur: import('element-plus/es/utils/vue/props/types').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
213
213
|
readonly prefixIcon: import('element-plus/es/utils/vue/props/types').EpPropFinalized<(new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component) | (((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component)) | null)[], unknown, unknown, "", boolean>;
|
|
214
214
|
readonly size: {
|
|
215
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/vue/props/types').EpPropMergeType<StringConstructor, "" | "default" | "
|
|
215
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/vue/props/types').EpPropMergeType<StringConstructor, "" | "default" | "large" | "small", never>>;
|
|
216
216
|
readonly required: false;
|
|
217
217
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
218
218
|
__epPropKey: true;
|
|
@@ -221,7 +221,7 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
221
221
|
readonly disabled: import('element-plus/es/utils/vue/props/types').EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
222
222
|
readonly placeholder: import('element-plus/es/utils/vue/props/types').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
223
223
|
readonly popperOptions: import('element-plus/es/utils/vue/props/types').EpPropFinalized<(new (...args: any[]) => Partial<import('element-plus').Options>) | (() => Partial<import('element-plus').Options>) | (((new (...args: any[]) => Partial<import('element-plus').Options>) | (() => Partial<import('element-plus').Options>)) | null)[], unknown, unknown, () => {}, boolean>;
|
|
224
|
-
readonly modelValue: import('element-plus/es/utils/vue/props/types').EpPropFinalized<(new (...args: any[]) => string | number | string[] |
|
|
224
|
+
readonly modelValue: import('element-plus/es/utils/vue/props/types').EpPropFinalized<(new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import('element-plus').ModelValueType | null) | (((new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import('element-plus').ModelValueType | null)) | null)[], unknown, unknown, "", boolean>;
|
|
225
225
|
readonly rangeSeparator: import('element-plus/es/utils/vue/props/types').EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
226
226
|
readonly startPlaceholder: StringConstructor;
|
|
227
227
|
readonly endPlaceholder: StringConstructor;
|
|
@@ -241,23 +241,23 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
241
241
|
}>> & Readonly<{
|
|
242
242
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
243
243
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
244
|
-
readonly type: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => "year" | "
|
|
244
|
+
readonly type: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "quarter" | "quarters" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange" | "quarterrange") | (() => import('element-plus').DatePickerType) | (((new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "quarter" | "quarters" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange" | "quarterrange") | (() => import('element-plus').DatePickerType)) | null)[], unknown, unknown>;
|
|
245
245
|
readonly disabled: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
246
|
-
readonly modelValue: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => string | number | string[] |
|
|
246
|
+
readonly modelValue: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import('element-plus').ModelValueType | null) | (((new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => import('element-plus').ModelValueType | null)) | null)[], unknown, unknown>;
|
|
247
|
+
readonly validateEvent: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
247
248
|
readonly placeholder: string;
|
|
249
|
+
readonly valueOnClear: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown>;
|
|
248
250
|
readonly readonly: boolean;
|
|
249
251
|
readonly clearable: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
250
252
|
readonly clearIcon: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component) | (((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component)) | null)[], unknown, unknown>;
|
|
251
253
|
readonly prefixIcon: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component) | (((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component)) | null)[], unknown, unknown>;
|
|
252
254
|
readonly tabindex: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown>;
|
|
253
|
-
readonly validateEvent: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
254
255
|
readonly popperClass: import('element-plus/es/utils/typescript').ClassValue;
|
|
255
256
|
readonly popperStyle: import('vue').StyleValue;
|
|
256
257
|
readonly fallbackPlacements: import('element-plus').Placement[];
|
|
257
258
|
readonly placement: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import('element-plus').Placement) | (((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import('element-plus').Placement)) | null)[], import('element-plus').Placement, unknown>;
|
|
258
259
|
readonly popperOptions: Partial<import('element-plus').Options>;
|
|
259
260
|
readonly automaticDropdown: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
260
|
-
readonly valueOnClear: import('element-plus/es/utils/vue/props/types').EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown>;
|
|
261
261
|
readonly editable: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
262
262
|
readonly saveOnBlur: import('element-plus/es/utils/vue/props/types').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
263
263
|
readonly rangeSeparator: string;
|
package/types/i18n/index.d.ts
CHANGED
|
@@ -2,6 +2,10 @@ export type Locale = "zh-CN" | "en-US";
|
|
|
2
2
|
export declare const messages: {
|
|
3
3
|
"zh-CN": {
|
|
4
4
|
bimxViewer: {
|
|
5
|
+
modelLoading: {
|
|
6
|
+
network: string;
|
|
7
|
+
model: string;
|
|
8
|
+
};
|
|
5
9
|
common: {
|
|
6
10
|
confirm: string;
|
|
7
11
|
cancel: string;
|
|
@@ -442,6 +446,10 @@ export declare const messages: {
|
|
|
442
446
|
};
|
|
443
447
|
"en-US": {
|
|
444
448
|
bimxViewer: {
|
|
449
|
+
modelLoading: {
|
|
450
|
+
network: string;
|
|
451
|
+
model: string;
|
|
452
|
+
};
|
|
445
453
|
common: {
|
|
446
454
|
confirm: string;
|
|
447
455
|
cancel: string;
|
|
@@ -888,6 +896,10 @@ export declare const defaultI18nConfig: {
|
|
|
888
896
|
messages: {
|
|
889
897
|
"zh-CN": {
|
|
890
898
|
bimxViewer: {
|
|
899
|
+
modelLoading: {
|
|
900
|
+
network: string;
|
|
901
|
+
model: string;
|
|
902
|
+
};
|
|
891
903
|
common: {
|
|
892
904
|
confirm: string;
|
|
893
905
|
cancel: string;
|
|
@@ -1328,6 +1340,10 @@ export declare const defaultI18nConfig: {
|
|
|
1328
1340
|
};
|
|
1329
1341
|
"en-US": {
|
|
1330
1342
|
bimxViewer: {
|
|
1343
|
+
modelLoading: {
|
|
1344
|
+
network: string;
|
|
1345
|
+
model: string;
|
|
1346
|
+
};
|
|
1331
1347
|
common: {
|
|
1332
1348
|
confirm: string;
|
|
1333
1349
|
cancel: string;
|
|
@@ -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
|
}
|