@galacean/effects-core 2.0.0-alpha.13 → 2.0.0-alpha.14
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.js +129 -97
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +129 -97
- package/dist/index.mjs.map +1 -1
- package/dist/plugins/cal/calculate-item.d.ts +2 -4
- package/dist/plugins/cal/timeline-asset.d.ts +2 -2
- package/dist/plugins/timeline/track.d.ts +2 -3
- package/dist/plugins/timeline/tracks/activation-track.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Euler, Vector3 } from '@galacean/effects-math/es/core/index';
|
|
2
2
|
import * as spec from '@galacean/effects-specification';
|
|
3
|
-
import type { Engine } from '../../engine';
|
|
4
3
|
import type { ValueGetter } from '../../math';
|
|
5
4
|
import { TrackAsset } from '../timeline/track';
|
|
5
|
+
import type { TimelineAsset } from './timeline-asset';
|
|
6
6
|
/**
|
|
7
7
|
* 基础位移属性数据
|
|
8
8
|
*/
|
|
@@ -34,9 +34,7 @@ export interface CalculateItemOptions {
|
|
|
34
34
|
export declare class ObjectBindingTrack extends TrackAsset {
|
|
35
35
|
options: CalculateItemOptions;
|
|
36
36
|
data: spec.EffectsObjectData;
|
|
37
|
-
|
|
38
|
-
create(): void;
|
|
37
|
+
create(timelineAsset: TimelineAsset): void;
|
|
39
38
|
toLocalTime(time: number): number;
|
|
40
|
-
createTrack<T extends TrackAsset>(classConstructor: new (engine: Engine) => T, name?: string): T;
|
|
41
39
|
fromData(data: spec.EffectsObjectData): void;
|
|
42
40
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { DataPath, EffectsObjectData } from '@galacean/effects-specification';
|
|
2
2
|
import type { RuntimeClip, TrackAsset } from '../timeline/track';
|
|
3
|
-
import { ObjectBindingTrack } from './calculate-item';
|
|
4
3
|
import type { FrameContext, PlayableGraph } from './playable-graph';
|
|
5
4
|
import { Playable, PlayableAsset } from './playable-graph';
|
|
5
|
+
import type { Engine } from '../../engine';
|
|
6
6
|
export interface TimelineAssetData extends EffectsObjectData {
|
|
7
7
|
tracks: DataPath[];
|
|
8
8
|
}
|
|
@@ -10,11 +10,11 @@ export declare class TimelineAsset extends PlayableAsset {
|
|
|
10
10
|
tracks: TrackAsset[];
|
|
11
11
|
graph: PlayableGraph;
|
|
12
12
|
createPlayable(graph: PlayableGraph): Playable;
|
|
13
|
+
createTrack<T extends TrackAsset>(classConstructor: new (engine: Engine) => T, parent: TrackAsset, name?: string): T;
|
|
13
14
|
fromData(data: TimelineAssetData): void;
|
|
14
15
|
}
|
|
15
16
|
export declare class TimelinePlayable extends Playable {
|
|
16
17
|
clips: RuntimeClip[];
|
|
17
|
-
masterTracks: ObjectBindingTrack[];
|
|
18
18
|
prepareFrame(context: FrameContext): void;
|
|
19
19
|
evaluate(): void;
|
|
20
20
|
compileTracks(graph: PlayableGraph, tracks: TrackAsset[]): void;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ItemEndBehavior } from '@galacean/effects-specification';
|
|
2
2
|
import type { Engine } from '../../engine';
|
|
3
|
-
import { VFXItem } from '../../vfx-item';
|
|
4
3
|
import type { PlayableGraph } from '../cal/playable-graph';
|
|
5
4
|
import { Playable, PlayableAsset, PlayableOutput } from '../cal/playable-graph';
|
|
6
5
|
/**
|
|
@@ -8,9 +7,8 @@ import { Playable, PlayableAsset, PlayableOutput } from '../cal/playable-graph';
|
|
|
8
7
|
* @internal
|
|
9
8
|
*/
|
|
10
9
|
export declare class TrackAsset extends PlayableAsset {
|
|
11
|
-
id: string;
|
|
12
10
|
name: string;
|
|
13
|
-
binding:
|
|
11
|
+
binding: object;
|
|
14
12
|
trackType: TrackType;
|
|
15
13
|
private clipSeed;
|
|
16
14
|
private clips;
|
|
@@ -30,6 +28,7 @@ export declare class TrackAsset extends PlayableAsset {
|
|
|
30
28
|
createTrackMixer(graph: PlayableGraph): Playable;
|
|
31
29
|
createPlayable(graph: PlayableGraph): Playable;
|
|
32
30
|
getChildTracks(): TrackAsset[];
|
|
31
|
+
addChild(child: TrackAsset): void;
|
|
33
32
|
createClip<T extends PlayableAsset>(classConstructor: new (engine: Engine) => T, name?: string): TimelineClip;
|
|
34
33
|
getClips(): TimelineClip[];
|
|
35
34
|
findClip(name: string): TimelineClip | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { PlayableGraph, Playable } from '../../cal/playable-graph';
|
|
2
2
|
import { TrackAsset } from '../track';
|
|
3
3
|
export declare class ActivationTrack extends TrackAsset {
|
|
4
|
+
initializeBinding(parentBinding: object): void;
|
|
4
5
|
createTrackMixer(graph: PlayableGraph): Playable;
|
|
5
6
|
}
|