@galacean/effects-core 2.0.0-alpha.14 → 2.0.0-alpha.15
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 +2 -2
- package/dist/composition.d.ts +7 -9
- package/dist/fallback/migration.d.ts +1 -1
- package/dist/index.js +531 -563
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +528 -564
- package/dist/index.mjs.map +1 -1
- package/dist/plugin-system.d.ts +1 -1
- package/dist/plugins/cal/calculate-item.d.ts +1 -11
- package/dist/plugins/cal/timeline-asset.d.ts +0 -1
- package/dist/plugins/index.d.ts +2 -0
- package/dist/plugins/sprite/sprite-item.d.ts +1 -2
- 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/serialization-helper.d.ts +1 -0
- package/dist/utils/index.d.ts +2 -0
- 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
|
}
|
|
@@ -23,8 +23,8 @@ 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
30
|
renderLevel?: spec.RenderLevel;
|
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
|
*/
|
|
@@ -142,7 +135,7 @@ export declare class Composition implements Disposable, LostHandler {
|
|
|
142
135
|
/**
|
|
143
136
|
* 合成根元素
|
|
144
137
|
*/
|
|
145
|
-
rootItem: VFXItem;
|
|
138
|
+
readonly rootItem: VFXItem;
|
|
146
139
|
/**
|
|
147
140
|
* 预合成数组
|
|
148
141
|
*/
|
|
@@ -182,13 +175,18 @@ export declare class Composition implements Disposable, LostHandler {
|
|
|
182
175
|
private readonly globalVolume;
|
|
183
176
|
private readonly texInfo;
|
|
184
177
|
private readonly postLoaders;
|
|
178
|
+
private compositionSourceManager;
|
|
185
179
|
/**
|
|
186
180
|
* Composition 构造函数
|
|
187
181
|
* @param props - composition 的创建参数
|
|
188
182
|
* @param scene
|
|
189
183
|
* @param compositionSourceManager
|
|
190
184
|
*/
|
|
191
|
-
constructor(props: CompositionProps, scene: Scene
|
|
185
|
+
constructor(props: CompositionProps, scene: Scene);
|
|
186
|
+
/**
|
|
187
|
+
* 所有合成 Item 的根变换
|
|
188
|
+
*/
|
|
189
|
+
get transform(): import("@galacean/effects-core").Transform;
|
|
192
190
|
/**
|
|
193
191
|
* 获取场景中的纹理数组
|
|
194
192
|
*/
|
|
@@ -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;
|