@galacean/effects-specification 2.3.0 → 2.4.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/es/item/base-item.d.ts +15 -13
- package/es/item/effect-item.d.ts +2 -2
- package/es/item/particle-item.d.ts +2 -2
- package/es/item/spine-item.d.ts +2 -2
- package/es/item/sprite-item.d.ts +2 -2
- package/es/item/text-item.d.ts +2 -2
- package/es/item/video-item.d.ts +2 -2
- package/es/shape/shape-component-data.d.ts +2 -2
- package/es/type.d.ts +2 -2
- package/package.json +1 -1
package/es/item/base-item.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { BinaryEnv } from '../binary';
|
|
|
2
2
|
import type { DataPath } from '../components';
|
|
3
3
|
import type { Vector2Data, Vector3Data } from '../math';
|
|
4
4
|
import type { vec3, vec4 } from '../number-expression';
|
|
5
|
-
import type { ItemType,
|
|
5
|
+
import type { ItemType, RenderLevel } from '../type';
|
|
6
6
|
import type { CameraContent } from './camera-item';
|
|
7
7
|
import type { CompositionContent } from './composition-item';
|
|
8
8
|
import type { EffectContent } from './effect-item';
|
|
@@ -37,23 +37,25 @@ export declare enum EndBehavior {
|
|
|
37
37
|
freeze = 4
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export interface ObscuredOptions {
|
|
43
|
-
mode: ObscuredMode;
|
|
44
|
-
/**
|
|
45
|
-
* 指向作为蒙版的组件
|
|
46
|
-
*/
|
|
47
|
-
ref: DataPath;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* 元素的蒙版行为
|
|
40
|
+
* 元素的蒙版选项
|
|
51
41
|
*/
|
|
52
42
|
export interface MaskOptions {
|
|
53
43
|
/**
|
|
54
44
|
* 是否作为蒙版
|
|
55
45
|
*/
|
|
56
|
-
|
|
46
|
+
isMask?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* 是否反转
|
|
49
|
+
*/
|
|
50
|
+
inverted?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* 是否开启图片透明蒙版
|
|
53
|
+
*/
|
|
54
|
+
alphaMaskEnabled?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* 指向作为蒙版的组件
|
|
57
|
+
*/
|
|
58
|
+
reference: DataPath;
|
|
57
59
|
}
|
|
58
60
|
export interface BaseItem {
|
|
59
61
|
/**
|
package/es/item/effect-item.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComponentData, DataPath } from '../components';
|
|
2
2
|
import type { ItemType, PositionOverLifetime, RotationOverLifetime, SizeOverLifetime } from '../type';
|
|
3
|
-
import type { BaseItem, EndBehavior,
|
|
3
|
+
import type { BaseItem, EndBehavior, MaskOptions } from './base-item';
|
|
4
4
|
/**
|
|
5
5
|
* 特效元素
|
|
6
6
|
*/
|
|
@@ -41,5 +41,5 @@ export interface EffectComponentData extends ComponentData {
|
|
|
41
41
|
/**
|
|
42
42
|
* 特效元素蒙版属性,传入表示需要被遮挡/反向遮挡
|
|
43
43
|
*/
|
|
44
|
-
mask?:
|
|
44
|
+
mask?: MaskOptions;
|
|
45
45
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ItemType, RendererOptions, TextureSheetAnimation, BlendingMode, SplitParameter, ObscuredMode } from '../type';
|
|
2
2
|
import type { FixedNumberExpression, NumberExpression, GradientColor, vec3, FixedVec3Expression, ColorExpression, FunctionExpression } from '../number-expression';
|
|
3
|
-
import type { BaseItem, EndBehavior,
|
|
3
|
+
import type { BaseItem, EndBehavior, MaskOptions } from './base-item';
|
|
4
4
|
import type { ParticleShape } from './particle-shape';
|
|
5
5
|
import type { ComponentData, DataPath } from '../components';
|
|
6
6
|
/**
|
|
@@ -280,7 +280,7 @@ export interface ParticleContent {
|
|
|
280
280
|
/**
|
|
281
281
|
* 粒子元素蒙版属性,传入表示需要被遮挡/反向遮挡
|
|
282
282
|
*/
|
|
283
|
-
mask?:
|
|
283
|
+
mask?: MaskOptions;
|
|
284
284
|
/**
|
|
285
285
|
* 粒子元素发射器形状属性
|
|
286
286
|
*/
|
package/es/item/spine-item.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { BinaryPointer } from '../binary';
|
|
|
2
2
|
import type { ComponentData, DataPath } from '../components';
|
|
3
3
|
import type { DataType } from '../data-type';
|
|
4
4
|
import type { SizeOverLifetime, RotationOverLifetime, PositionOverLifetime, ColorOverLifetime, RendererOptions, ItemType, RenderMode } from '../type';
|
|
5
|
-
import type { BaseItem, EndBehavior,
|
|
5
|
+
import type { BaseItem, EndBehavior, MaskOptions } from './base-item';
|
|
6
6
|
/**
|
|
7
7
|
* 插件元素
|
|
8
8
|
*/
|
|
@@ -125,5 +125,5 @@ export interface SpineComponent extends ComponentData {
|
|
|
125
125
|
/**
|
|
126
126
|
* Spine 元素蒙版属性,传入表示需要被遮挡/反向遮挡
|
|
127
127
|
*/
|
|
128
|
-
mask?:
|
|
128
|
+
mask?: MaskOptions;
|
|
129
129
|
}
|
package/es/item/sprite-item.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseItem, EndBehavior, MaskOptions
|
|
1
|
+
import type { BaseItem, EndBehavior, MaskOptions } from './base-item';
|
|
2
2
|
import type { SizeOverLifetime, RotationOverLifetime, PositionOverLifetime, ColorOverLifetime, ItemType, TextureSheetAnimation, RendererOptions, SplitParameter, InteractBehavior } from '../type';
|
|
3
3
|
import type { RGBAColorValue } from '../number-expression';
|
|
4
4
|
import type { ComponentData } from '../components';
|
|
@@ -43,7 +43,7 @@ export interface SpriteContent {
|
|
|
43
43
|
/**
|
|
44
44
|
* 图层元素蒙版属性,传入表示需要作为蒙版/被遮挡/反向遮挡
|
|
45
45
|
*/
|
|
46
|
-
mask?: MaskOptions
|
|
46
|
+
mask?: MaskOptions;
|
|
47
47
|
/**
|
|
48
48
|
* 图层元素大小变化属性
|
|
49
49
|
*/
|
package/es/item/text-item.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseItem, EndBehavior, MaskOptions
|
|
1
|
+
import type { BaseItem, EndBehavior, MaskOptions } from './base-item';
|
|
2
2
|
import type { SizeOverLifetime, RotationOverLifetime, PositionOverLifetime, ColorOverLifetime, ItemType, TextureSheetAnimation, RendererOptions, InteractBehavior } from '../type';
|
|
3
3
|
import type { RGBAColorValue } from '../number-expression';
|
|
4
4
|
import type { FontStyle, TextAlignment, TextBaseline, TextOverflow, TextWeight } from '../text';
|
|
@@ -146,7 +146,7 @@ export interface TextContent {
|
|
|
146
146
|
/**
|
|
147
147
|
* 文本元素蒙版属性,传入表示需要作为蒙版/被遮挡/反向遮挡
|
|
148
148
|
*/
|
|
149
|
-
mask?: MaskOptions
|
|
149
|
+
mask?: MaskOptions;
|
|
150
150
|
/**
|
|
151
151
|
* 文本元素大小变化属性
|
|
152
152
|
*/
|
package/es/item/video-item.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentData, DataPath } from '../components';
|
|
2
2
|
import type { RGBAColorValue } from '../number-expression';
|
|
3
3
|
import type { SizeOverLifetime, RotationOverLifetime, PositionOverLifetime, ColorOverLifetime, InteractBehavior, RendererOptions, ItemType } from '../type';
|
|
4
|
-
import type { BaseItem, EndBehavior,
|
|
4
|
+
import type { BaseItem, EndBehavior, MaskOptions } from './base-item';
|
|
5
5
|
/**
|
|
6
6
|
* 视频元素
|
|
7
7
|
*/
|
|
@@ -62,7 +62,7 @@ export interface VideoComponentData extends ComponentData {
|
|
|
62
62
|
/**
|
|
63
63
|
* 视频元素蒙版属性,传入表示需要被遮挡/反向遮挡
|
|
64
64
|
*/
|
|
65
|
-
mask?:
|
|
65
|
+
mask?: MaskOptions;
|
|
66
66
|
/**
|
|
67
67
|
* 视频元素大小变化属性
|
|
68
68
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentData } from '../components/component-data';
|
|
2
|
-
import type { MaskOptions
|
|
2
|
+
import type { MaskOptions } from '../item/base-item';
|
|
3
3
|
import type { ShapeFillParam } from './shape-fill-param';
|
|
4
4
|
import type { ShapePrimitiveType } from './shape-primitive-type';
|
|
5
5
|
import type { ShapeStrokeParam } from './shape-stroke-param';
|
|
@@ -22,5 +22,5 @@ export interface ShapeComponentData extends ComponentData {
|
|
|
22
22
|
/**
|
|
23
23
|
* 蒙版属性,传入表示需要作为蒙版/被遮挡/反向遮挡
|
|
24
24
|
*/
|
|
25
|
-
mask?: MaskOptions
|
|
25
|
+
mask?: MaskOptions;
|
|
26
26
|
}
|
package/es/type.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DataPath } from './components';
|
|
2
|
-
import type {
|
|
2
|
+
import type { MaskOptions } from './item/base-item';
|
|
3
3
|
import type { FixedVec3Expression, vec2, vec3, GradientColor, ShapePoints, ShapeSplits, FixedNumberExpression } from './number-expression';
|
|
4
4
|
/**
|
|
5
5
|
* 播放器版本
|
|
@@ -457,7 +457,7 @@ export interface RendererOptions {
|
|
|
457
457
|
/**
|
|
458
458
|
* 蒙版属性
|
|
459
459
|
*/
|
|
460
|
-
mask?: MaskOptions
|
|
460
|
+
mask?: MaskOptions;
|
|
461
461
|
}
|
|
462
462
|
/**
|
|
463
463
|
* 元素类型
|