@galacean/effects-specification 2.0.0-alpha.2 → 2.0.0-alpha.3
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/dist/fallback.js +15 -18
- package/dist/fallback.js.map +1 -1
- package/dist/fallback.mjs +15 -18
- package/dist/fallback.mjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/item/effect-item.d.ts +20 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Name: @galacean/effects-specification
|
|
3
3
|
* Description: Galacean Effects JSON Specification
|
|
4
4
|
* Author: Ant Group CO., Ltd.
|
|
5
|
-
* Version: v2.0.0-alpha.
|
|
5
|
+
* Version: v2.0.0-alpha.3
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
package/dist/src/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from './item/plugin-item';
|
|
|
17
17
|
export * from './item/sprite-item';
|
|
18
18
|
export * from './item/spine-item';
|
|
19
19
|
export * from './item/filter-item';
|
|
20
|
+
export * from './item/effect-item';
|
|
20
21
|
export * from './item/text-item';
|
|
21
22
|
export * from './item/model';
|
|
22
23
|
export * from './vfx-item-data';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { ItemType } from '../type';
|
|
1
|
+
import type { ItemType, PositionOverLifetime, RotationOverLifetime, SizeOverLifetime } from '../type';
|
|
2
2
|
import type { BaseItem, ItemEndBehavior } from './base-item';
|
|
3
3
|
/**
|
|
4
4
|
* 特效元素
|
|
5
5
|
*/
|
|
6
|
-
export interface
|
|
6
|
+
export interface EffectItem extends BaseItem {
|
|
7
7
|
type: ItemType.effect;
|
|
8
8
|
content: EffectContent;
|
|
9
9
|
endBehavior: ItemEndBehavior;
|
|
@@ -12,6 +12,24 @@ export interface SpineItem extends BaseItem {
|
|
|
12
12
|
* 特效元素属性
|
|
13
13
|
*/
|
|
14
14
|
export interface EffectContent {
|
|
15
|
+
/**
|
|
16
|
+
* 特效元素材质数据索引组
|
|
17
|
+
*/
|
|
15
18
|
materials: number[];
|
|
19
|
+
/**
|
|
20
|
+
* 特效元素几何数据索引
|
|
21
|
+
*/
|
|
16
22
|
geometry: number;
|
|
23
|
+
/**
|
|
24
|
+
* 特效元素大小变化属性
|
|
25
|
+
*/
|
|
26
|
+
sizeOverLifetime?: SizeOverLifetime;
|
|
27
|
+
/**
|
|
28
|
+
* 特效元素旋转变化属性
|
|
29
|
+
*/
|
|
30
|
+
rotationOverLifetime?: RotationOverLifetime;
|
|
31
|
+
/**
|
|
32
|
+
* 特效元素位置变化属性
|
|
33
|
+
*/
|
|
34
|
+
positionOverLifetime?: PositionOverLifetime;
|
|
17
35
|
}
|