@galacean/effects-specification 2.2.0-alpha.0 → 2.2.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.
@@ -1,4 +1,4 @@
1
- import type { ColorCurveData, Vector4CurveData } from './curve-data';
1
+ import type { ColorCurveData, Vector2CurveData, Vector4CurveData } from './curve-data';
2
2
  /*********************************************/
3
3
  /*********************************************/
4
4
  export declare enum ValueType {
@@ -81,7 +81,11 @@ export declare enum ValueType {
81
81
  /**
82
82
  * Vector4 曲线
83
83
  */
84
- VECTOR4_CURVE = 25
84
+ VECTOR4_CURVE = 25,
85
+ /**
86
+ * Vector2 曲线
87
+ */
88
+ VECTOR2_CURVE = 26
85
89
  }
86
90
  export type vec2 = [x: number, y: number];
87
91
  export type vec3 = [x: number, y: number, z: number];
@@ -280,6 +284,10 @@ export type ColorCurveValue = [type: ValueType.COLOR_CURVE, value: ColorCurveDat
280
284
  * Vector4 贝塞尔曲线
281
285
  */
282
286
  export type Vector4CurveValue = [type: ValueType.VECTOR4_CURVE, value: Vector4CurveData];
287
+ /**
288
+ * Vector2 贝塞尔曲线
289
+ */
290
+ export type Vector2CurveValue = [type: ValueType.VECTOR2_CURVE, value: Vector2CurveData];
283
291
  /*********************************************/
284
292
  /*********************************************/
285
293
  export type ColorExpression = RGBAColor | GradientColor | RGBAColors;
@@ -83,6 +83,10 @@ export var ValueType;
83
83
  * Vector4 曲线
84
84
  */
85
85
  ValueType[ValueType["VECTOR4_CURVE"] = 25] = "VECTOR4_CURVE";
86
+ /**
87
+ * Vector2 曲线
88
+ */
89
+ ValueType[ValueType["VECTOR2_CURVE"] = 26] = "VECTOR2_CURVE";
86
90
  })(ValueType || (ValueType = {}));
87
91
  /**
88
92
  * 关键帧类型
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-specification",
3
- "version": "2.2.0-alpha.0",
3
+ "version": "2.2.0-alpha.1",
4
4
  "description": "Galacean Effects JSON Specification",
5
5
  "module": "./es/index.js",
6
6
  "main": "./es/index.js",