@galacean/effects-core 2.3.0-alpha.2 → 2.3.0-beta.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/dist/asset-manager.d.ts +2 -2
- package/dist/asset-service.d.ts +24 -0
- package/dist/camera.d.ts +19 -4
- package/dist/comp-vfx-item.d.ts +2 -1
- package/dist/components/shape-component.d.ts +2 -2
- package/dist/composition-source-manager.d.ts +1 -7
- package/dist/composition.d.ts +0 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6401 -6243
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6401 -6244
- package/dist/index.mjs.map +1 -1
- package/dist/plugins/particle/particle-mesh.d.ts +1 -1
- package/dist/plugins/particle/particle-system.d.ts +11 -0
- package/dist/plugins/shape/graphics-path.d.ts +6 -0
- package/dist/plugins/shape/shape-path.d.ts +6 -0
- package/dist/plugins/text/text-item.d.ts +1 -0
- package/dist/scene.d.ts +6 -0
- package/dist/vfx-item.d.ts +13 -4
- package/package.json +1 -1
|
@@ -134,9 +134,9 @@ export declare class ParticleMesh implements ParticleMeshData {
|
|
|
134
134
|
};
|
|
135
135
|
speedOverLifetime?: ValueGetter<number>;
|
|
136
136
|
time: number;
|
|
137
|
+
maxCount: number;
|
|
137
138
|
readonly useSprite?: boolean;
|
|
138
139
|
readonly textureOffsets: number[];
|
|
139
|
-
readonly maxCount: number;
|
|
140
140
|
readonly anchor: Vector2;
|
|
141
141
|
private cachedRotationVector3;
|
|
142
142
|
private cachedRotationMatrix;
|
|
@@ -157,6 +157,17 @@ export declare class ParticleSystem extends Component {
|
|
|
157
157
|
get timePassed(): number;
|
|
158
158
|
get lifetime(): number;
|
|
159
159
|
get particleCount(): number;
|
|
160
|
+
/**
|
|
161
|
+
* 获取当前粒子系统的最大粒子数。当系统的粒子数量达到最大值时,发射器会暂时停止发射粒子。
|
|
162
|
+
* @since 2.3.0
|
|
163
|
+
*/
|
|
164
|
+
get maxParticles(): number;
|
|
165
|
+
/**
|
|
166
|
+
* 设置当前粒子系统的最大粒子数。当系统的粒子数量达到最大值时,发射器会暂时停止发射粒子。
|
|
167
|
+
* 注意:暂时不支持增加拖尾数量
|
|
168
|
+
* @since 2.3.0
|
|
169
|
+
*/
|
|
170
|
+
set maxParticles(count: number);
|
|
160
171
|
isFrozen(): boolean;
|
|
161
172
|
isEnded(): boolean;
|
|
162
173
|
initEmitterTransform(): void;
|
|
@@ -31,6 +31,12 @@ export declare class GraphicsPath {
|
|
|
31
31
|
* @returns The instance of the current object for chaining.
|
|
32
32
|
*/
|
|
33
33
|
moveTo(x: number, y: number): GraphicsPath;
|
|
34
|
+
/**
|
|
35
|
+
* Closes the current path by drawing a straight line back to the start.
|
|
36
|
+
* If the shape is already closed or there are no points in the path, this method does nothing.
|
|
37
|
+
* @returns The instance of the current object for chaining.
|
|
38
|
+
*/
|
|
39
|
+
closePath(): this;
|
|
34
40
|
/**
|
|
35
41
|
* Draws an ellipse at the specified location and with the given x and y radii.
|
|
36
42
|
* An optional transformation can be applied, allowing for rotation, scaling, and translation.
|
|
@@ -28,6 +28,12 @@ export declare class ShapePath {
|
|
|
28
28
|
*/
|
|
29
29
|
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number, smoothness?: number): ShapePath;
|
|
30
30
|
moveTo(x: number, y: number): ShapePath;
|
|
31
|
+
/**
|
|
32
|
+
* Closes the current path by drawing a straight line back to the start.
|
|
33
|
+
* If the shape is already closed or there are no points in the path, this method does nothing.
|
|
34
|
+
* @returns The instance of the current object for chaining.
|
|
35
|
+
*/
|
|
36
|
+
closePath(): this;
|
|
31
37
|
/**
|
|
32
38
|
* Draws an ellipse at the specified location and with the given x and y radii.
|
|
33
39
|
* An optional transformation can be applied, allowing for rotation, scaling, and translation.
|
|
@@ -57,6 +57,7 @@ export declare class TextComponentBase {
|
|
|
57
57
|
/***** mix 类型兼容用 *****/
|
|
58
58
|
protected maxLineWidth: number;
|
|
59
59
|
private char;
|
|
60
|
+
protected renderText(options: spec.TextContentOptions): void;
|
|
60
61
|
updateWithOptions(options: spec.TextContentOptions): void;
|
|
61
62
|
private getLineCount;
|
|
62
63
|
/**
|
package/dist/scene.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type * as spec from '@galacean/effects-specification';
|
|
|
2
2
|
import type { Texture } from './texture';
|
|
3
3
|
import type { PluginSystem } from './plugin-system';
|
|
4
4
|
import type { PickEnum } from './utils';
|
|
5
|
+
import type { AssetManager } from './asset-manager';
|
|
5
6
|
export type ImageLike = spec.HTMLImageLike | ArrayBuffer | Texture;
|
|
6
7
|
export type SceneRenderLevel = PickEnum<spec.RenderLevel, spec.RenderLevel.A | spec.RenderLevel.B | spec.RenderLevel.S>;
|
|
7
8
|
/**
|
|
@@ -36,6 +37,11 @@ export declare namespace Scene {
|
|
|
36
37
|
url: string;
|
|
37
38
|
options?: SceneLoadOptions;
|
|
38
39
|
};
|
|
40
|
+
export interface LoadResult {
|
|
41
|
+
scene: Scene;
|
|
42
|
+
assetManager: AssetManager;
|
|
43
|
+
options: SceneLoadOptions;
|
|
44
|
+
}
|
|
39
45
|
/**
|
|
40
46
|
* 接受用于加载的数据类型
|
|
41
47
|
*/
|
package/dist/vfx-item.d.ts
CHANGED
|
@@ -27,10 +27,6 @@ export declare class VFXItem extends EffectsObject implements Disposable {
|
|
|
27
27
|
* 元素的变换包含位置、旋转、缩放。
|
|
28
28
|
*/
|
|
29
29
|
transform: Transform;
|
|
30
|
-
/**
|
|
31
|
-
* 合成属性
|
|
32
|
-
*/
|
|
33
|
-
composition: Composition | null;
|
|
34
30
|
/**
|
|
35
31
|
* 元素动画的当前时间
|
|
36
32
|
*/
|
|
@@ -83,6 +79,10 @@ export declare class VFXItem extends EffectsObject implements Disposable {
|
|
|
83
79
|
private listIndex;
|
|
84
80
|
private isEnabled;
|
|
85
81
|
private eventProcessor;
|
|
82
|
+
/**
|
|
83
|
+
* 合成属性
|
|
84
|
+
*/
|
|
85
|
+
private _composition;
|
|
86
86
|
/**
|
|
87
87
|
*
|
|
88
88
|
* @param item
|
|
@@ -136,6 +136,14 @@ export declare class VFXItem extends EffectsObject implements Disposable {
|
|
|
136
136
|
* 返回元素创建的数据
|
|
137
137
|
*/
|
|
138
138
|
get content(): VFXItemContent;
|
|
139
|
+
/**
|
|
140
|
+
* 获取元素的合成
|
|
141
|
+
*/
|
|
142
|
+
get composition(): Composition | null;
|
|
143
|
+
/**
|
|
144
|
+
* 设置元素的合成
|
|
145
|
+
*/
|
|
146
|
+
set composition(value: Composition);
|
|
139
147
|
/**
|
|
140
148
|
* 播放完成后是否需要再使用,是的话生命周期结束后不会 dispose
|
|
141
149
|
*/
|
|
@@ -295,6 +303,7 @@ export declare class VFXItem extends EffectsObject implements Disposable {
|
|
|
295
303
|
*/
|
|
296
304
|
dispose(): void;
|
|
297
305
|
private resetChildrenParent;
|
|
306
|
+
private instantiatePreComposition;
|
|
298
307
|
}
|
|
299
308
|
export declare namespace Item {
|
|
300
309
|
function is<T extends spec.Item>(item: spec.Item, type: spec.ItemType): item is T;
|