@galacean/engine-core 2.0.0-alpha.44 → 2.0.0-alpha.45

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 (236) hide show
  1. package/dist/main.js.map +1 -1
  2. package/dist/module.js.map +1 -1
  3. package/package.json +3 -3
  4. package/types/2d/atlas/FontAtlas.d.ts +23 -1
  5. package/types/2d/atlas/SpriteAtlas.d.ts +8 -0
  6. package/types/2d/sprite/Sprite.d.ts +27 -1
  7. package/types/2d/sprite/SpriteMask.d.ts +43 -0
  8. package/types/2d/sprite/SpriteRenderer.d.ts +29 -0
  9. package/types/2d/text/CharInfo.d.ts +20 -1
  10. package/types/2d/text/CharRenderInfo.d.ts +15 -1
  11. package/types/2d/text/Font.d.ts +10 -0
  12. package/types/2d/text/SubFont.d.ts +35 -1
  13. package/types/2d/text/TextRenderer.d.ts +53 -0
  14. package/types/2d/text/TextUtils.d.ts +89 -1
  15. package/types/Background.d.ts +17 -0
  16. package/types/BasicResources.d.ts +52 -0
  17. package/types/Camera.d.ts +71 -1
  18. package/types/Canvas.d.ts +13 -0
  19. package/types/Component.d.ts +33 -0
  20. package/types/ComponentsDependencies.d.ts +34 -1
  21. package/types/ComponentsManager.d.ts +17 -0
  22. package/types/Engine.d.ts +106 -2
  23. package/types/Entity.d.ts +88 -0
  24. package/types/Polyfill.d.ts +12 -1
  25. package/types/RenderPipeline/BasicRenderPipeline.d.ts +3 -0
  26. package/types/RenderPipeline/BatcherManager.d.ts +23 -1
  27. package/types/RenderPipeline/CullingResults.d.ts +17 -1
  28. package/types/RenderPipeline/DepthOnlyPass.d.ts +18 -1
  29. package/types/RenderPipeline/InstanceBuffer.d.ts +28 -1
  30. package/types/RenderPipeline/MaskManager.d.ts +36 -1
  31. package/types/RenderPipeline/OpaqueTexturePass.d.ts +16 -1
  32. package/types/RenderPipeline/PipelineUtils.d.ts +11 -1
  33. package/types/RenderPipeline/PrimitiveChunk.d.ts +27 -1
  34. package/types/RenderPipeline/PrimitiveChunkManager.d.ts +16 -1
  35. package/types/RenderPipeline/RenderContext.d.ts +46 -1
  36. package/types/RenderPipeline/RenderElement.d.ts +9 -0
  37. package/types/RenderPipeline/RenderQueue.d.ts +23 -1
  38. package/types/RenderPipeline/RenderTargetPool.d.ts +17 -1
  39. package/types/RenderPipeline/SubPrimitiveChunk.d.ts +14 -1
  40. package/types/RenderPipeline/VertexArea.d.ts +10 -1
  41. package/types/RenderPipeline/VertexMergeBatcher.d.ts +11 -1
  42. package/types/RenderPipeline/enums/RenderQueueMaskType.d.ts +9 -1
  43. package/types/RenderPipeline/index.d.ts +2 -0
  44. package/types/Renderer.d.ts +58 -0
  45. package/types/Scene.d.ts +28 -0
  46. package/types/SceneManager.d.ts +13 -0
  47. package/types/Script.d.ts +40 -0
  48. package/types/SystemInfo.d.ts +10 -0
  49. package/types/Transform.d.ts +13 -0
  50. package/types/UpdateFlag.d.ts +3 -0
  51. package/types/UpdateFlagManager.d.ts +41 -1
  52. package/types/Utils.d.ts +20 -0
  53. package/types/VirtualCamera.d.ts +16 -1
  54. package/types/animation/AnimationClip.d.ts +5 -0
  55. package/types/animation/AnimationClipCurveBinding.d.ts +16 -1
  56. package/types/animation/Animator.d.ts +25 -0
  57. package/types/animation/AnimatorController.d.ts +17 -0
  58. package/types/animation/AnimatorControllerLayer.d.ts +9 -0
  59. package/types/animation/AnimatorControllerParameter.d.ts +4 -0
  60. package/types/animation/AnimatorState.d.ts +44 -0
  61. package/types/animation/AnimatorStateInstance.d.ts +8 -0
  62. package/types/animation/AnimatorStateMachine.d.ts +14 -0
  63. package/types/animation/AnimatorStateTransition.d.ts +9 -0
  64. package/types/animation/AnimatorStateTransitionCollection.d.ts +23 -1
  65. package/types/animation/StateMachineScript.d.ts +2 -0
  66. package/types/animation/animationCurve/AnimationArrayCurve.d.ts +39 -0
  67. package/types/animation/animationCurve/AnimationBoolCurve.d.ts +39 -0
  68. package/types/animation/animationCurve/AnimationColorCurve.d.ts +39 -0
  69. package/types/animation/animationCurve/AnimationCurve.d.ts +8 -0
  70. package/types/animation/animationCurve/AnimationFloatArrayCurve.d.ts +38 -0
  71. package/types/animation/animationCurve/AnimationFloatCurve.d.ts +39 -0
  72. package/types/animation/animationCurve/AnimationQuaternionCurve.d.ts +41 -0
  73. package/types/animation/animationCurve/AnimationRectCurve.d.ts +18 -0
  74. package/types/animation/animationCurve/AnimationRefCurve.d.ts +18 -0
  75. package/types/animation/animationCurve/AnimationStringCurve.d.ts +39 -0
  76. package/types/animation/animationCurve/AnimationVector2Curve.d.ts +39 -0
  77. package/types/animation/animationCurve/AnimationVector3Curve.d.ts +43 -0
  78. package/types/animation/animationCurve/AnimationVector4Curve.d.ts +39 -0
  79. package/types/animation/animationCurve/interfaces/IAnimationCurveCalculator.d.ts +18 -1
  80. package/types/animation/enums/AnimatorStatePlayState.d.ts +8 -1
  81. package/types/animation/internal/AnimationCurveLayerOwner.d.ts +15 -1
  82. package/types/animation/internal/AnimationEventHandler.d.ts +8 -1
  83. package/types/animation/internal/AnimatorLayerData.d.ts +28 -1
  84. package/types/animation/internal/AnimatorStateData.d.ts +14 -1
  85. package/types/animation/internal/AnimatorStatePlayData.d.ts +27 -1
  86. package/types/animation/internal/AnimatorTempValue.d.ts +12 -1
  87. package/types/animation/internal/animationCurveOwner/AnimationCurveOwner.d.ts +39 -0
  88. package/types/animation/internal/animationCurveOwner/assembler/BlendShapeWeightsAnimationCurveOwnerAssembler.d.ts +12 -1
  89. package/types/animation/internal/animationCurveOwner/assembler/IAnimationCurveOwnerAssembler.d.ts +10 -1
  90. package/types/animation/internal/animationCurveOwner/assembler/PositionAnimationCurveOwnerAssembler.d.ts +13 -1
  91. package/types/animation/internal/animationCurveOwner/assembler/RotationAnimationCurveOwnerAssembler.d.ts +13 -1
  92. package/types/animation/internal/animationCurveOwner/assembler/ScaleAnimationCurveOwnerAssembler.d.ts +13 -1
  93. package/types/animation/internal/animationCurveOwner/assembler/UniversalAnimationCurveOwnerAssembler.d.ts +23 -1
  94. package/types/asset/GraphicsResource.d.ts +10 -0
  95. package/types/asset/IReferable.d.ts +8 -0
  96. package/types/asset/ReferResource.d.ts +28 -0
  97. package/types/asset/RenderingStatistics.d.ts +8 -0
  98. package/types/asset/ResourceManager.d.ts +94 -4
  99. package/types/audio/AudioClip.d.ts +8 -0
  100. package/types/audio/AudioManager.d.ts +14 -0
  101. package/types/audio/AudioSource.d.ts +17 -0
  102. package/types/base/EngineObject.d.ts +4 -0
  103. package/types/base/Time.d.ts +13 -0
  104. package/types/clone/CloneDecorators.d.ts +20 -0
  105. package/types/clone/CloneUtil.d.ts +30 -1
  106. package/types/clone/ComponentCloner.d.ts +11 -1
  107. package/types/enums/CameraType.d.ts +9 -1
  108. package/types/env-probe/CubeProbe.d.ts +2 -0
  109. package/types/graphic/Buffer.d.ts +10 -0
  110. package/types/graphic/BufferUtil.d.ts +5 -0
  111. package/types/graphic/IndexBufferBinding.d.ts +4 -0
  112. package/types/graphic/Mesh.d.ts +54 -0
  113. package/types/graphic/Primitive.d.ts +50 -1
  114. package/types/graphic/TransformFeedback.d.ts +46 -1
  115. package/types/graphic/TransformFeedbackPrimitive.d.ts +67 -1
  116. package/types/graphic/TransformFeedbackSimulator.d.ts +55 -1
  117. package/types/graphic/VertexBufferBinding.d.ts +4 -0
  118. package/types/input/InputManager.d.ts +19 -0
  119. package/types/input/enums/PointerButton.d.ts +8 -0
  120. package/types/input/keyboard/KeyboardManager.d.ts +41 -1
  121. package/types/input/pointer/Pointer.d.ts +36 -0
  122. package/types/input/pointer/PointerEventData.d.ts +4 -0
  123. package/types/input/pointer/PointerManager.d.ts +58 -0
  124. package/types/input/pointer/emitter/IHitResult.d.ts +11 -1
  125. package/types/input/pointer/emitter/PhysicsPointerEventEmitter.d.ts +20 -1
  126. package/types/input/wheel/WheelManager.d.ts +34 -1
  127. package/types/lighting/AmbientLight.d.ts +9 -0
  128. package/types/lighting/DirectLight.d.ts +17 -0
  129. package/types/lighting/Light.d.ts +2 -0
  130. package/types/lighting/LightManager.d.ts +57 -0
  131. package/types/lighting/PointLight.d.ts +17 -0
  132. package/types/lighting/SpotLight.d.ts +17 -0
  133. package/types/lighting/ambientOcclusion/AmbientOcclusion.d.ts +4 -0
  134. package/types/lighting/ambientOcclusion/ScalableAmbientObscurancePass.d.ts +38 -1
  135. package/types/material/BaseMaterial.d.ts +4 -0
  136. package/types/material/Material.d.ts +2 -0
  137. package/types/mesh/BlendShape.d.ts +13 -0
  138. package/types/mesh/BlendShapeFrame.d.ts +7 -0
  139. package/types/mesh/BlendShapeManager.d.ts +101 -1
  140. package/types/mesh/MeshRenderer.d.ts +37 -0
  141. package/types/mesh/ModelMesh.d.ts +18 -0
  142. package/types/mesh/PrimitiveMesh.d.ts +28 -0
  143. package/types/mesh/PrimitiveMeshRestorer.d.ts +107 -0
  144. package/types/mesh/Skin.d.ts +10 -0
  145. package/types/mesh/SkinnedMeshRenderer.d.ts +21 -0
  146. package/types/particle/ParticleBufferUtils.d.ts +26 -1
  147. package/types/particle/ParticleGenerator.d.ts +102 -0
  148. package/types/particle/ParticleRenderer.d.ts +55 -0
  149. package/types/particle/ParticleTransformFeedbackSimulator.d.ts +52 -1
  150. package/types/particle/enums/ParticleRandomSubSeeds.d.ts +25 -1
  151. package/types/particle/enums/attributes/BillboardParticleVertexAttribute.d.ts +6 -1
  152. package/types/particle/enums/attributes/ParticleFeedbackVertexAttribute.d.ts +8 -1
  153. package/types/particle/enums/attributes/ParticleInstanceVertexAttribute.d.ts +17 -1
  154. package/types/particle/modules/ColorOverLifetimeModule.d.ts +12 -0
  155. package/types/particle/modules/CustomDataModule.d.ts +5 -0
  156. package/types/particle/modules/EmissionModule.d.ts +28 -0
  157. package/types/particle/modules/ForceOverLifetimeModule.d.ts +16 -1
  158. package/types/particle/modules/LimitVelocityOverLifetimeModule.d.ts +20 -1
  159. package/types/particle/modules/MainModule.d.ts +33 -1
  160. package/types/particle/modules/NoiseModule.d.ts +12 -1
  161. package/types/particle/modules/ParticleCompositeCurve.d.ts +37 -0
  162. package/types/particle/modules/ParticleCurve.d.ts +28 -0
  163. package/types/particle/modules/ParticleGeneratorModule.d.ts +7 -0
  164. package/types/particle/modules/ParticleGradient.d.ts +16 -0
  165. package/types/particle/modules/RotationOverLifetimeModule.d.ts +12 -0
  166. package/types/particle/modules/SizeOverLifetimeModule.d.ts +16 -0
  167. package/types/particle/modules/SubEmitter.d.ts +3 -0
  168. package/types/particle/modules/SubEmittersModule.d.ts +17 -0
  169. package/types/particle/modules/TextureSheetAnimationModule.d.ts +14 -1
  170. package/types/particle/modules/VelocityOverLifetimeModule.d.ts +28 -1
  171. package/types/particle/modules/shape/BaseShape.d.ts +33 -1
  172. package/types/particle/modules/shape/BoxShape.d.ts +13 -1
  173. package/types/particle/modules/shape/CircleShape.d.ts +13 -0
  174. package/types/particle/modules/shape/ConeShape.d.ts +13 -0
  175. package/types/particle/modules/shape/HemisphereShape.d.ts +13 -0
  176. package/types/particle/modules/shape/MeshShape.d.ts +17 -0
  177. package/types/particle/modules/shape/ShapeUtils.d.ts +13 -1
  178. package/types/particle/modules/shape/SphereShape.d.ts +13 -0
  179. package/types/physics/CharacterController.d.ts +21 -0
  180. package/types/physics/Collider.d.ts +39 -0
  181. package/types/physics/Collision.d.ts +3 -0
  182. package/types/physics/DynamicCollider.d.ts +14 -0
  183. package/types/physics/PhysicsMaterial.d.ts +3 -0
  184. package/types/physics/PhysicsScene.d.ts +51 -0
  185. package/types/physics/StaticCollider.d.ts +5 -0
  186. package/types/physics/enums/ColliderShapeChangeFlag.d.ts +8 -1
  187. package/types/physics/enums/HingeJointFlag.d.ts +14 -1
  188. package/types/physics/joint/HingeJoint.d.ts +4 -0
  189. package/types/physics/joint/Joint.d.ts +20 -0
  190. package/types/physics/joint/JointLimits.d.ts +3 -0
  191. package/types/physics/joint/JointMotor.d.ts +3 -0
  192. package/types/physics/shape/ColliderShape.d.ts +17 -0
  193. package/types/physics/shape/MeshColliderShape.d.ts +4 -0
  194. package/types/postProcess/FinalPass.d.ts +19 -1
  195. package/types/postProcess/PostProcess.d.ts +2 -0
  196. package/types/postProcess/PostProcessEffect.d.ts +4 -0
  197. package/types/postProcess/PostProcessEffectParameter.d.ts +4 -0
  198. package/types/postProcess/PostProcessManager.d.ts +43 -0
  199. package/types/postProcess/effects/BloomEffect.d.ts +25 -0
  200. package/types/postProcess/effects/TonemappingEffect.d.ts +3 -0
  201. package/types/renderingHardwareInterface/IPlatformTransformFeedback.d.ts +36 -1
  202. package/types/renderingHardwareInterface/IPlatformTransformFeedbackPrimitive.d.ts +40 -1
  203. package/types/shader/Shader.d.ts +22 -0
  204. package/types/shader/ShaderBlockProperty.d.ts +19 -1
  205. package/types/shader/ShaderData.d.ts +29 -0
  206. package/types/shader/ShaderFactory.d.ts +23 -0
  207. package/types/shader/ShaderMacro.d.ts +15 -0
  208. package/types/shader/ShaderMacroCollection.d.ts +57 -1
  209. package/types/shader/ShaderMacroProcessor.d.ts +72 -1
  210. package/types/shader/ShaderPass.d.ts +38 -0
  211. package/types/shader/ShaderProgram.d.ts +91 -1
  212. package/types/shader/ShaderProgramMap.d.ts +20 -1
  213. package/types/shader/ShaderProperty.d.ts +17 -0
  214. package/types/shader/ShaderTagKey.d.ts +2 -0
  215. package/types/shader/ShaderUniform.d.ts +49 -1
  216. package/types/shader/ShaderUniformBlock.d.ts +9 -1
  217. package/types/shader/enums/ConstantBufferBindingPoint.d.ts +7 -1
  218. package/types/shader/state/BlendState.d.ts +14 -0
  219. package/types/shader/state/DepthState.d.ts +14 -0
  220. package/types/shader/state/RasterState.d.ts +17 -0
  221. package/types/shader/state/RenderState.d.ts +11 -0
  222. package/types/shader/state/StencilState.d.ts +13 -0
  223. package/types/shadow/CascadedShadowCasterPass.d.ts +5 -0
  224. package/types/shadow/ShadowSliceData.d.ts +13 -1
  225. package/types/shadow/ShadowUtils.d.ts +43 -1
  226. package/types/sky/Sky.d.ts +9 -0
  227. package/types/texture/RenderTarget.d.ts +21 -0
  228. package/types/texture/Texture.d.ts +21 -0
  229. package/types/texture/Texture2D.d.ts +4 -0
  230. package/types/texture/Texture2DArray.d.ts +4 -0
  231. package/types/texture/TextureCube.d.ts +4 -0
  232. package/types/texture/TextureUtils.d.ts +16 -1
  233. package/types/trail/TrailRenderer.d.ts +5 -0
  234. package/types/ui/IUICanvas.d.ts +16 -1
  235. package/types/utils/DisorderedArray.d.ts +2 -0
  236. package/types/xr/XRManager.d.ts +28 -0
@@ -1,8 +1,49 @@
1
1
  import { Quaternion } from "@galacean/engine-math";
2
+ import { AnimationCurveLayerOwner } from "../internal/AnimationCurveLayerOwner";
3
+ import { AnimationCurveOwner } from "../internal/animationCurveOwner/AnimationCurveOwner";
4
+ import { Keyframe } from "../Keyframe";
2
5
  import { AnimationCurve } from "./AnimationCurve";
3
6
  /**
4
7
  * Store a collection of Keyframes that can be evaluated over time.
5
8
  */
6
9
  export declare class AnimationQuaternionCurve extends AnimationCurve<Quaternion> {
10
+ /** @internal */
11
+ static _supportInterpolationMode: boolean;
12
+ /** @internal */
13
+ static _isCopyMode: boolean;
14
+ /** @internal */
15
+ private static _tempConjugateQuat;
16
+ /**
17
+ * @internal
18
+ */
19
+ static _initializeOwner(owner: AnimationCurveOwner<Quaternion>): void;
20
+ /**
21
+ * @internal
22
+ */
23
+ static _initializeLayerOwner(owner: AnimationCurveLayerOwner): void;
24
+ /**
25
+ * @internal
26
+ */
27
+ static _lerpValue(src: Quaternion, dest: Quaternion, weight: number, out: Quaternion): Quaternion;
28
+ /**
29
+ * @internal
30
+ */
31
+ static _additiveValue(value: Quaternion, weight: number, out: Quaternion): Quaternion;
32
+ /**
33
+ * @internal
34
+ */
35
+ static _subtractValue(src: Quaternion, base: Quaternion, out: Quaternion): Quaternion;
36
+ /**
37
+ * @internal
38
+ */
39
+ static _getZeroValue(out: Quaternion): Quaternion;
40
+ /**
41
+ * @internal
42
+ */
43
+ static _setValue(source: Quaternion, out: Quaternion): Quaternion;
44
+ /**
45
+ * @internal
46
+ */
47
+ static _hermiteInterpolationValue(frame: Keyframe<Quaternion>, nextFrame: Keyframe<Quaternion>, t: number, dur: number, out: Quaternion): Quaternion;
7
48
  constructor();
8
49
  }
@@ -1,8 +1,26 @@
1
1
  import { Rect } from "@galacean/engine-math";
2
+ import { AnimationCurveLayerOwner } from "../internal/AnimationCurveLayerOwner";
3
+ import { AnimationCurveOwner } from "../internal/animationCurveOwner/AnimationCurveOwner";
2
4
  import { AnimationCurve } from "./AnimationCurve";
3
5
  /**
4
6
  * Store a collection of Keyframes that can be evaluated over time.
5
7
  */
6
8
  export declare class AnimationRectCurve extends AnimationCurve<Rect> {
9
+ /** @internal */
10
+ static _isCopyMode: boolean;
11
+ /** @internal */
12
+ static _supportInterpolationMode: boolean;
13
+ /**
14
+ * @internal
15
+ */
16
+ static _initializeOwner(owner: AnimationCurveOwner<Rect>): void;
17
+ /**
18
+ * @internal
19
+ */
20
+ static _initializeLayerOwner(owner: AnimationCurveLayerOwner): void;
21
+ /**
22
+ * @internal
23
+ */
24
+ static _setValue(source: Rect, out: Rect): Rect;
7
25
  constructor();
8
26
  }
@@ -1,8 +1,26 @@
1
1
  import { ReferResource } from "../../asset/ReferResource";
2
+ import { AnimationCurveLayerOwner } from "../internal/AnimationCurveLayerOwner";
3
+ import { AnimationCurveOwner } from "../internal/animationCurveOwner/AnimationCurveOwner";
2
4
  import { AnimationCurve } from "./AnimationCurve";
3
5
  /**
4
6
  * Store a collection of Keyframes that can be evaluated over time.
5
7
  */
6
8
  export declare class AnimationRefCurve extends AnimationCurve<ReferResource> {
9
+ /** @internal */
10
+ static _isCopyMode: boolean;
11
+ /** @internal */
12
+ static _supportInterpolationMode: boolean;
13
+ /**
14
+ * @internal
15
+ */
16
+ static _initializeOwner(owner: AnimationCurveOwner<ReferResource>): void;
17
+ /**
18
+ * @internal
19
+ */
20
+ static _initializeLayerOwner(owner: AnimationCurveLayerOwner): void;
21
+ /**
22
+ * @internal
23
+ */
24
+ static _setValue(value: ReferResource): ReferResource;
7
25
  constructor();
8
26
  }
@@ -1,7 +1,46 @@
1
+ import { AnimationCurveLayerOwner } from "../internal/AnimationCurveLayerOwner";
2
+ import { AnimationCurveOwner } from "../internal/animationCurveOwner/AnimationCurveOwner";
3
+ import { Keyframe } from "../Keyframe";
1
4
  import { AnimationCurve } from "./AnimationCurve";
2
5
  /**
3
6
  * Store a collection of Keyframes that can be evaluated over time.
4
7
  */
5
8
  export declare class AnimationStringCurve extends AnimationCurve<string> {
9
+ /** @internal */
10
+ static _isCopyMode: boolean;
11
+ /** @internal */
12
+ static _supportInterpolationMode: boolean;
13
+ /**
14
+ * @internal
15
+ */
16
+ static _initializeOwner(owner: AnimationCurveOwner<string>): void;
17
+ /**
18
+ * @internal
19
+ */
20
+ static _initializeLayerOwner(owner: AnimationCurveLayerOwner): void;
21
+ /**
22
+ * @internal
23
+ */
24
+ static _lerpValue(srcValue: string, destValue: string): string;
25
+ /**
26
+ * @internal
27
+ */
28
+ static _subtractValue(src: string, base: string, out: string): string;
29
+ /**
30
+ * @internal
31
+ */
32
+ static _getZeroValue(): string;
33
+ /**
34
+ * @internal
35
+ */
36
+ static _additiveValue(value: string, weight: number, source: string): string;
37
+ /**
38
+ * @internal
39
+ */
40
+ static _setValue(value: string): string;
41
+ /**
42
+ * @internal
43
+ */
44
+ static _hermiteInterpolationValue(frame: Keyframe<string>): string;
6
45
  constructor();
7
46
  }
@@ -1,8 +1,47 @@
1
1
  import { Vector2 } from "@galacean/engine-math";
2
+ import { AnimationCurveLayerOwner } from "../internal/AnimationCurveLayerOwner";
3
+ import { AnimationCurveOwner } from "../internal/animationCurveOwner/AnimationCurveOwner";
4
+ import { Keyframe } from "../Keyframe";
2
5
  import { AnimationCurve } from "./AnimationCurve";
3
6
  /**
4
7
  * Store a collection of Keyframes that can be evaluated over time.
5
8
  */
6
9
  export declare class AnimationVector2Curve extends AnimationCurve<Vector2> {
10
+ /** @internal */
11
+ static _isCopyMode: boolean;
12
+ /** @internal */
13
+ static _supportInterpolationMode: boolean;
14
+ /**
15
+ * @internal
16
+ */
17
+ static _initializeOwner(owner: AnimationCurveOwner<Vector2>): void;
18
+ /**
19
+ * @internal
20
+ */
21
+ static _initializeLayerOwner(owner: AnimationCurveLayerOwner): void;
22
+ /**
23
+ * @internal
24
+ */
25
+ static _lerpValue(srcValue: Vector2, destValue: Vector2, weight: number, out: Vector2): Vector2;
26
+ /**
27
+ * @internal
28
+ */
29
+ static _additiveValue(value: Vector2, weight: number, out: Vector2): Vector2;
30
+ /**
31
+ * @internal
32
+ */
33
+ static _subtractValue(src: Vector2, base: Vector2, out: Vector2): Vector2;
34
+ /**
35
+ * @internal
36
+ */
37
+ static _getZeroValue(out: Vector2): Vector2;
38
+ /**
39
+ * @internal
40
+ */
41
+ static _setValue(source: Vector2, out: Vector2): Vector2;
42
+ /**
43
+ * @internal
44
+ */
45
+ static _hermiteInterpolationValue(frame: Keyframe<Vector2>, nextFrame: Keyframe<Vector2>, t: number, dur: number, out: Vector2): Vector2;
7
46
  constructor();
8
47
  }
@@ -1,8 +1,51 @@
1
1
  import { Vector3 } from "@galacean/engine-math";
2
+ import { AnimationCurveLayerOwner } from "../internal/AnimationCurveLayerOwner";
3
+ import { AnimationCurveOwner } from "../internal/animationCurveOwner/AnimationCurveOwner";
4
+ import { Keyframe } from "../Keyframe";
2
5
  import { AnimationCurve } from "./AnimationCurve";
3
6
  /**
4
7
  * Store a collection of Keyframes that can be evaluated over time.
5
8
  */
6
9
  export declare class AnimationVector3Curve extends AnimationCurve<Vector3> {
10
+ /** @internal */
11
+ static _isCopyMode: boolean;
12
+ /** @internal */
13
+ static _supportInterpolationMode: boolean;
14
+ /**
15
+ * @internal
16
+ */
17
+ static _initializeOwner(owner: AnimationCurveOwner<Vector3>): void;
18
+ /**
19
+ * @internal
20
+ */
21
+ static _initializeLayerOwner(owner: AnimationCurveLayerOwner): void;
22
+ /**
23
+ * @internal
24
+ */
25
+ static _lerpValue(srcValue: Vector3, destValue: Vector3, weight: number, out: Vector3): Vector3;
26
+ /**
27
+ * @internal
28
+ */
29
+ static _relativeBaseValue(base: Vector3, out: Vector3): Vector3;
30
+ /**
31
+ * @internal
32
+ */
33
+ static _additiveValue(value: Vector3, weight: number, out: Vector3): Vector3;
34
+ /**
35
+ * @internal
36
+ */
37
+ static _subtractValue(src: Vector3, base: Vector3, out: Vector3): Vector3;
38
+ /**
39
+ * @internal
40
+ */
41
+ static _getZeroValue(out: Vector3): Vector3;
42
+ /**
43
+ * @internal
44
+ */
45
+ static _setValue(source: Vector3, out: Vector3): Vector3;
46
+ /**
47
+ * @internal
48
+ */
49
+ static _hermiteInterpolationValue(frame: Keyframe<Vector3>, nextFrame: Keyframe<Vector3>, t: number, dur: number, out: Vector3): Vector3;
7
50
  constructor();
8
51
  }
@@ -1,8 +1,47 @@
1
1
  import { Vector4 } from "@galacean/engine-math";
2
+ import { AnimationCurveLayerOwner } from "../internal/AnimationCurveLayerOwner";
3
+ import { AnimationCurveOwner } from "../internal/animationCurveOwner/AnimationCurveOwner";
4
+ import { Keyframe } from "../Keyframe";
2
5
  import { AnimationCurve } from "./AnimationCurve";
3
6
  /**
4
7
  * Store a collection of Keyframes that can be evaluated over time.
5
8
  */
6
9
  export declare class AnimationVector4Curve extends AnimationCurve<Vector4> {
10
+ /** @internal */
11
+ static _isCopyMode: boolean;
12
+ /** @internal */
13
+ static _supportInterpolationMode: boolean;
14
+ /**
15
+ * @internal
16
+ */
17
+ static _initializeOwner(owner: AnimationCurveOwner<Vector4>): void;
18
+ /**
19
+ * @internal
20
+ */
21
+ static _initializeLayerOwner(owner: AnimationCurveLayerOwner): void;
22
+ /**
23
+ * @internal
24
+ */
25
+ static _lerpValue(srcValue: Vector4, destValue: Vector4, weight: number, out: Vector4): Vector4;
26
+ /**
27
+ * @internal
28
+ */
29
+ static _additiveValue(value: Vector4, weight: number, out: Vector4): Vector4;
30
+ /**
31
+ * @internal
32
+ */
33
+ static _subtractValue(src: Vector4, base: Vector4, out: Vector4): Vector4;
34
+ /**
35
+ * @internal
36
+ */
37
+ static _getZeroValue(out: Vector4): Vector4;
38
+ /**
39
+ * @internal
40
+ */
41
+ static _setValue(source: Vector4, out: Vector4): Vector4;
42
+ /**
43
+ * @internal
44
+ */
45
+ static _hermiteInterpolationValue(frame: Keyframe<Vector4>, nextFrame: Keyframe<Vector4>, t: number, dur: number, out: Vector4): Vector4;
7
46
  constructor();
8
47
  }
@@ -1 +1,18 @@
1
- export {};
1
+ import { AnimationCurveLayerOwner } from "../../internal/AnimationCurveLayerOwner";
2
+ import { AnimationCurveOwner } from "../../internal/animationCurveOwner/AnimationCurveOwner";
3
+ import { Keyframe, KeyframeValueType } from "../../Keyframe";
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface IAnimationCurveCalculator<V extends KeyframeValueType> {
8
+ _isCopyMode: boolean;
9
+ _supportInterpolationMode: boolean;
10
+ _initializeOwner(owner: AnimationCurveOwner<V>): any;
11
+ _initializeLayerOwner(owner: AnimationCurveLayerOwner): any;
12
+ _setValue(src: V, out?: V): V;
13
+ _lerpValue?(src: V, dest: V, weight: number, out?: V): V;
14
+ _additiveValue?(additive: V, weight: number, srcOut: V): V;
15
+ _subtractValue?(src: V, base: V, out?: V): V;
16
+ _getZeroValue?(out?: V): V;
17
+ _hermiteInterpolationValue?(frame: Keyframe<V>, nextFrame: Keyframe<V>, t: number, dur: number, out?: V): V;
18
+ }
@@ -1 +1,8 @@
1
- export {};
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare enum AnimatorStatePlayState {
5
+ UnStarted = 0,
6
+ Playing = 1,
7
+ Finished = 2
8
+ }
@@ -1 +1,15 @@
1
- export {};
1
+ import { KeyframeValueType } from "../Keyframe";
2
+ import { AnimationCurveOwner } from "./animationCurveOwner/AnimationCurveOwner";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare class AnimationCurveLayerOwner {
7
+ crossSrcCurveIndex: number;
8
+ crossDestCurveIndex: number;
9
+ crossCurveMark: number;
10
+ curveOwner: AnimationCurveOwner<KeyframeValueType>;
11
+ finalValue: KeyframeValueType;
12
+ isActive: boolean;
13
+ initFinalValue(): void;
14
+ saveFinalValue(): void;
15
+ }
@@ -1 +1,8 @@
1
- export {};
1
+ import { AnimationEvent } from "../AnimationEvent";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare class AnimationEventHandler {
6
+ event: AnimationEvent;
7
+ handlers: Function[];
8
+ }
@@ -1 +1,28 @@
1
- export {};
1
+ import { Component } from "../../Component";
2
+ import { AnimatorControllerLayer } from "../AnimatorControllerLayer";
3
+ import { AnimatorState } from "../AnimatorState";
4
+ import { AnimatorStateInstance } from "../AnimatorStateInstance";
5
+ import { AnimatorStateTransition } from "../AnimatorStateTransition";
6
+ import { LayerState } from "../enums/LayerState";
7
+ import { AnimationCurveLayerOwner } from "./AnimationCurveLayerOwner";
8
+ import { AnimatorStateData } from "./AnimatorStateData";
9
+ import type { AnimatorStatePlayData } from "./AnimatorStatePlayData";
10
+ /**
11
+ * @internal
12
+ */
13
+ export declare class AnimatorLayerData {
14
+ layerIndex: number;
15
+ layer: AnimatorControllerLayer;
16
+ curveOwnerPool: WeakMap<Component, Record<string, AnimationCurveLayerOwner>>;
17
+ animatorStateDataMap: Map<AnimatorState, AnimatorStateData>;
18
+ instanceMap: WeakMap<AnimatorState, AnimatorStateInstance>;
19
+ srcPlayData: AnimatorStatePlayData | null;
20
+ destPlayData: AnimatorStatePlayData | null;
21
+ layerState: LayerState;
22
+ crossCurveMark: number;
23
+ manuallyTransition: AnimatorStateTransition;
24
+ crossFadeTransition: AnimatorStateTransition;
25
+ crossLayerOwnerCollection: AnimationCurveLayerOwner[];
26
+ getOrCreateInstance(state: AnimatorState): AnimatorStateInstance;
27
+ resetCurrentCheckIndex(): void;
28
+ }
@@ -1 +1,14 @@
1
- export {};
1
+ import { AnimatorState } from "../AnimatorState";
2
+ import { AnimationCurveLayerOwner } from "./AnimationCurveLayerOwner";
3
+ import { AnimationEventHandler } from "./AnimationEventHandler";
4
+ /**
5
+ * @internal
6
+ */
7
+ export declare class AnimatorStateData {
8
+ readonly state: AnimatorState;
9
+ curveLayerOwner: AnimationCurveLayerOwner[];
10
+ eventHandlers: AnimationEventHandler[];
11
+ eventsBuiltVersion: number;
12
+ eventsBuiltScriptsVersion: number;
13
+ constructor(state: AnimatorState);
14
+ }
@@ -1 +1,27 @@
1
- export {};
1
+ import { AnimatorStateInstance } from "../AnimatorStateInstance";
2
+ import { AnimatorState } from "../AnimatorState";
3
+ import { AnimatorStatePlayState } from "../enums/AnimatorStatePlayState";
4
+ import { WrapMode } from "../enums/WrapMode";
5
+ import { AnimatorStateData } from "./AnimatorStateData";
6
+ /**
7
+ * @internal
8
+ */
9
+ export declare class AnimatorStatePlayData {
10
+ readonly instance: AnimatorStateInstance;
11
+ stateData: AnimatorStateData;
12
+ playedTime: number;
13
+ playState: AnimatorStatePlayState;
14
+ clipTime: number;
15
+ currentEventIndex: number;
16
+ isForward: boolean;
17
+ offsetFrameTime: number;
18
+ private _changedOrientation;
19
+ constructor(instance: AnimatorStateInstance);
20
+ get state(): AnimatorState;
21
+ get speed(): number;
22
+ get wrapMode(): WrapMode;
23
+ reset(stateData: AnimatorStateData, offsetFrameTime: number): void;
24
+ updateOrientation(deltaTime: number): void;
25
+ update(deltaTime: number): void;
26
+ private _correctTime;
27
+ }
@@ -1 +1,12 @@
1
- export {};
1
+ import { Vector2, Vector3, Vector4, Quaternion } from "@galacean/engine-math";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare class AnimatorTempValue {
6
+ vector2: Vector2;
7
+ vector3: Vector3;
8
+ vector4: Vector4;
9
+ quaternion: Quaternion;
10
+ private _floatArrayPool;
11
+ getFloatArray(length: number): Float32Array;
12
+ }
@@ -1,5 +1,44 @@
1
+ import { Component } from "../../../Component";
2
+ import { ComponentConstructor, Entity } from "../../../Entity";
3
+ import { AnimationCurve } from "../../animationCurve/AnimationCurve";
4
+ import { IAnimationCurveCalculator } from "../../animationCurve/interfaces/IAnimationCurveCalculator";
1
5
  import { KeyframeValueType } from "../../Keyframe";
6
+ import { IAnimationCurveOwnerAssembler } from "./assembler/IAnimationCurveOwnerAssembler";
7
+ /**
8
+ * @internal
9
+ */
10
+ export declare class AnimationCurveOwner<V extends KeyframeValueType> {
11
+ /** @internal */
12
+ static _components: Component[];
13
+ private static _assemblerMap;
14
+ static registerAssembler(componentType: ComponentConstructor, property: string, assemblerType: AssemblerType): void;
15
+ static getAssemblerType(componentType: ComponentConstructor, property: string): AssemblerType;
16
+ readonly target: Entity;
17
+ readonly property: string;
18
+ readonly getProperty?: string;
19
+ readonly component: Component;
20
+ defaultValue: V;
21
+ fixedPoseValue: V;
22
+ baseEvaluateData: IEvaluateData<V>;
23
+ crossEvaluateData: IEvaluateData<V>;
24
+ referenceTargetValue: V;
25
+ cureType: IAnimationCurveCalculator<V>;
26
+ updateMark: number;
27
+ private _assembler;
28
+ constructor(target: Entity, type: ComponentConstructor, component: Component, property: string, getProperty: string, cureType: IAnimationCurveCalculator<V>);
29
+ evaluateValue(curve: AnimationCurve<V>, time: number, additive: boolean): KeyframeValueType;
30
+ evaluateCrossFadeValue(srcCurve: AnimationCurve<V>, destCurve: AnimationCurve<V>, srcTime: number, destTime: number, crossWeight: number, additive: boolean): KeyframeValueType;
31
+ crossFadeFromPoseAndApplyValue(destCurve: AnimationCurve<V>, destTime: number, crossWeight: number, additive: boolean): KeyframeValueType;
32
+ revertDefaultValue(): void;
33
+ getEvaluateValue(out: V): V;
34
+ saveDefaultValue(): void;
35
+ saveFixedPoseValue(): void;
36
+ applyValue(value: V, weight: number, additive: boolean): void;
37
+ private _lerpValue;
38
+ }
39
+ type AssemblerType = new () => IAnimationCurveOwnerAssembler<KeyframeValueType>;
2
40
  export interface IEvaluateData<V extends KeyframeValueType> {
3
41
  curKeyframeIndex: number;
4
42
  value: V;
5
43
  }
44
+ export {};
@@ -1 +1,12 @@
1
- export {};
1
+ import { KeyframeValueType } from "../../../Keyframe";
2
+ import { AnimationCurveOwner } from "../AnimationCurveOwner";
3
+ import { IAnimationCurveOwnerAssembler } from "./IAnimationCurveOwnerAssembler";
4
+ /**
5
+ * @internal
6
+ */
7
+ export declare class BlendShapeWeightsAnimationCurveOwnerAssembler implements IAnimationCurveOwnerAssembler<Float32Array> {
8
+ private _skinnedMeshRenderer;
9
+ initialize(owner: AnimationCurveOwner<KeyframeValueType>): void;
10
+ getTargetValue(): Float32Array;
11
+ setTargetValue(value: Float32Array): void;
12
+ }
@@ -1 +1,10 @@
1
- export {};
1
+ import { KeyframeValueType } from "../../../Keyframe";
2
+ import { AnimationCurveOwner } from "../AnimationCurveOwner";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface IAnimationCurveOwnerAssembler<V extends KeyframeValueType> {
7
+ initialize(owner: AnimationCurveOwner<KeyframeValueType>): void;
8
+ getTargetValue(): V;
9
+ setTargetValue(value: V): void;
10
+ }
@@ -1 +1,13 @@
1
- export {};
1
+ import { Vector3 } from "@galacean/engine-math";
2
+ import { KeyframeValueType } from "../../../Keyframe";
3
+ import { AnimationCurveOwner } from "../AnimationCurveOwner";
4
+ import { IAnimationCurveOwnerAssembler } from "./IAnimationCurveOwnerAssembler";
5
+ /**
6
+ * @internal
7
+ */
8
+ export declare class PositionAnimationCurveOwnerAssembler implements IAnimationCurveOwnerAssembler<Vector3> {
9
+ private _transform;
10
+ initialize(owner: AnimationCurveOwner<KeyframeValueType>): void;
11
+ getTargetValue(): Vector3;
12
+ setTargetValue(value: Vector3): void;
13
+ }
@@ -1 +1,13 @@
1
- export {};
1
+ import { Quaternion } from "@galacean/engine-math";
2
+ import { KeyframeValueType } from "../../../Keyframe";
3
+ import { AnimationCurveOwner } from "../AnimationCurveOwner";
4
+ import { IAnimationCurveOwnerAssembler } from "./IAnimationCurveOwnerAssembler";
5
+ /**
6
+ * @internal
7
+ */
8
+ export declare class RotationAnimationCurveOwnerAssembler implements IAnimationCurveOwnerAssembler<Quaternion> {
9
+ private _transform;
10
+ initialize(owner: AnimationCurveOwner<KeyframeValueType>): void;
11
+ getTargetValue(): Quaternion;
12
+ setTargetValue(value: Quaternion): void;
13
+ }
@@ -1 +1,13 @@
1
- export {};
1
+ import { Vector3 } from "@galacean/engine-math";
2
+ import { KeyframeValueType } from "../../../Keyframe";
3
+ import { AnimationCurveOwner } from "../AnimationCurveOwner";
4
+ import { IAnimationCurveOwnerAssembler } from "./IAnimationCurveOwnerAssembler";
5
+ /**
6
+ * @internal
7
+ */
8
+ export declare class ScaleAnimationCurveOwnerAssembler implements IAnimationCurveOwnerAssembler<Vector3> {
9
+ private _transform;
10
+ initialize(owner: AnimationCurveOwner<KeyframeValueType>): void;
11
+ getTargetValue(): Vector3;
12
+ setTargetValue(value: Vector3): void;
13
+ }
@@ -1 +1,23 @@
1
- export {};
1
+ import { KeyframeValueType } from "../../../Keyframe";
2
+ import { AnimationCurveOwner } from "../AnimationCurveOwner";
3
+ import { IAnimationCurveOwnerAssembler } from "./IAnimationCurveOwnerAssembler";
4
+ /**
5
+ * @internal
6
+ */
7
+ export declare class UniversalAnimationCurveOwnerAssembler implements IAnimationCurveOwnerAssembler<KeyframeValueType> {
8
+ private _getMounted;
9
+ private _setMounted;
10
+ private _getType;
11
+ private _setType;
12
+ private _getValueName;
13
+ private _setValueName;
14
+ private _getArgs;
15
+ private _setArgs;
16
+ private _replaceValueIndex;
17
+ private _getArrayIndex;
18
+ private _setArrayIndex;
19
+ initialize(owner: AnimationCurveOwner<KeyframeValueType>): void;
20
+ getTargetValue(): KeyframeValueType;
21
+ setTargetValue(value: KeyframeValueType): void;
22
+ private _initializeMounted;
23
+ }
@@ -1,9 +1,19 @@
1
1
  import { Engine } from "../Engine";
2
2
  import { ReferResource } from "./ReferResource";
3
3
  export declare abstract class GraphicsResource extends ReferResource {
4
+ /** @internal */
5
+ _isContentLost: boolean;
4
6
  /**
5
7
  * Whether the content of the resource is lost.
6
8
  */
7
9
  get isContentLost(): boolean;
8
10
  protected constructor(engine: Engine);
11
+ /**
12
+ * @internal
13
+ */
14
+ abstract _rebuild(): void;
15
+ /**
16
+ * @internal
17
+ */
18
+ protected _onDestroy(): void;
9
19
  }
@@ -1,2 +1,10 @@
1
1
  export interface IReferable {
2
+ /**
3
+ * @internal
4
+ */
5
+ _getReferCount(): number;
6
+ /**
7
+ * @internal
8
+ */
9
+ _addReferCount(count: number): void;
2
10
  }
@@ -20,4 +20,32 @@ export declare abstract class ReferResource extends EngineObject implements IRef
20
20
  * @returns Whether the release was successful
21
21
  */
22
22
  destroy(force?: boolean): boolean;
23
+ /**
24
+ * @internal
25
+ */
26
+ destroy(force: boolean, isGC: boolean): boolean;
27
+ /**
28
+ * @internal
29
+ */
30
+ _associationSuperResource(superResource: ReferResource): void;
31
+ /**
32
+ * @internal
33
+ */
34
+ _disassociationSuperResource(superResource: ReferResource): void;
35
+ /**
36
+ * @internal
37
+ */
38
+ _getReferCount(): number;
39
+ /**
40
+ * @internal
41
+ */
42
+ _addReferCount(value: number): void;
43
+ /**
44
+ * @internal
45
+ */
46
+ _addToResourceManager(path: string): void;
47
+ /**
48
+ * @internal
49
+ */
50
+ protected _onDestroy(): void;
23
51
  }