@galacean/effects-specification 0.0.2 → 1.0.0

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/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * Name: @galacean/effects-specification
3
3
  * Description: Galacean Effects JSON Specification
4
4
  * Author: Ant Group CO., Ltd.
5
- * Version: v0.0.2
5
+ * Version: v1.0.0
6
6
  */
7
7
 
8
8
  'use strict';
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  * Name: @galacean/effects-specification
3
3
  * Description: Galacean Effects JSON Specification
4
4
  * Author: Ant Group CO., Ltd.
5
- * Version: v0.0.2
5
+ * Version: v1.0.0
6
6
  */
7
7
 
8
8
  /*********************************************/
@@ -17,9 +17,9 @@ import type { ValueType } from './numberExpression';
17
17
  * baseTexture: ImageBitmap
18
18
  * }
19
19
  */
20
- export declare type BinaryPointerContent = [index: number, start?: number, byteLength?: number, type?: BinaryType];
21
- export declare type BinaryPointer = [ValueType.BINARY, BinaryPointerContent];
22
- export declare type BinaryType = 'u8' | 'i8' | 'i16' | 'u16' | 'f32' | 'u32' | 'i32' | 'f64' | string;
20
+ export type BinaryPointerContent = [index: number, start?: number, byteLength?: number, type?: BinaryType];
21
+ export type BinaryPointer = [ValueType.BINARY, BinaryPointerContent];
22
+ export type BinaryType = 'u8' | 'i8' | 'i16' | 'u16' | 'f32' | 'u32' | 'i32' | 'f64' | string;
23
23
  /**
24
24
  * 线上二进制地址
25
25
  */
@@ -27,7 +27,7 @@ export interface BinaryFile {
27
27
  url: string;
28
28
  renderLevel?: RenderLevel;
29
29
  }
30
- export declare type BinaryEnv = 'studio' | 'runtime' | 'json';
30
+ export type BinaryEnv = 'studio' | 'runtime' | 'json';
31
31
  /**
32
32
  * 类型模板,根据 runtime/studio/json 环境区别类型
33
33
  * type TexturePointer<T extends BinaryEnv> = Binary<Texture, HTMLImage, T>;
@@ -35,7 +35,7 @@ export declare type BinaryEnv = 'studio' | 'runtime' | 'json';
35
35
  * let studioTex: TexturePointer<'studio'> // type: Texture
36
36
  * let jsonTex: TexturePointer<'json'> // binary pointer: [20,[0,0]]
37
37
  */
38
- export declare type Binary<STUDIO, RUNTIME, ENV extends BinaryEnv> = ENV extends 'json' ? BinaryPointer : (ENV extends 'studio' ? STUDIO : RUNTIME);
38
+ export type Binary<STUDIO, RUNTIME, ENV extends BinaryEnv> = ENV extends 'json' ? BinaryPointer : (ENV extends 'studio' ? STUDIO : RUNTIME);
39
39
  /**
40
40
  * 二进制合并
41
41
  * 如果有多个二进制,在发布的时候可以合并二进制,并且替换掉,
@@ -57,4 +57,4 @@ export declare type Binary<STUDIO, RUNTIME, ENV extends BinaryEnv> = ENV extends
57
57
  * bins: [{url:'https://url/3'}]
58
58
  * }
59
59
  */
60
- export declare type TypedArray = Float32Array | Float64Array | Uint8Array | Uint32Array | Uint16Array | Int8Array | Int16Array | Int32Array;
60
+ export type TypedArray = Float32Array | Float64Array | Uint8Array | Uint32Array | Uint16Array | Int8Array | Int16Array | Int32Array;
@@ -17,7 +17,7 @@ export interface TextureConfigOptionsBase {
17
17
  premultiplyAlpha?: boolean;
18
18
  keepImageSource?: boolean;
19
19
  }
20
- export declare type SerializedTextureCubeMipmap = [
20
+ export type SerializedTextureCubeMipmap = [
21
21
  TEXTURE_CUBE_MAP_POSITIVE_X: BinaryPointer,
22
22
  TEXTURE_CUBE_MAP_NEGATIVE_X: BinaryPointer,
23
23
  TEXTURE_CUBE_MAP_POSITIVE_Y: BinaryPointer,
@@ -37,10 +37,10 @@ export interface SerializedTextureCube extends TextureConfigOptionsBase, Texture
37
37
  target: WebGLRenderingContext['TEXTURE_CUBE_MAP'];
38
38
  mipmaps: SerializedTextureCubeMipmap[];
39
39
  }
40
- export declare type SerializedTexture2D = SerializedTexture2DImageSource | SerializedTexture2DMipmapSource;
41
- export declare type SerializedTextureSource = SerializedTexture2D | SerializedTextureCube;
42
- export declare type TextureJSONOptions = SerializedTextureSource;
43
- export declare type TextureDefine = TextureJSONOptions;
40
+ export type SerializedTexture2D = SerializedTexture2DImageSource | SerializedTexture2DMipmapSource;
41
+ export type SerializedTextureSource = SerializedTexture2D | SerializedTextureCube;
42
+ export type TextureJSONOptions = SerializedTextureSource;
43
+ export type TextureDefine = TextureJSONOptions;
44
44
  export interface TemplateContentBase {
45
45
  x?: number;
46
46
  y?: number;
@@ -107,4 +107,4 @@ export interface BaseItemTransform {
107
107
  */
108
108
  quat?: vec4;
109
109
  }
110
- export declare type BaseContent = SpriteContent | ParticleContent | NullContent | InteractContent | PluginContent | CompositionContent | CameraContent | FilterContent | TextContent | any;
110
+ export type BaseContent = SpriteContent | ParticleContent | NullContent | InteractContent | PluginContent | CompositionContent | CameraContent | FilterContent | TextContent | any;
@@ -4,7 +4,7 @@ export interface FilterItem extends BaseItem {
4
4
  content: FilterContent;
5
5
  endBehavior: ItemEndBehavior;
6
6
  }
7
- export declare type FilterParams = NoneFilterParams | GaussianFilterParams | BloomFilterPrams | DelayFilterPrams | DistortionFilterParams | CameraMoveFilterParams | AlphaMaskFilterParams | AlphaFrameFilterParams;
7
+ export type FilterParams = NoneFilterParams | GaussianFilterParams | BloomFilterPrams | DelayFilterPrams | DistortionFilterParams | CameraMoveFilterParams | AlphaMaskFilterParams | AlphaFrameFilterParams;
8
8
  export interface FilterContent {
9
9
  options: SpriteContentOptions;
10
10
  filter: FilterParams;
@@ -27,7 +27,7 @@ export interface InteractContent {
27
27
  /**
28
28
  * 交互元素基础属性
29
29
  */
30
- export declare type InteractOption = ClickInteractOption | MessageInteractOption | DragInteractOption;
30
+ export type InteractOption = ClickInteractOption | MessageInteractOption | DragInteractOption;
31
31
  /**
32
32
  * 点击交互元素基础属性
33
33
  */
@@ -56,7 +56,7 @@ export interface AttributeWithType extends AttributeBase {
56
56
  dataSource: string;
57
57
  type: BufferType;
58
58
  }
59
- export declare type AttributeJSON = AttributeWithDataPointer | AttributeWithType | AttributeWithDataSource;
59
+ export type AttributeJSON = AttributeWithDataPointer | AttributeWithType | AttributeWithDataSource;
60
60
  export interface GeometryOptionsJSON {
61
61
  name?: string;
62
62
  attributes: Record<string, AttributeJSON>;
@@ -74,12 +74,12 @@ export interface GeometryOptionsJSON {
74
74
  */
75
75
  maxVertex?: number;
76
76
  }
77
- export declare type GeometryPointer<T extends BinaryEnv> = T extends 'studio' ? any : GeometryOptionsJSON;
77
+ export type GeometryPointer<T extends BinaryEnv> = T extends 'studio' ? any : GeometryOptionsJSON;
78
78
  /**
79
79
  * studio 中是 `Texture` 对象
80
80
  * json 中是 `GLTFTexture<'json'>` 类型,`imageFileId` 是二进制指针
81
81
  * runtime 中是 `scene.textures` 数组的 `index`,`textures` 的创建由 Player 负责
82
82
  */
83
- export declare type TexturePointer<T extends BinaryEnv> = T extends 'studio' ? any : number;
84
- export declare type SkyboxCubeTexturePointer<T extends BinaryEnv> = T extends 'studio' ? any : number;
85
- export declare type ModelAnimationTrackDataPointer<T extends BinaryEnv> = Binary<Float32Array, Float32Array, T>;
83
+ export type TexturePointer<T extends BinaryEnv> = T extends 'studio' ? any : number;
84
+ export type SkyboxCubeTexturePointer<T extends BinaryEnv> = T extends 'studio' ? any : number;
85
+ export type ModelAnimationTrackDataPointer<T extends BinaryEnv> = Binary<Float32Array, Float32Array, T>;
@@ -46,7 +46,7 @@ export interface ModelLightDirOptions extends ModelLightBaseOptions {
46
46
  export interface ModelAmbientLightOptions extends ModelLightBaseOptions {
47
47
  lightType: 'ambient';
48
48
  }
49
- export declare type ModelLightOptions = ModelLightPointOptions | ModelLightDirOptions | ModelLightSpotOptions | ModelAmbientLightOptions;
49
+ export type ModelLightOptions = ModelLightPointOptions | ModelLightDirOptions | ModelLightSpotOptions | ModelAmbientLightOptions;
50
50
  export interface ModelLightContent {
51
51
  /**
52
52
  * 灯光元素基础属性
@@ -18,7 +18,7 @@ export declare enum MaterialBlending {
18
18
  translucent = 102,
19
19
  additive = 103
20
20
  }
21
- export declare type MaterialOptions<T extends BinaryEnv> = MaterialUnlitOptions<T> | MaterialPBROptions<T>;
21
+ export type MaterialOptions<T extends BinaryEnv> = MaterialUnlitOptions<T> | MaterialPBROptions<T>;
22
22
  export interface MaterialUnlitOptions<T extends BinaryEnv> {
23
23
  name: string;
24
24
  type: MaterialType.unlit;
@@ -5,7 +5,7 @@ import type { GeometryPointer } from './binary';
5
5
  import type { vec3 } from '../../numberExpression';
6
6
  import type { InteractBehavior, ItemType } from '../../type';
7
7
  import type { ModelAnimationTrackDataPointer } from './binary';
8
- export declare type BufferType = WebGLRenderingContext['FLOAT'] | WebGLRenderingContext['INT'] | WebGLRenderingContext['SHORT'] | WebGLRenderingContext['BYTE'] | WebGLRenderingContext['UNSIGNED_INT'] | WebGLRenderingContext['UNSIGNED_SHORT'] | WebGLRenderingContext['UNSIGNED_BYTE'];
8
+ export type BufferType = WebGLRenderingContext['FLOAT'] | WebGLRenderingContext['INT'] | WebGLRenderingContext['SHORT'] | WebGLRenderingContext['BYTE'] | WebGLRenderingContext['UNSIGNED_INT'] | WebGLRenderingContext['UNSIGNED_SHORT'] | WebGLRenderingContext['UNSIGNED_BYTE'];
9
9
  export interface PrimitiveOptions<T extends BinaryEnv> {
10
10
  geometry: GeometryPointer<T>;
11
11
  material: MaterialOptions<T>;
@@ -53,7 +53,7 @@ export interface ModelItemBoundingSphere {
53
53
  */
54
54
  radius: number;
55
55
  }
56
- export declare type ModelItemBounding = ModelItemBoundingBox | ModelItemBoundingSphere;
56
+ export type ModelItemBounding = ModelItemBoundingBox | ModelItemBoundingSphere;
57
57
  export interface ModelMeshItemContent<T extends BinaryEnv> {
58
58
  options: ModelMeshOptions<T>;
59
59
  interaction?: ModelItemBounding;
@@ -52,7 +52,7 @@ export interface ParticleShapeNone {
52
52
  turbulenceZ?: NumberExpression;
53
53
  upDirection?: number[];
54
54
  }
55
- export declare type ParticleShape = ParticleShapeCone | ParticleShapeCircle | ParticleShapeSphere | ParticleShapeHemisphere | ParticleShapeDonut | ParticleShapeRect | ParticleShapeRectEdge | ParticleShapeTexture | ParticleShapeEdge | ParticleShapeNone;
55
+ export type ParticleShape = ParticleShapeCone | ParticleShapeCircle | ParticleShapeSphere | ParticleShapeHemisphere | ParticleShapeDonut | ParticleShapeRect | ParticleShapeRectEdge | ParticleShapeTexture | ParticleShapeEdge | ParticleShapeNone;
56
56
  /**
57
57
  * 圆锥发射器
58
58
  */
@@ -30,7 +30,7 @@ export interface PluginContent {
30
30
  /**
31
31
  * 插件元素基础属性
32
32
  */
33
- export declare type PluginOption = PluginGyroscopeOption;
33
+ export type PluginOption = PluginGyroscopeOption;
34
34
  /**
35
35
  * 陀螺仪插件基础属性
36
36
  */
@@ -72,7 +72,7 @@ export interface PluginSpineOption {
72
72
  /**
73
73
  * spine资源信息
74
74
  */
75
- export declare type skeletonFileType = 'json' | 'skel';
75
+ export type skeletonFileType = 'json' | 'skel';
76
76
  export interface SpineResource {
77
77
  /**
78
78
  * atlas 文件在 `bins` 中的指针
@@ -14,4 +14,4 @@ import type { TextItem } from './item/text-item';
14
14
  * 1.0版本
15
15
  * 基类,无对应元素
16
16
  */
17
- export declare type Item = SpriteItem | ParticleItem | NullItem | PluginItem | InteractItem | FilterItem | CameraItem | TextItem | ModelMeshItem<'json'> | ModelSkyboxItem<'json'> | ModelTreeItem<'json'> | ModelLightItem | ModelCameraItem | SpineItem | CompositionItem | ModelMeshItem<'studio'> | ModelSkyboxItem<'studio'> | ModelTreeItem<'studio'>;
17
+ export type Item = SpriteItem | ParticleItem | NullItem | PluginItem | InteractItem | FilterItem | CameraItem | TextItem | ModelMeshItem<'json'> | ModelSkyboxItem<'json'> | ModelTreeItem<'json'> | ModelLightItem | ModelCameraItem | SpineItem | CompositionItem | ModelMeshItem<'studio'> | ModelSkyboxItem<'studio'> | ModelTreeItem<'studio'>;
@@ -70,11 +70,11 @@ export declare enum ValueType {
70
70
  */
71
71
  BEZIER_CURVE_PATH = 22
72
72
  }
73
- export declare type vec2 = [x: number, y: number];
74
- export declare type vec3 = [x: number, y: number, z: number];
75
- export declare type vec4 = [x: number, y: number, z: number, w: number];
76
- export declare type mat2 = [m11: number, m12: number, m21: number, m22: number];
77
- export declare type mat3 = [
73
+ export type vec2 = [x: number, y: number];
74
+ export type vec3 = [x: number, y: number, z: number];
75
+ export type vec4 = [x: number, y: number, z: number, w: number];
76
+ export type mat2 = [m11: number, m12: number, m21: number, m22: number];
77
+ export type mat3 = [
78
78
  m11: number,
79
79
  m12: number,
80
80
  m13: number,
@@ -85,7 +85,7 @@ export declare type mat3 = [
85
85
  m32: number,
86
86
  m33: number
87
87
  ];
88
- export declare type mat4 = [
88
+ export type mat4 = [
89
89
  m11: number,
90
90
  m12: number,
91
91
  m13: number,
@@ -105,44 +105,44 @@ export declare type mat4 = [
105
105
  ];
106
106
  /*********************************************/
107
107
  /*********************************************/
108
- export declare type FunctionExpression = LineValue | CurveValue | BezierValue;
109
- export declare type FixedNumberExpression = ConstantNumber | LineValue | CurveValue | BezierValue;
110
- export declare type NumberExpression = FixedNumberExpression | RandomValue;
111
- export declare type FixedVec3Expression = ConstantVec3 | BezierPath | LinearPath | BezierCurvePath;
108
+ export type FunctionExpression = LineValue | CurveValue | BezierValue;
109
+ export type FixedNumberExpression = ConstantNumber | LineValue | CurveValue | BezierValue;
110
+ export type NumberExpression = FixedNumberExpression | RandomValue;
111
+ export type FixedVec3Expression = ConstantVec3 | BezierPath | LinearPath | BezierCurvePath;
112
112
  /**
113
113
  * 常数数值
114
114
  * [0,5]
115
115
  * [1,[1,2]]
116
116
  * [2,[1,2,3]]
117
117
  */
118
- export declare type ConstantNumber = [type: ValueType.CONSTANT, value: number];
119
- export declare type ConstantVec2 = [type: ValueType.CONSTANT_VEC2, value: vec2];
120
- export declare type ConstantVec3 = [type: ValueType.CONSTANT_VEC3, value: vec3];
121
- export declare type ConstantVec4 = [type: ValueType.CONSTANT_VEC4, value: vec4];
118
+ export type ConstantNumber = [type: ValueType.CONSTANT, value: number];
119
+ export type ConstantVec2 = [type: ValueType.CONSTANT_VEC2, value: vec2];
120
+ export type ConstantVec3 = [type: ValueType.CONSTANT_VEC3, value: vec3];
121
+ export type ConstantVec4 = [type: ValueType.CONSTANT_VEC4, value: vec4];
122
122
  /**
123
123
  * 随机数数值
124
124
  */
125
- export declare type RandomValue = [type: ValueType.RANDOM, value: [min: number, max: number]];
125
+ export type RandomValue = [type: ValueType.RANDOM, value: [min: number, max: number]];
126
126
  /**
127
127
  * 直线段数值
128
128
  */
129
- export declare type LineValue = [type: ValueType.LINE, value: [time: number, value: number][]];
130
- export declare type CurveEasingPoint = [time: number, value: number, tanIn: number, tanOut: number];
129
+ export type LineValue = [type: ValueType.LINE, value: [time: number, value: number][]];
130
+ export type CurveEasingPoint = [time: number, value: number, tanIn: number, tanOut: number];
131
131
  /**
132
132
  * 曲线段数值
133
133
  */
134
- export declare type CurveValue = [type: ValueType.CURVE, value: CurveEasingPoint[]];
134
+ export type CurveValue = [type: ValueType.CURVE, value: CurveEasingPoint[]];
135
135
  /**
136
136
  * 贝塞尔路径数值
137
137
  */
138
- export declare type BezierPath = [type: ValueType.BEZIER_PATH, value: BezierPathValue];
139
- export declare type BezierPathValue = [
138
+ export type BezierPath = [type: ValueType.BEZIER_PATH, value: BezierPathValue];
139
+ export type BezierPathValue = [
140
140
  easing: CurveEasingPoint[],
141
141
  points: vec3[],
142
142
  controlPoints: vec3[]
143
143
  ];
144
- export declare type LinearPath = [type: ValueType.LINEAR_PATH, value: LinearPathValue];
145
- export declare type LinearPathValue = [
144
+ export type LinearPath = [type: ValueType.LINEAR_PATH, value: LinearPathValue];
145
+ export type LinearPathValue = [
146
146
  easing: CurveEasingPoint[],
147
147
  points: vec3[]
148
148
  ];
@@ -161,7 +161,7 @@ export declare enum BezierKeyframeType {
161
161
  /**
162
162
  * 缓动关键帧数据(有三个点:左曲线控制点、曲线点、右曲线控制点,auto:自动关键帧)
163
163
  */
164
- export declare type EaseKeyframeValue = [
164
+ export type EaseKeyframeValue = [
165
165
  type: BezierKeyframeType.EASE,
166
166
  value: [x1: number, y1: number, x2: number, y2: number, x3: number, y3: number],
167
167
  markType?: BezierKeyframeType
@@ -169,7 +169,7 @@ export declare type EaseKeyframeValue = [
169
169
  /**
170
170
  * 缓入关键帧数据(有两个点:左曲线控制点、曲线点)
171
171
  */
172
- export declare type EaseInKeyframeValue = [
172
+ export type EaseInKeyframeValue = [
173
173
  type: BezierKeyframeType.EASE_IN,
174
174
  value: [x1: number, y1: number, x2: number, y2: number],
175
175
  markType?: BezierKeyframeType
@@ -177,7 +177,7 @@ export declare type EaseInKeyframeValue = [
177
177
  /**
178
178
  * 缓出关键帧数据(有两个点:曲线点、右曲线控制点)
179
179
  */
180
- export declare type EaseOutKeyframeValue = [
180
+ export type EaseOutKeyframeValue = [
181
181
  type: BezierKeyframeType.EASE_OUT,
182
182
  value: [x2: number, y2: number, x3: number, y3: number],
183
183
  markType?: BezierKeyframeType
@@ -185,7 +185,7 @@ export declare type EaseOutKeyframeValue = [
185
185
  /**
186
186
  * 线性关键帧数据(有一个点:曲线点)
187
187
  */
188
- export declare type LineKeyframeValue = [
188
+ export type LineKeyframeValue = [
189
189
  type: BezierKeyframeType.LINE,
190
190
  value: [x2: number, y2: number],
191
191
  markType?: BezierKeyframeType
@@ -193,7 +193,7 @@ export declare type LineKeyframeValue = [
193
193
  /**
194
194
  * 缓动定格出关键帧(有两个点:左曲线控制点、曲线点)
195
195
  */
196
- export declare type EaseHoldOutKeyframeValue = [
196
+ export type EaseHoldOutKeyframeValue = [
197
197
  type: BezierKeyframeType.HOLD,
198
198
  value: [x1: number, y1: number, x2: number, y2: number],
199
199
  markType: BezierKeyframeType.EASE_IN
@@ -201,7 +201,7 @@ export declare type EaseHoldOutKeyframeValue = [
201
201
  /**
202
202
  * 缓动定格出关键帧(有两个点:曲线点、右曲线控制点)
203
203
  */
204
- export declare type EaseHoldInKeyframeValue = [
204
+ export type EaseHoldInKeyframeValue = [
205
205
  type: BezierKeyframeType.HOLD,
206
206
  value: [x1: number, y1: number, x2: number, y2: number],
207
207
  markType: BezierKeyframeType.EASE_OUT
@@ -209,7 +209,7 @@ export declare type EaseHoldInKeyframeValue = [
209
209
  /**
210
210
  * 线性定格出关键帧(有一个点:曲线点)
211
211
  */
212
- export declare type LineHoldOutKeyframeValue = [
212
+ export type LineHoldOutKeyframeValue = [
213
213
  type: BezierKeyframeType.HOLD,
214
214
  value: [x2: number, y2: number],
215
215
  markType: BezierKeyframeType.LINE
@@ -217,7 +217,7 @@ export declare type LineHoldOutKeyframeValue = [
217
217
  /**
218
218
  * 线性定格进关键帧(有一个点:曲线点)
219
219
  */
220
- export declare type LineHoldInKeyframeValue = [
220
+ export type LineHoldInKeyframeValue = [
221
221
  type: BezierKeyframeType.HOLD,
222
222
  value: [x2: number, y2: number],
223
223
  markType: BezierKeyframeType.LINE_OUT
@@ -225,7 +225,7 @@ export declare type LineHoldInKeyframeValue = [
225
225
  /**
226
226
  * 定格进出关键帧(有一个点:曲线点)
227
227
  */
228
- export declare type HoldInOutKeyframeValue = [
228
+ export type HoldInOutKeyframeValue = [
229
229
  type: BezierKeyframeType.HOLD,
230
230
  value: [x2: number, y2: number],
231
231
  markType: BezierKeyframeType.HOLD
@@ -233,47 +233,47 @@ export declare type HoldInOutKeyframeValue = [
233
233
  /**
234
234
  * 定格关键帧
235
235
  */
236
- export declare type HoldKeyframeValue = EaseHoldOutKeyframeValue | EaseHoldInKeyframeValue | LineHoldOutKeyframeValue | LineHoldInKeyframeValue | HoldInOutKeyframeValue;
236
+ export type HoldKeyframeValue = EaseHoldOutKeyframeValue | EaseHoldInKeyframeValue | LineHoldOutKeyframeValue | LineHoldInKeyframeValue | HoldInOutKeyframeValue;
237
237
  /**
238
238
  * 贝塞尔关键帧值
239
239
  */
240
- export declare type BezierKeyframeValue = EaseKeyframeValue | EaseInKeyframeValue | EaseOutKeyframeValue | LineKeyframeValue | HoldKeyframeValue;
240
+ export type BezierKeyframeValue = EaseKeyframeValue | EaseInKeyframeValue | EaseOutKeyframeValue | LineKeyframeValue | HoldKeyframeValue;
241
241
  /**
242
242
  * 贝塞尔关键帧
243
243
  */
244
- export declare type BezierValue = [type: ValueType.BEZIER_CURVE, value: BezierKeyframeValue[]];
244
+ export type BezierValue = [type: ValueType.BEZIER_CURVE, value: BezierKeyframeValue[]];
245
245
  /**
246
246
  * 贝塞尔曲线路径关键帧值
247
247
  */
248
- export declare type BezierCurvePathValue = [easing: BezierKeyframeValue[], points: vec3[], controlePoints: vec3[]];
248
+ export type BezierCurvePathValue = [easing: BezierKeyframeValue[], points: vec3[], controlePoints: vec3[]];
249
249
  /**
250
250
  * 贝塞尔曲线路径关键帧
251
251
  */
252
- export declare type BezierCurvePath = [type: ValueType.BEZIER_CURVE_PATH, value: BezierCurvePathValue];
252
+ export type BezierCurvePath = [type: ValueType.BEZIER_CURVE_PATH, value: BezierCurvePathValue];
253
253
  /*********************************************/
254
254
  /*********************************************/
255
- export declare type ColorExpression = RGBAColor | GradientColor | RGBAColors;
255
+ export type ColorExpression = RGBAColor | GradientColor | RGBAColors;
256
256
  /**
257
257
  * rgba range in [0,255]
258
258
  */
259
- export declare type RGBAColorValue = [r: number, g: number, b: number, a: number];
259
+ export type RGBAColorValue = [r: number, g: number, b: number, a: number];
260
260
  /**
261
261
  * 颜色数值
262
262
  */
263
- export declare type RGBAColor = [type: ValueType.RGBA_COLOR, value: RGBAColorValue];
263
+ export type RGBAColor = [type: ValueType.RGBA_COLOR, value: RGBAColorValue];
264
264
  /**
265
265
  * 渐变色数值
266
266
  */
267
- export declare type GradientStop = [stop: number, r: number, g: number, b: number, a: number];
268
- export declare type GradientColor = [type: ValueType.GRADIENT_COLOR, value: GradientStop[]];
269
- export declare type RGBAColors = [type: ValueType.COLORS, value: RGBAColorValue[]];
267
+ export type GradientStop = [stop: number, r: number, g: number, b: number, a: number];
268
+ export type GradientColor = [type: ValueType.GRADIENT_COLOR, value: GradientStop[]];
269
+ export type RGBAColors = [type: ValueType.COLORS, value: RGBAColorValue[]];
270
270
  /*********************************************/
271
271
  /*********************************************/
272
272
  /**
273
273
  * 蒙版形状控制点数值
274
274
  */
275
- export declare type ShapePoints = [type: ValueType.SHAPE_POINTS, value: [x: number, y: number, xIn: number, yIn: number, xOut: number, yOut: number][]];
275
+ export type ShapePoints = [type: ValueType.SHAPE_POINTS, value: [x: number, y: number, xIn: number, yIn: number, xOut: number, yOut: number][]];
276
276
  /**
277
277
  * 蒙版形状采样分割点数值
278
278
  */
279
- export declare type ShapeSplits = [type: ValueType.SHAPE_SPLITS, value: number[][]];
279
+ export type ShapeSplits = [type: ValueType.SHAPE_SPLITS, value: number[][]];
@@ -90,4 +90,4 @@ export interface JSONScene {
90
90
  /**
91
91
  * 如果是内置模块,但是需要额外的代码引入,比如滤镜则会加入 requires 数组中
92
92
  */
93
- export declare type SceneRequire = 'filter';
93
+ export type SceneRequire = 'filter';
@@ -217,7 +217,7 @@ export interface TextureSheetAnimation {
217
217
  /**
218
218
  * 精灵图坐标属性
219
219
  */
220
- export declare type SplitParameter = [
220
+ export type SplitParameter = [
221
221
  /**
222
222
  * 起点[归一化坐标]
223
223
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-specification",
3
- "version": "0.0.2",
3
+ "version": "1.0.0",
4
4
  "description": "Galacean Effects JSON Specification",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.js",