@galacean/effects-specification 2.6.0-alpha.0 → 2.6.0-alpha.1
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/composition.d.ts +7 -11
- package/es/data-type.d.ts +2 -0
- package/es/data-type.js +2 -0
- package/es/scene.d.ts +1 -9
- package/es/texture.d.ts +2 -1
- package/es/timeline/track/track-asset-data.d.ts +1 -1
- package/package.json +1 -1
package/es/composition.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ComponentData, DataPath } from './components';
|
|
2
|
+
import type { DataType } from './data-type';
|
|
2
3
|
import type { Item } from './item';
|
|
3
4
|
import type { EndBehavior } from './item/base-item';
|
|
4
5
|
export declare enum CameraClipMode {
|
|
@@ -86,26 +87,21 @@ export interface Composition extends CompositionBase {
|
|
|
86
87
|
}
|
|
87
88
|
/**
|
|
88
89
|
* 合成数据
|
|
89
|
-
* @deprecated Please use CompositionBase instead
|
|
90
90
|
*/
|
|
91
91
|
export interface CompositionData extends CompositionBase {
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
94
|
-
*/
|
|
95
|
-
items: DataPath[];
|
|
96
|
-
/**
|
|
97
|
-
* 时间轴资产(TimelineAssetData)
|
|
98
|
-
*/
|
|
99
|
-
timelineAsset: DataPath;
|
|
100
|
-
/**
|
|
101
|
-
* 轨道的场景绑定
|
|
93
|
+
* @description 组件数据
|
|
102
94
|
*/
|
|
103
|
-
|
|
95
|
+
components: DataPath[];
|
|
104
96
|
}
|
|
105
97
|
/**
|
|
106
98
|
* 合成组件数据
|
|
107
99
|
*/
|
|
108
100
|
export interface CompositionComponentData extends ComponentData {
|
|
101
|
+
/**
|
|
102
|
+
* @description 合成组件类型 - 固定为 CompositionComponent
|
|
103
|
+
*/
|
|
104
|
+
dataType: DataType.CompositionComponent;
|
|
109
105
|
/**
|
|
110
106
|
* 元素信息
|
|
111
107
|
*/
|
package/es/data-type.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export declare enum DataType {
|
|
|
17
17
|
FloatPropertyTrack = "FloatPropertyTrack",
|
|
18
18
|
ColorPropertyTrack = "ColorPropertyTrack",
|
|
19
19
|
Vector2PropertyTrack = "Vector2PropertyTrack",
|
|
20
|
+
Vector3PropertyTrack = "Vector3PropertyTrack",
|
|
20
21
|
Vector4PropertyTrack = "Vector4PropertyTrack",
|
|
21
22
|
TransformPlayableAsset = "TransformPlayableAsset",
|
|
22
23
|
SpriteColorPlayableAsset = "SpriteColorPlayableAsset",
|
|
@@ -25,6 +26,7 @@ export declare enum DataType {
|
|
|
25
26
|
FloatPropertyPlayableAsset = "FloatPropertyPlayableAsset",
|
|
26
27
|
ColorPropertyPlayableAsset = "ColorPropertyPlayableAsset",
|
|
27
28
|
Vector2PropertyPlayableAsset = "Vector2PropertyPlayableAsset",
|
|
29
|
+
Vector3PropertyPlayableAsset = "Vector3PropertyPlayableAsset",
|
|
28
30
|
Vector4PropertyPlayableAsset = "Vector4PropertyPlayableAsset",
|
|
29
31
|
MeshComponent = "MeshComponent",
|
|
30
32
|
SkyboxComponent = "SkyboxComponent",
|
package/es/data-type.js
CHANGED
|
@@ -20,6 +20,7 @@ export var DataType;
|
|
|
20
20
|
DataType["FloatPropertyTrack"] = "FloatPropertyTrack";
|
|
21
21
|
DataType["ColorPropertyTrack"] = "ColorPropertyTrack";
|
|
22
22
|
DataType["Vector2PropertyTrack"] = "Vector2PropertyTrack";
|
|
23
|
+
DataType["Vector3PropertyTrack"] = "Vector3PropertyTrack";
|
|
23
24
|
DataType["Vector4PropertyTrack"] = "Vector4PropertyTrack";
|
|
24
25
|
DataType["TransformPlayableAsset"] = "TransformPlayableAsset";
|
|
25
26
|
DataType["SpriteColorPlayableAsset"] = "SpriteColorPlayableAsset";
|
|
@@ -28,6 +29,7 @@ export var DataType;
|
|
|
28
29
|
DataType["FloatPropertyPlayableAsset"] = "FloatPropertyPlayableAsset";
|
|
29
30
|
DataType["ColorPropertyPlayableAsset"] = "ColorPropertyPlayableAsset";
|
|
30
31
|
DataType["Vector2PropertyPlayableAsset"] = "Vector2PropertyPlayableAsset";
|
|
32
|
+
DataType["Vector3PropertyPlayableAsset"] = "Vector3PropertyPlayableAsset";
|
|
31
33
|
DataType["Vector4PropertyPlayableAsset"] = "Vector4PropertyPlayableAsset";
|
|
32
34
|
// Components
|
|
33
35
|
DataType["MeshComponent"] = "MeshComponent";
|
package/es/scene.d.ts
CHANGED
|
@@ -153,17 +153,9 @@ export interface JSONScene {
|
|
|
153
153
|
* 贴图信息
|
|
154
154
|
*/
|
|
155
155
|
images: ImageSource[];
|
|
156
|
-
/**
|
|
157
|
-
* 根据合成 ID,每个合成用到的 image 的数组索引
|
|
158
|
-
*/
|
|
159
|
-
imgUsage?: Record<string, number[]>;
|
|
160
|
-
/**
|
|
161
|
-
* 根据合成 ID,每个合成用到的 bin 的数组索引
|
|
162
|
-
*/
|
|
163
|
-
binUsage?: Record<string, number[]>;
|
|
164
156
|
/**
|
|
165
157
|
* 插件类型信息
|
|
166
|
-
* 'model
|
|
158
|
+
* 'model'
|
|
167
159
|
*/
|
|
168
160
|
plugins: string[];
|
|
169
161
|
/**
|
package/es/texture.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { BinaryPointer } from './binary';
|
|
2
|
+
import type { DataPath } from './components';
|
|
2
3
|
import type { DataType } from './data-type';
|
|
3
4
|
export interface TextureFormatOptions {
|
|
4
5
|
format?: GLenum;
|
|
@@ -30,7 +31,7 @@ export type SerializedTextureCubeMipmap = [
|
|
|
30
31
|
export interface SerializedTexture2DImageSource extends TextureConfigOptionsBase, TextureFormatOptions {
|
|
31
32
|
dataType: DataType.Texture;
|
|
32
33
|
target?: WebGLRenderingContext['TEXTURE_2D'];
|
|
33
|
-
source: number;
|
|
34
|
+
source: number | DataPath;
|
|
34
35
|
}
|
|
35
36
|
export interface SerializedTexture2DMipmapSource extends TextureConfigOptionsBase, TextureFormatOptions {
|
|
36
37
|
dataType: DataType.Texture;
|