@xtctwins/tctwins-bimx-engine 0.3.7 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/01.xtc +0 -0
  2. package/dist/02.xtc +0 -0
  3. package/dist/03.xtc +0 -0
  4. package/dist/{AnnotationTool-CkIV37UE.mjs → AnnotationTool-DgppLcwx.mjs} +2 -2
  5. package/dist/BIMX_Viewer_Lib.es.js +1 -1
  6. package/dist/BIMX_Viewer_Lib.umd.js +53 -103
  7. package/dist/{CameraViewTool-DeYagyPC.mjs → CameraViewTool-BReDlFEv.mjs} +1 -1
  8. package/dist/{CommentTool-C1JukDRV.mjs → CommentTool-D6DWQCa5.mjs} +1 -1
  9. package/dist/{HiddenTool-CKIjuVdE.mjs → HiddenTool-B8rcAH0z.mjs} +1 -1
  10. package/dist/{InspectorTool-DqCIiob9.mjs → InspectorTool-WZToT3N-.mjs} +3 -3
  11. package/dist/{MeasureTool-IHXJjZNc.mjs → MeasureTool-DIHDiSpu.mjs} +2 -2
  12. package/dist/{MouseTool-C6IbMsSE.mjs → MouseTool-DgV53G0A.mjs} +1 -1
  13. package/dist/{NavigateTool-DSBy4FZy.mjs → NavigateTool-8DMKaXiT.mjs} +1 -1
  14. package/dist/{RoamTool-CvVZdDiz.mjs → RoamTool-CyvTgXrr.mjs} +1 -1
  15. package/dist/{ScreenShotTool-DdIU0vQg.mjs → ScreenShotTool-HqPWEnrT.mjs} +2 -2
  16. package/dist/{SectionTool-BinUb4wa.mjs → SectionTool-DfjGtjao.mjs} +4 -4
  17. package/dist/{SettingTool-Bm2OgXES.mjs → SettingTool-DTIFj4Tj.mjs} +3 -3
  18. package/dist/{StructureTree-CPDEM-gp.mjs → StructureTree-Cu7KYRrz.mjs} +3 -3
  19. package/dist/{alert-CWKghdMc.mjs → alert-DRz67LTB.mjs} +1 -1
  20. package/dist/{el-input-number-DXVRwG5u.mjs → el-input-number-BGkEOqim.mjs} +1 -1
  21. package/dist/{index-B9qL5nx5.mjs → index-Bv-246pp.mjs} +19001 -19404
  22. package/dist/{panel.vue_vue_type_style_index_0_lang-D7G9bR05.mjs → panel.vue_vue_type_style_index_0_lang-DMkX22H2.mjs} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{tallPanel-CHmr0WiN.mjs → tallPanel-CBDkSWkE.mjs} +1 -1
  25. package/package.json +2 -2
  26. package/types/components/BimxViewerComp.vue.d.ts +0 -4
  27. package/types/pages/BimxViewerEntry.vue.d.ts +0 -4
  28. package/types/viewerManager/load/loadModel.d.ts +16 -11
@@ -1,4 +1,4 @@
1
- import { o as g, p as t, T as r, A as y, B as x, x as S, y as b } from "./index-B9qL5nx5.mjs";
1
+ import { o as g, p as t, T as r, A as y, B as x, x as S, y as b } from "./index-Bv-246pp.mjs";
2
2
  import { defineComponent as k, ref as c, onMounted as P, watch as W, openBlock as _, createElementBlock as f, normalizeStyle as w, createElementVNode as o, toDisplayString as C, createVNode as T, unref as h, renderSlot as N, createCommentVNode as B } from "vue";
3
3
  const E = { class: "tall_panel_content" }, $ = { class: "panel_top" }, H = { class: "panel_title" }, L = { class: "panel_close" }, A = { class: "panel_content" }, M = {
4
4
  key: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xtctwins/tctwins-bimx-engine",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "main": "dist/BIMX_Viewer_Lib.umd.js",
5
5
  "style": "dist/style.css",
6
6
  "module": "dist/BIMX_Viewer_Lib.es.js",
@@ -38,7 +38,7 @@
38
38
  "@vue/eslint-config-prettier": "^9.0.0",
39
39
  "@vue/eslint-config-typescript": "^13.0.0",
40
40
  "@vue/tsconfig": "^0.5.1",
41
- "@xtctwins/tctwins-bimx-viewer": "^1.1.3",
41
+ "@xtctwins/tctwins-bimx-viewer": "^1.1.4",
42
42
  "ali-oss": "^6.20.0",
43
43
  "axios": "^1.7.3",
44
44
  "element-plus": "^2.8.0",
@@ -12,9 +12,7 @@ declare const _default: import('vue').DefineComponent<{
12
12
  modelIds?: string[];
13
13
  /** 每个模型的变换选项(与 modelIds 一一对应):{ position, scale, rotation, matrix, origin } */
14
14
  modelOptions?: Record<string, any>[];
15
- /** 多模型是否顺序加载:true 等待每个模型加载完成再加载下一个;false 按 loadInterval 毫秒间隔依次发起,默认 true */
16
15
  loadSequential?: boolean;
17
- /** 非顺序加载时发起下一个模型的间隔毫秒数,默认 200 */
18
16
  loadInterval?: number;
19
17
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
18
  emitHandler: (...args: any[]) => void;
@@ -31,9 +29,7 @@ declare const _default: import('vue').DefineComponent<{
31
29
  modelIds?: string[];
32
30
  /** 每个模型的变换选项(与 modelIds 一一对应):{ position, scale, rotation, matrix, origin } */
33
31
  modelOptions?: Record<string, any>[];
34
- /** 多模型是否顺序加载:true 等待每个模型加载完成再加载下一个;false 按 loadInterval 毫秒间隔依次发起,默认 true */
35
32
  loadSequential?: boolean;
36
- /** 非顺序加载时发起下一个模型的间隔毫秒数,默认 200 */
37
33
  loadInterval?: number;
38
34
  }> & Readonly<{
39
35
  onEmitHandler?: ((...args: any[]) => any) | undefined;
@@ -14,9 +14,7 @@ declare const _default: import('vue').DefineComponent<{
14
14
  multiModel?: boolean;
15
15
  filePaths?: string[];
16
16
  modelIds?: string[];
17
- /** 多模型是否顺序加载:true 等待每个模型加载完成再加载下一个;false 按 loadInterval 毫秒间隔依次发起,默认 true */
18
17
  loadSequential?: boolean;
19
- /** 非顺序加载时发起下一个模型的间隔毫秒数,默认 200 */
20
18
  loadInterval?: number;
21
19
  themeColor?: ThemeColor;
22
20
  topHeight?: number;
@@ -76,9 +74,7 @@ declare const _default: import('vue').DefineComponent<{
76
74
  multiModel?: boolean;
77
75
  filePaths?: string[];
78
76
  modelIds?: string[];
79
- /** 多模型是否顺序加载:true 等待每个模型加载完成再加载下一个;false 按 loadInterval 毫秒间隔依次发起,默认 true */
80
77
  loadSequential?: boolean;
81
- /** 非顺序加载时发起下一个模型的间隔毫秒数,默认 200 */
82
78
  loadInterval?: number;
83
79
  themeColor?: ThemeColor;
84
80
  topHeight?: number;
@@ -22,9 +22,9 @@ export interface ModelLoaderConfig {
22
22
  loadMeta?: boolean;
23
23
  /** 事件回调:modelLoaded / metaLoading / metaLoaded */
24
24
  emit?: (event_name: string, content: any) => void;
25
- /** 多模型是否顺序加载:true 等待每个模型加载完成再加载下一个;false 按 loadInterval 间隔依次发起,默认 true */
25
+ /** 多模型是否顺序加载:true 等待每个模型加载完成再加载下一个;false 各自就绪即加载(默认推荐),默认 true */
26
26
  sequential?: boolean;
27
- /** 非顺序加载时,发起下一个模型的间隔毫秒数,默认 200 */
27
+ /** 非顺序加载时的发起间隔毫秒数(仅作节流),默认 0 表示不节流 */
28
28
  loadInterval?: number;
29
29
  }
30
30
  /**
@@ -42,8 +42,9 @@ export default function viewerLoadModel(modelId: string, modelType: string, mode
42
42
  * 模型加载器:统一封装「下载 -> 引擎加载 -> meta 加载」。
43
43
  *
44
44
  * 相比逐模型串行「下载-加载」,这里会:
45
- * - 多模型时先并发下载全部模型 + meta,再串行交给引擎(消除模型间的网络间隔);
46
- * - 单文件(model + meta)也是并发下载;
45
+ * - 顺序加载时用流水线预取:下载第 i 个模型的同时加载第 i-1 个,让网络与解析重叠;
46
+ * - 非顺序加载时所有模型并发下载、就绪即加载;
47
+ * - 单文件(model + meta)并发下载;
47
48
  * - OSS STS client 在 OSSHelper 内缓存复用,不再每个文件都申请一次凭证。
48
49
  */
49
50
  export declare class ModelLoader {
@@ -52,7 +53,7 @@ export declare class ModelLoader {
52
53
  private emit;
53
54
  /** 多模型是否顺序加载(默认 true) */
54
55
  private sequential;
55
- /** 非顺序加载的发起间隔(毫秒,默认 200) */
56
+ /** 非顺序加载的发起间隔(毫秒,默认 0 = 不节流) */
56
57
  private loadInterval;
57
58
  private metaBuffer?;
58
59
  private metaReady;
@@ -76,17 +77,21 @@ export declare class ModelLoader {
76
77
  private loadMetadata;
77
78
  /** 绑定引擎 meta 事件(只绑一次),转发给 emit */
78
79
  private bindMetaEvents;
79
- /** 按路径加载单个模型:并发下载 model + meta,下载完再引擎加载 */
80
+ /** 按路径加载单个模型:并发下载 model + meta,下载完再引擎加载;下载失败不抛异常 */
80
81
  loadFromPath(modelId: string, filePath: string, options?: Record<string, any>): Promise<ModelLoadResult | undefined>;
81
82
  /** 下载 meta(.xts);失败不阻断主流程 */
82
83
  private downloadMeta;
84
+ /** 准备单个模型:并发下载 model + meta,返回可直接加载的数据;下载失败 buffer 为空(不抛异常) */
85
+ private prepareItem;
83
86
  /**
84
- * 多模型加载:先并发下载全部模型(含 meta),再交给引擎加载。
87
+ * 多模型加载。
85
88
  *
86
- * 引擎加载调度由 config.sequential 决定:
87
- * - sequential=true(默认):等待每个模型加载完成后再加载下一个(原循环方式);
88
- * - sequential=false:不等每个模型加载完成,按 loadInterval 毫秒间隔依次发起下一个。
89
- * @returns 每个模型的加载结果
89
+ * sequential=true:一个一个来,等当前模型 loaded 后再加载下一个。
90
+ * sequential=false(对齐 xtctwins 示例用法):所有模型同时开始下载,
91
+ * 「谁的 buffer 先到就立即加载谁」,互不等待、默认不插入任何延迟。
92
+ * 这样下载与解析天然重叠,是引擎下最快的加载方式。
93
+ *
94
+ * loadInterval 仅作为可选的发起节流(默认 0 不节流)。
90
95
  */
91
96
  loadMulti(items: ModelLoadItem[]): Promise<ModelLoadResult[]>;
92
97
  /** 延迟指定毫秒数 */