@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 +1 -1
- package/es/item/base-item.d.ts +1 -4
- package/es/item/base-item.js +1 -5
- package/es/item/rich-text-item.d.ts +2 -2
- package/es/scene.d.ts +2 -1
- package/es/scene.js +2 -1
- package/package.json +1 -1
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['
|
|
43
|
+
export declare const LATEST_VERSION = JSONSceneVersion['3_3'];
|
package/es/item/base-item.d.ts
CHANGED
|
@@ -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
|
|
95
|
+
endBehavior: EndBehavior;
|
|
99
96
|
/**
|
|
100
97
|
* 元素播放延时(单位秒)
|
|
101
98
|
* @default 0
|
package/es/item/base-item.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { END_BEHAVIOR_DESTROY,
|
|
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
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["
|
|
20
|
+
JSONSceneVersion["3_3"] = "3.3";
|
|
21
|
+
JSONSceneVersion["LATEST"] = "3.3";
|
|
21
22
|
})(JSONSceneVersion || (JSONSceneVersion = {}));
|