iflow-engine 1.1.4 → 1.1.5
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.
|
@@ -63,10 +63,10 @@ export declare class Engine implements IBimComponent {
|
|
|
63
63
|
isInitialized(): boolean;
|
|
64
64
|
/**
|
|
65
65
|
* 加载 3D 模型
|
|
66
|
-
* @param
|
|
66
|
+
* @param urls 模型文件 URL 数组
|
|
67
67
|
* @param options 加载选项(位置、旋转、缩放)
|
|
68
68
|
*/
|
|
69
|
-
loadModel(
|
|
69
|
+
loadModel(urls: string[], options?: ModelLoadOptions): void;
|
|
70
70
|
/**
|
|
71
71
|
* 回到主视角
|
|
72
72
|
* @returns
|
package/dist/iflow-engine.es.js
CHANGED
|
@@ -45843,7 +45843,7 @@ class qi {
|
|
|
45843
45843
|
}
|
|
45844
45844
|
/**
|
|
45845
45845
|
* 加载 3D 模型
|
|
45846
|
-
* @param
|
|
45846
|
+
* @param urls 模型文件 URL 数组
|
|
45847
45847
|
* @param options 加载选项(位置、旋转、缩放)
|
|
45848
45848
|
*/
|
|
45849
45849
|
loadModel(e, t) {
|
|
@@ -45851,11 +45851,11 @@ class qi {
|
|
|
45851
45851
|
console.error("[Engine] Engine not initialized. Please call init() first.");
|
|
45852
45852
|
return;
|
|
45853
45853
|
}
|
|
45854
|
-
if (!e) {
|
|
45855
|
-
console.error("[Engine] Model
|
|
45854
|
+
if (!e || e.length === 0) {
|
|
45855
|
+
console.error("[Engine] Model URLs are required.");
|
|
45856
45856
|
return;
|
|
45857
45857
|
}
|
|
45858
|
-
this.engine.loaderModule.loadModels(
|
|
45858
|
+
this.engine.loaderModule.loadModels(e, t);
|
|
45859
45859
|
}
|
|
45860
45860
|
/**
|
|
45861
45861
|
* 回到主视角
|
|
@@ -46931,7 +46931,7 @@ class RT extends Bi {
|
|
|
46931
46931
|
}
|
|
46932
46932
|
/**
|
|
46933
46933
|
* 加载模型
|
|
46934
|
-
* @param
|
|
46934
|
+
* @param urls 模型 URL 数组
|
|
46935
46935
|
* @param options 加载选项
|
|
46936
46936
|
*/
|
|
46937
46937
|
loadModel(e, t) {
|