@galacean/effects-specification 2.0.0-alpha.14 → 2.0.0-alpha.15

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.
@@ -14,7 +14,7 @@ export declare enum DataType {
14
14
  TextComponent = "TextComponent",
15
15
  TrackAsset = "TrackAsset",
16
16
  TimelineAsset = "TimelineAsset",
17
- TransformAnimationPlayableAsset = "TransformAnimationPlayableAsset",
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: number;
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
- Float32 = 0,
131
- Int16 = 1,
130
+ Float16 = 0,
131
+ Float32 = 1,
132
132
  Int8 = 2,
133
- UInt16 = 3,
134
- UInt8 = 4
133
+ Int16 = 3,
134
+ Int32 = 4,
135
+ UInt8 = 5,
136
+ UInt16 = 6,
137
+ UInt32 = 7
135
138
  }
136
139
  export declare enum IndexFormatType {
137
- UInt16 = 0,
138
- UInt32 = 1
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["TransformAnimationPlayableAsset"] = "TransformAnimationPlayableAsset";
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["Float32"] = 0] = "Float32";
64
- VertexFormatType[VertexFormatType["Int16"] = 1] = "Int16";
63
+ VertexFormatType[VertexFormatType["Float16"] = 0] = "Float16";
64
+ VertexFormatType[VertexFormatType["Float32"] = 1] = "Float32";
65
65
  VertexFormatType[VertexFormatType["Int8"] = 2] = "Int8";
66
- VertexFormatType[VertexFormatType["UInt16"] = 3] = "UInt16";
67
- VertexFormatType[VertexFormatType["UInt8"] = 4] = "UInt8";
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["UInt16"] = 0] = "UInt16";
72
- IndexFormatType[IndexFormatType["UInt32"] = 1] = "UInt32";
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
@@ -68,6 +68,13 @@ export interface PluginSpineOption {
68
68
  * 动画播放的速度
69
69
  */
70
70
  speed?: number;
71
+ /**
72
+ * 使用的默认大小计算规则
73
+ * 0 :除以包围盒大小
74
+ * 1 : 相机逆投影 + 固定画布大小
75
+ * @since 1.3.0
76
+ */
77
+ resizeRule: number;
71
78
  }
72
79
  /**
73
80
  * spine资源信息
@@ -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-animation-playable-asset-data';
5
+ export * from './transform-playable-asset-data';
@@ -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-animation-playable-asset-data';
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 TransformAnimationPlayableAssetData extends EffectsObjectData {
3
+ export interface TransformPlayableAssetData extends EffectsObjectData {
4
4
  /**
5
5
  * 元素大小变化属性
6
6
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-specification",
3
- "version": "2.0.0-alpha.14",
3
+ "version": "2.0.0-alpha.15",
4
4
  "description": "Galacean Effects JSON Specification",
5
5
  "module": "./es/index.js",
6
6
  "main": "./es/index.js",