soonspacejs 2.16.3 → 2.16.4
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/index.esm.js +2499 -2510
- package/package.json +1 -1
- package/types/Library/Model.d.ts +2 -1
- package/types/Viewport/AutoInstancingManager.d.ts +4 -0
package/package.json
CHANGED
package/types/Library/Model.d.ts
CHANGED
|
@@ -5,11 +5,12 @@ interface ModelInfo extends BaseObject3DInfo {
|
|
|
5
5
|
url: string;
|
|
6
6
|
format?: ModelFormat;
|
|
7
7
|
}
|
|
8
|
-
interface ModelInnerInfo extends
|
|
8
|
+
interface ModelInnerInfo extends ModelInfo {
|
|
9
9
|
format: ModelFormat;
|
|
10
10
|
}
|
|
11
11
|
declare class Model extends BaseObject3D {
|
|
12
12
|
formatType?: ModelFormat;
|
|
13
|
+
url?: string;
|
|
13
14
|
constructor(params?: ModelInnerInfo);
|
|
14
15
|
setEnvMap(dirPath: string, fileNames?: string[], options?: {
|
|
15
16
|
reflectivity?: number;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { Box3, Group as ThreeGroup, Mesh, Object3D, Raycaster, Intersection } from 'three';
|
|
2
2
|
import { default as Viewport } from '.';
|
|
3
3
|
export interface AutoInstancingOptions {
|
|
4
|
+
/**
|
|
5
|
+
* 同步策略。safe 保持 render 时全量兜底,signal 仅处理显式变更信号。
|
|
6
|
+
*/
|
|
7
|
+
syncMode?: 'safe' | 'signal';
|
|
4
8
|
/**
|
|
5
9
|
* 同一批次至少包含多少个 Mesh 时才创建 InstancedMesh。
|
|
6
10
|
*/
|