@galacean/effects-specification 2.1.0-alpha.3 → 2.1.0-alpha.4

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,5 @@
1
- export interface PostProcessVolumeData {
1
+ import type { ComponentData } from './component-data';
2
+ export interface PostProcessVolumeData extends ComponentData {
2
3
  /**
3
4
  * 泛光
4
5
  */
@@ -1,7 +1,7 @@
1
1
  import type { BezierValue } from '../number-expression';
2
- export interface ColorCurveData {
3
- r: BezierValue;
4
- g: BezierValue;
5
- b: BezierValue;
6
- a: BezierValue;
7
- }
2
+ export type ColorCurveData = [
3
+ r: BezierValue,
4
+ g: BezierValue,
5
+ b: BezierValue,
6
+ a: BezierValue
7
+ ];
@@ -1,7 +1,7 @@
1
1
  import type { BezierValue } from '../number-expression';
2
- export interface Vector4CurveData {
3
- x: BezierValue;
4
- y: BezierValue;
5
- z: BezierValue;
6
- w: BezierValue;
7
- }
2
+ export type Vector4CurveData = [
3
+ x: BezierValue,
4
+ y: BezierValue,
5
+ z: BezierValue,
6
+ w: BezierValue
7
+ ];
@@ -1,3 +1,4 @@
1
+ import type { ColorCurveData, Vector4CurveData } from './curve-data';
1
2
  /*********************************************/
2
3
  /*********************************************/
3
4
  export declare enum ValueType {
@@ -271,6 +272,14 @@ export type BezierCurvePath = [type: ValueType.BEZIER_CURVE_PATH, value: BezierC
271
272
  * 贝塞尔曲线路径关键帧
272
273
  */
273
274
  export type BezierCurveQuat = [type: ValueType.BEZIER_CURVE_QUAT, value: BezierCurveQuatValue];
275
+ /**
276
+ * 颜色贝塞尔曲线
277
+ */
278
+ export type ColorCurveValue = [type: ValueType.COLOR_CURVE, value: ColorCurveData];
279
+ /**
280
+ * Vector4 贝塞尔曲线
281
+ */
282
+ export type Vector4CurveValue = [type: ValueType.VECTOR4_CURVE, value: Vector4CurveData];
274
283
  /*********************************************/
275
284
  /*********************************************/
276
285
  export type ColorExpression = RGBAColor | GradientColor | RGBAColors;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-specification",
3
- "version": "2.1.0-alpha.3",
3
+ "version": "2.1.0-alpha.4",
4
4
  "description": "Galacean Effects JSON Specification",
5
5
  "module": "./es/index.js",
6
6
  "main": "./es/index.js",