@galacean/effects-specification 2.2.0-alpha.5 → 2.2.0-alpha.6

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 { ItemType, RendererOptions, TextureSheetAnimation, BlendingMode, SplitParameter } from '../type';
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
3
  import type { BaseItem, EndBehavior, ObscuredOptions } from './base-item';
4
4
  import type { ParticleShape } from './particle-shape';
@@ -417,4 +417,8 @@ export interface ParticleTrail {
417
417
  * 拖尾+图层绑定同一个父节点时使用
418
418
  */
419
419
  parentAffectsPosition?: boolean;
420
+ /**
421
+ * 拖尾蒙版属性,传入表示需要被遮挡/反向遮挡
422
+ */
423
+ mask?: ObscuredMode;
420
424
  }
@@ -1,4 +1,5 @@
1
1
  import type { ComponentData } from '../components/component-data';
2
+ import type { MaskOptions, ObscuredOptions } from '../item/base-item';
2
3
  import type { ShapeFillParam } from './shape-fill-param';
3
4
  import type { ShapePrimitiveType } from './shape-primitive-type';
4
5
  import type { ShapeStrokeParam } from './shape-stroke-param';
@@ -18,4 +19,8 @@ export interface ShapeComponentData extends ComponentData {
18
19
  * 填充属性
19
20
  */
20
21
  fill?: ShapeFillParam;
22
+ /**
23
+ * 蒙版属性,传入表示需要作为蒙版/被遮挡/反向遮挡
24
+ */
25
+ mask?: MaskOptions | ObscuredOptions;
21
26
  }
package/es/type.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { DataPath } from './components';
2
+ import type { ObscuredOptions, MaskOptions } from './item/base-item';
2
3
  import type { FixedVec3Expression, vec2, vec3, GradientColor, ShapePoints, ShapeSplits, FixedNumberExpression } from './number-expression';
3
4
  /**
4
5
  * 播放器版本
@@ -453,6 +454,10 @@ export interface RendererOptions {
453
454
  * 锚点
454
455
  */
455
456
  anchor?: vec2;
457
+ /**
458
+ * 蒙版属性
459
+ */
460
+ mask?: MaskOptions | ObscuredOptions;
456
461
  }
457
462
  /**
458
463
  * 元素类型
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-specification",
3
- "version": "2.2.0-alpha.5",
3
+ "version": "2.2.0-alpha.6",
4
4
  "description": "Galacean Effects JSON Specification",
5
5
  "module": "./es/index.js",
6
6
  "main": "./es/index.js",