@galacean/effects-specification 2.1.0-alpha.5 → 2.1.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/data-type.d.ts +3 -0
- package/es/data-type.js +3 -0
- package/es/index.d.ts +0 -1
- package/es/index.js +0 -1
- package/es/item/particle-shape.d.ts +12 -12
- package/es/texture.d.ts +3 -0
- package/es/type.d.ts +1 -1
- package/es/type.js +13 -13
- package/package.json +1 -1
package/es/data-type.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare enum DataType {
|
|
|
10
10
|
PostProcessVolume = "PostProcessVolume",
|
|
11
11
|
Geometry = "Geometry",
|
|
12
12
|
Texture = "Texture",
|
|
13
|
+
Image = "Image",
|
|
13
14
|
AnimationClip = "AnimationClip",
|
|
14
15
|
TextComponent = "TextComponent",
|
|
15
16
|
BinaryAsset = "BinaryAsset",
|
|
@@ -40,5 +41,7 @@ export declare enum DataType {
|
|
|
40
41
|
VideoComponent = "VideoComponent",
|
|
41
42
|
AudioComponent = "AudioComponent",
|
|
42
43
|
RichTextComponent = "RichTextComponent",
|
|
44
|
+
OrientationComponent = "OrientationComponent",
|
|
45
|
+
ShapeComponent = "ShapeComponent",
|
|
43
46
|
TimelineClip = "TimelineClip"
|
|
44
47
|
}
|
package/es/data-type.js
CHANGED
|
@@ -11,6 +11,7 @@ export var DataType;
|
|
|
11
11
|
DataType["PostProcessVolume"] = "PostProcessVolume";
|
|
12
12
|
DataType["Geometry"] = "Geometry";
|
|
13
13
|
DataType["Texture"] = "Texture";
|
|
14
|
+
DataType["Image"] = "Image";
|
|
14
15
|
DataType["AnimationClip"] = "AnimationClip";
|
|
15
16
|
DataType["TextComponent"] = "TextComponent";
|
|
16
17
|
DataType["BinaryAsset"] = "BinaryAsset";
|
|
@@ -42,6 +43,8 @@ export var DataType;
|
|
|
42
43
|
DataType["VideoComponent"] = "VideoComponent";
|
|
43
44
|
DataType["AudioComponent"] = "AudioComponent";
|
|
44
45
|
DataType["RichTextComponent"] = "RichTextComponent";
|
|
46
|
+
DataType["OrientationComponent"] = "OrientationComponent";
|
|
47
|
+
DataType["ShapeComponent"] = "ShapeComponent";
|
|
45
48
|
// Non-EffectObject
|
|
46
49
|
DataType["TimelineClip"] = "TimelineClip";
|
|
47
50
|
})(DataType || (DataType = {}));
|
package/es/index.d.ts
CHANGED
|
@@ -27,7 +27,6 @@ export * from './animation-clip-data';
|
|
|
27
27
|
export * from './binary';
|
|
28
28
|
export * from './text';
|
|
29
29
|
export * from './components';
|
|
30
|
-
export * from './vfx-item-data';
|
|
31
30
|
export * from './buitin-object-guid';
|
|
32
31
|
export * from './shape';
|
|
33
32
|
export * from './timeline';
|
package/es/index.js
CHANGED
|
@@ -27,7 +27,6 @@ export * from './animation-clip-data';
|
|
|
27
27
|
export * from './binary';
|
|
28
28
|
export * from './text';
|
|
29
29
|
export * from './components';
|
|
30
|
-
export * from './vfx-item-data';
|
|
31
30
|
export * from './buitin-object-guid';
|
|
32
31
|
export * from './shape';
|
|
33
32
|
export * from './timeline';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ParticleEmitterShapeType } from '../type';
|
|
2
2
|
import type { NumberExpression, vec3 } from '../number-expression';
|
|
3
3
|
export declare enum ShapeArcMode {
|
|
4
4
|
/**
|
|
@@ -22,7 +22,7 @@ export interface ParticleShapeBase {
|
|
|
22
22
|
/**
|
|
23
23
|
* 粒子形状类型
|
|
24
24
|
*/
|
|
25
|
-
type:
|
|
25
|
+
type: ParticleEmitterShapeType;
|
|
26
26
|
/**
|
|
27
27
|
* 发射模式
|
|
28
28
|
*/
|
|
@@ -43,7 +43,7 @@ export interface ParticleShapeBase {
|
|
|
43
43
|
turbulenceZ?: NumberExpression;
|
|
44
44
|
}
|
|
45
45
|
export interface ParticleShapeNone {
|
|
46
|
-
type:
|
|
46
|
+
type: ParticleEmitterShapeType.NONE;
|
|
47
47
|
/**
|
|
48
48
|
* 发射方向旋转
|
|
49
49
|
*/
|
|
@@ -57,7 +57,7 @@ export type ParticleShape = ParticleShapeCone | ParticleShapeCircle | ParticleSh
|
|
|
57
57
|
* 圆锥发射器
|
|
58
58
|
*/
|
|
59
59
|
export interface ParticleShapeCone extends ParticleShapeBase {
|
|
60
|
-
type:
|
|
60
|
+
type: ParticleEmitterShapeType.CONE;
|
|
61
61
|
/**
|
|
62
62
|
* 形状角度
|
|
63
63
|
*/
|
|
@@ -75,7 +75,7 @@ export interface ParticleShapeCone extends ParticleShapeBase {
|
|
|
75
75
|
* 圆发射器
|
|
76
76
|
*/
|
|
77
77
|
export interface ParticleShapeCircle extends ParticleShapeBase {
|
|
78
|
-
type:
|
|
78
|
+
type: ParticleEmitterShapeType.CIRCLE;
|
|
79
79
|
/**
|
|
80
80
|
* 形状半径
|
|
81
81
|
*/
|
|
@@ -89,7 +89,7 @@ export interface ParticleShapeCircle extends ParticleShapeBase {
|
|
|
89
89
|
* 圆球发射器
|
|
90
90
|
*/
|
|
91
91
|
export interface ParticleShapeSphere extends ParticleShapeBase {
|
|
92
|
-
type:
|
|
92
|
+
type: ParticleEmitterShapeType.SPHERE;
|
|
93
93
|
/**
|
|
94
94
|
* 形状半径
|
|
95
95
|
*/
|
|
@@ -103,7 +103,7 @@ export interface ParticleShapeSphere extends ParticleShapeBase {
|
|
|
103
103
|
* 半球发射器
|
|
104
104
|
*/
|
|
105
105
|
export interface ParticleShapeHemisphere extends ParticleShapeBase {
|
|
106
|
-
type:
|
|
106
|
+
type: ParticleEmitterShapeType.HEMISPHERE;
|
|
107
107
|
/**
|
|
108
108
|
* 形状半径
|
|
109
109
|
*/
|
|
@@ -117,7 +117,7 @@ export interface ParticleShapeHemisphere extends ParticleShapeBase {
|
|
|
117
117
|
* 圆环发射器
|
|
118
118
|
*/
|
|
119
119
|
export interface ParticleShapeDonut extends ParticleShapeBase {
|
|
120
|
-
type:
|
|
120
|
+
type: ParticleEmitterShapeType.DONUT;
|
|
121
121
|
/**
|
|
122
122
|
* 形状半径
|
|
123
123
|
*/
|
|
@@ -135,7 +135,7 @@ export interface ParticleShapeDonut extends ParticleShapeBase {
|
|
|
135
135
|
* 矩形发射器
|
|
136
136
|
*/
|
|
137
137
|
export interface ParticleShapeRect extends ParticleShapeBase {
|
|
138
|
-
type:
|
|
138
|
+
type: ParticleEmitterShapeType.RECTANGLE;
|
|
139
139
|
/**
|
|
140
140
|
* 宽度
|
|
141
141
|
*/
|
|
@@ -149,7 +149,7 @@ export interface ParticleShapeRect extends ParticleShapeBase {
|
|
|
149
149
|
* 矩形框发射器
|
|
150
150
|
*/
|
|
151
151
|
export interface ParticleShapeRectEdge extends ParticleShapeBase {
|
|
152
|
-
type:
|
|
152
|
+
type: ParticleEmitterShapeType.RECTANGLE_EDGE;
|
|
153
153
|
/**
|
|
154
154
|
* 宽度
|
|
155
155
|
*/
|
|
@@ -163,7 +163,7 @@ export interface ParticleShapeRectEdge extends ParticleShapeBase {
|
|
|
163
163
|
* 直线发射器
|
|
164
164
|
*/
|
|
165
165
|
export interface ParticleShapeEdge extends ParticleShapeBase {
|
|
166
|
-
type:
|
|
166
|
+
type: ParticleEmitterShapeType.EDGE;
|
|
167
167
|
/**
|
|
168
168
|
* 宽度
|
|
169
169
|
*/
|
|
@@ -173,7 +173,7 @@ export interface ParticleShapeEdge extends ParticleShapeBase {
|
|
|
173
173
|
* 贴图发射器
|
|
174
174
|
*/
|
|
175
175
|
export interface ParticleShapeTexture extends ParticleShapeBase {
|
|
176
|
-
type:
|
|
176
|
+
type: ParticleEmitterShapeType.TEXTURE;
|
|
177
177
|
detail: ParticleTextureShapeDetail;
|
|
178
178
|
/**
|
|
179
179
|
* 贴图随机数
|
package/es/texture.d.ts
CHANGED
|
@@ -28,14 +28,17 @@ export type SerializedTextureCubeMipmap = [
|
|
|
28
28
|
TEXTURE_CUBE_MAP_NEGATIVE_Z: BinaryPointer
|
|
29
29
|
];
|
|
30
30
|
export interface SerializedTexture2DImageSource extends TextureConfigOptionsBase, TextureFormatOptions {
|
|
31
|
+
dataType: DataType.Texture;
|
|
31
32
|
target?: WebGLRenderingContext['TEXTURE_2D'];
|
|
32
33
|
source: number;
|
|
33
34
|
}
|
|
34
35
|
export interface SerializedTexture2DMipmapSource extends TextureConfigOptionsBase, TextureFormatOptions {
|
|
36
|
+
dataType: DataType.Texture;
|
|
35
37
|
target?: WebGLRenderingContext['TEXTURE_2D'];
|
|
36
38
|
mipmaps: BinaryPointer[];
|
|
37
39
|
}
|
|
38
40
|
export interface SerializedTextureCube extends TextureConfigOptionsBase, TextureFormatOptions {
|
|
41
|
+
dataType: DataType.Texture;
|
|
39
42
|
target: WebGLRenderingContext['TEXTURE_CUBE_MAP'];
|
|
40
43
|
mipmaps: SerializedTextureCubeMipmap[];
|
|
41
44
|
}
|
package/es/type.d.ts
CHANGED
package/es/type.js
CHANGED
|
@@ -93,49 +93,49 @@ export var MaskMode;
|
|
|
93
93
|
/**
|
|
94
94
|
* 发射器形状
|
|
95
95
|
*/
|
|
96
|
-
export var
|
|
97
|
-
(function (
|
|
96
|
+
export var ParticleEmitterShapeType;
|
|
97
|
+
(function (ParticleEmitterShapeType) {
|
|
98
98
|
/**
|
|
99
99
|
* 没有类型
|
|
100
100
|
*/
|
|
101
|
-
|
|
101
|
+
ParticleEmitterShapeType[ParticleEmitterShapeType["NONE"] = 0] = "NONE";
|
|
102
102
|
/**
|
|
103
103
|
* 圆球
|
|
104
104
|
*/
|
|
105
|
-
|
|
105
|
+
ParticleEmitterShapeType[ParticleEmitterShapeType["SPHERE"] = 1] = "SPHERE";
|
|
106
106
|
/**
|
|
107
107
|
* 圆锥
|
|
108
108
|
*/
|
|
109
|
-
|
|
109
|
+
ParticleEmitterShapeType[ParticleEmitterShapeType["CONE"] = 2] = "CONE";
|
|
110
110
|
/**
|
|
111
111
|
* 半球
|
|
112
112
|
*/
|
|
113
|
-
|
|
113
|
+
ParticleEmitterShapeType[ParticleEmitterShapeType["HEMISPHERE"] = 3] = "HEMISPHERE";
|
|
114
114
|
/**
|
|
115
115
|
* 圆
|
|
116
116
|
*/
|
|
117
|
-
|
|
117
|
+
ParticleEmitterShapeType[ParticleEmitterShapeType["CIRCLE"] = 4] = "CIRCLE";
|
|
118
118
|
/**
|
|
119
119
|
* 圆环
|
|
120
120
|
*/
|
|
121
|
-
|
|
121
|
+
ParticleEmitterShapeType[ParticleEmitterShapeType["DONUT"] = 5] = "DONUT";
|
|
122
122
|
/**
|
|
123
123
|
* 矩形
|
|
124
124
|
*/
|
|
125
|
-
|
|
125
|
+
ParticleEmitterShapeType[ParticleEmitterShapeType["RECTANGLE"] = 6] = "RECTANGLE";
|
|
126
126
|
/**
|
|
127
127
|
* 矩形框
|
|
128
128
|
*/
|
|
129
|
-
|
|
129
|
+
ParticleEmitterShapeType[ParticleEmitterShapeType["RECTANGLE_EDGE"] = 7] = "RECTANGLE_EDGE";
|
|
130
130
|
/**
|
|
131
131
|
* 直线
|
|
132
132
|
*/
|
|
133
|
-
|
|
133
|
+
ParticleEmitterShapeType[ParticleEmitterShapeType["EDGE"] = 8] = "EDGE";
|
|
134
134
|
/**
|
|
135
135
|
* 贴图
|
|
136
136
|
*/
|
|
137
|
-
|
|
138
|
-
})(
|
|
137
|
+
ParticleEmitterShapeType[ParticleEmitterShapeType["TEXTURE"] = 9] = "TEXTURE";
|
|
138
|
+
})(ParticleEmitterShapeType || (ParticleEmitterShapeType = {}));
|
|
139
139
|
/**
|
|
140
140
|
* 插件类型
|
|
141
141
|
*/
|