@galacean/engine-core 1.2.0-beta.5 → 1.3.0-alpha.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.
Files changed (70) hide show
  1. package/dist/main.js +18148 -16123
  2. package/dist/main.js.map +1 -1
  3. package/dist/miniprogram.js +18148 -16123
  4. package/dist/module.js +18147 -16124
  5. package/dist/module.js.map +1 -1
  6. package/package.json +3 -3
  7. package/types/2d/assembler/ISpriteAssembler.d.ts +1 -0
  8. package/types/2d/sprite/SpriteMask.d.ts +11 -0
  9. package/types/2d/sprite/SpriteRenderer.d.ts +6 -3
  10. package/types/2d/text/CharRenderInfo.d.ts +1 -0
  11. package/types/2d/text/TextRenderer.d.ts +10 -4
  12. package/types/DisorderedArray.d.ts +2 -2
  13. package/types/Engine.d.ts +3 -0
  14. package/types/RenderPipeline/BasicRenderPipeline.d.ts +11 -5
  15. package/types/RenderPipeline/BatchUtils.d.ts +1 -0
  16. package/types/RenderPipeline/BatcherManager.d.ts +1 -0
  17. package/types/RenderPipeline/Chunk.d.ts +1 -0
  18. package/types/RenderPipeline/DynamicGeometryData.d.ts +1 -0
  19. package/types/RenderPipeline/DynamicGeometryDataManager.d.ts +1 -0
  20. package/types/RenderPipeline/MaskManager.d.ts +1 -0
  21. package/types/RenderPipeline/PrimitiveChunk.d.ts +1 -0
  22. package/types/RenderPipeline/PrimitiveChunkManager.d.ts +1 -0
  23. package/types/RenderPipeline/RenderData2D.d.ts +14 -0
  24. package/types/RenderPipeline/RenderElement.d.ts +9 -6
  25. package/types/RenderPipeline/RenderQueue.d.ts +1 -30
  26. package/types/RenderPipeline/SubPrimitiveChunk.d.ts +1 -0
  27. package/types/RenderPipeline/SubRenderElement.d.ts +22 -0
  28. package/types/RenderPipeline/VertexArea.d.ts +1 -0
  29. package/types/RenderPipeline/enums/ForceUploadShaderDataFlag.d.ts +15 -0
  30. package/types/RenderPipeline/enums/RenderDataUsage.d.ts +13 -0
  31. package/types/Renderer.d.ts +4 -3
  32. package/types/Scene.d.ts +6 -0
  33. package/types/animation/Animator.d.ts +35 -6
  34. package/types/animation/AnimatorCondition.d.ts +13 -0
  35. package/types/animation/AnimatorController.d.ts +32 -2
  36. package/types/animation/AnimatorControllerParameter.d.ts +10 -0
  37. package/types/animation/AnimatorState.d.ts +15 -5
  38. package/types/animation/AnimatorStateMachine.d.ts +44 -0
  39. package/types/animation/AnimatorStateTransition.d.ts +51 -0
  40. package/types/animation/enums/AnimatorConditionMode.d.ts +9 -0
  41. package/types/animation/index.d.ts +1 -1
  42. package/types/asset/AssetType.d.ts +2 -0
  43. package/types/graphic/SubMesh.d.ts +3 -16
  44. package/types/graphic/SubPrimitive.d.ts +10 -0
  45. package/types/graphic/index.d.ts +1 -0
  46. package/types/index.d.ts +1 -1
  47. package/types/material/BaseMaterial.d.ts +1 -1
  48. package/types/mesh/SkinnedMeshRenderer.d.ts +1 -1
  49. package/types/particle/ParticleGenerator.d.ts +20 -0
  50. package/types/particle/ParticleRenderer.d.ts +3 -1
  51. package/types/particle/modules/EmissionModule.d.ts +6 -2
  52. package/types/particle/modules/MainModule.d.ts +49 -15
  53. package/types/particle/modules/ParticleCompositeCurve.d.ts +35 -10
  54. package/types/particle/modules/ParticleCurve.d.ts +16 -9
  55. package/types/particle/modules/ParticleGeneratorModule.d.ts +6 -2
  56. package/types/particle/modules/SizeOverLifetimeModule.d.ts +27 -8
  57. package/types/particle/modules/VelocityOverLifetimeModule.d.ts +29 -8
  58. package/types/particle/modules/shape/BaseShape.d.ts +14 -4
  59. package/types/particle/modules/shape/BoxShape.d.ts +7 -2
  60. package/types/particle/modules/shape/CircleShape.d.ts +25 -8
  61. package/types/particle/modules/shape/ConeShape.d.ts +24 -8
  62. package/types/particle/modules/shape/HemisphereShape.d.ts +6 -2
  63. package/types/particle/modules/shape/SphereShape.d.ts +6 -2
  64. package/types/shader/enums/ShaderDataGroup.d.ts +4 -2
  65. package/types/shader/state/RenderState.d.ts +1 -0
  66. package/types/utils/ClearableObjectPool.d.ts +16 -0
  67. package/types/utils/ObjectPool.d.ts +16 -0
  68. package/types/utils/Pool.d.ts +12 -0
  69. package/types/utils/ReturnableObjectPool.d.ts +16 -0
  70. package/types/utils/index.d.ts +3 -0
@@ -9,14 +9,30 @@ export declare class ConeShape extends BaseShape {
9
9
  private static _tempVector30;
10
10
  private static _tempVector31;
11
11
  readonly shapeType = ParticleShapeType.Cone;
12
- /** Angle of the cone to emit particles from. */
13
- angle: number;
14
- /** Radius of the shape to emit particles from. */
15
- radius: number;
16
- /** Length of the cone to emit particles from. */
17
- length: number;
18
- /** Cone emitter type. */
19
- emitType: ConeEmitType;
12
+ private _angle;
13
+ private _radius;
14
+ private _length;
15
+ private _emitType;
16
+ /**
17
+ * Angle of the cone to emit particles from.
18
+ */
19
+ get angle(): number;
20
+ set angle(value: number);
21
+ /**
22
+ * Radius of the shape to emit particles from.
23
+ */
24
+ get radius(): number;
25
+ set radius(value: number);
26
+ /**
27
+ * Length of the cone to emit particles from.
28
+ */
29
+ get length(): number;
30
+ set length(value: number);
31
+ /**
32
+ * Cone emitter type.
33
+ */
34
+ get emitType(): ConeEmitType;
35
+ set emitType(value: ConeEmitType);
20
36
  }
21
37
  /**
22
38
  * Cone emitter type.
@@ -5,6 +5,10 @@ import { ParticleShapeType } from "./enums/ParticleShapeType";
5
5
  */
6
6
  export declare class HemisphereShape extends BaseShape {
7
7
  readonly shapeType = ParticleShapeType.Hemisphere;
8
- /** Radius of the shape to emit particles from. */
9
- radius: number;
8
+ private _radius;
9
+ /**
10
+ * Radius of the shape to emit particles from.
11
+ */
12
+ get radius(): number;
13
+ set radius(value: number);
10
14
  }
@@ -5,6 +5,10 @@ import { ParticleShapeType } from "./enums/ParticleShapeType";
5
5
  */
6
6
  export declare class SphereShape extends BaseShape {
7
7
  readonly shapeType = ParticleShapeType.Sphere;
8
- /** Radius of the shape to emit particles from. */
9
- radius: number;
8
+ private _radius;
9
+ /**
10
+ * Radius of the shape to emit particles from.
11
+ */
12
+ get radius(): number;
13
+ set radius(value: number);
10
14
  }
@@ -8,6 +8,8 @@ export declare enum ShaderDataGroup {
8
8
  Camera = 1,
9
9
  /** Renderer group. */
10
10
  Renderer = 2,
11
- /** material group. */
12
- Material = 3
11
+ /** Material group. */
12
+ Material = 3,
13
+ /** Render element group. */
14
+ RenderElement = 4
13
15
  }
@@ -17,4 +17,5 @@ export declare class RenderState {
17
17
  readonly rasterState: RasterState;
18
18
  /** Render queue type. */
19
19
  renderQueueType: RenderQueueType;
20
+ private _applyStatesByShaderData;
20
21
  }
@@ -0,0 +1,16 @@
1
+ import { IPoolElement, ObjectPool } from "./ObjectPool";
2
+ /**
3
+ * Clearable Object Pool.
4
+ */
5
+ export declare class ClearableObjectPool<T extends IPoolElement> extends ObjectPool<T> {
6
+ private _usedElementCount;
7
+ constructor(type: new () => T);
8
+ /**
9
+ * Get an object.
10
+ */
11
+ get(): T;
12
+ /**
13
+ * Clear used object count to 0, not destroy any object, just change index.
14
+ */
15
+ clear(): void;
16
+ }
@@ -0,0 +1,16 @@
1
+ export declare abstract class ObjectPool<T extends IPoolElement> {
2
+ protected _type: new () => T;
3
+ protected _elements: T[];
4
+ constructor(type: new () => T);
5
+ garbageCollection(): void;
6
+ abstract get(): T;
7
+ }
8
+ /**
9
+ * The basic interface for Object Pool's element.
10
+ */
11
+ export interface IPoolElement {
12
+ /**
13
+ * Called when the object need be release.
14
+ */
15
+ dispose?(): void;
16
+ }
@@ -0,0 +1,12 @@
1
+ export interface IPoolElement {
2
+ dispose?(): void;
3
+ }
4
+ export declare class Pool<T extends IPoolElement> {
5
+ private _type;
6
+ private _elementPool;
7
+ private _elementPoolIndex;
8
+ constructor(type: new () => T, count?: number);
9
+ alloc(): T;
10
+ free(element: T): void;
11
+ dispose(): void;
12
+ }
@@ -0,0 +1,16 @@
1
+ import { IPoolElement, ObjectPool } from "./ObjectPool";
2
+ /**
3
+ * Returnable Object Pool.
4
+ */
5
+ export declare class ReturnableObjectPool<T extends IPoolElement> extends ObjectPool<T> {
6
+ private _lastElementIndex;
7
+ constructor(type: new () => T, initializeCount?: number);
8
+ /**
9
+ * Get an object from the pool.
10
+ */
11
+ get(): T;
12
+ /**
13
+ * Return an object to the pool.
14
+ */
15
+ return(element: T): void;
16
+ }
@@ -0,0 +1,3 @@
1
+ export { ClearableObjectPool } from "./ClearableObjectPool";
2
+ export type { IPoolElement } from "./ObjectPool";
3
+ export { ReturnableObjectPool } from "./ReturnableObjectPool";