@galacean/engine-core 1.1.0-beta.3 → 1.1.0-beta.31

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 (183) hide show
  1. package/dist/main.js +7972 -7356
  2. package/dist/main.js.map +1 -1
  3. package/dist/miniprogram.js +7972 -7356
  4. package/dist/module.js +7962 -7358
  5. package/dist/module.js.map +1 -1
  6. package/package.json +3 -3
  7. package/types/2d/atlas/types.d.ts +3 -0
  8. package/types/2d/enums/SpriteModifyFlags.d.ts +2 -1
  9. package/types/Background.d.ts +8 -0
  10. package/types/Component.d.ts +1 -1
  11. package/types/DisorderedArray.d.ts +1 -1
  12. package/types/Scene.d.ts +6 -0
  13. package/types/animation/AnimatorLayerMask.d.ts +45 -0
  14. package/types/animation/LayerPathMask.d.ts +16 -0
  15. package/types/animation/animationCurve/AnimationStringCurve.d.ts +7 -0
  16. package/types/asset/AssetPromise.d.ts +1 -0
  17. package/types/asset/ResourceManager.d.ts +0 -1
  18. package/types/lighting/DirectLight.d.ts +8 -1
  19. package/types/lighting/Light.d.ts +0 -4
  20. package/types/lighting/LightManager.d.ts +7 -0
  21. package/types/lighting/PointLight.d.ts +9 -1
  22. package/types/lighting/SpotLight.d.ts +12 -1
  23. package/types/mesh/SkinnedMeshRenderer.d.ts +1 -1
  24. package/types/particle/ParticleGenerator.d.ts +0 -2
  25. package/types/particle/index.d.ts +10 -0
  26. package/types/particle/modules/EmissionModule.d.ts +0 -1
  27. package/types/particle/modules/MainModule.d.ts +7 -6
  28. package/types/particle/modules/ParticleGeneratorModule.d.ts +0 -1
  29. package/types/particle/modules/ParticleGradient.d.ts +38 -18
  30. package/types/particle/modules/RotationOverLifetimeModule.d.ts +1 -1
  31. package/types/particle/modules/TextureSheetAnimationModule.d.ts +0 -4
  32. package/types/physics/Collider.d.ts +3 -1
  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/xr/XRManager.d.ts +3 -29
  40. package/types/xr/XRPose.d.ts +15 -0
  41. package/types/xr/feature/XRFeature.d.ts +13 -26
  42. package/types/xr/feature/XRFeatureManager.d.ts +65 -0
  43. package/types/xr/feature/XRFeatureType.d.ts +13 -0
  44. package/types/xr/feature/camera/XRCameraManager.d.ts +26 -0
  45. package/types/xr/feature/hitTest/TrackableType.d.ts +10 -0
  46. package/types/xr/feature/hitTest/XRHitResult.d.ts +19 -0
  47. package/types/xr/feature/hitTest/XRHitTest.d.ts +39 -0
  48. package/types/xr/feature/hitTest/XRHitTestManager.d.ts +38 -0
  49. package/types/xr/feature/hitTest/XRHitTestType.d.ts +16 -0
  50. package/types/xr/feature/movementTracking/XRMovementTracking.d.ts +18 -0
  51. package/types/xr/feature/movementTracking/XRMovementTrackingManager.d.ts +10 -0
  52. package/types/xr/feature/movementTracking/XRMovementTrackingMode.d.ts +5 -0
  53. package/types/xr/feature/trackable/XRRequestTrackingState.d.ts +11 -0
  54. package/types/xr/feature/trackable/XRTrackableFeature.d.ts +38 -0
  55. package/types/xr/feature/trackable/XRTrackableManager.d.ts +41 -0
  56. package/types/xr/feature/trackable/anchor/XRAnchor.d.ts +6 -0
  57. package/types/xr/feature/trackable/anchor/XRAnchorTracking.d.ts +37 -0
  58. package/types/xr/feature/trackable/anchor/XRAnchorTrackingManager.d.ts +20 -0
  59. package/types/xr/feature/trackable/anchor/XRRequestAnchor.d.ts +15 -0
  60. package/types/xr/feature/trackable/image/XRImageTracking.d.ts +24 -0
  61. package/types/xr/feature/trackable/image/XRImageTrackingManager.d.ts +31 -0
  62. package/types/xr/feature/trackable/image/XRReferenceImage.d.ts +11 -0
  63. package/types/xr/feature/trackable/image/XRRequestImage.d.ts +13 -0
  64. package/types/xr/feature/trackable/image/XRTrackedImage.d.ts +8 -0
  65. package/types/xr/feature/trackable/plane/XRPlaneMode.d.ts +13 -0
  66. package/types/xr/feature/trackable/plane/XRPlaneTracking.d.ts +23 -0
  67. package/types/xr/feature/trackable/plane/XRPlaneTrackingManager.d.ts +11 -0
  68. package/types/xr/feature/trackable/plane/XRRequestPlane.d.ts +12 -0
  69. package/types/xr/feature/trackable/plane/XRTrackedPlane.d.ts +20 -0
  70. package/types/xr/index.d.ts +25 -18
  71. package/types/xr/input/XRCamera.d.ts +15 -0
  72. package/types/xr/input/XRController.d.ts +38 -0
  73. package/types/xr/input/XRControllerPoseMode.d.ts +9 -0
  74. package/types/xr/input/XRInput.d.ts +8 -0
  75. package/types/xr/input/XRInputButton.d.ts +19 -0
  76. package/types/xr/input/XRInputEvent.d.ts +24 -0
  77. package/types/xr/input/XRInputEventType.d.ts +11 -0
  78. package/types/xr/input/XRInputManager.d.ts +31 -0
  79. package/types/xr/input/XRInputType.d.ts +23 -0
  80. package/types/xr/input/XRTargetRayMode.d.ts +12 -0
  81. package/types/xr/input/XRTrackedInputDevice.d.ts +21 -0
  82. package/types/xr/input/XRTrackedUpdateFlag.d.ts +11 -0
  83. package/types/xr/input/XRTrackingState.d.ts +11 -0
  84. package/types/xr/session/XRSessionManager.d.ts +45 -0
  85. package/types/xr/session/XRSessionMode.d.ts +8 -0
  86. package/types/xr/session/XRSessionState.d.ts +13 -0
  87. package/types/RenderPipeline/MeshRenderElement.d.ts +0 -17
  88. package/types/RenderPipeline/RenderElementX.d.ts +0 -12
  89. package/types/RenderPipeline/SpriteElement.d.ts +0 -13
  90. package/types/RenderPipeline/SpriteMaskElement.d.ts +0 -10
  91. package/types/RenderPipeline/TextRenderElement.d.ts +0 -6
  92. package/types/SafeLoopArray.d.ts +0 -37
  93. package/types/Ticker.d.ts +0 -30
  94. package/types/asset/IRefObject.d.ts +0 -2
  95. package/types/asset/RefObject.d.ts +0 -27
  96. package/types/base/Event.d.ts +0 -24
  97. package/types/base/Util.d.ts +0 -14
  98. package/types/particle/ParticleData.d.ts +0 -1
  99. package/types/particle/ParticleMesh.d.ts +0 -289
  100. package/types/particle/ParticleShaderDeclaration.d.ts +0 -1
  101. package/types/particle/ParticleShaderMacro.d.ts +0 -1
  102. package/types/particle/ParticleShaderProperty.d.ts +0 -1
  103. package/types/particle/ParticleSystem.d.ts +0 -41
  104. package/types/particle/ParticleVertexElements.d.ts +0 -1
  105. package/types/particle/ParticleVertexUtils.d.ts +0 -1
  106. package/types/particle/enum/ParticleAnimationRowMode.d.ts +0 -9
  107. package/types/particle/enum/ParticleAnimationType.d.ts +0 -9
  108. package/types/particle/enum/ParticleCurveMode.d.ts +0 -13
  109. package/types/particle/enum/ParticleGradientMode.d.ts +0 -13
  110. package/types/particle/enum/ParticleRenderMode.d.ts +0 -17
  111. package/types/particle/enum/ParticleScaleMode.d.ts +0 -11
  112. package/types/particle/enum/ParticleShapeMultiModeValue.d.ts +0 -9
  113. package/types/particle/enum/ParticleShapeType.d.ts +0 -15
  114. package/types/particle/enum/ParticleSimulationSpace.d.ts +0 -9
  115. package/types/particle/enum/index.d.ts +0 -9
  116. package/types/particle/module/Burst.d.ts +0 -38
  117. package/types/particle/module/ColorGradient.d.ts +0 -75
  118. package/types/particle/module/ColorOverLifetimeModule.d.ts +0 -20
  119. package/types/particle/module/EmissionModule.d.ts +0 -63
  120. package/types/particle/module/FrameOverTime.d.ts +0 -73
  121. package/types/particle/module/ParticleCurve.d.ts +0 -37
  122. package/types/particle/module/RotationOverLifetimeModule.d.ts +0 -21
  123. package/types/particle/module/RotationVelocityGradient.d.ts +0 -184
  124. package/types/particle/module/SizeGradient.d.ts +0 -151
  125. package/types/particle/module/SizeOverLifetimeModule.d.ts +0 -21
  126. package/types/particle/module/StartFrame.d.ts +0 -46
  127. package/types/particle/module/TextureSheetAnimationModule.d.ts +0 -37
  128. package/types/particle/module/VelocityGradient.d.ts +0 -110
  129. package/types/particle/module/VelocityOverLifetimeModule.d.ts +0 -22
  130. package/types/particle/module/index.d.ts +0 -15
  131. package/types/particle/module/shape/BaseShape.d.ts +0 -26
  132. package/types/particle/module/shape/BoxShape.d.ts +0 -20
  133. package/types/particle/module/shape/CircleShape.d.ts +0 -27
  134. package/types/particle/module/shape/ConeShape.d.ts +0 -35
  135. package/types/particle/module/shape/HemisphereShape.d.ts +0 -23
  136. package/types/particle/module/shape/ShapeUtils.d.ts +0 -1
  137. package/types/particle/module/shape/SphereShape.d.ts +0 -23
  138. package/types/particle/module/shape/index.d.ts +0 -5
  139. package/types/particle/modules/ShapeModule.d.ts +0 -9
  140. package/types/particle/modules/shape/enums/ParticleShapeMultiModeValue.d.ts +0 -9
  141. package/types/particle/moudules/Burst.d.ts +0 -25
  142. package/types/particle/moudules/Emission.d.ts +0 -47
  143. package/types/particle/moudules/EmissionModule.d.ts +0 -49
  144. package/types/particle/moudules/MainModule.d.ts +0 -59
  145. package/types/particle/moudules/ParticleCurve.d.ts +0 -27
  146. package/types/particle/moudules/ParticleGradient.d.ts +0 -28
  147. package/types/particle/moudules/ShapeModule.d.ts +0 -7
  148. package/types/particle/moudules/shape/BaseShape.d.ts +0 -28
  149. package/types/particle/moudules/shape/BoxShape.d.ts +0 -20
  150. package/types/particle/moudules/shape/CircleShape.d.ts +0 -27
  151. package/types/particle/moudules/shape/ConeShape.d.ts +0 -35
  152. package/types/particle/moudules/shape/HemisphereShape.d.ts +0 -23
  153. package/types/particle/moudules/shape/ShapeUtils.d.ts +0 -1
  154. package/types/particle/moudules/shape/SphereShape.d.ts +0 -23
  155. package/types/particle/moudules/shape/enums/ParticleShapeMultiModeValue.d.ts +0 -9
  156. package/types/particle/moudules/shape/enums/ParticleShapeType.d.ts +0 -15
  157. package/types/particle/moudules/shape/index.d.ts +0 -5
  158. package/types/shadow/PipelinePass.d.ts +0 -16
  159. package/types/utils/BoolUpdateFlag.d.ts +0 -12
  160. package/types/utils/DisorderedArray.d.ts +0 -18
  161. package/types/utils/UpdateFlag.d.ts +0 -20
  162. package/types/utils/UpdateFlagManager.d.ts +0 -1
  163. package/types/utils/Utils.d.ts +0 -31
  164. package/types/xr/component/XRPoseDriver.d.ts +0 -10
  165. package/types/xr/data/XRCamera.d.ts +0 -6
  166. package/types/xr/data/XRDevice.d.ts +0 -9
  167. package/types/xr/data/XRHandle.d.ts +0 -10
  168. package/types/xr/enum/EnumXRButton.d.ts +0 -5
  169. package/types/xr/enum/EnumXRDevicePhase.d.ts +0 -4
  170. package/types/xr/enum/EnumXRFeature.d.ts +0 -9
  171. package/types/xr/enum/EnumXRInputSource.d.ts +0 -8
  172. package/types/xr/enum/EnumXRMode.d.ts +0 -7
  173. package/types/xr/enum/EnumXRSubsystem.d.ts +0 -4
  174. package/types/xr/enum/EnumXRTrackingMode.d.ts +0 -7
  175. package/types/xr/feature/XRCameraManager.d.ts +0 -21
  176. package/types/xr/feature/XRImageTrackManager.d.ts +0 -10
  177. package/types/xr/feature/XRInputManager.d.ts +0 -16
  178. package/types/xr/provider/XRProvider.d.ts +0 -19
  179. package/types/xr/subsystem/XRInputSubsystem.d.ts +0 -5
  180. package/types/xr/subsystem/XRSubsystem.d.ts +0 -30
  181. /package/types/{2d/data/RenderData2D.d.ts → enums/CameraType.d.ts} +0 -0
  182. /package/types/{animation/internal/AnimationCurveOwnerLayerData.d.ts → xr/feature/trackable/XRRequestTracking.d.ts} +0 -0
  183. /package/types/{graphic/PrimitiveVertexBinding.d.ts → xr/feature/trackable/XRTracked.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/engine-core",
3
- "version": "1.1.0-beta.3",
3
+ "version": "1.1.0-beta.31",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -15,10 +15,10 @@
15
15
  "types/**/*"
16
16
  ],
17
17
  "dependencies": {
18
- "@galacean/engine-math": "1.1.0-beta.3"
18
+ "@galacean/engine-math": "1.1.0-beta.31"
19
19
  },
20
20
  "devDependencies": {
21
- "@galacean/engine-design": "1.1.0-beta.3"
21
+ "@galacean/engine-design": "1.1.0-beta.31"
22
22
  },
23
23
  "scripts": {
24
24
  "b:types": "tsc"
@@ -1,3 +1,4 @@
1
+ import { AssetType } from "../../asset/AssetType";
1
2
  import { TextureFilterMode, TextureFormat, TextureWrapMode } from "../../texture";
2
3
  /**
3
4
  * The original data type of the atlas.
@@ -16,6 +17,8 @@ export interface AtlasConfig {
16
17
  atlasItems: {
17
18
  /** The url of the sub atlas. */
18
19
  img: string;
20
+ /** Image type. */
21
+ type: AssetType;
19
22
  /** Sprites contained in the sub atlas. */
20
23
  sprites: AtlasSprite[];
21
24
  }[];
@@ -9,5 +9,6 @@ export declare enum SpriteModifyFlags {
9
9
  atlasRegionOffset = 16,
10
10
  region = 32,
11
11
  pivot = 64,
12
- border = 128
12
+ border = 128,
13
+ destroy = 256
13
14
  }
@@ -33,11 +33,19 @@ export declare class Background {
33
33
  */
34
34
  get texture(): Texture2D;
35
35
  set texture(value: Texture2D);
36
+ /**
37
+ * Background texture fill mode.
38
+ * @remarks When `mode` is `BackgroundMode.Texture`, the property will take effects.
39
+ * @defaultValue `BackgroundTextureFillMode.FitHeight`
40
+ */
41
+ get textureFillMode(): BackgroundTextureFillMode;
36
42
  set textureFillMode(value: BackgroundTextureFillMode);
37
43
  /**
38
44
  * Constructor of Background.
39
45
  * @param _engine Engine Which the background belongs to.
40
46
  */
41
47
  constructor(_engine: Engine);
48
+ private _initMesh;
49
+ private _initMaterial;
42
50
  private _createPlane;
43
51
  }
@@ -5,8 +5,8 @@ import { Scene } from "./Scene";
5
5
  * The base class of the components.
6
6
  */
7
7
  export declare class Component extends EngineObject {
8
+ protected _phasedActiveInScene: boolean;
8
9
  private _phasedActive;
9
- private _phasedActiveInScene;
10
10
  private _enabled;
11
11
  /**
12
12
  * Indicates whether the component is enabled.
@@ -17,7 +17,7 @@ export declare class DisorderedArray<T> {
17
17
  * @returns The replaced item is used to reset its index
18
18
  */
19
19
  deleteByIndex(index: number): T;
20
- forEach(callbackFn: (e: T) => void): void;
20
+ forEach(callbackFn: (element: T) => void, swapFn: (element: T, index: number) => void): void;
21
21
  forEachAndClean(callbackFn: (e: T) => void): void;
22
22
  garbageCollection(): void;
23
23
  private _startLoop;
package/types/Scene.d.ts CHANGED
@@ -41,6 +41,12 @@ export declare class Scene extends EngineObject {
41
41
  private _fogEnd;
42
42
  private _fogDensity;
43
43
  private _fogParams;
44
+ private _isActive;
45
+ /**
46
+ * Whether the scene is active.
47
+ */
48
+ get isActive(): boolean;
49
+ set isActive(value: boolean);
44
50
  /**
45
51
  * Scene-related shader data.
46
52
  */
@@ -0,0 +1,45 @@
1
+ import { Entity } from "../Entity";
2
+ import { LayerPathMask } from "./LayerPathMask";
3
+ /**
4
+ * AnimatorLayerMask is used to mask out certain entities from being animated by an AnimatorLayer.
5
+ */
6
+ export declare class AnimatorLayerMask {
7
+ /**
8
+ * Creates an AnimatorLayerMask instance by specifying an entity.
9
+ * This will automatically add path masks for the entity and all its children.
10
+ * @param entity - The root entity to create path masks for
11
+ */
12
+ static createByEntity(entity: Entity): AnimatorLayerMask;
13
+ private static _addPathMaskWithChildren;
14
+ private _pathMasks;
15
+ private _pathMaskMap;
16
+ /**
17
+ * The list of path masks.
18
+ */
19
+ get pathMasks(): Readonly<LayerPathMask[]>;
20
+ /**
21
+ * Adds a path mask to the AnimatorLayerMask, the root path is "".
22
+ * @param path - The path to add a mask for
23
+ * @returns The created or existing LayerPathMask
24
+ */
25
+ addPathMask(path: string): LayerPathMask;
26
+ /**
27
+ * Removes a path mask from the AnimatorLayerMask.
28
+ * @param path - The path of the mask to remove
29
+ */
30
+ removePathMask(path: any): void;
31
+ /**
32
+ * Get a path mask based on the given path.
33
+ * @param path - The path of the mask to get
34
+ * @returns The LayerPathMask for the given path
35
+ */
36
+ getPathMask(path: string): LayerPathMask;
37
+ /**
38
+ * Sets the active state of a path mask.
39
+ * If recursive is true, it also sets the active state of all child path masks.
40
+ * @param path - The path of the mask to modify
41
+ * @param active - The active state to set
42
+ * @param withChildren - Whether to apply the active state recursively to child paths
43
+ */
44
+ setPathMaskActive(path: string, active: boolean, withChildren?: boolean): void;
45
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * LayerPathMask represents a mask for a specific entity in an animation layer.
3
+ * It is used to control the animation whether to be applied to the entity or not.
4
+ */
5
+ export declare class LayerPathMask {
6
+ /**
7
+ * It identifies a particular entity in the hierarchy.
8
+ * Example: "arm/left/hand" could be a path to the left hand of a character.
9
+ */
10
+ path: string;
11
+ /**
12
+ * The active property is indicating whether the animation at this path is active or not.
13
+ * When true, the animation for this path is applied; when false, the animation for this path is ignored.
14
+ */
15
+ active: boolean;
16
+ }
@@ -0,0 +1,7 @@
1
+ import { AnimationCurve } from "./AnimationCurve";
2
+ /**
3
+ * Store a collection of Keyframes that can be evaluated over time.
4
+ */
5
+ export declare class AnimationStringCurve extends AnimationCurve<string> {
6
+ constructor();
7
+ }
@@ -13,6 +13,7 @@ export declare class AssetPromise<T> implements PromiseLike<T> {
13
13
  get [Symbol.toStringTag](): string;
14
14
  private _promise;
15
15
  private _state;
16
+ private _progress;
16
17
  private _onProgressCallback;
17
18
  private _onCancelHandler;
18
19
  private _reject;
@@ -104,7 +104,6 @@ export declare class ResourceManager {
104
104
  private _gc;
105
105
  private _getResolveResource;
106
106
  private _parseURL;
107
- private _getParameterByName;
108
107
  private _parseQueryPath;
109
108
  }
110
109
  /**
@@ -7,7 +7,6 @@ export declare class DirectLight extends Light {
7
7
  private static _cullingMaskProperty;
8
8
  private static _colorProperty;
9
9
  private static _directionProperty;
10
- private static _combinedData;
11
10
  private _reverseDirection;
12
11
  /**
13
12
  * Get direction.
@@ -18,3 +17,11 @@ export declare class DirectLight extends Light {
18
17
  */
19
18
  get reverseDirection(): Vector3;
20
19
  }
20
+ /**
21
+ * Shader properties data of direct lights in the scene.
22
+ */
23
+ export interface IDirectLightShaderData {
24
+ cullingMask: Int32Array;
25
+ color: Float32Array;
26
+ direction: Float32Array;
27
+ }
@@ -6,10 +6,6 @@ import { ShadowType } from "../shadow";
6
6
  * Light base class.
7
7
  */
8
8
  export declare abstract class Light extends Component {
9
- /**
10
- * Each type of light source is at most 10, beyond which it will not take effect.
11
- * */
12
- protected static _maxLight: number;
13
9
  /** Light Intensity */
14
10
  intensity: number;
15
11
  /**
@@ -2,5 +2,12 @@
2
2
  * Light manager.
3
3
  */
4
4
  export declare class LightManager {
5
+ /**
6
+ * Each type of light source is at most 10, beyond which it will not take effect.
7
+ * */
8
+ private static _maxLight;
9
+ private _directData;
10
+ private _pointData;
11
+ private _spotData;
5
12
  private _getSunLightIndex;
6
13
  }
@@ -8,7 +8,6 @@ export declare class PointLight extends Light {
8
8
  private static _colorProperty;
9
9
  private static _positionProperty;
10
10
  private static _distanceProperty;
11
- private static _combinedData;
12
11
  /** Defines a distance cutoff at which the light's intensity must be considered zero. */
13
12
  distance: number;
14
13
  /**
@@ -16,3 +15,12 @@ export declare class PointLight extends Light {
16
15
  */
17
16
  get position(): Vector3;
18
17
  }
18
+ /**
19
+ * Shader properties data of point lights in the scene.
20
+ */
21
+ export interface IPointLightShaderData {
22
+ cullingMask: Int32Array;
23
+ color: Float32Array;
24
+ position: Float32Array;
25
+ distance: Float32Array;
26
+ }
@@ -11,7 +11,6 @@ export declare class SpotLight extends Light {
11
11
  private static _distanceProperty;
12
12
  private static _angleCosProperty;
13
13
  private static _penumbraCosProperty;
14
- private static _combinedData;
15
14
  /** Defines a distance cutoff at which the light's intensity must be considered zero. */
16
15
  distance: number;
17
16
  /** Angle, in radians, from centre of spotlight where falloff begins. */
@@ -33,3 +32,15 @@ export declare class SpotLight extends Light {
33
32
  */
34
33
  get reverseDirection(): Vector3;
35
34
  }
35
+ /**
36
+ * Shader properties data of spot lights in the scene.
37
+ */
38
+ export interface ISpotLightShaderData {
39
+ cullingMask: Int32Array;
40
+ color: Float32Array;
41
+ position: Float32Array;
42
+ direction: Float32Array;
43
+ distance: Float32Array;
44
+ angleCos: Float32Array;
45
+ penumbraCos: Float32Array;
46
+ }
@@ -9,11 +9,11 @@ export declare class SkinnedMeshRenderer extends MeshRenderer {
9
9
  private static _jointCountProperty;
10
10
  private static _jointSamplerProperty;
11
11
  private static _jointMatrixProperty;
12
+ private _localBounds;
12
13
  private _jointDataCreateCache;
13
14
  private _blendShapeWeights;
14
15
  private _maxVertexUniformVectors;
15
16
  private _rootBone;
16
- private _localBounds;
17
17
  private _jointMatrices;
18
18
  private _jointTexture;
19
19
  private _bones;
@@ -1,4 +1,3 @@
1
- import { ParticleRenderer } from "./ParticleRenderer";
2
1
  import { ParticleStopMode } from "./enums/ParticleStopMode";
3
2
  import { ColorOverLifetimeModule } from "./modules/ColorOverLifetimeModule";
4
3
  import { EmissionModule } from "./modules/EmissionModule";
@@ -47,7 +46,6 @@ export declare class ParticleGenerator {
47
46
  */
48
47
  get randomSeed(): number;
49
48
  set randomSeed(value: number);
50
- constructor(renderer: ParticleRenderer);
51
49
  /**
52
50
  * Start emitting particles.
53
51
  * @param withChildren - Whether to start the particle generator of the child entity
@@ -1,3 +1,4 @@
1
+ export { ParticleGenerator } from "./ParticleGenerator";
1
2
  export { ParticleMaterial } from "./ParticleMaterial";
2
3
  export { ParticleRenderer } from "./ParticleRenderer";
3
4
  export { ParticleCurveMode } from "./enums/ParticleCurveMode";
@@ -7,6 +8,15 @@ export { ParticleScaleMode } from "./enums/ParticleScaleMode";
7
8
  export { ParticleSimulationSpace } from "./enums/ParticleSimulationSpace";
8
9
  export { ParticleStopMode } from "./enums/ParticleStopMode";
9
10
  export { Burst } from "./modules/Burst";
11
+ export { ColorOverLifetimeModule } from "./modules/ColorOverLifetimeModule";
12
+ export { EmissionModule } from "./modules/EmissionModule";
13
+ export { MainModule } from "./modules/MainModule";
10
14
  export { ParticleCompositeCurve } from "./modules/ParticleCompositeCurve";
15
+ export { ParticleCompositeGradient } from "./modules/ParticleCompositeGradient";
11
16
  export { CurveKey, ParticleCurve } from "./modules/ParticleCurve";
17
+ export { GradientAlphaKey, GradientColorKey, ParticleGradient } from "./modules/ParticleGradient";
18
+ export { RotationOverLifetimeModule } from "./modules/RotationOverLifetimeModule";
19
+ export { SizeOverLifetimeModule } from "./modules/SizeOverLifetimeModule";
20
+ export { TextureSheetAnimationModule } from "./modules/TextureSheetAnimationModule";
21
+ export { VelocityOverLifetimeModule } from "./modules/VelocityOverLifetimeModule";
12
22
  export * from "./modules/shape/index";
@@ -13,7 +13,6 @@ export declare class EmissionModule extends ParticleGeneratorModule {
13
13
  /** The shape of the emitter. */
14
14
  shape: BaseShape;
15
15
  private _bursts;
16
- private _frameRateTime;
17
16
  private _currentBurstIndex;
18
17
  private _burstRand;
19
18
  /**
@@ -26,22 +26,19 @@ export declare class MainModule implements ICustomClone {
26
26
  startSpeed: ParticleCompositeCurve;
27
27
  /** A flag to enable specifying particle size individually for each axis. */
28
28
  startSize3D: boolean;
29
- /** The initial size of particles when the Particle Generator first spawns them. */
30
- startSize: ParticleCompositeCurve;
31
29
  /** The initial size of particles along the x-axis when the Particle Generator first spawns them. */
32
30
  startSizeX: ParticleCompositeCurve;
33
31
  /** The initial size of particles along the y-axis when the Particle Generator first spawns them. */
34
32
  startSizeY: ParticleCompositeCurve;
35
33
  /** The initial size of particles along the z-axis when the Particle Generator first spawns them. */
36
34
  startSizeZ: ParticleCompositeCurve;
37
- /** A flag to enable 3D particle rotation. */
35
+ /** A flag to enable 3D particle rotation, when disabled, only `startRotationZ` is used. */
38
36
  startRotation3D: boolean;
39
- /** The initial rotation of particles when the Particle Generator first spawns them. */
40
- startRotation: ParticleCompositeCurve;
41
37
  /** The initial rotation of particles around the x-axis when emitted.*/
42
38
  startRotationX: ParticleCompositeCurve;
43
39
  /** The initial rotation of particles around the y-axis when emitted. */
44
40
  startRotationY: ParticleCompositeCurve;
41
+ /** The initial rotation of particles around the z-axis when emitted. */
45
42
  startRotationZ: ParticleCompositeCurve;
46
43
  /** Makes some particles spin in the opposite direction. */
47
44
  flipRotation: number;
@@ -57,7 +54,6 @@ export declare class MainModule implements ICustomClone {
57
54
  scalingMode: ParticleScaleMode;
58
55
  /** If set to true, the Particle Generator automatically begins to play on startup. */
59
56
  playOnEnabled: boolean;
60
- private _maxParticles;
61
57
  private _generator;
62
58
  private _gravity;
63
59
  /**
@@ -65,4 +61,9 @@ export declare class MainModule implements ICustomClone {
65
61
  */
66
62
  get maxParticles(): number;
67
63
  set maxParticles(value: number);
64
+ /**
65
+ * The initial size of particles when the Particle Generator first spawns them.
66
+ */
67
+ get startSize(): ParticleCompositeCurve;
68
+ set startSize(value: ParticleCompositeCurve);
68
69
  }
@@ -7,6 +7,5 @@ export declare abstract class ParticleGeneratorModule {
7
7
  /** Specifies whether the module is enabled or not. */
8
8
  enabled: boolean;
9
9
  protected _generator: ParticleGenerator;
10
- constructor(generator: ParticleGenerator);
11
10
  protected _enableMacro(shaderData: ShaderData, lastEnableMacro: ShaderMacro, enableMacro: ShaderMacro): ShaderMacro;
12
11
  }
@@ -63,32 +63,52 @@ export declare class ParticleGradient {
63
63
  setKeys(colorKeys: GradientColorKey[], alphaKeys: GradientAlphaKey[]): void;
64
64
  private _addKey;
65
65
  private _removeKey;
66
+ private _setColorTypeArrayDirty;
67
+ private _setAlphaTypeArrayDirty;
66
68
  }
67
69
  /**
68
70
  * The color key of the particle gradient.
69
71
  */
70
72
  export declare class GradientColorKey {
71
- /** The key time. */
72
- time: number;
73
- /** The key color. */
74
- color: Color;
75
- constructor(
76
- /** The key time. */
77
- time: number,
78
- /** The key color. */
79
- color: Color);
73
+ private _time;
74
+ private _color;
75
+ /**
76
+ * The key time.
77
+ */
78
+ get time(): number;
79
+ set time(value: number);
80
+ /**
81
+ * The key color.
82
+ */
83
+ get color(): Color;
84
+ set color(value: Color);
85
+ /**
86
+ * Constructor of GradientColorKey.
87
+ * @param time - The time of the gradient colorKey
88
+ * @param color - The alpha component of the gradient colorKey
89
+ */
90
+ constructor(time: number, color: Color);
80
91
  }
81
92
  /**
82
93
  * The alpha key of the particle gradient.
83
94
  */
84
95
  export declare class GradientAlphaKey {
85
- /** The key time. */
86
- time: number;
87
- /** The key alpha. */
88
- alpha: number;
89
- constructor(
90
- /** The key time. */
91
- time: number,
92
- /** The key alpha. */
93
- alpha: number);
96
+ private _time;
97
+ private _alpha;
98
+ /**
99
+ * The key time.
100
+ */
101
+ get time(): number;
102
+ set time(value: number);
103
+ /**
104
+ * The key alpha.
105
+ */
106
+ get alpha(): number;
107
+ set alpha(value: number);
108
+ /**
109
+ * Constructor of GradientAlphaKey.
110
+ * @param time - The time of the gradient alpha key
111
+ * @param alpha - The alpha component of the gradient alpha key
112
+ */
113
+ constructor(time: number, alpha: number);
94
114
  }
@@ -18,7 +18,7 @@ export declare class RotationOverLifetimeModule extends ParticleGeneratorModule
18
18
  static readonly _maxCurveXProperty: ShaderProperty;
19
19
  static readonly _maxCurveYProperty: ShaderProperty;
20
20
  static readonly _maxCurveZProperty: ShaderProperty;
21
- /** Specifies whether the rotation is separate on each axis, when disabled only z axis is used. */
21
+ /** Specifies whether the rotation is separate on each axis, when disabled, only `rotationZ` is used. */
22
22
  separateAxes: boolean;
23
23
  /** Rotation over lifetime for z axis. */
24
24
  rotationX: ParticleCompositeCurve;
@@ -26,10 +26,6 @@ export declare class TextureSheetAnimationModule extends ParticleGeneratorModule
26
26
  * */
27
27
  get tiling(): Vector2;
28
28
  set tiling(value: Vector2);
29
- /**
30
- * @inheritDoc
31
- */
32
- cloneTo(dest: TextureSheetAnimationModule): void;
33
29
  }
34
30
  /**
35
31
  * Texture sheet animation type.
@@ -1,11 +1,12 @@
1
1
  import { BoolUpdateFlag } from "../BoolUpdateFlag";
2
2
  import { Component } from "../Component";
3
3
  import { ColliderShape } from "./shape/ColliderShape";
4
+ import { ICustomClone } from "../clone/ComponentCloner";
4
5
  /**
5
6
  * Base class for all colliders.
6
7
  * @decorator `@dependentComponents(Transform, DependentMode.CheckOnly)`
7
8
  */
8
- export declare class Collider extends Component {
9
+ export declare class Collider extends Component implements ICustomClone {
9
10
  protected _updateFlag: BoolUpdateFlag;
10
11
  protected _shapes: ColliderShape[];
11
12
  /**
@@ -26,4 +27,5 @@ export declare class Collider extends Component {
26
27
  * Remove all shape attached.
27
28
  */
28
29
  clearShapes(): void;
30
+ protected _addPhysicsShape(shape: ColliderShape): void;
29
31
  }
@@ -8,6 +8,7 @@ export declare class PhysicsMaterial {
8
8
  private _staticFriction;
9
9
  private _bounceCombine;
10
10
  private _frictionCombine;
11
+ private _destroyed;
11
12
  constructor();
12
13
  /**
13
14
  * The coefficient of bounciness.
@@ -28,7 +28,7 @@ export declare class HingeJoint extends Joint {
28
28
  /**
29
29
  * The angular velocity of the joint in degrees per second.
30
30
  */
31
- get velocity(): Readonly<Vector3>;
31
+ get velocity(): Readonly<number>;
32
32
  /**
33
33
  * Enables the joint's limits. Disabled by default.
34
34
  */
@@ -3,13 +3,14 @@ import { Vector3 } from "@galacean/engine-math";
3
3
  import { Component } from "../../Component";
4
4
  import { Entity } from "../../Entity";
5
5
  import { Collider } from "../Collider";
6
+ import { ICustomClone } from "../../clone/ComponentCloner";
6
7
  /**
7
8
  * A base class providing common functionality for joints.
8
9
  * @decorator `@dependentComponents(Collider, DependentMode.CheckOnly)`
9
10
  */
10
- export declare class Joint extends Component {
11
- protected _connectedCollider: JointCollider;
12
- protected _collider: JointCollider;
11
+ export declare class Joint extends Component implements ICustomClone {
12
+ protected _colliderInfo: JointColliderInfo;
13
+ protected _connectedColliderInfo: JointColliderInfo;
13
14
  protected _nativeJoint: IJoint;
14
15
  private _force;
15
16
  private _torque;
@@ -1,10 +1,11 @@
1
1
  import { PhysicsMaterial } from "../PhysicsMaterial";
2
2
  import { Vector3 } from "@galacean/engine-math";
3
3
  import { Collider } from "../Collider";
4
+ import { ICustomClone } from "../../clone/ComponentCloner";
4
5
  /**
5
6
  * Abstract class for collider shapes.
6
7
  */
7
- export declare abstract class ColliderShape {
8
+ export declare abstract class ColliderShape implements ICustomClone {
8
9
  private static _idGenerator;
9
10
  protected _id: number;
10
11
  protected _material: PhysicsMaterial;
@@ -10,4 +10,5 @@ export declare class SphereColliderShape extends ColliderShape {
10
10
  get radius(): number;
11
11
  set radius(value: number);
12
12
  constructor();
13
+ _cloneTo(target: SphereColliderShape): void;
13
14
  }
@@ -19,7 +19,7 @@ export declare class Shader {
19
19
  * // Import shaderLab
20
20
  * import { ShaderLab } from "@galacean/engine-shader-lab";
21
21
  * // Create engine with shaderLab
22
- * const engine = await WebGLEngine.create({ canvas: "canvas", new ShaderLab() });
22
+ * const engine = await WebGLEngine.create({ canvas: "canvas", shader: new ShaderLab() });
23
23
  * ...
24
24
  * ```
25
25
  *
@@ -1,31 +1,5 @@
1
- import { Engine } from "../Engine";
2
- import { EnumXRMode } from "./enum/EnumXRMode";
3
- import { EnumXRFeature } from "./enum/EnumXRFeature";
4
- import { EnumXRTrackingMode } from "./enum/EnumXRTrackingMode";
5
- import { XRFeature } from "./feature/XRFeature";
6
- import { EnumXRSubsystem } from "./enum/EnumXRSubsystem";
7
- import { XRProvider } from "./provider/XRProvider";
8
- import { XRSubsystem } from "./subsystem/XRSubsystem";
9
- type FeatureConstructor = new (engine: Engine) => XRFeature;
1
+ /**
2
+ * XRManager located in the main package, its implementation logic is XRManagerExtended in the sub-package engine-xr.
3
+ */
10
4
  export declare class XRManager {
11
- private _engine;
12
- private _provider;
13
- private _features;
14
- private _subsystems;
15
- private _isPaused;
16
- isSupportedMode(mode: EnumXRMode): Promise<void>;
17
- isSupportedTrackingMode(mode: EnumXRTrackingMode): Promise<void>;
18
- isSupportedFeature(feature: EnumXRFeature): Promise<void>;
19
- getFeature<T extends XRFeature>(feature: EnumXRFeature): T;
20
- enableFeature(feature: EnumXRFeature): void;
21
- disableFeature(feature: EnumXRFeature): void;
22
- getSubsystem<T extends XRSubsystem>(subsystem: EnumXRSubsystem): T;
23
- initialize(mode: EnumXRMode, trackingMode: EnumXRTrackingMode, requestFeatures?: EnumXRFeature[]): Promise<void>;
24
- start(): Promise<void>;
25
- pause(): void;
26
- resume(): void;
27
- destroy(): void;
28
- constructor(engine: Engine, type: new (engine: Engine) => XRProvider);
29
5
  }
30
- export declare function registerFeature(feature: EnumXRFeature, dependentSubsystem?: EnumXRSubsystem[]): (featureConstructor: FeatureConstructor) => void;
31
- export {};
@@ -0,0 +1,15 @@
1
+ import { IXRPose } from "@galacean/engine-design";
2
+ import { Matrix, Quaternion, Vector3 } from "@galacean/engine-math";
3
+ /**
4
+ * Data for describing pose in the XR space.
5
+ */
6
+ export declare class XRPose implements IXRPose {
7
+ /** The position of the pose in XR space. */
8
+ position: Vector3;
9
+ /** The rotation of the pose in XR space. */
10
+ rotation: Quaternion;
11
+ /** The matrix of the pose in XR space. */
12
+ matrix: Matrix;
13
+ /** The inverse matrix of the pose in XR space. */
14
+ inverseMatrix: Matrix;
15
+ }