@galacean/effects-core 2.0.0-alpha.1 → 2.0.0-alpha.3
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/asset-loader.d.ts +18 -18
- package/dist/decorators.d.ts +1 -1
- package/dist/index.js +461 -358
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +459 -357
- package/dist/index.mjs.map +1 -1
- package/dist/plugins/cal/calculate-vfx-item.d.ts +8 -3
- package/dist/plugins/cal/playable-graph.d.ts +4 -0
- package/dist/plugins/cal/track.d.ts +3 -4
- package/dist/vfx-item.d.ts +2 -2
- package/package.json +1 -1
|
@@ -3,12 +3,12 @@ import type * as spec from '@galacean/effects-specification';
|
|
|
3
3
|
import type { ValueGetter } from '../../math';
|
|
4
4
|
import { AnimationPlayable } from './animation-playable';
|
|
5
5
|
import type { ItemBasicTransform, ItemLinearVelOverLifetime } from './calculate-item';
|
|
6
|
-
import { Playable } from './playable-graph';
|
|
6
|
+
import { Playable, PlayableAsset } from './playable-graph';
|
|
7
7
|
/**
|
|
8
8
|
* @since 2.0.0
|
|
9
9
|
* @internal
|
|
10
10
|
*/
|
|
11
|
-
export declare class
|
|
11
|
+
export declare class TransformAnimationPlayable extends AnimationPlayable {
|
|
12
12
|
originalTransform: ItemBasicTransform;
|
|
13
13
|
protected sizeSeparateAxes: boolean;
|
|
14
14
|
protected sizeXOverLifetime: ValueGetter<number>;
|
|
@@ -45,6 +45,11 @@ export declare class AnimationClipPlayable extends AnimationPlayable {
|
|
|
45
45
|
private sampleAnimation;
|
|
46
46
|
fromData(data: TransformAnimationData): void;
|
|
47
47
|
}
|
|
48
|
+
export declare class TransformAnimationPlayableAsset extends PlayableAsset {
|
|
49
|
+
transformAnimationData: TransformAnimationData;
|
|
50
|
+
createPlayable(): Playable;
|
|
51
|
+
fromData(data: TransformAnimationData): void;
|
|
52
|
+
}
|
|
48
53
|
export interface TransformAnimationData {
|
|
49
54
|
/**
|
|
50
55
|
* 元素大小变化属性
|
|
@@ -63,7 +68,7 @@ export interface TransformAnimationData {
|
|
|
63
68
|
* @since 2.0.0
|
|
64
69
|
* @internal
|
|
65
70
|
*/
|
|
66
|
-
export declare class
|
|
71
|
+
export declare class ActivationPlayable extends Playable {
|
|
67
72
|
onGraphStart(): void;
|
|
68
73
|
onPlayablePlay(): void;
|
|
69
74
|
onPlayableDestroy(): void;
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import type { VFXItem, VFXItemContent } from '../../vfx-item';
|
|
2
|
-
import { Playable, PlayableOutput } from './playable-graph';
|
|
2
|
+
import { Playable, PlayableAsset, PlayableOutput } from './playable-graph';
|
|
3
3
|
/**
|
|
4
4
|
* @since 2.0.0
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
|
-
export declare class Track {
|
|
7
|
+
export declare class Track extends PlayableAsset {
|
|
8
8
|
id: string;
|
|
9
9
|
name: string;
|
|
10
10
|
bindingItem: VFXItem<VFXItemContent>;
|
|
11
11
|
private clips;
|
|
12
12
|
private clipSeed;
|
|
13
|
-
constructor();
|
|
14
13
|
createOutput(): PlayableOutput;
|
|
15
14
|
/**
|
|
16
15
|
* 重写该方法以创建自定义混合器
|
|
17
16
|
*/
|
|
18
17
|
createMixerPlayable(): Playable;
|
|
19
|
-
|
|
18
|
+
createPlayable(): Playable;
|
|
20
19
|
createClip<T extends Playable>(classConstructor: new () => T, name?: string): TimelineClip;
|
|
21
20
|
getClips(): TimelineClip[];
|
|
22
21
|
findClip(name: string): TimelineClip | undefined;
|
package/dist/vfx-item.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Vector3 } from '@galacean/effects-math/es/core/vector3';
|
|
2
2
|
import * as spec from '@galacean/effects-specification';
|
|
3
|
+
import { type VFXItemData } from './asset-loader';
|
|
3
4
|
import { RendererComponent } from './components';
|
|
4
5
|
import type { Component } from './components/component';
|
|
5
6
|
import { ItemBehaviour } from './components/component';
|
|
6
7
|
import type { Composition } from './composition';
|
|
7
|
-
import { type VFXItemData } from './asset-loader';
|
|
8
8
|
import { EffectsObject } from './effects-object';
|
|
9
9
|
import type { Engine } from './engine';
|
|
10
10
|
import type { BoundingBoxData, CameraController, HitTestBoxParams, HitTestCustomParams, HitTestSphereParams, HitTestTriangleParams, InteractComponent, ParticleSystem, SpriteComponent } from './plugins';
|
|
@@ -77,7 +77,7 @@ export declare class VFXItem<T extends VFXItemContent> extends EffectsObject imp
|
|
|
77
77
|
* 元素 id 唯一
|
|
78
78
|
*/
|
|
79
79
|
id: string;
|
|
80
|
-
oldId:
|
|
80
|
+
oldId: string;
|
|
81
81
|
/**
|
|
82
82
|
* 元素创建的数据图层/粒子/模型等
|
|
83
83
|
*/
|