@galacean/engine-core 2.0.0-alpha.34 → 2.0.0-alpha.35
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/main.js +83 -35
- package/dist/main.js.map +1 -1
- package/dist/module.js +83 -36
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/EngineEventType.d.ts +13 -0
- package/types/index.d.ts +2 -1
- package/types/particle/ParticleRenderer.d.ts +1 -1
- package/types/particle/modules/CustomDataModule.d.ts +0 -1
- package/types/particle/modules/EmissionModule.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/engine-core",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.35",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"types/**/*"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@galacean/engine-math": "2.0.0-alpha.
|
|
21
|
+
"@galacean/engine-math": "2.0.0-alpha.35"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@galacean/engine-design": "2.0.0-alpha.
|
|
24
|
+
"@galacean/engine-design": "2.0.0-alpha.35"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"b:types": "tsc"
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Engine event type.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum EngineEventType {
|
|
5
|
+
/** Dispatched when the engine starts running. */
|
|
6
|
+
Run = "run",
|
|
7
|
+
/** Dispatched when the engine shuts down. */
|
|
8
|
+
Shutdown = "shutdown",
|
|
9
|
+
/** Dispatched when the graphic device is lost. */
|
|
10
|
+
DeviceLost = "devicelost",
|
|
11
|
+
/** Dispatched when the graphic device is restored. */
|
|
12
|
+
DeviceRestored = "devicerestored"
|
|
13
|
+
}
|
package/types/index.d.ts
CHANGED
|
@@ -14,8 +14,9 @@ export { dependentComponents, DependentMode } from "./ComponentsDependencies";
|
|
|
14
14
|
export { Camera } from "./Camera";
|
|
15
15
|
export { Transform, TransformModifyFlags } from "./Transform";
|
|
16
16
|
export { BoolUpdateFlag } from "./BoolUpdateFlag";
|
|
17
|
-
export type { EngineSettings } from "./EngineSettings";
|
|
18
17
|
export type { EngineConfiguration } from "./Engine";
|
|
18
|
+
export { EngineEventType } from "./EngineEventType";
|
|
19
|
+
export type { EngineSettings } from "./EngineSettings";
|
|
19
20
|
export type { ComponentConstructor } from "./Entity";
|
|
20
21
|
export { request } from "./asset/request";
|
|
21
22
|
export type { RequestConfig } from "./asset/request";
|
|
@@ -25,9 +25,9 @@ export declare class ParticleRenderer extends Renderer {
|
|
|
25
25
|
lengthScale: number;
|
|
26
26
|
/** The pivot of particle. */
|
|
27
27
|
pivot: Vector3;
|
|
28
|
+
private _mesh;
|
|
28
29
|
private _renderMode;
|
|
29
30
|
private _currentRenderModeMacro;
|
|
30
|
-
private _mesh;
|
|
31
31
|
private _supportInstancedArrays;
|
|
32
32
|
/**
|
|
33
33
|
* Specifies how particles are rendered.
|
|
@@ -15,7 +15,6 @@ import { ParticleGeneratorModule } from "./ParticleGeneratorModule";
|
|
|
15
15
|
*/
|
|
16
16
|
export declare class CustomDataModule extends ParticleGeneratorModule {
|
|
17
17
|
private static readonly _streamNamePattern;
|
|
18
|
-
private static readonly _reservedPrefixPattern;
|
|
19
18
|
private static readonly _zeroCurveArray;
|
|
20
19
|
private static readonly _zeroGradientColorArray;
|
|
21
20
|
private static readonly _zeroGradientAlphaArray;
|
|
@@ -12,6 +12,7 @@ export declare class EmissionModule extends ParticleGeneratorModule {
|
|
|
12
12
|
/** The rate at which the emitter spawns new particles over distance. */
|
|
13
13
|
rateOverDistance: ParticleCompositeCurve;
|
|
14
14
|
_shape: BaseShape;
|
|
15
|
+
private _shapeMacro;
|
|
15
16
|
private _distanceAccumulator;
|
|
16
17
|
private _lastEmitPosition;
|
|
17
18
|
private _hasLastEmitPosition;
|
|
@@ -53,6 +54,7 @@ export declare class EmissionModule extends ParticleGeneratorModule {
|
|
|
53
54
|
clearBurst(): void;
|
|
54
55
|
private _emitByRateOverTime;
|
|
55
56
|
private _emitByRateOverDistance;
|
|
57
|
+
private _evaluateRate;
|
|
56
58
|
private _emitByBurst;
|
|
57
59
|
private _emitBySubBurst;
|
|
58
60
|
}
|