@galacean/effects-specification 2.0.0-alpha.19 → 2.0.0-alpha.20
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/es/components.d.ts +8 -1
- package/es/components.js +9 -1
- package/es/timeline/index.d.ts +2 -2
- package/es/timeline/index.js +2 -2
- package/es/timeline/playables/sprite-color-playable-asset-data.d.ts +8 -0
- package/es/timeline/{transform-playable-asset-data.d.ts → playables/transform-playable-asset-data.d.ts} +3 -2
- package/es/timeline/timeline-asset-data.d.ts +2 -1
- package/package.json +1 -1
- package/es/timeline/sprite-color-playable-asset-data.d.ts +0 -7
- /package/es/timeline/{sprite-color-playable-asset-data.js → playables/sprite-color-playable-asset-data.js} +0 -0
- /package/es/timeline/{transform-playable-asset-data.js → playables/transform-playable-asset-data.js} +0 -0
package/es/components.d.ts
CHANGED
|
@@ -12,11 +12,18 @@ export declare enum DataType {
|
|
|
12
12
|
Texture = "Texture",
|
|
13
13
|
AnimationClip = "AnimationClip",
|
|
14
14
|
TextComponent = "TextComponent",
|
|
15
|
+
BinaryAsset = "BinaryAsset",
|
|
15
16
|
TrackAsset = "TrackAsset",
|
|
16
17
|
TimelineAsset = "TimelineAsset",
|
|
18
|
+
ObjectBindingTrack = "ObjectBindingTrack",
|
|
19
|
+
TransformTrack = "TransformTrack",
|
|
20
|
+
SpriteColorTrack = "SpriteColorTrack",
|
|
21
|
+
ActivationTrack = "ActivationTrack",
|
|
22
|
+
SubCompositionTrack = "SubCompositionTrack",
|
|
17
23
|
TransformPlayableAsset = "TransformPlayableAsset",
|
|
18
24
|
SpriteColorPlayableAsset = "SpriteColorPlayableAsset",
|
|
19
|
-
|
|
25
|
+
ActivationPlayableAsset = "ActivationPlayableAsset",
|
|
26
|
+
SubCompositionPlayableAsset = "SubCompositionPlayableAsset",
|
|
20
27
|
MeshComponent = "MeshComponent",
|
|
21
28
|
SkyboxComponent = "SkyboxComponent",
|
|
22
29
|
LightComponent = "LightComponent",
|
package/es/components.js
CHANGED
|
@@ -12,11 +12,19 @@ export var DataType;
|
|
|
12
12
|
DataType["Texture"] = "Texture";
|
|
13
13
|
DataType["AnimationClip"] = "AnimationClip";
|
|
14
14
|
DataType["TextComponent"] = "TextComponent";
|
|
15
|
+
DataType["BinaryAsset"] = "BinaryAsset";
|
|
16
|
+
// Timeline
|
|
15
17
|
DataType["TrackAsset"] = "TrackAsset";
|
|
16
18
|
DataType["TimelineAsset"] = "TimelineAsset";
|
|
19
|
+
DataType["ObjectBindingTrack"] = "ObjectBindingTrack";
|
|
20
|
+
DataType["TransformTrack"] = "TransformTrack";
|
|
21
|
+
DataType["SpriteColorTrack"] = "SpriteColorTrack";
|
|
22
|
+
DataType["ActivationTrack"] = "ActivationTrack";
|
|
23
|
+
DataType["SubCompositionTrack"] = "SubCompositionTrack";
|
|
17
24
|
DataType["TransformPlayableAsset"] = "TransformPlayableAsset";
|
|
18
25
|
DataType["SpriteColorPlayableAsset"] = "SpriteColorPlayableAsset";
|
|
19
|
-
DataType["
|
|
26
|
+
DataType["ActivationPlayableAsset"] = "ActivationPlayableAsset";
|
|
27
|
+
DataType["SubCompositionPlayableAsset"] = "SubCompositionPlayableAsset";
|
|
20
28
|
// FIXME: 先完成ECS的场景转换,后面移到spec中
|
|
21
29
|
DataType["MeshComponent"] = "MeshComponent";
|
|
22
30
|
DataType["SkyboxComponent"] = "SkyboxComponent";
|
package/es/timeline/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './track/track-asset-data';
|
|
2
|
-
export * from './sprite-color-playable-asset-data';
|
|
2
|
+
export * from './playables/sprite-color-playable-asset-data';
|
|
3
3
|
export * from './timeline-asset-data';
|
|
4
4
|
export * from './timeline-clip-data';
|
|
5
|
-
export * from './transform-playable-asset-data';
|
|
5
|
+
export * from './playables/transform-playable-asset-data';
|
package/es/timeline/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './track/track-asset-data';
|
|
2
|
-
export * from './sprite-color-playable-asset-data';
|
|
2
|
+
export * from './playables/sprite-color-playable-asset-data';
|
|
3
3
|
export * from './timeline-asset-data';
|
|
4
4
|
export * from './timeline-clip-data';
|
|
5
|
-
export * from './transform-playable-asset-data';
|
|
5
|
+
export * from './playables/transform-playable-asset-data';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DataType, EffectsObjectData } from '../../components';
|
|
2
|
+
import type { RGBAColorValue } from '../../number-expression';
|
|
3
|
+
import type { ColorOverLifetime } from '../../type';
|
|
4
|
+
export interface SpriteColorPlayableAssetData extends EffectsObjectData {
|
|
5
|
+
dataType: DataType.SpriteColorPlayableAsset;
|
|
6
|
+
colorOverLifetime?: ColorOverLifetime;
|
|
7
|
+
startColor?: RGBAColorValue;
|
|
8
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { EffectsObjectData } from '
|
|
2
|
-
import type { SizeOverLifetime, RotationOverLifetime, PositionOverLifetime } from '
|
|
1
|
+
import type { DataType, EffectsObjectData } from '../../components';
|
|
2
|
+
import type { SizeOverLifetime, RotationOverLifetime, PositionOverLifetime } from '../../type';
|
|
3
3
|
export interface TransformPlayableAssetData extends EffectsObjectData {
|
|
4
|
+
dataType: DataType.TransformPlayableAsset;
|
|
4
5
|
/**
|
|
5
6
|
* 元素大小变化属性
|
|
6
7
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { EffectsObjectData, DataPath } from '../components';
|
|
1
|
+
import type { EffectsObjectData, DataPath, DataType } from '../components';
|
|
2
2
|
export interface TimelineAssetData extends EffectsObjectData {
|
|
3
|
+
dataType: DataType.TimelineAsset;
|
|
3
4
|
/**
|
|
4
5
|
* 轨道数据(TrackAssetData)
|
|
5
6
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { EffectsObjectData } from '../components';
|
|
2
|
-
import type { RGBAColorValue } from '../number-expression';
|
|
3
|
-
import type { ColorOverLifetime } from '../type';
|
|
4
|
-
export interface SpriteColorPlayableAssetData extends EffectsObjectData {
|
|
5
|
-
colorOverLifetime?: ColorOverLifetime;
|
|
6
|
-
startColor?: RGBAColorValue;
|
|
7
|
-
}
|
|
File without changes
|
/package/es/timeline/{transform-playable-asset-data.js → playables/transform-playable-asset-data.js}
RENAMED
|
File without changes
|