@galacean/effects-specification 2.3.0-alpha.0 → 2.3.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.
package/es/index.d.ts CHANGED
@@ -40,4 +40,4 @@ export * from './material-data';
40
40
  export * from './geometry-data';
41
41
  export * from './shader-data';
42
42
  export * from './effects-package-data';
43
- export declare const LATEST_VERSION = JSONSceneVersion['3_2'];
43
+ export declare const LATEST_VERSION = JSONSceneVersion['3_3'];
@@ -36,9 +36,6 @@ export declare enum EndBehavior {
36
36
  */
37
37
  freeze = 4
38
38
  }
39
- export declare enum ParentItemEndBehavior {
40
- destroyChildren = 6
41
- }
42
39
  /**
43
40
  * 元素被遮挡/反向遮挡,需要时传入
44
41
  */
@@ -95,7 +92,7 @@ export interface BaseItem {
95
92
  * 元素结束行为
96
93
  * @default destroy
97
94
  */
98
- endBehavior: EndBehavior | ParentItemEndBehavior;
95
+ endBehavior: EndBehavior;
99
96
  /**
100
97
  * 元素播放延时(单位秒)
101
98
  * @default 0
@@ -1,4 +1,4 @@
1
- import { END_BEHAVIOR_DESTROY, END_BEHAVIOR_DESTROY_CHILDREN, END_BEHAVIOR_FORWARD, END_BEHAVIOR_FREEZE, END_BEHAVIOR_RESTART, } from '../constants';
1
+ import { END_BEHAVIOR_DESTROY, END_BEHAVIOR_FORWARD, END_BEHAVIOR_FREEZE, END_BEHAVIOR_RESTART, } from '../constants';
2
2
  /**
3
3
  * 结束行为
4
4
  */
@@ -21,7 +21,3 @@ export var EndBehavior;
21
21
  */
22
22
  EndBehavior[EndBehavior["freeze"] = 4] = "freeze";
23
23
  })(EndBehavior || (EndBehavior = {}));
24
- export var ParentItemEndBehavior;
25
- (function (ParentItemEndBehavior) {
26
- ParentItemEndBehavior[ParentItemEndBehavior["destroyChildren"] = 6] = "destroyChildren";
27
- })(ParentItemEndBehavior || (ParentItemEndBehavior = {}));
@@ -1,4 +1,4 @@
1
- import type { BaseItem, EndBehavior, MaskOptions } from './base-item';
1
+ import type { BaseItem, EndBehavior, MaskOptions, ObscuredOptions } from './base-item';
2
2
  import type { ItemType } from '../type';
3
3
  import type { BaseTextContentOptions, TextComponentData, TextContent } from './text-item';
4
4
  import type { vec2 } from '../number-expression';
@@ -45,5 +45,5 @@ export interface RichTextComponentData extends Omit<TextComponentData, 'options'
45
45
  /**
46
46
  * 富文本元素蒙版属性,传入表示需要作为蒙版/被遮挡/反向遮挡
47
47
  */
48
- mask?: MaskOptions;
48
+ mask?: MaskOptions | ObscuredOptions;
49
49
  }
package/es/scene.d.ts CHANGED
@@ -31,7 +31,8 @@ export declare enum JSONSceneVersion {
31
31
  '3_0' = "3.0",// EC 改造、移除滤镜元素
32
32
  '3_1' = "3.1",// 音视频
33
33
  '3_2' = "3.2",// 矢量动画、透明视频、增加富文本属性
34
- 'LATEST' = "3.2"
34
+ '3_3' = "3.3",// 指向型蒙版、图片蒙版
35
+ 'LATEST' = "3.3"
35
36
  }
36
37
  /**
37
38
  * runtime 2.0 之前的场景信息
package/es/scene.js CHANGED
@@ -17,5 +17,6 @@ export var JSONSceneVersion;
17
17
  JSONSceneVersion["3_0"] = "3.0";
18
18
  JSONSceneVersion["3_1"] = "3.1";
19
19
  JSONSceneVersion["3_2"] = "3.2";
20
- JSONSceneVersion["LATEST"] = "3.2";
20
+ JSONSceneVersion["3_3"] = "3.3";
21
+ JSONSceneVersion["LATEST"] = "3.3";
21
22
  })(JSONSceneVersion || (JSONSceneVersion = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-specification",
3
- "version": "2.3.0-alpha.0",
3
+ "version": "2.3.1",
4
4
  "description": "Galacean Effects JSON Specification",
5
5
  "module": "./es/index.js",
6
6
  "main": "./es/index.js",