@galacean/effects-core 2.0.0-alpha.14 → 2.0.0-alpha.16
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/comp-vfx-item.d.ts +5 -8
- package/dist/composition-source-manager.d.ts +4 -4
- package/dist/composition.d.ts +7 -13
- package/dist/fallback/migration.d.ts +1 -1
- package/dist/index.js +763 -768
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +760 -769
- package/dist/index.mjs.map +1 -1
- package/dist/pass-render-level.d.ts +3 -1
- package/dist/plugin-system.d.ts +1 -1
- package/dist/plugins/cal/calculate-item.d.ts +1 -11
- package/dist/plugins/cal/calculate-vfx-item.d.ts +1 -1
- package/dist/plugins/cal/timeline-asset.d.ts +0 -1
- package/dist/plugins/index.d.ts +2 -0
- package/dist/plugins/particle/particle-system.d.ts +1 -1
- package/dist/plugins/sprite/sprite-item.d.ts +2 -3
- package/dist/plugins/timeline/playables/activation-mixer-playable.d.ts +0 -1
- package/dist/plugins/timeline/playables/sub-composition-clip-playable.d.ts +5 -0
- package/dist/plugins/timeline/playables/sub-composition-playable-asset.d.ts +5 -0
- package/dist/plugins/timeline/track.d.ts +6 -7
- package/dist/plugins/timeline/tracks/activation-track.d.ts +0 -1
- package/dist/plugins/timeline/tracks/sub-composition-track.d.ts +4 -0
- package/dist/scene.d.ts +5 -3
- package/dist/serialization-helper.d.ts +1 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/vfx-item.d.ts +8 -7
- package/package.json +2 -2
package/dist/comp-vfx-item.d.ts
CHANGED
|
@@ -4,10 +4,9 @@ import { ItemBehaviour } from './components';
|
|
|
4
4
|
import type { CompositionHitTestOptions } from './composition';
|
|
5
5
|
import type { ContentOptions } from './composition-source-manager';
|
|
6
6
|
import type { Region, TrackAsset } from './plugins';
|
|
7
|
-
import { ObjectBindingTrack } from './plugins';
|
|
8
7
|
import { VFXItem } from './vfx-item';
|
|
9
8
|
export interface SceneBinding {
|
|
10
|
-
key:
|
|
9
|
+
key: TrackAsset;
|
|
11
10
|
value: VFXItem;
|
|
12
11
|
}
|
|
13
12
|
export interface SceneBindingData {
|
|
@@ -26,19 +25,17 @@ export declare class CompositionComponent extends ItemBehaviour {
|
|
|
26
25
|
data: ContentOptions;
|
|
27
26
|
private reusable;
|
|
28
27
|
private sceneBindings;
|
|
29
|
-
private masterTracks;
|
|
30
28
|
private timelineAsset;
|
|
31
29
|
private timelinePlayable;
|
|
32
30
|
private graph;
|
|
33
31
|
start(): void;
|
|
34
|
-
|
|
32
|
+
setReusable(value: boolean): void;
|
|
33
|
+
getReusable(): boolean;
|
|
35
34
|
update(dt: number): void;
|
|
36
|
-
/**
|
|
37
|
-
* 重置元素状态属性
|
|
38
|
-
*/
|
|
39
|
-
resetStatus(): void;
|
|
40
35
|
createContent(): void;
|
|
41
36
|
onDestroy(): void;
|
|
42
37
|
hitTest(ray: Ray, x: number, y: number, regions: Region[], force?: boolean, options?: CompositionHitTestOptions): Region[];
|
|
43
38
|
fromData(data: any): void;
|
|
39
|
+
private resolveBindings;
|
|
40
|
+
private resolveTrackBindingsWithRoot;
|
|
44
41
|
}
|
|
@@ -3,7 +3,7 @@ import type { SceneBindingData } from './comp-vfx-item';
|
|
|
3
3
|
import type { Engine } from './engine';
|
|
4
4
|
import type { PluginSystem } from './plugin-system';
|
|
5
5
|
import type { GlobalVolume } from './render';
|
|
6
|
-
import type { Scene } from './scene';
|
|
6
|
+
import type { Scene, SceneRenderLevel } from './scene';
|
|
7
7
|
import type { Texture } from './texture';
|
|
8
8
|
import type { Disposable } from './utils';
|
|
9
9
|
import type { VFXItemProps } from './vfx-item';
|
|
@@ -23,11 +23,11 @@ export interface ContentOptions {
|
|
|
23
23
|
* 合成资源管理
|
|
24
24
|
*/
|
|
25
25
|
export declare class CompositionSourceManager implements Disposable {
|
|
26
|
-
composition?: spec.
|
|
27
|
-
refCompositions: Map<string, spec.
|
|
26
|
+
composition?: spec.CompositionData;
|
|
27
|
+
refCompositions: Map<string, spec.CompositionData>;
|
|
28
28
|
sourceContent?: ContentOptions;
|
|
29
29
|
refCompositionProps: Map<string, VFXItemProps>;
|
|
30
|
-
renderLevel?:
|
|
30
|
+
renderLevel?: SceneRenderLevel;
|
|
31
31
|
pluginSystem?: PluginSystem;
|
|
32
32
|
totalTime: number;
|
|
33
33
|
imgUsage: Record<string, number[]>;
|
package/dist/composition.d.ts
CHANGED
|
@@ -2,14 +2,12 @@ import type { Ray } from '@galacean/effects-math/es/core/index';
|
|
|
2
2
|
import * as spec from '@galacean/effects-specification';
|
|
3
3
|
import { Camera } from './camera';
|
|
4
4
|
import { CompositionComponent } from './comp-vfx-item';
|
|
5
|
-
import type { CompositionSourceManager } from './composition-source-manager';
|
|
6
5
|
import type { PluginSystem } from './plugin-system';
|
|
7
6
|
import type { EventSystem, Region } from './plugins';
|
|
8
7
|
import type { MeshRendererOptions, Renderer } from './render';
|
|
9
8
|
import { RenderFrame } from './render';
|
|
10
9
|
import type { Scene, SceneType } from './scene';
|
|
11
10
|
import type { Texture } from './texture';
|
|
12
|
-
import { Transform } from './transform';
|
|
13
11
|
import type { Disposable, LostHandler } from './utils';
|
|
14
12
|
import type { VFXItemProps } from './vfx-item';
|
|
15
13
|
import { VFXItem } from './vfx-item';
|
|
@@ -50,7 +48,6 @@ export interface CompositionProps {
|
|
|
50
48
|
* 也负责 Item 相关的动画播放控制,和持有渲染帧数据。
|
|
51
49
|
*/
|
|
52
50
|
export declare class Composition implements Disposable, LostHandler {
|
|
53
|
-
compositionSourceManager: CompositionSourceManager;
|
|
54
51
|
renderer: Renderer;
|
|
55
52
|
/**
|
|
56
53
|
* 当前帧的渲染数据对象
|
|
@@ -69,10 +66,6 @@ export declare class Composition implements Disposable, LostHandler {
|
|
|
69
66
|
* 合成渲染顺序,默认按升序渲染
|
|
70
67
|
*/
|
|
71
68
|
renderOrder: number;
|
|
72
|
-
/**
|
|
73
|
-
* 所有合成 Item 的根变换
|
|
74
|
-
*/
|
|
75
|
-
transform: Transform;
|
|
76
69
|
/**
|
|
77
70
|
* 播放完成后是否需要再使用,是的话生命周期结束后不会自动 dispose
|
|
78
71
|
*/
|
|
@@ -127,10 +120,6 @@ export declare class Composition implements Disposable, LostHandler {
|
|
|
127
120
|
* 用于保存与当前合成相关的插件数据
|
|
128
121
|
*/
|
|
129
122
|
readonly loaderData: Record<string, any>;
|
|
130
|
-
/**
|
|
131
|
-
* 渲染等级:S,A+,A,B+,B
|
|
132
|
-
*/
|
|
133
|
-
readonly renderLevel?: spec.RenderLevel;
|
|
134
123
|
/**
|
|
135
124
|
* 场景加载和首帧渲染时间
|
|
136
125
|
*/
|
|
@@ -142,7 +131,7 @@ export declare class Composition implements Disposable, LostHandler {
|
|
|
142
131
|
/**
|
|
143
132
|
* 合成根元素
|
|
144
133
|
*/
|
|
145
|
-
rootItem: VFXItem;
|
|
134
|
+
readonly rootItem: VFXItem;
|
|
146
135
|
/**
|
|
147
136
|
* 预合成数组
|
|
148
137
|
*/
|
|
@@ -182,13 +171,18 @@ export declare class Composition implements Disposable, LostHandler {
|
|
|
182
171
|
private readonly globalVolume;
|
|
183
172
|
private readonly texInfo;
|
|
184
173
|
private readonly postLoaders;
|
|
174
|
+
private compositionSourceManager;
|
|
185
175
|
/**
|
|
186
176
|
* Composition 构造函数
|
|
187
177
|
* @param props - composition 的创建参数
|
|
188
178
|
* @param scene
|
|
189
179
|
* @param compositionSourceManager
|
|
190
180
|
*/
|
|
191
|
-
constructor(props: CompositionProps, scene: Scene
|
|
181
|
+
constructor(props: CompositionProps, scene: Scene);
|
|
182
|
+
/**
|
|
183
|
+
* 所有合成 Item 的根变换
|
|
184
|
+
*/
|
|
185
|
+
get transform(): import("@galacean/effects-core").Transform;
|
|
192
186
|
/**
|
|
193
187
|
* 获取场景中的纹理数组
|
|
194
188
|
*/
|
|
@@ -15,4 +15,4 @@ export declare function version30Migration(json: JSONSceneLegacy): JSONScene;
|
|
|
15
15
|
* 2.5 以下版本 赫尔米特数据转换成贝塞尔数据
|
|
16
16
|
*/
|
|
17
17
|
export declare function version24Migration(json: JSONScene): JSONScene;
|
|
18
|
-
export declare function convertParam(content
|
|
18
|
+
export declare function convertParam(content?: BaseContent): void;
|