@galacean/effects-plugin-model 2.9.0-alpha.1 → 2.9.0
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/alipay.js +1 -1
- package/dist/alipay.js.map +1 -1
- package/dist/alipay.mjs +1 -1
- package/dist/alipay.mjs.map +1 -1
- package/dist/douyin.js +1 -1
- package/dist/douyin.js.map +1 -1
- package/dist/douyin.mjs +1 -1
- package/dist/douyin.mjs.map +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +8 -4
- package/dist/index.mjs.map +1 -1
- package/dist/loader.mjs +8 -4
- package/dist/loader.mjs.map +1 -1
- package/dist/plugin/model-plugin.d.ts +1 -1
- package/dist/plugin/model-tree-component.d.ts +6 -3
- package/dist/weapp.js +1 -1
- package/dist/weapp.js.map +1 -1
- package/dist/weapp.mjs +1 -1
- package/dist/weapp.mjs.map +1 -1
- package/package.json +11 -4
|
@@ -21,7 +21,7 @@ export declare class ModelPlugin extends Plugin {
|
|
|
21
21
|
* @param composition - 合成
|
|
22
22
|
* @param scene - 场景
|
|
23
23
|
*/
|
|
24
|
-
onCompositionCreated(composition: Composition, scene
|
|
24
|
+
onCompositionCreated(composition: Composition, scene?: Scene): void;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* 获取场景管理器,从合成中查找
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { Engine } from '@galacean/effects';
|
|
2
|
-
import { Behaviour } from '@galacean/effects';
|
|
2
|
+
import { Behaviour, spec } from '@galacean/effects';
|
|
3
3
|
import type { ModelTreeContent } from '../index';
|
|
4
|
+
interface ModelTreeComponentData extends spec.ComponentData, ModelTreeContent {
|
|
5
|
+
}
|
|
4
6
|
/**
|
|
5
7
|
* 插件场景树组件类,实现 3D 场景树功能
|
|
6
8
|
*
|
|
@@ -17,10 +19,11 @@ export declare class ModelTreeComponent extends Behaviour {
|
|
|
17
19
|
* @param engine
|
|
18
20
|
* @param options
|
|
19
21
|
*/
|
|
20
|
-
constructor(engine: Engine, options?:
|
|
22
|
+
constructor(engine: Engine, options?: ModelTreeComponentData);
|
|
21
23
|
/**
|
|
22
24
|
* 反序列化,保存入参和创建节点树元素
|
|
23
25
|
* @param options
|
|
24
26
|
*/
|
|
25
|
-
fromData(options:
|
|
27
|
+
fromData(options: ModelTreeComponentData): void;
|
|
26
28
|
}
|
|
29
|
+
export {};
|