@galacean/engine-core 1.1.0-beta.21 → 1.1.0-beta.23

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 (94) hide show
  1. package/dist/main.js.map +1 -1
  2. package/dist/miniprogram.js +1 -1
  3. package/dist/module.js.map +1 -1
  4. package/package.json +3 -3
  5. package/types/animation/AnimatorLayerMask.d.ts +45 -0
  6. package/types/animation/LayerPathMask.d.ts +16 -0
  7. package/types/xr/XRManager.d.ts +30 -34
  8. package/types/xr/feature/XRFeature.d.ts +60 -0
  9. package/types/xr/feature/XRFeatureManager.d.ts +4 -4
  10. package/types/xr/feature/XRFeatureType.d.ts +4 -6
  11. package/types/xr/feature/camera/XRCameraManager.d.ts +34 -0
  12. package/types/xr/feature/hitTest/TrackableType.d.ts +12 -0
  13. package/types/xr/feature/hitTest/XRHitTest.d.ts +41 -0
  14. package/types/xr/feature/hitTest/XRHitTestManager.d.ts +38 -0
  15. package/types/xr/feature/hitTest/XRHitTestType.d.ts +16 -0
  16. package/types/xr/feature/movementTracking/XRMovementTracking.d.ts +18 -0
  17. package/types/xr/feature/movementTracking/XRMovementTrackingManager.d.ts +10 -0
  18. package/types/xr/feature/movementTracking/XRMovementTrackingMode.d.ts +5 -0
  19. package/types/xr/feature/trackable/XRRequestTrackingState.d.ts +11 -0
  20. package/types/xr/feature/trackable/XRTrackableFeature.d.ts +44 -0
  21. package/types/xr/feature/trackable/XRTrackableManager.d.ts +41 -0
  22. package/types/xr/feature/trackable/anchor/XRAnchorTracking.d.ts +29 -0
  23. package/types/xr/feature/trackable/anchor/XRAnchorTrackingManager.d.ts +20 -0
  24. package/types/xr/feature/trackable/image/XRImageTracking.d.ts +40 -0
  25. package/types/xr/feature/trackable/image/XRImageTrackingManager.d.ts +31 -0
  26. package/types/xr/feature/trackable/image/XRReferenceImage.d.ts +11 -0
  27. package/types/xr/feature/trackable/plane/XRPlaneMode.d.ts +13 -0
  28. package/types/xr/feature/trackable/plane/XRPlaneTracking.d.ts +20 -0
  29. package/types/xr/feature/trackable/plane/XRPlaneTrackingManager.d.ts +11 -0
  30. package/types/xr/index.d.ts +16 -6
  31. package/types/xr/input/XRCamera.d.ts +0 -2
  32. package/types/xr/input/XRController.d.ts +0 -2
  33. package/types/xr/input/XRInputEvent.d.ts +6 -3
  34. package/types/xr/input/XRInputEventType.d.ts +11 -0
  35. package/types/xr/input/XRInputManager.d.ts +0 -1
  36. package/types/xr/input/XRTargetRayMode.d.ts +12 -0
  37. package/types/xr/session/XRSessionManager.d.ts +4 -23
  38. package/types/xr/session/XRSessionMode.d.ts +8 -0
  39. package/types/2d/data/RenderData2D.d.ts +0 -1
  40. package/types/RenderPipeline/MeshRenderData.d.ts +0 -17
  41. package/types/RenderPipeline/MeshRenderElement.d.ts +0 -19
  42. package/types/RenderPipeline/SpriteElement.d.ts +0 -15
  43. package/types/RenderPipeline/SpriteMaskElement.d.ts +0 -12
  44. package/types/RenderPipeline/TextRenderElement.d.ts +0 -8
  45. package/types/SafeLoopArray.d.ts +0 -37
  46. package/types/asset/IRefObject.d.ts +0 -2
  47. package/types/asset/RefObject.d.ts +0 -27
  48. package/types/base/Event.d.ts +0 -24
  49. package/types/base/Util.d.ts +0 -14
  50. package/types/enums/DepthMode.d.ts +0 -8
  51. package/types/particle/ParticleData.d.ts +0 -1
  52. package/types/particle/ParticleMesh.d.ts +0 -289
  53. package/types/particle/ParticleShaderDeclaration.d.ts +0 -1
  54. package/types/particle/enum/ParticleAnimationRowMode.d.ts +0 -9
  55. package/types/particle/enum/ParticleAnimationType.d.ts +0 -9
  56. package/types/particle/enum/ParticleCurveMode.d.ts +0 -13
  57. package/types/particle/enum/ParticleGradientMode.d.ts +0 -13
  58. package/types/particle/enum/ParticleRenderMode.d.ts +0 -17
  59. package/types/particle/enum/ParticleScaleMode.d.ts +0 -11
  60. package/types/particle/enum/ParticleShapeMultiModeValue.d.ts +0 -9
  61. package/types/particle/enum/ParticleShapeType.d.ts +0 -15
  62. package/types/particle/enum/ParticleSimulationSpace.d.ts +0 -9
  63. package/types/particle/enum/index.d.ts +0 -9
  64. package/types/particle/module/Burst.d.ts +0 -38
  65. package/types/particle/module/ColorGradient.d.ts +0 -75
  66. package/types/particle/module/ColorOverLifetimeModule.d.ts +0 -20
  67. package/types/particle/module/EmissionModule.d.ts +0 -63
  68. package/types/particle/module/FrameOverTime.d.ts +0 -73
  69. package/types/particle/module/ParticleCurve.d.ts +0 -37
  70. package/types/particle/module/RotationOverLifetimeModule.d.ts +0 -21
  71. package/types/particle/module/RotationVelocityGradient.d.ts +0 -184
  72. package/types/particle/module/SizeGradient.d.ts +0 -151
  73. package/types/particle/module/SizeOverLifetimeModule.d.ts +0 -21
  74. package/types/particle/module/StartFrame.d.ts +0 -46
  75. package/types/particle/module/TextureSheetAnimationModule.d.ts +0 -37
  76. package/types/particle/module/VelocityGradient.d.ts +0 -110
  77. package/types/particle/module/VelocityOverLifetimeModule.d.ts +0 -22
  78. package/types/particle/module/index.d.ts +0 -15
  79. package/types/particle/module/shape/BaseShape.d.ts +0 -23
  80. package/types/particle/module/shape/BoxShape.d.ts +0 -12
  81. package/types/particle/module/shape/CircleShape.d.ts +0 -19
  82. package/types/particle/module/shape/ConeShape.d.ts +0 -27
  83. package/types/particle/module/shape/HemisphereShape.d.ts +0 -15
  84. package/types/particle/module/shape/ShapeUtils.d.ts +0 -1
  85. package/types/particle/module/shape/SphereShape.d.ts +0 -15
  86. package/types/particle/module/shape/index.d.ts +0 -5
  87. package/types/particle/moudules/Burst.d.ts +0 -33
  88. package/types/particle/moudules/Emission.d.ts +0 -63
  89. package/types/particle/moudules/ParticleCurve.d.ts +0 -11
  90. package/types/physics/PhysicsManager.d.ts +0 -76
  91. package/types/shadow/PipelinePass.d.ts +0 -16
  92. package/types/xr/IXRDevice.d.ts +0 -26
  93. package/types/xr/feature/XRPlatformFeature.d.ts +0 -17
  94. package/types/xr/session/XRSessionType.d.ts +0 -7
@@ -1,22 +0,0 @@
1
- import { VelocityGradient } from "./VelocityGradient";
2
- import { IClone } from "@galacean/engine-design";
3
- import { ParticleSimulationSpace } from "../enum";
4
- /**
5
- * This module sets the velocity of particles during their lifetime.
6
- */
7
- export declare class VelocityOverLifetimeModule implements IClone {
8
- /** Get Gradient Velocity。 */
9
- velocity: VelocityGradient;
10
- /** Specifies whether the VelocityOverLifetimeModule is enabled or disabled. */
11
- enable: boolean;
12
- /** Specifies if the velocities are in local space (rotated with the transform) or world space. */
13
- space: ParticleSimulationSpace;
14
- /**
15
- * @override
16
- */
17
- cloneTo(destVelocityOverLifetime: VelocityOverLifetimeModule): void;
18
- /**
19
- * @override
20
- */
21
- clone(): VelocityOverLifetimeModule;
22
- }
@@ -1,15 +0,0 @@
1
- export * from "./shape";
2
- export { Burst } from "./Burst";
3
- export { EmissionModule } from "./EmissionModule";
4
- export { ColorGradient } from "./ColorGradient";
5
- export { ColorOverLifetimeModule } from "./ColorOverLifetimeModule";
6
- export { ParticleCurve } from "./ParticleCurve";
7
- export { VelocityGradient } from "./VelocityGradient";
8
- export { VelocityOverLifetimeModule } from "./VelocityOverLifetimeModule";
9
- export { RotationVelocityGradient } from "./RotationVelocityGradient";
10
- export { RotationOverLifetimeModule } from "./RotationOverLifetimeModule";
11
- export { SizeGradient } from "./SizeGradient";
12
- export { SizeOverLifetimeModule } from "./SizeOverLifetimeModule";
13
- export { StartFrame } from "./StartFrame";
14
- export { FrameOverTime } from "./FrameOverTime";
15
- export { TextureSheetAnimationModule } from "./TextureSheetAnimationModule";
@@ -1,23 +0,0 @@
1
- import { IClone } from "@galacean/engine-design";
2
- import { ParticleShapeType } from "../../enum/ParticleShapeType";
3
- /**
4
- * Configures the initial positions and directions of particles.
5
- */
6
- export declare abstract class BaseShape implements IClone {
7
- /** Specifies whether the ShapeModule is enabled or disabled. */
8
- enable: boolean;
9
- /** The type of shape to emit particles from. */
10
- shapeType: ParticleShapeType;
11
- /** Randomizes the starting direction of particles. */
12
- randomDirectionAmount: number;
13
- /**
14
- * @override
15
- * @inheritDoc
16
- */
17
- cloneTo(destShape: BaseShape): void;
18
- /**
19
- * @override
20
- * @inheritDoc
21
- */
22
- abstract clone(): BaseShape;
23
- }
@@ -1,12 +0,0 @@
1
- import { Vector3 } from "@galacean/engine-math";
2
- import { BaseShape } from "./BaseShape";
3
- /**
4
- * Box emitter shape.
5
- */
6
- export declare class BoxShape extends BaseShape {
7
- /** Thickness of the box to emit particles from. */
8
- size: Vector3;
9
- constructor();
10
- cloneTo(destShape: BoxShape): void;
11
- clone(): BoxShape;
12
- }
@@ -1,19 +0,0 @@
1
- import { BaseShape } from "./BaseShape";
2
- import { Rand, Vector2, Vector3 } from "@galacean/engine-math";
3
- import { ParticleShapeMultiModeValue } from "../../enum";
4
- /**
5
- * Circle Particle Emitter
6
- */
7
- export declare class CircleShape extends BaseShape {
8
- protected static _tempPositionPoint: Vector2;
9
- /** Radius of the shape to emit particles from. */
10
- radius: number;
11
- /** Angle of the circle arc to emit particles from. */
12
- arc: number;
13
- /** The mode to generate particles around the arc. */
14
- arcMode: ParticleShapeMultiModeValue;
15
- constructor();
16
- _generatePositionAndDirection(position: Vector3, direction: Vector3, rand?: Rand, randomSeeds?: Uint32Array): void;
17
- cloneTo(destShape: CircleShape): void;
18
- clone(): CircleShape;
19
- }
@@ -1,27 +0,0 @@
1
- import { BaseShape } from "./BaseShape";
2
- import { Rand, Vector2, Vector3 } from "@galacean/engine-math";
3
- export declare enum ConeEmitType {
4
- Base = 0,
5
- BaseShell = 1,
6
- Volume = 2,
7
- VolumeShell = 3
8
- }
9
- /**
10
- * Cone particle emitter
11
- */
12
- export declare class ConeShape extends BaseShape {
13
- protected static _tempPositionPoint: Vector2;
14
- protected static _tempDirectionPoint: Vector2;
15
- /** Angle of the cone to emit particles from. */
16
- angle: number;
17
- /** Radius of the shape to emit particles from. */
18
- radius: number;
19
- /** Length of the cone to emit particles from. */
20
- length: number;
21
- /** Cone emitter subtype */
22
- emitType: ConeEmitType;
23
- constructor();
24
- _generatePositionAndDirection(position: Vector3, direction: Vector3, rand?: Rand, randomSeeds?: Uint32Array): void;
25
- cloneTo(destShape: ConeShape): void;
26
- clone(): ConeShape;
27
- }
@@ -1,15 +0,0 @@
1
- import { BaseShape } from "./BaseShape";
2
- import { Rand, Vector3 } from "@galacean/engine-math";
3
- /**
4
- * Hemisphere emitter
5
- */
6
- export declare class HemisphereShape extends BaseShape {
7
- /** Radius of the shape to emit particles from. */
8
- radius: number;
9
- /** Whether emit from shell */
10
- emitFromShell: boolean;
11
- constructor();
12
- _generatePositionAndDirection(position: Vector3, direction: Vector3, rand?: Rand, randomSeeds?: Uint32Array): void;
13
- cloneTo(destShape: HemisphereShape): void;
14
- clone(): HemisphereShape;
15
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,15 +0,0 @@
1
- import { BaseShape } from "./BaseShape";
2
- import { Rand, Vector3 } from "@galacean/engine-math";
3
- /**
4
- * Sphere emitter
5
- */
6
- export declare class SphereShape extends BaseShape {
7
- /** Radius of the shape to emit particles from. */
8
- radius: number;
9
- /** Whether emit from shell */
10
- emitFromShell: boolean;
11
- constructor();
12
- _generatePositionAndDirection(position: Vector3, direction: Vector3, rand?: Rand, randomSeeds?: Uint32Array): void;
13
- cloneTo(destShape: SphereShape): void;
14
- clone(): SphereShape;
15
- }
@@ -1,5 +0,0 @@
1
- export { BoxShape } from "./BoxShape";
2
- export { CircleShape } from "./CircleShape";
3
- export { ConeShape, ConeEmitType } from "./ConeShape";
4
- export { HemisphereShape } from "./HemisphereShape";
5
- export { SphereShape } from "./SphereShape";
@@ -1,33 +0,0 @@
1
- import { IClone } from "@galacean/engine-design";
2
- import { ParticleCurve } from "./ParticleCurve";
3
- /**
4
- * A burst is a particle emission event, where a number of particles are all emitted at the same time
5
- */
6
- export declare class Burst implements IClone {
7
- private _time;
8
- private _count;
9
- /**
10
- * The time that each burst occurs.
11
- */
12
- get time(): number;
13
- /**
14
- * The number of particles to emit.
15
- */
16
- get count(): ParticleCurve;
17
- /**
18
- * Create burst object.
19
- * @param time - Time to emit the burst.
20
- * @param count - Minimum number of particles to emit.
21
- */
22
- constructor(time: number, count: ParticleCurve);
23
- /**
24
- * clone to
25
- * @param destBurst - The dest
26
- */
27
- cloneTo(destBurst: Burst): void;
28
- /**
29
- * clone
30
- * @return The copy
31
- */
32
- clone(): Burst;
33
- }
@@ -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,11 +0,0 @@
1
- import { ParticleCurveMode } from "../enums/ParticleCurveMode";
2
- /**
3
- * Particle curve.
4
- */
5
- export declare class ParticleCurve {
6
- /** The curve mode. */
7
- mode: ParticleCurveMode;
8
- constant: number;
9
- constantMin: number;
10
- constantMax: number;
11
- }
@@ -1,76 +0,0 @@
1
- import { Ray, Vector3 } from "@galacean/engine-math";
2
- import { Engine } from "../Engine";
3
- import { Layer } from "../Layer";
4
- import { HitResult } from "./HitResult";
5
- /**
6
- * A physics manager is a collection of colliders and constraints which can interact.
7
- */
8
- export declare class PhysicsManager {
9
- private static _collision;
10
- private _engine;
11
- private _restTime;
12
- private _colliders;
13
- private _gravity;
14
- private _nativePhysicsManager;
15
- private _physicalObjectsMap;
16
- private _onContactEnter;
17
- private _onContactExit;
18
- private _onContactStay;
19
- private _onTriggerEnter;
20
- private _onTriggerExit;
21
- private _onTriggerStay;
22
- /** The fixed time step in seconds at which physics are performed. */
23
- fixedTimeStep: number;
24
- /**
25
- * The gravity of physics scene.
26
- */
27
- get gravity(): Vector3;
28
- set gravity(value: Vector3);
29
- constructor(engine: Engine);
30
- /**
31
- * Casts a ray through the Scene and returns the first hit.
32
- * @param ray - The ray
33
- * @returns Returns True if the ray intersects with a collider, otherwise false
34
- */
35
- raycast(ray: Ray): boolean;
36
- /**
37
- * Casts a ray through the Scene and returns the first hit.
38
- * @param ray - The ray
39
- * @param outHitResult - If true is returned, outHitResult will contain more detailed collision information
40
- * @returns Returns True if the ray intersects with a collider, otherwise false
41
- */
42
- raycast(ray: Ray, outHitResult: HitResult): boolean;
43
- /**
44
- * Casts a ray through the Scene and returns the first hit.
45
- * @param ray - The ray
46
- * @param distance - The max distance the ray should check
47
- * @returns Returns True if the ray intersects with a collider, otherwise false
48
- */
49
- raycast(ray: Ray, distance: number): boolean;
50
- /**
51
- * Casts a ray through the Scene and returns the first hit.
52
- * @param ray - The ray
53
- * @param distance - The max distance the ray should check
54
- * @param outHitResult - If true is returned, outHitResult will contain more detailed collision information
55
- * @returns Returns True if the ray intersects with a collider, otherwise false
56
- */
57
- raycast(ray: Ray, distance: number, outHitResult: HitResult): boolean;
58
- /**
59
- * Casts a ray through the Scene and returns the first hit.
60
- * @param ray - The ray
61
- * @param distance - The max distance the ray should check
62
- * @param layerMask - Layer mask that is used to selectively ignore Colliders when casting
63
- * @returns Returns True if the ray intersects with a collider, otherwise false
64
- */
65
- raycast(ray: Ray, distance: number, layerMask: Layer): boolean;
66
- /**
67
- * Casts a ray through the Scene and returns the first hit.
68
- * @param ray - The ray
69
- * @param distance - The max distance the ray should check
70
- * @param layerMask - Layer mask that is used to selectively ignore Colliders when casting
71
- * @param outHitResult - If true is returned, outHitResult will contain more detailed collision information
72
- * @returns Returns True if the ray intersects with a collider, otherwise false.
73
- */
74
- raycast(ray: Ray, distance: number, layerMask: Layer, outHitResult: HitResult): boolean;
75
- private _setGravity;
76
- }
@@ -1,16 +0,0 @@
1
- import { Engine } from "../Engine";
2
- import { CullingResults } from "../RenderPipeline/CullingResults";
3
- import { RenderContext } from "../RenderPipeline/RenderContext";
4
- /**
5
- * PipelinePass is a base class for all pipeline passes.
6
- */
7
- export declare abstract class PipelinePass {
8
- protected _engine: Engine;
9
- constructor(engine: Engine);
10
- /**
11
- * Called before rendering a camera, override this method to configure the camera If you need to configure the camera clear flag or render target.
12
- * @param context - Rendering context
13
- * @param cullingResults - Culling results
14
- */
15
- abstract onRender(context: RenderContext, cullingResults: CullingResults): void;
16
- }
@@ -1,26 +0,0 @@
1
- import { IXRSession, IXRFeatureDescriptor, IXRPlatformFeature } from "@galacean/engine-design";
2
- import { Engine } from "../Engine";
3
- import { XRSessionType } from "./session/XRSessionType";
4
- /**
5
- * The interface of XR device.
6
- */
7
- export interface IXRDevice {
8
- /**
9
- * Whether the device is supported.
10
- * @param mode - The mode of the session.
11
- */
12
- isSupported(mode: XRSessionType): Promise<void>;
13
- /**
14
- * Get the platform feature instance of this device
15
- * @param engine - The engine.
16
- * @param type - The type of the feature.
17
- */
18
- createPlatformFeature(engine: Engine, type: number): IXRPlatformFeature;
19
- /**
20
- * Request a session.
21
- * @param engine - The engine
22
- * @param mode - The mode of the session
23
- * @param requestFeatures - The requested features
24
- */
25
- requestSession(engine: Engine, mode: XRSessionType, requestFeatures: IXRFeatureDescriptor[]): Promise<IXRSession>;
26
- }
@@ -1,17 +0,0 @@
1
- import { IXRPlatformFeature, IXRFeatureDescriptor } from "@galacean/engine-design";
2
- import { Engine } from "../../Engine";
3
- /**
4
- * The base class of XR platform feature.
5
- */
6
- export declare abstract class XRPlatformFeature implements IXRPlatformFeature {
7
- protected _engine: Engine;
8
- constructor(engine: Engine);
9
- _isSupported(descriptor: IXRFeatureDescriptor): Promise<void>;
10
- _initialize(descriptor?: IXRFeatureDescriptor): Promise<void>;
11
- _onUpdate(): void;
12
- _onDestroy(): void;
13
- _onSessionInit(): void;
14
- _onSessionStart(): void;
15
- _onSessionStop(): void;
16
- _onSessionDestroy(): void;
17
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * The type of XR session.
3
- */
4
- export declare enum XRSessionType {
5
- AR = 0,
6
- VR = 1
7
- }