@galacean/engine-core 1.1.0-beta.5 → 1.1.0-beta.50

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 (141) hide show
  1. package/dist/main.js +8329 -7307
  2. package/dist/main.js.map +1 -1
  3. package/dist/miniprogram.js +8329 -7307
  4. package/dist/module.js +8318 -7309
  5. package/dist/module.js.map +1 -1
  6. package/package.json +3 -3
  7. package/types/2d/atlas/types.d.ts +5 -0
  8. package/types/2d/enums/SpriteModifyFlags.d.ts +2 -1
  9. package/types/2d/text/TextRenderer.d.ts +1 -0
  10. package/types/Background.d.ts +6 -0
  11. package/types/Camera.d.ts +1 -1
  12. package/types/Canvas.d.ts +15 -5
  13. package/types/Deprecated.d.ts +101 -0
  14. package/types/DisorderedArray.d.ts +1 -1
  15. package/types/animation/AnimatorLayerMask.d.ts +45 -0
  16. package/types/animation/LayerPathMask.d.ts +16 -0
  17. package/types/animation/animationCurve/AnimationStringCurve.d.ts +7 -0
  18. package/types/asset/AssetPromise.d.ts +1 -0
  19. package/types/asset/ResourceManager.d.ts +0 -1
  20. package/types/enums/Downsampling.d.ts +11 -0
  21. package/types/enums/MSAASamples.d.ts +13 -0
  22. package/types/index.d.ts +1 -1
  23. package/types/mesh/PrimitiveMesh.d.ts +22 -0
  24. package/types/mesh/SkinnedMeshRenderer.d.ts +1 -1
  25. package/types/particle/ParticleGenerator.d.ts +0 -2
  26. package/types/particle/index.d.ts +10 -0
  27. package/types/particle/modules/EmissionModule.d.ts +0 -1
  28. package/types/particle/modules/MainModule.d.ts +0 -1
  29. package/types/particle/modules/ParticleGeneratorModule.d.ts +0 -1
  30. package/types/particle/modules/ParticleGradient.d.ts +38 -18
  31. package/types/physics/Collider.d.ts +3 -1
  32. package/types/physics/HitResult.d.ts +3 -0
  33. package/types/physics/PhysicsMaterial.d.ts +1 -0
  34. package/types/physics/joint/HingeJoint.d.ts +1 -1
  35. package/types/physics/joint/Joint.d.ts +4 -3
  36. package/types/physics/shape/ColliderShape.d.ts +2 -1
  37. package/types/physics/shape/SphereColliderShape.d.ts +1 -0
  38. package/types/shader/Shader.d.ts +1 -1
  39. package/types/texture/enums/PixelFormat.d.ts +73 -0
  40. package/types/xr/XRManager.d.ts +3 -29
  41. package/types/RenderPipeline/MeshRenderData.d.ts +0 -17
  42. package/types/RenderPipeline/MeshRenderElement.d.ts +0 -19
  43. package/types/RenderPipeline/RenderElementX.d.ts +0 -12
  44. package/types/RenderPipeline/SpriteElement.d.ts +0 -15
  45. package/types/RenderPipeline/SpriteMaskElement.d.ts +0 -12
  46. package/types/RenderPipeline/TextRenderElement.d.ts +0 -8
  47. package/types/SafeLoopArray.d.ts +0 -37
  48. package/types/Ticker.d.ts +0 -30
  49. package/types/asset/IRefObject.d.ts +0 -2
  50. package/types/asset/RefObject.d.ts +0 -27
  51. package/types/base/Event.d.ts +0 -24
  52. package/types/base/Util.d.ts +0 -14
  53. package/types/particle/ParticleData.d.ts +0 -1
  54. package/types/particle/ParticleMesh.d.ts +0 -289
  55. package/types/particle/ParticleShaderDeclaration.d.ts +0 -1
  56. package/types/particle/ParticleShaderMacro.d.ts +0 -1
  57. package/types/particle/ParticleShaderProperty.d.ts +0 -1
  58. package/types/particle/ParticleSystem.d.ts +0 -41
  59. package/types/particle/ParticleVertexElements.d.ts +0 -1
  60. package/types/particle/ParticleVertexUtils.d.ts +0 -1
  61. package/types/particle/enum/ParticleAnimationRowMode.d.ts +0 -9
  62. package/types/particle/enum/ParticleAnimationType.d.ts +0 -9
  63. package/types/particle/enum/ParticleCurveMode.d.ts +0 -13
  64. package/types/particle/enum/ParticleGradientMode.d.ts +0 -13
  65. package/types/particle/enum/ParticleRenderMode.d.ts +0 -17
  66. package/types/particle/enum/ParticleScaleMode.d.ts +0 -11
  67. package/types/particle/enum/ParticleShapeMultiModeValue.d.ts +0 -9
  68. package/types/particle/enum/ParticleShapeType.d.ts +0 -15
  69. package/types/particle/enum/ParticleSimulationSpace.d.ts +0 -9
  70. package/types/particle/enum/index.d.ts +0 -9
  71. package/types/particle/module/Burst.d.ts +0 -38
  72. package/types/particle/module/ColorGradient.d.ts +0 -75
  73. package/types/particle/module/ColorOverLifetimeModule.d.ts +0 -20
  74. package/types/particle/module/EmissionModule.d.ts +0 -63
  75. package/types/particle/module/FrameOverTime.d.ts +0 -73
  76. package/types/particle/module/ParticleCurve.d.ts +0 -37
  77. package/types/particle/module/RotationOverLifetimeModule.d.ts +0 -21
  78. package/types/particle/module/RotationVelocityGradient.d.ts +0 -184
  79. package/types/particle/module/SizeGradient.d.ts +0 -151
  80. package/types/particle/module/SizeOverLifetimeModule.d.ts +0 -21
  81. package/types/particle/module/StartFrame.d.ts +0 -46
  82. package/types/particle/module/TextureSheetAnimationModule.d.ts +0 -37
  83. package/types/particle/module/VelocityGradient.d.ts +0 -110
  84. package/types/particle/module/VelocityOverLifetimeModule.d.ts +0 -22
  85. package/types/particle/module/index.d.ts +0 -15
  86. package/types/particle/module/shape/BaseShape.d.ts +0 -26
  87. package/types/particle/module/shape/BoxShape.d.ts +0 -20
  88. package/types/particle/module/shape/CircleShape.d.ts +0 -27
  89. package/types/particle/module/shape/ConeShape.d.ts +0 -35
  90. package/types/particle/module/shape/HemisphereShape.d.ts +0 -23
  91. package/types/particle/module/shape/ShapeUtils.d.ts +0 -1
  92. package/types/particle/module/shape/SphereShape.d.ts +0 -23
  93. package/types/particle/module/shape/index.d.ts +0 -5
  94. package/types/particle/modules/ShapeModule.d.ts +0 -9
  95. package/types/particle/modules/shape/enums/ParticleShapeMultiModeValue.d.ts +0 -9
  96. package/types/particle/moudules/Burst.d.ts +0 -25
  97. package/types/particle/moudules/Emission.d.ts +0 -47
  98. package/types/particle/moudules/EmissionModule.d.ts +0 -49
  99. package/types/particle/moudules/MainModule.d.ts +0 -59
  100. package/types/particle/moudules/ParticleCurve.d.ts +0 -27
  101. package/types/particle/moudules/ParticleGradient.d.ts +0 -28
  102. package/types/particle/moudules/ShapeModule.d.ts +0 -7
  103. package/types/particle/moudules/shape/BaseShape.d.ts +0 -28
  104. package/types/particle/moudules/shape/BoxShape.d.ts +0 -20
  105. package/types/particle/moudules/shape/CircleShape.d.ts +0 -27
  106. package/types/particle/moudules/shape/ConeShape.d.ts +0 -35
  107. package/types/particle/moudules/shape/HemisphereShape.d.ts +0 -23
  108. package/types/particle/moudules/shape/ShapeUtils.d.ts +0 -1
  109. package/types/particle/moudules/shape/SphereShape.d.ts +0 -23
  110. package/types/particle/moudules/shape/enums/ParticleShapeMultiModeValue.d.ts +0 -9
  111. package/types/particle/moudules/shape/enums/ParticleShapeType.d.ts +0 -15
  112. package/types/particle/moudules/shape/index.d.ts +0 -5
  113. package/types/physics/PhysicsManager.d.ts +0 -78
  114. package/types/shadow/PipelinePass.d.ts +0 -16
  115. package/types/utils/BoolUpdateFlag.d.ts +0 -12
  116. package/types/utils/DisorderedArray.d.ts +0 -18
  117. package/types/utils/UpdateFlag.d.ts +0 -20
  118. package/types/utils/UpdateFlagManager.d.ts +0 -1
  119. package/types/utils/Utils.d.ts +0 -31
  120. package/types/xr/component/XRPoseDriver.d.ts +0 -10
  121. package/types/xr/data/XRCamera.d.ts +0 -6
  122. package/types/xr/data/XRDevice.d.ts +0 -9
  123. package/types/xr/data/XRHandle.d.ts +0 -10
  124. package/types/xr/enum/EnumXRButton.d.ts +0 -5
  125. package/types/xr/enum/EnumXRDevicePhase.d.ts +0 -4
  126. package/types/xr/enum/EnumXRFeature.d.ts +0 -9
  127. package/types/xr/enum/EnumXRInputSource.d.ts +0 -8
  128. package/types/xr/enum/EnumXRMode.d.ts +0 -7
  129. package/types/xr/enum/EnumXRSubsystem.d.ts +0 -4
  130. package/types/xr/enum/EnumXRTrackingMode.d.ts +0 -7
  131. package/types/xr/feature/XRCameraManager.d.ts +0 -21
  132. package/types/xr/feature/XRFeature.d.ts +0 -29
  133. package/types/xr/feature/XRImageTrackManager.d.ts +0 -10
  134. package/types/xr/feature/XRInputManager.d.ts +0 -16
  135. package/types/xr/index.d.ts +0 -18
  136. package/types/xr/provider/XRProvider.d.ts +0 -19
  137. package/types/xr/subsystem/XRInputSubsystem.d.ts +0 -5
  138. package/types/xr/subsystem/XRSubsystem.d.ts +0 -30
  139. /package/types/{2d/data/RenderData2D.d.ts → BasicResources.d.ts} +0 -0
  140. /package/types/{animation/internal/AnimationCurveOwnerLayerData.d.ts → RenderPipeline/OpaqueTexturePass.d.ts} +0 -0
  141. /package/types/{graphic/PrimitiveVertexBinding.d.ts → enums/CameraType.d.ts} +0 -0
@@ -1,41 +0,0 @@
1
- import { ParticleRenderer } from "./ParticleRenderer";
2
- import { EmissionModule } from "./modules/EmissionModule";
3
- import { MainModule } from "./modules/MainModule";
4
- import { ShapeModule } from "./modules/ShapeModule";
5
- /**
6
- * Particle System.
7
- */
8
- export declare class ParticleGenerator {
9
- /** Use auto random seed. */
10
- useAutoRandomSeed: boolean;
11
- /** Main module. */
12
- readonly main: MainModule;
13
- /** Emission module. */
14
- readonly emission: EmissionModule;
15
- /** Shape module. */
16
- readonly shape: ShapeModule;
17
- private _waitProcessRetiredElementCount;
18
- private _instanceVertexBufferBinding;
19
- private _instanceVertices;
20
- private readonly _engine;
21
- private readonly _renderer;
22
- private readonly _particleIncreaseCount;
23
- /**
24
- * Random seed.
25
- * @remarks If `useAutoRandomSeed` is true, this value will be random changed when play.
26
- */
27
- get randomSeed(): number;
28
- set randomSeed(value: number);
29
- constructor(renderer: ParticleRenderer);
30
- /**
31
- * Emit a certain number of particles.
32
- * @param count - Number of particles to emit
33
- */
34
- emit(count: number): void;
35
- private _addNewParticle;
36
- private _retireActiveParticles;
37
- private _freeRetiredParticles;
38
- private _addNewParticlesToVertexBuffer;
39
- private _createParticleData;
40
- private _addVertexBufferBindingsFilterDuplicate;
41
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- /**
2
- * The mode used for selecting rows of an animation in the Texture Sheet Animation Module.
3
- */
4
- export declare enum ParticleAnimationRowMode {
5
- /** Use a random row for each particle. */
6
- Random = 0,
7
- /** Use the mesh index as the row, so that meshes can be mapped to specific animation frames. */
8
- MeshIndex = 1
9
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * Controls how texture sheet animations play.
3
- */
4
- export declare enum ParticleAnimationType {
5
- /** Animate over the whole texture sheet from left to right, top to bottom. */
6
- WholeSheet = 0,
7
- /** Animate a single row in the sheet from left to right. */
8
- SingleRow = 1
9
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * The particle curve mode.
3
- */
4
- export declare enum ParticleCurveMode {
5
- /** Use a single constant for the MinMaxCurve. */
6
- Constant = 0,
7
- /** Use a single curve for the MinMaxCurve. */
8
- Curve = 1,
9
- /** Use a random value between 2 constants for the MinMaxCurve. */
10
- TwoConstants = 2,
11
- /** Use a random value between 2 curves for the MinMaxCurve. */
12
- TwoCurves = 3
13
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * The particle gradient mode.
3
- */
4
- export declare enum ParticleGradientMode {
5
- /** Use a single color for the MinMaxGradient. */
6
- Color = 0,
7
- /** Use a single color gradient for the MinMaxGradient. */
8
- Gradient = 1,
9
- /** Use a random value between 2 colors for the MinMaxGradient. */
10
- TwoColors = 2,
11
- /** Use a random value between 2 color gradients for the MinMaxGradient. */
12
- TwoGradients = 3
13
- }
@@ -1,17 +0,0 @@
1
- /**
2
- * The rendering mode for particle systems.
3
- */
4
- export declare enum ParticleRenderMode {
5
- /** Render particles as billboards facing the active camera. (Default) */
6
- Billboard = 0,
7
- /** Stretch particles in the direction of motion. */
8
- Stretch = 1,
9
- /** Render particles as billboards always facing up along the y-Axis. */
10
- HorizontalBillboard = 2,
11
- /** Render particles as billboards always facing the player, but not pitching along the x-Axis. */
12
- VerticalBillboard = 3,
13
- /** Render particles as meshes. */
14
- Mesh = 4,
15
- /** Do not render particles. */
16
- None = 5
17
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * Control how particle systems apply transform scale.
3
- */
4
- export declare enum ParticleScaleMode {
5
- /** Scale the Particle System using the entire transform hierarchy. */
6
- Hierarchy = 0,
7
- /** Scale the Particle System using only its own transform scale. (Ignores parent scale). */
8
- Local = 1,
9
- /** Only apply transform scale to the shape component, which controls where particles are spawned, but does not affect their size or movement. */
10
- World = 2
11
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * The mode used to generate new points in a shape.
3
- */
4
- export declare enum ParticleShapeMultiModeValue {
5
- /** Generate points randomly. (Default) */
6
- Random = 0,
7
- /** Animate the emission point around the shape. */
8
- Loop = 1
9
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * The emission shape.
3
- */
4
- export declare enum ParticleShapeType {
5
- /** Emit from the volume of a box. */
6
- Box = 0,
7
- /** Emit from a circle. */
8
- Circle = 1,
9
- /** Emit from the base of a cone. */
10
- Cone = 2,
11
- /** Emit from a half-sphere. */
12
- Hemisphere = 3,
13
- /** Emit from a sphere. */
14
- Sphere = 4
15
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * The space to simulate particles in.
3
- */
4
- export declare enum ParticleSimulationSpace {
5
- /** Simulate particles in local space. */
6
- Local = 0,
7
- /** Simulate particles in world space. */
8
- World = 1
9
- }
@@ -1,9 +0,0 @@
1
- export { ParticleScaleMode } from "./ParticleScaleMode";
2
- export { ParticleSimulationSpace } from "./ParticleSimulationSpace";
3
- export { ParticleCurveMode } from "./ParticleCurveMode";
4
- export { ParticleAnimationType } from "./ParticleAnimationType";
5
- export { ParticleAnimationRowMode } from "./ParticleAnimationRowMode";
6
- export { ParticleShapeMultiModeValue } from "./ParticleShapeMultiModeValue";
7
- export { ParticleRenderMode } from "./ParticleRenderMode";
8
- export { ParticleShapeType } from "./ParticleShapeType";
9
- export { ParticleGradientMode } from "./ParticleGradientMode";
@@ -1,38 +0,0 @@
1
- import { IClone } from "@galacean/engine-design";
2
- /**
3
- * A burst is a particle emission event, where a number of particles are all emitted at the same time
4
- */
5
- export declare class Burst implements IClone {
6
- private _time;
7
- private _minCount;
8
- private _maxCount;
9
- /**
10
- * The time that each burst occurs.
11
- */
12
- get time(): number;
13
- /**
14
- * The minimum number of particles to emit.
15
- */
16
- get minCount(): number;
17
- /**
18
- * The maximum number of particles to emit.
19
- */
20
- get maxCount(): number;
21
- /**
22
- * Create burst object.
23
- * @param time - Time to emit the burst.
24
- * @param minCount - Minimum number of particles to emit.
25
- * @param maxCount - Maximum number of particles to emit.
26
- */
27
- constructor(time: number, minCount: number, maxCount: number);
28
- /**
29
- * clone to
30
- * @param destBurst - The dest
31
- */
32
- cloneTo(destBurst: Burst): void;
33
- /**
34
- * clone
35
- * @return The copy
36
- */
37
- clone(): Burst;
38
- }
@@ -1,75 +0,0 @@
1
- import { IClone } from "@galacean/engine-design";
2
- import { Color, Gradient } from "@galacean/engine-math";
3
- import { ParticleGradientMode } from "../enum/ParticleGradientMode";
4
- /**
5
- * The Color Gradient.
6
- */
7
- export declare class ColorGradient implements IClone {
8
- /**
9
- * A single constant color for the entire gradient.
10
- * @param constant - Constant color.
11
- */
12
- static createByColor(constant: Color): ColorGradient;
13
- /**
14
- * Use one gradient when evaluating numbers along this Min-Max Gradient.
15
- * @param gradient - A single gradient for evaluating against.
16
- */
17
- static createByGradient(gradient: Gradient): ColorGradient;
18
- /**
19
- * Randomly select colors based on the interval between the minimum and maximum constants.
20
- * @param minConstant - The constant color describing the minimum colors to be evaluated.
21
- * @param maxConstant - The constant color describing the maximum colors to be evaluated.
22
- */
23
- static createByRandomTwoColor(minConstant: Color, maxConstant: Color): ColorGradient;
24
- /**
25
- * Randomly select colors based on the interval between the minimum and maximum gradients.
26
- * @param minGradient - The gradient describing the minimum colors to be evaluated.
27
- * @param maxGradient - The gradient describing the maximum colors to be evaluated.
28
- */
29
- static createByRandomTwoGradient(minGradient: Gradient, maxGradient: Gradient): ColorGradient;
30
- private _mode;
31
- private _color;
32
- private _colorMin;
33
- private _colorMax;
34
- private _gradient;
35
- private _gradientMin;
36
- private _gradientMax;
37
- /**
38
- * The mode that the Min-Max Gradient uses to evaluate colors.
39
- */
40
- get mode(): ParticleGradientMode;
41
- /**
42
- * The constant color.
43
- */
44
- get color(): Color;
45
- /**
46
- * The constant color for the lower bound.
47
- */
48
- get colorMin(): Color;
49
- /**
50
- * The constant color for the upper bound.
51
- */
52
- get colorMax(): Color;
53
- /**
54
- * The gradient.
55
- */
56
- get gradient(): Gradient;
57
- /**
58
- * The gradient for the lower bound.
59
- */
60
- get gradientMin(): Gradient;
61
- /**
62
- * The gradient for the upper bound.
63
- */
64
- get gradientMax(): Gradient;
65
- /**
66
- * @override
67
- * @inheritDoc
68
- */
69
- cloneTo(destGradientColor: ColorGradient): void;
70
- /**
71
- * @override
72
- * @inheritDoc
73
- */
74
- clone(): ColorGradient;
75
- }
@@ -1,20 +0,0 @@
1
- import { ColorGradient } from "./ColorGradient";
2
- /**
3
- * Color over lifetime.
4
- */
5
- export declare class ColorOverLifetimeModule {
6
- /** The gradient that controls the particle colors. */
7
- color: ColorGradient;
8
- /** Specifies whether the ColorOverLifetimeModule is enabled or disabled. */
9
- enable: boolean;
10
- /**
11
- * @override
12
- * @inheritDoc
13
- */
14
- cloneTo(destColorOverLifetime: ColorOverLifetimeModule): void;
15
- /**
16
- * @override
17
- * @inheritDoc
18
- */
19
- clone(): ColorOverLifetimeModule;
20
- }
@@ -1,63 +0,0 @@
1
- import { Burst } from "./Burst";
2
- import { IClone } from "@galacean/engine-design";
3
- /**
4
- * The EmissionModule of a Particle System.
5
- */
6
- export declare class EmissionModule implements IClone {
7
- private _emissionRate;
8
- private _emissionRateOverDistance;
9
- private _bursts;
10
- /** Specifies whether the EmissionModule is enabled or disabled. */
11
- enable: boolean;
12
- /**
13
- * The rate of particle emission.
14
- */
15
- get emissionRate(): number;
16
- set emissionRate(value: number);
17
- /**
18
- * The rate at which the emitter spawns new particles over distance.
19
- */
20
- get emissionRateOverDistance(): number;
21
- set emissionRateOverDistance(value: number);
22
- /**
23
- * Gets the burst array.
24
- */
25
- get bursts(): Burst[];
26
- /**
27
- * The current number of bursts.
28
- */
29
- get burstCount(): number;
30
- /**
31
- * Gets a single burst from the array of bursts.
32
- * @param index - The index of the burst to retrieve.
33
- * @return The burst data at the given index.
34
- */
35
- getBurstByIndex(index: number): Burst;
36
- /**
37
- * Add a single burst from the array of bursts.
38
- * @param burst - The burst data
39
- */
40
- addBurst(burst: Burst): void;
41
- /**
42
- * Remove a single burst from the array of bursts.
43
- * @param burst - The burst data
44
- */
45
- removeBurst(burst: Burst): void;
46
- /**
47
- * Remove a single burst from the array of bursts.
48
- * @param index - The burst data index
49
- */
50
- removeBurstByIndex(index: number): void;
51
- /**
52
- * Clear burst data.
53
- */
54
- clearBurst(): void;
55
- /**
56
- * @override
57
- */
58
- cloneTo(destEmission: EmissionModule): void;
59
- /**
60
- * @override
61
- */
62
- clone(): EmissionModule;
63
- }
@@ -1,73 +0,0 @@
1
- import { ParticleCurve } from "./ParticleCurve";
2
- import { IClone } from "@galacean/engine-design";
3
- import { ParticleCurveMode } from "../enum";
4
- /**
5
- * Curve to control frame speed based on lifetime.
6
- */
7
- export declare class FrameOverTime implements IClone {
8
- /**
9
- * A single constant value for the entire curve.
10
- * @param constant - Constant value.
11
- */
12
- static createByConstant(constant?: number): FrameOverTime;
13
- /**
14
- * Use one curve when evaluating numbers along this Min-Max curve.
15
- * @param overTime - A single curve to evaluate.
16
- */
17
- static createByOverTime(overTime: ParticleCurve): FrameOverTime;
18
- /**
19
- * Randomly select values based on the interval between the minimum and maximum constants.
20
- * @param constantMin - The constant describing the minimum values to be evaluated.
21
- * @param constantMax - The constant describing the maximum values to be evaluated.
22
- */
23
- static createByRandomTwoConstant(constantMin?: number, constantMax?: number): FrameOverTime;
24
- /**
25
- * Randomly select values based on the interval between the minimum and maximum curves.
26
- * @param gradientFrameMin - The curve describing the minimum values.
27
- * @param gradientFrameMax - The curve describing the maximum values.
28
- */
29
- static createByRandomTwoOverTime(gradientFrameMin: ParticleCurve, gradientFrameMax: ParticleCurve): FrameOverTime;
30
- private _mode;
31
- private _constant;
32
- private _overTime;
33
- private _constantMin;
34
- private _constantMax;
35
- private _overTimeMin;
36
- private _overTimeMax;
37
- /**
38
- * The mode that the min-max curve uses to evaluate values.
39
- */
40
- get mode(): ParticleCurveMode;
41
- /**
42
- * The constant value.
43
- */
44
- get constant(): number;
45
- /**
46
- * The curve
47
- */
48
- get frameOverTimeData(): ParticleCurve;
49
- /**
50
- * The constant for the lower bound.
51
- */
52
- get constantMin(): number;
53
- /**
54
- * The constant for the upper bound.
55
- */
56
- get constantMax(): number;
57
- /**
58
- * The curve for the lower bound
59
- */
60
- get frameOverTimeDataMin(): ParticleCurve;
61
- /**
62
- * The curve for the upper bound
63
- */
64
- get frameOverTimeDataMax(): ParticleCurve;
65
- /**
66
- * @override
67
- */
68
- cloneTo(destFrameOverTime: FrameOverTime): void;
69
- /**
70
- * @override
71
- */
72
- clone(): FrameOverTime;
73
- }
@@ -1,37 +0,0 @@
1
- import { IClone } from "@galacean/engine-design";
2
- /**
3
- * Store a collection of Keyframes that can be evaluated over time.
4
- */
5
- export declare class ParticleCurve implements IClone {
6
- private _currentLength;
7
- /** The number of keys in the curve. */
8
- get gradientCount(): number;
9
- /**
10
- * Add a new key to the curve.
11
- * @param key - The time at which to add the key
12
- * @param value - The value for the key
13
- */
14
- add(key: number, value: number): void;
15
- /**
16
- * Get key of keyframe by using index
17
- * @param index - The index
18
- */
19
- getKeyByIndex(index: number): number;
20
- /**
21
- * Get value of keyframe by using index
22
- * @param index - The index
23
- */
24
- getValueByIndex(index: number): number;
25
- /**
26
- * Get average value
27
- */
28
- getAverageValue(): number;
29
- /**
30
- * @override
31
- */
32
- cloneTo(destGradientDataNumber: ParticleCurve): void;
33
- /**
34
- * @override
35
- */
36
- clone(): ParticleCurve;
37
- }
@@ -1,21 +0,0 @@
1
- import { RotationVelocityGradient } from "./RotationVelocityGradient";
2
- import { IClone } from "@galacean/engine-design";
3
- /**
4
- * Rotate particles throughout their lifetime.
5
- */
6
- export declare class RotationOverLifetimeModule implements IClone {
7
- /** Curve to control particle angular velocity based on lifetime. */
8
- angularVelocity: RotationVelocityGradient;
9
- /** Specifies whether the RotationOverLifetimeModule is enabled or disabled. */
10
- enable: boolean;
11
- /**
12
- * @override
13
- * @inheritDoc
14
- */
15
- cloneTo(destRotationOverLifetime: RotationOverLifetimeModule): void;
16
- /**
17
- * @override
18
- * @inheritDoc
19
- */
20
- clone(): RotationOverLifetimeModule;
21
- }