@galacean/effects-core 2.0.2 → 2.0.4
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/README.md +1 -1
- package/dist/asset-loader.d.ts +0 -1
- package/dist/asset-manager.d.ts +0 -4
- package/dist/comp-vfx-item.d.ts +2 -1
- package/dist/components/component.d.ts +0 -2
- package/dist/components/effect-component.d.ts +0 -1
- package/dist/composition.d.ts +0 -22
- package/dist/effects-object.d.ts +0 -1
- package/dist/effects-package.d.ts +0 -1
- package/dist/index.js +74 -49
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +74 -50
- package/dist/index.mjs.map +1 -1
- package/dist/plugins/cal/calculate-item.d.ts +0 -1
- package/dist/plugins/cal/calculate-vfx-item.d.ts +0 -2
- package/dist/plugins/cal/playable-graph.d.ts +0 -11
- package/dist/plugins/interact/interact-item.d.ts +0 -1
- package/dist/plugins/particle/particle-system-renderer.d.ts +0 -1
- package/dist/plugins/particle/particle-system.d.ts +1 -4
- package/dist/plugins/particle/particle-vfx-item.d.ts +0 -1
- package/dist/plugins/sprite/sprite-item.d.ts +3 -1
- package/dist/plugins/text/text-item.d.ts +0 -1
- package/dist/plugins/timeline/playables/sub-composition-mixer-playable.d.ts +5 -0
- package/dist/plugins/timeline/track.d.ts +0 -3
- package/dist/plugins/timeline/tracks/sub-composition-track.d.ts +2 -0
- package/dist/ticker.d.ts +1 -0
- package/dist/vfx-item.d.ts +0 -9
- package/package.json +1 -1
|
@@ -10,7 +10,6 @@ import { EffectsObject } from '../../effects-object';
|
|
|
10
10
|
import { VFXItem } from '../../vfx-item';
|
|
11
11
|
/**
|
|
12
12
|
* @since 2.0.0
|
|
13
|
-
* @internal
|
|
14
13
|
*/
|
|
15
14
|
export declare class TransformAnimationPlayable extends AnimationPlayable {
|
|
16
15
|
originalTransform: ItemBasicTransform;
|
|
@@ -72,7 +71,6 @@ export interface TransformPlayableAssetData extends spec.EffectsObjectData {
|
|
|
72
71
|
}
|
|
73
72
|
/**
|
|
74
73
|
* @since 2.0.0
|
|
75
|
-
* @internal
|
|
76
74
|
*/
|
|
77
75
|
export declare class ActivationPlayable extends Playable {
|
|
78
76
|
processFrame(context: FrameContext): void;
|
|
@@ -3,7 +3,6 @@ import type { Disposable } from '../../utils';
|
|
|
3
3
|
/**
|
|
4
4
|
* 动画图,负责更新所有的动画节点
|
|
5
5
|
* @since 2.0.0
|
|
6
|
-
* @internal
|
|
7
6
|
*/
|
|
8
7
|
export declare class PlayableGraph {
|
|
9
8
|
private playableOutputs;
|
|
@@ -19,7 +18,6 @@ export declare class PlayableGraph {
|
|
|
19
18
|
/**
|
|
20
19
|
* 动画图可播放节点对象
|
|
21
20
|
* @since 2.0.0
|
|
22
|
-
* @internal
|
|
23
21
|
*/
|
|
24
22
|
export declare class Playable implements Disposable {
|
|
25
23
|
onPlayablePlayFlag: boolean;
|
|
@@ -61,21 +59,12 @@ export declare class Playable implements Disposable {
|
|
|
61
59
|
processFrame(context: FrameContext): void;
|
|
62
60
|
onPlayableDestroy(): void;
|
|
63
61
|
dispose(): void;
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
*/
|
|
67
|
-
prepareFrameRecursive(context: FrameContext, passthroughPort: number): void;
|
|
68
|
-
/**
|
|
69
|
-
* @internal
|
|
70
|
-
*/
|
|
71
|
-
processFrameRecursive(context: FrameContext, passthroughPort: number): void;
|
|
72
62
|
private setOutput;
|
|
73
63
|
private setInput;
|
|
74
64
|
}
|
|
75
65
|
/**
|
|
76
66
|
* 动画图输出节点对象,将动画数据采样到绑定的元素属性上
|
|
77
67
|
* @since 2.0.0
|
|
78
|
-
* @internal
|
|
79
68
|
*/
|
|
80
69
|
export declare class PlayableOutput {
|
|
81
70
|
/**
|
|
@@ -159,15 +159,12 @@ export declare class ParticleSystem extends Component {
|
|
|
159
159
|
get lifetime(): number;
|
|
160
160
|
get particleCount(): number;
|
|
161
161
|
isFrozen(): boolean;
|
|
162
|
+
isEnded(): boolean;
|
|
162
163
|
initEmitterTransform(): void;
|
|
163
164
|
private updateEmitterTransform;
|
|
164
165
|
private addParticle;
|
|
165
166
|
setVisible(visible: boolean): void;
|
|
166
167
|
setOpacity(opacity: number): void;
|
|
167
|
-
/**
|
|
168
|
-
* @internal
|
|
169
|
-
*/
|
|
170
|
-
setColor(r: number, g: number, b: number, a: number): void;
|
|
171
168
|
setParentTransform(transform: Transform): void;
|
|
172
169
|
getTextures(): Texture[];
|
|
173
170
|
start(): void;
|
|
@@ -68,6 +68,7 @@ export declare class SpriteColorPlayable extends Playable {
|
|
|
68
68
|
startColor: spec.RGBAColorValue;
|
|
69
69
|
renderColor: vec4;
|
|
70
70
|
spriteMaterial: Material;
|
|
71
|
+
spriteComponent: SpriteComponent;
|
|
71
72
|
processFrame(context: FrameContext): void;
|
|
72
73
|
create(clipData: SpriteColorPlayableAssetData): this;
|
|
73
74
|
}
|
|
@@ -92,7 +93,6 @@ export declare class SpriteComponent extends RendererComponent {
|
|
|
92
93
|
anchor?: vec2;
|
|
93
94
|
textureSheetAnimation?: spec.TextureSheetAnimation;
|
|
94
95
|
frameAnimationLoop: boolean;
|
|
95
|
-
frameAnimationTime: number;
|
|
96
96
|
splits: splitsDataType;
|
|
97
97
|
emptyTexture: Texture;
|
|
98
98
|
color: vec4;
|
|
@@ -103,6 +103,8 @@ export declare class SpriteComponent extends RendererComponent {
|
|
|
103
103
|
private readonly wireframe?;
|
|
104
104
|
private preMultiAlpha;
|
|
105
105
|
private visible;
|
|
106
|
+
private isManualTimeSet;
|
|
107
|
+
private frameAnimationTime;
|
|
106
108
|
constructor(engine: Engine, props?: SpriteItemProps);
|
|
107
109
|
/**
|
|
108
110
|
* 设置当前 Mesh 的可见性。
|
|
@@ -5,7 +5,6 @@ import { ParticleSystem } from '../particle/particle-system';
|
|
|
5
5
|
import type { Constructor } from '../../utils';
|
|
6
6
|
/**
|
|
7
7
|
* @since 2.0.0
|
|
8
|
-
* @internal
|
|
9
8
|
*/
|
|
10
9
|
export declare class TimelineClip {
|
|
11
10
|
id: string;
|
|
@@ -19,7 +18,6 @@ export declare class TimelineClip {
|
|
|
19
18
|
}
|
|
20
19
|
/**
|
|
21
20
|
* @since 2.0.0
|
|
22
|
-
* @internal
|
|
23
21
|
*/
|
|
24
22
|
export declare class TrackAsset extends PlayableAsset {
|
|
25
23
|
name: string;
|
|
@@ -65,7 +63,6 @@ export declare class RuntimeClip {
|
|
|
65
63
|
}
|
|
66
64
|
/**
|
|
67
65
|
* @since 2.0.0
|
|
68
|
-
* @internal
|
|
69
66
|
*/
|
|
70
67
|
export interface TimelineClipData {
|
|
71
68
|
asset: PlayableAsset;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { TrackAsset } from '../track';
|
|
2
|
+
import type { PlayableGraph, Playable } from '../../cal/playable-graph';
|
|
2
3
|
export declare class SubCompositionTrack extends TrackAsset {
|
|
3
4
|
resolveBinding(parentBinding: object): object;
|
|
5
|
+
createTrackMixer(graph: PlayableGraph): Playable;
|
|
4
6
|
}
|
package/dist/ticker.d.ts
CHANGED
package/dist/vfx-item.d.ts
CHANGED
|
@@ -177,15 +177,6 @@ export declare class VFXItem extends EffectsObject implements Disposable {
|
|
|
177
177
|
* @override
|
|
178
178
|
*/
|
|
179
179
|
onEnd(): void;
|
|
180
|
-
/**
|
|
181
|
-
* 通过指定 r、g、b、a 值设置元素的颜色
|
|
182
|
-
* @param {number} r
|
|
183
|
-
* @param {number} g
|
|
184
|
-
* @param {number} b
|
|
185
|
-
* @param {number} a
|
|
186
|
-
* @internal
|
|
187
|
-
*/
|
|
188
|
-
setColor(r: number, g: number, b: number, a: number): void;
|
|
189
180
|
/**
|
|
190
181
|
* 设置元素的透明度
|
|
191
182
|
* @param opacity - 透明度值,范围 [0,1]
|