@galacean/effects-specification 2.1.0-alpha.2 → 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,12 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { ComponentData } from './component-data';
|
|
2
|
+
export interface PostProcessVolumeData extends ComponentData {
|
|
3
|
+
/**
|
|
4
|
+
* 泛光
|
|
5
|
+
*/
|
|
6
|
+
bloom?: Bloom;
|
|
7
|
+
/**
|
|
8
|
+
* 颜色调整
|
|
9
|
+
*/
|
|
10
|
+
colorAdjustments?: ColorAdjustments;
|
|
11
|
+
/**
|
|
12
|
+
* 晕影
|
|
13
|
+
*/
|
|
14
|
+
vignette?: Vignette;
|
|
15
|
+
/**
|
|
16
|
+
* 色调映射
|
|
17
|
+
*/
|
|
18
|
+
tonemapping?: Tonemapping;
|
|
19
|
+
}
|
|
20
|
+
export interface PostProcessEffectSettings {
|
|
21
|
+
active: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface Bloom extends PostProcessEffectSettings {
|
|
3
24
|
threshold: number;
|
|
4
|
-
|
|
25
|
+
intensity: number;
|
|
26
|
+
}
|
|
27
|
+
export interface Tonemapping extends PostProcessEffectSettings {
|
|
28
|
+
}
|
|
29
|
+
export interface ColorAdjustments extends PostProcessEffectSettings {
|
|
5
30
|
brightness: number;
|
|
6
31
|
saturation: number;
|
|
7
32
|
contrast: number;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
33
|
+
}
|
|
34
|
+
export interface Vignette extends PostProcessEffectSettings {
|
|
35
|
+
intensity: number;
|
|
36
|
+
smoothness: number;
|
|
37
|
+
roundness: number;
|
|
12
38
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BezierValue } from '../number-expression';
|
|
2
|
-
export
|
|
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
|
|
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
|
+
];
|
package/es/item/spine-item.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BinaryPointer } from '../binary';
|
|
2
2
|
import type { ComponentData, DataPath } from '../components';
|
|
3
3
|
import type { DataType } from '../data-type';
|
|
4
|
-
import type { SizeOverLifetime, RotationOverLifetime, PositionOverLifetime, ColorOverLifetime, RendererOptions, ItemType } from '../type';
|
|
4
|
+
import type { SizeOverLifetime, RotationOverLifetime, PositionOverLifetime, ColorOverLifetime, RendererOptions, ItemType, MaskMode, RenderMode } from '../type';
|
|
5
5
|
import type { BaseItem, EndBehavior } from './base-item';
|
|
6
6
|
/**
|
|
7
7
|
* 插件元素
|
|
@@ -119,4 +119,8 @@ export interface SpineComponent extends ComponentData {
|
|
|
119
119
|
images: DataPath[];
|
|
120
120
|
skeletonType: skeletonFileType;
|
|
121
121
|
};
|
|
122
|
+
renderer?: {
|
|
123
|
+
renderMode: RenderMode;
|
|
124
|
+
maskMode: MaskMode;
|
|
125
|
+
};
|
|
122
126
|
}
|
|
@@ -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;
|