@galacean/effects-specification 2.0.0-alpha.14 → 2.0.0-alpha.16
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 +13 -8
- package/es/components.js +12 -7
- package/es/item/model/skybox.d.ts +7 -1
- package/es/item/spine-item.d.ts +7 -0
- package/es/timeline/index.d.ts +1 -1
- package/es/timeline/index.js +1 -1
- package/es/timeline/{transform-animation-playable-asset-data.d.ts → transform-playable-asset-data.d.ts} +1 -1
- package/package.json +1 -1
- /package/es/timeline/{transform-animation-playable-asset-data.js → transform-playable-asset-data.js} +0 -0
package/es/components.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare enum DataType {
|
|
|
14
14
|
TextComponent = "TextComponent",
|
|
15
15
|
TrackAsset = "TrackAsset",
|
|
16
16
|
TimelineAsset = "TimelineAsset",
|
|
17
|
-
|
|
17
|
+
TransformPlayableAsset = "TransformPlayableAsset",
|
|
18
18
|
SpriteColorPlayableAsset = "SpriteColorPlayableAsset",
|
|
19
19
|
MeshComponent = "MeshComponent",
|
|
20
20
|
SkyboxComponent = "SkyboxComponent",
|
|
@@ -68,7 +68,7 @@ export interface MaterialData extends EffectsObjectData {
|
|
|
68
68
|
}
|
|
69
69
|
export interface GeometryData extends EffectsObjectData {
|
|
70
70
|
vertexData: VertexData;
|
|
71
|
-
indexFormat:
|
|
71
|
+
indexFormat: IndexFormatType;
|
|
72
72
|
indexOffset: number;
|
|
73
73
|
subMeshes: SubMesh[];
|
|
74
74
|
/**
|
|
@@ -127,15 +127,20 @@ export interface VertexData {
|
|
|
127
127
|
channels: VertexChannel[];
|
|
128
128
|
}
|
|
129
129
|
export declare enum VertexFormatType {
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
Float16 = 0,
|
|
131
|
+
Float32 = 1,
|
|
132
132
|
Int8 = 2,
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
Int16 = 3,
|
|
134
|
+
Int32 = 4,
|
|
135
|
+
UInt8 = 5,
|
|
136
|
+
UInt16 = 6,
|
|
137
|
+
UInt32 = 7
|
|
135
138
|
}
|
|
136
139
|
export declare enum IndexFormatType {
|
|
137
|
-
|
|
138
|
-
|
|
140
|
+
None = -1,
|
|
141
|
+
UInt8 = 0,
|
|
142
|
+
UInt16 = 1,
|
|
143
|
+
UInt32 = 2
|
|
139
144
|
}
|
|
140
145
|
export interface VertexChannel {
|
|
141
146
|
semantic: string;
|
package/es/components.js
CHANGED
|
@@ -14,7 +14,7 @@ export var DataType;
|
|
|
14
14
|
DataType["TextComponent"] = "TextComponent";
|
|
15
15
|
DataType["TrackAsset"] = "TrackAsset";
|
|
16
16
|
DataType["TimelineAsset"] = "TimelineAsset";
|
|
17
|
-
DataType["
|
|
17
|
+
DataType["TransformPlayableAsset"] = "TransformPlayableAsset";
|
|
18
18
|
DataType["SpriteColorPlayableAsset"] = "SpriteColorPlayableAsset";
|
|
19
19
|
// FIXME: 先完成ECS的场景转换,后面移到spec中
|
|
20
20
|
DataType["MeshComponent"] = "MeshComponent";
|
|
@@ -60,16 +60,21 @@ export var GeometryType;
|
|
|
60
60
|
})(GeometryType || (GeometryType = {}));
|
|
61
61
|
export var VertexFormatType;
|
|
62
62
|
(function (VertexFormatType) {
|
|
63
|
-
VertexFormatType[VertexFormatType["
|
|
64
|
-
VertexFormatType[VertexFormatType["
|
|
63
|
+
VertexFormatType[VertexFormatType["Float16"] = 0] = "Float16";
|
|
64
|
+
VertexFormatType[VertexFormatType["Float32"] = 1] = "Float32";
|
|
65
65
|
VertexFormatType[VertexFormatType["Int8"] = 2] = "Int8";
|
|
66
|
-
VertexFormatType[VertexFormatType["
|
|
67
|
-
VertexFormatType[VertexFormatType["
|
|
66
|
+
VertexFormatType[VertexFormatType["Int16"] = 3] = "Int16";
|
|
67
|
+
VertexFormatType[VertexFormatType["Int32"] = 4] = "Int32";
|
|
68
|
+
VertexFormatType[VertexFormatType["UInt8"] = 5] = "UInt8";
|
|
69
|
+
VertexFormatType[VertexFormatType["UInt16"] = 6] = "UInt16";
|
|
70
|
+
VertexFormatType[VertexFormatType["UInt32"] = 7] = "UInt32";
|
|
68
71
|
})(VertexFormatType || (VertexFormatType = {}));
|
|
69
72
|
export var IndexFormatType;
|
|
70
73
|
(function (IndexFormatType) {
|
|
71
|
-
IndexFormatType[IndexFormatType["
|
|
72
|
-
IndexFormatType[IndexFormatType["
|
|
74
|
+
IndexFormatType[IndexFormatType["None"] = -1] = "None";
|
|
75
|
+
IndexFormatType[IndexFormatType["UInt8"] = 0] = "UInt8";
|
|
76
|
+
IndexFormatType[IndexFormatType["UInt16"] = 1] = "UInt16";
|
|
77
|
+
IndexFormatType[IndexFormatType["UInt32"] = 2] = "UInt32";
|
|
73
78
|
})(IndexFormatType || (IndexFormatType = {}));
|
|
74
79
|
// BINORMAL[n] Binormal float4
|
|
75
80
|
// BLENDINDICES[n] 混合索引 uint
|
|
@@ -2,8 +2,14 @@ import type { BaseItem, ItemEndBehavior } from '../base-item';
|
|
|
2
2
|
import type { BinaryEnv } from '../../binary';
|
|
3
3
|
import type { SkyboxCubeTexturePointer } from './binary';
|
|
4
4
|
import type { ItemType } from '../../type';
|
|
5
|
-
import type { ComponentData, DataPath } from '../../components';
|
|
5
|
+
import type { ComponentData, DataPath, Vector4Data } from '../../components';
|
|
6
6
|
export interface SkyboxOptions<T extends BinaryEnv> {
|
|
7
|
+
/**
|
|
8
|
+
* 环境光旋转
|
|
9
|
+
* UI显示"环境光旋转"
|
|
10
|
+
* @default { x: 0, y: 0, z: 0, w: 0 }
|
|
11
|
+
*/
|
|
12
|
+
rotation: Vector4Data;
|
|
7
13
|
renderable: boolean;
|
|
8
14
|
intensity: number;
|
|
9
15
|
reflectionsIntensity: number;
|
package/es/item/spine-item.d.ts
CHANGED
package/es/timeline/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ export * from './track/track-asset-data';
|
|
|
2
2
|
export * from './sprite-color-playable-asset-data';
|
|
3
3
|
export * from './timeline-asset-data';
|
|
4
4
|
export * from './timeline-clip-data';
|
|
5
|
-
export * from './transform-
|
|
5
|
+
export * from './transform-playable-asset-data';
|
package/es/timeline/index.js
CHANGED
|
@@ -2,4 +2,4 @@ export * from './track/track-asset-data';
|
|
|
2
2
|
export * from './sprite-color-playable-asset-data';
|
|
3
3
|
export * from './timeline-asset-data';
|
|
4
4
|
export * from './timeline-clip-data';
|
|
5
|
-
export * from './transform-
|
|
5
|
+
export * from './transform-playable-asset-data';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EffectsObjectData } from '../components';
|
|
2
2
|
import type { SizeOverLifetime, RotationOverLifetime, PositionOverLifetime } from '../type';
|
|
3
|
-
export interface
|
|
3
|
+
export interface TransformPlayableAssetData extends EffectsObjectData {
|
|
4
4
|
/**
|
|
5
5
|
* 元素大小变化属性
|
|
6
6
|
*/
|
package/package.json
CHANGED
/package/es/timeline/{transform-animation-playable-asset-data.js → transform-playable-asset-data.js}
RENAMED
|
File without changes
|