@galacean/engine-core 2.0.0-alpha.6 → 2.0.0-alpha.61
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.
- package/dist/main.js +29118 -22321
- package/dist/main.js.map +1 -1
- package/dist/module.js +29102 -22313
- package/dist/module.js.map +1 -1
- package/package.json +3 -5
- package/types/2d/assembler/ISpriteAssembler.d.ts +1 -0
- package/types/2d/assembler/ISpriteRenderer.d.ts +3 -2
- package/types/2d/assembler/SimpleSpriteAssembler.d.ts +1 -0
- package/types/2d/assembler/SlicedSpriteAssembler.d.ts +1 -0
- package/types/2d/assembler/TiledSpriteAssembler.d.ts +1 -0
- package/types/2d/atlas/FontAtlas.d.ts +23 -1
- package/types/2d/atlas/SpriteAtlas.d.ts +8 -0
- package/types/2d/sprite/Sprite.d.ts +30 -4
- package/types/2d/sprite/SpriteMask.d.ts +49 -1
- package/types/2d/sprite/SpriteRenderer.d.ts +35 -1
- package/types/2d/text/CharInfo.d.ts +20 -1
- package/types/2d/text/CharRenderInfo.d.ts +15 -1
- package/types/2d/text/Font.d.ts +11 -1
- package/types/2d/text/ITextRenderer.d.ts +3 -0
- package/types/2d/text/SubFont.d.ts +35 -1
- package/types/2d/text/TextRenderer.d.ts +54 -1
- package/types/2d/text/TextUtils.d.ts +89 -1
- package/types/Background.d.ts +19 -2
- package/types/BasicResources.d.ts +58 -0
- package/types/Camera.d.ts +79 -1
- package/types/Canvas.d.ts +36 -7
- package/types/Component.d.ts +35 -2
- package/types/ComponentsDependencies.d.ts +38 -1
- package/types/ComponentsManager.d.ts +20 -0
- package/types/Engine.d.ts +114 -7
- package/types/EngineEventType.d.ts +13 -0
- package/types/Entity.d.ts +112 -21
- package/types/Polyfill.d.ts +12 -1
- package/types/RenderPipeline/BasicRenderPipeline.d.ts +4 -2
- package/types/RenderPipeline/BatcherManager.d.ts +23 -1
- package/types/RenderPipeline/Blitter.d.ts +1 -1
- package/types/RenderPipeline/CullingResults.d.ts +17 -1
- package/types/RenderPipeline/DepthOnlyPass.d.ts +15 -1
- package/types/RenderPipeline/InstanceBuffer.d.ts +28 -0
- package/types/RenderPipeline/MaskManager.d.ts +36 -1
- package/types/RenderPipeline/OpaqueTexturePass.d.ts +16 -1
- package/types/RenderPipeline/PipelineUtils.d.ts +11 -1
- package/types/RenderPipeline/PrimitiveChunk.d.ts +27 -1
- package/types/RenderPipeline/PrimitiveChunkManager.d.ts +16 -1
- package/types/RenderPipeline/RenderContext.d.ts +46 -1
- package/types/RenderPipeline/RenderElement.d.ts +26 -6
- package/types/RenderPipeline/RenderQueue.d.ts +23 -1
- package/types/RenderPipeline/RenderTargetPool.d.ts +17 -1
- package/types/RenderPipeline/SubPrimitiveChunk.d.ts +14 -1
- package/types/RenderPipeline/VertexArea.d.ts +10 -1
- package/types/RenderPipeline/VertexMergeBatcher.d.ts +11 -0
- package/types/RenderPipeline/enums/RenderQueueMaskType.d.ts +9 -1
- package/types/RenderPipeline/index.d.ts +4 -1
- package/types/Renderer.d.ts +82 -19
- package/types/Scene.d.ts +34 -7
- package/types/SceneManager.d.ts +18 -6
- package/types/Script.d.ts +41 -0
- package/types/Signal.d.ts +71 -0
- package/types/SystemInfo.d.ts +14 -2
- package/types/Transform.d.ts +26 -1
- package/types/UpdateFlag.d.ts +4 -1
- package/types/UpdateFlagManager.d.ts +41 -1
- package/types/Utils.d.ts +20 -0
- package/types/VirtualCamera.d.ts +16 -1
- package/types/animation/AnimationClip.d.ts +13 -2
- package/types/animation/AnimationClipCurveBinding.d.ts +17 -2
- package/types/animation/AnimationEvent.d.ts +2 -2
- package/types/animation/Animator.d.ts +49 -10
- package/types/animation/AnimatorController.d.ts +20 -2
- package/types/animation/AnimatorControllerLayer.d.ts +17 -2
- package/types/animation/AnimatorControllerParameter.d.ts +4 -0
- package/types/animation/AnimatorState.d.ts +46 -2
- package/types/animation/AnimatorStateInstance.d.ts +46 -0
- package/types/animation/AnimatorStateMachine.d.ts +17 -2
- package/types/animation/AnimatorStateTransition.d.ts +9 -0
- package/types/animation/AnimatorStateTransitionCollection.d.ts +23 -1
- package/types/animation/Keyframe.d.ts +1 -1
- package/types/animation/StateMachineScript.d.ts +2 -0
- package/types/animation/animationCurve/AnimationArrayCurve.d.ts +39 -0
- package/types/animation/animationCurve/AnimationBoolCurve.d.ts +39 -0
- package/types/animation/animationCurve/AnimationColorCurve.d.ts +39 -0
- package/types/animation/animationCurve/AnimationCurve.d.ts +9 -1
- package/types/animation/animationCurve/AnimationFloatArrayCurve.d.ts +38 -0
- package/types/animation/animationCurve/AnimationFloatCurve.d.ts +39 -0
- package/types/animation/animationCurve/AnimationQuaternionCurve.d.ts +41 -0
- package/types/animation/animationCurve/AnimationRectCurve.d.ts +18 -0
- package/types/animation/animationCurve/AnimationRefCurve.d.ts +20 -2
- package/types/animation/animationCurve/AnimationStringCurve.d.ts +39 -0
- package/types/animation/animationCurve/AnimationVector2Curve.d.ts +39 -0
- package/types/animation/animationCurve/AnimationVector3Curve.d.ts +43 -0
- package/types/animation/animationCurve/AnimationVector4Curve.d.ts +39 -0
- package/types/animation/animationCurve/interfaces/IAnimationCurveCalculator.d.ts +18 -1
- package/types/animation/enums/AnimatorStatePlayState.d.ts +8 -1
- package/types/animation/index.d.ts +1 -0
- package/types/animation/internal/AnimationCurveLayerOwner.d.ts +15 -1
- package/types/animation/internal/AnimationEventHandler.d.ts +8 -1
- package/types/animation/internal/AnimatorLayerData.d.ts +28 -1
- package/types/animation/internal/AnimatorStateData.d.ts +14 -1
- package/types/animation/internal/AnimatorStatePlayData.d.ts +27 -1
- package/types/animation/internal/AnimatorTempValue.d.ts +12 -1
- package/types/animation/internal/animationCurveOwner/AnimationCurveOwner.d.ts +39 -0
- package/types/animation/internal/animationCurveOwner/assembler/BlendShapeWeightsAnimationCurveOwnerAssembler.d.ts +12 -1
- package/types/animation/internal/animationCurveOwner/assembler/IAnimationCurveOwnerAssembler.d.ts +10 -1
- package/types/animation/internal/animationCurveOwner/assembler/PositionAnimationCurveOwnerAssembler.d.ts +13 -1
- package/types/animation/internal/animationCurveOwner/assembler/RotationAnimationCurveOwnerAssembler.d.ts +13 -1
- package/types/animation/internal/animationCurveOwner/assembler/ScaleAnimationCurveOwnerAssembler.d.ts +13 -1
- package/types/animation/internal/animationCurveOwner/assembler/UniversalAnimationCurveOwnerAssembler.d.ts +23 -1
- package/types/asset/AssetPromise.d.ts +4 -4
- package/types/asset/AssetType.d.ts +7 -9
- package/types/asset/GraphicsResource.d.ts +10 -0
- package/types/asset/IReferable.d.ts +8 -0
- package/types/asset/JSONAsset.d.ts +1 -1
- package/types/asset/LoadItem.d.ts +1 -1
- package/types/asset/Loader.d.ts +2 -2
- package/types/asset/ReferResource.d.ts +28 -0
- package/types/asset/RenderingStatistics.d.ts +8 -0
- package/types/asset/ResourceManager.d.ts +117 -9
- package/types/audio/AudioClip.d.ts +8 -0
- package/types/audio/AudioManager.d.ts +18 -0
- package/types/audio/AudioSource.d.ts +20 -2
- package/types/base/Constant.d.ts +3 -19
- package/types/base/DataObject.d.ts +6 -0
- package/types/base/EngineObject.d.ts +4 -0
- package/types/base/Time.d.ts +13 -0
- package/types/base/index.d.ts +1 -0
- package/types/clone/CloneDecorators.d.ts +37 -0
- package/types/clone/CloneUtil.d.ts +30 -0
- package/types/clone/ComponentCloner.d.ts +4 -10
- package/types/clone/ICloneHook.d.ts +12 -0
- package/types/enums/CameraType.d.ts +9 -1
- package/types/env-probe/CubeProbe.d.ts +2 -0
- package/types/env-probe/Probe.d.ts +1 -1
- package/types/graphic/Buffer.d.ts +23 -3
- package/types/graphic/BufferUtil.d.ts +8 -0
- package/types/graphic/ElementRangeMapping.d.ts +9 -0
- package/types/graphic/IndexBufferBinding.d.ts +4 -0
- package/types/graphic/Mesh.d.ts +58 -1
- package/types/graphic/Primitive.d.ts +50 -1
- package/types/graphic/TransformFeedback.d.ts +46 -0
- package/types/graphic/TransformFeedbackPrimitive.d.ts +57 -0
- package/types/graphic/TransformFeedbackSimulator.d.ts +55 -0
- package/types/graphic/VertexBufferBinding.d.ts +4 -0
- package/types/graphic/VertexElement.d.ts +1 -0
- package/types/graphic/enums/BufferBindFlag.d.ts +5 -3
- package/types/index.d.ts +7 -4
- package/types/input/InputManager.d.ts +25 -6
- package/types/input/enums/PointerButton.d.ts +8 -0
- package/types/input/keyboard/KeyboardManager.d.ts +41 -1
- package/types/input/pointer/Pointer.d.ts +37 -1
- package/types/input/pointer/PointerEventData.d.ts +4 -0
- package/types/input/pointer/PointerManager.d.ts +58 -0
- package/types/input/pointer/emitter/IHitResult.d.ts +11 -1
- package/types/input/pointer/emitter/PhysicsPointerEventEmitter.d.ts +20 -1
- package/types/input/wheel/WheelManager.d.ts +34 -1
- package/types/lighting/AmbientLight.d.ts +9 -8
- package/types/lighting/DirectLight.d.ts +17 -0
- package/types/lighting/KHR_lights.d.ts +13 -1
- package/types/lighting/Light.d.ts +2 -0
- package/types/lighting/LightManager.d.ts +57 -0
- package/types/lighting/PointLight.d.ts +17 -0
- package/types/lighting/SpotLight.d.ts +17 -0
- package/types/lighting/ambientOcclusion/AmbientOcclusion.d.ts +4 -0
- package/types/lighting/ambientOcclusion/ScalableAmbientObscurancePass.d.ts +37 -1
- package/types/material/BaseMaterial.d.ts +15 -11
- package/types/material/Material.d.ts +6 -9
- package/types/mesh/BlendShape.d.ts +14 -1
- package/types/mesh/BlendShapeFrame.d.ts +11 -4
- package/types/mesh/BlendShapeManager.d.ts +100 -1
- package/types/mesh/BufferMesh.d.ts +2 -2
- package/types/mesh/MeshRenderer.d.ts +42 -0
- package/types/mesh/MeshTangentUtils.d.ts +9 -0
- package/types/mesh/ModelMesh.d.ts +28 -12
- package/types/mesh/PrimitiveMesh.d.ts +266 -104
- package/types/mesh/PrimitiveMeshOptions.d.ts +415 -0
- package/types/mesh/Skin.d.ts +12 -3
- package/types/mesh/SkinnedMeshRenderer.d.ts +27 -1
- package/types/mesh/enums/PrimitiveMeshCapMode.d.ts +21 -0
- package/types/mesh/index.d.ts +2 -0
- package/types/mesh/primitive/MeshPathUtils.d.ts +13 -0
- package/types/mesh/primitive/PolygonUtils.d.ts +44 -0
- package/types/mesh/primitive/PrimitiveMeshBuilder.d.ts +25 -0
- package/types/mesh/primitive/PrimitiveMeshRestorer.d.ts +15 -0
- package/types/mesh/primitive/SubdivisionUtils.d.ts +9 -0
- package/types/particle/ParticleBounds.d.ts +87 -0
- package/types/particle/ParticleBufferUtils.d.ts +33 -1
- package/types/particle/ParticleGenerator.d.ts +142 -24
- package/types/particle/ParticleMaterial.d.ts +3 -1
- package/types/particle/ParticleRenderer.d.ts +62 -6
- package/types/particle/ParticleSubEmitterSpawnState.d.ts +36 -0
- package/types/particle/ParticleSystemManager.d.ts +17 -0
- package/types/particle/ParticleTransformFeedbackSimulator.d.ts +48 -0
- package/types/particle/enums/ParticleInheritVelocityMode.d.ts +14 -0
- package/types/particle/enums/ParticleRandomSubSeeds.d.ts +26 -1
- package/types/particle/enums/ParticleScaleMode.d.ts +5 -5
- package/types/particle/enums/ParticleSubEmitterInheritProperty.d.ts +17 -0
- package/types/particle/enums/ParticleSubEmitterType.d.ts +12 -0
- package/types/particle/enums/attributes/BillboardParticleVertexAttribute.d.ts +6 -1
- package/types/particle/enums/attributes/ParticleFeedbackVertexAttribute.d.ts +10 -0
- package/types/particle/enums/attributes/ParticleInstanceVertexAttribute.d.ts +19 -1
- package/types/particle/index.d.ts +9 -0
- package/types/particle/modules/BirthSubEmitterCommand.d.ts +29 -0
- package/types/particle/modules/BirthSubEmitterState.d.ts +9 -0
- package/types/particle/modules/Burst.d.ts +23 -2
- package/types/particle/modules/ColorOverLifetimeModule.d.ts +19 -0
- package/types/particle/modules/CustomDataModule.d.ts +90 -0
- package/types/particle/modules/DeathSubEmitterCommand.d.ts +19 -0
- package/types/particle/modules/EmissionModule.d.ts +51 -4
- package/types/particle/modules/EmissionState.d.ts +13 -0
- package/types/particle/modules/ForceOverLifetimeModule.d.ts +16 -1
- package/types/particle/modules/InheritVelocityModule.d.ts +86 -0
- package/types/particle/modules/LimitVelocityOverLifetimeModule.d.ts +163 -0
- package/types/particle/modules/MainModule.d.ts +56 -11
- package/types/particle/modules/NoiseModule.d.ts +114 -0
- package/types/particle/modules/ParticleCompositeCurve.d.ts +46 -4
- package/types/particle/modules/ParticleCompositeGradient.d.ts +8 -2
- package/types/particle/modules/ParticleCurve.d.ts +31 -2
- package/types/particle/modules/ParticleGeneratorModule.d.ts +9 -3
- package/types/particle/modules/ParticleGradient.d.ts +22 -5
- package/types/particle/modules/RotationOverLifetimeModule.d.ts +27 -3
- package/types/particle/modules/SizeOverLifetimeModule.d.ts +25 -0
- package/types/particle/modules/SubEmitter.d.ts +32 -0
- package/types/particle/modules/SubEmittersModule.d.ts +111 -0
- package/types/particle/modules/TextureSheetAnimationModule.d.ts +14 -1
- package/types/particle/modules/VelocityOverLifetimeModule.d.ts +124 -3
- package/types/particle/modules/shape/BaseShape.d.ts +65 -2
- package/types/particle/modules/shape/BoxShape.d.ts +13 -2
- package/types/particle/modules/shape/CircleShape.d.ts +13 -1
- package/types/particle/modules/shape/ConeShape.d.ts +13 -4
- package/types/particle/modules/shape/HemisphereShape.d.ts +13 -0
- package/types/particle/modules/shape/MeshShape.d.ts +26 -3
- package/types/particle/modules/shape/ShapeUtils.d.ts +13 -1
- package/types/particle/modules/shape/SphereShape.d.ts +13 -0
- package/types/physics/CharacterController.d.ts +24 -3
- package/types/physics/Collider.d.ts +47 -3
- package/types/physics/Collision.d.ts +3 -0
- package/types/physics/DynamicCollider.d.ts +33 -7
- package/types/physics/HitResult.d.ts +2 -2
- package/types/physics/PhysicsMaterial.d.ts +11 -2
- package/types/physics/PhysicsScene.d.ts +99 -7
- package/types/physics/StaticCollider.d.ts +5 -0
- package/types/physics/enums/HingeJointFlag.d.ts +14 -1
- package/types/physics/joint/HingeJoint.d.ts +4 -0
- package/types/physics/joint/Joint.d.ts +22 -2
- package/types/physics/joint/JointLimits.d.ts +2 -1
- package/types/physics/joint/JointMotor.d.ts +2 -1
- package/types/physics/shape/ColliderShape.d.ts +44 -7
- package/types/physics/shape/MeshColliderShape.d.ts +13 -12
- package/types/postProcess/FinalPass.d.ts +20 -1
- package/types/postProcess/PostProcess.d.ts +11 -6
- package/types/postProcess/PostProcessEffect.d.ts +6 -1
- package/types/postProcess/PostProcessEffectParameter.d.ts +23 -3
- package/types/postProcess/PostProcessManager.d.ts +43 -0
- package/types/postProcess/PostProcessPass.d.ts +3 -2
- package/types/postProcess/PostProcessUberPass.d.ts +2 -1
- package/types/postProcess/effects/BloomEffect.d.ts +26 -1
- package/types/postProcess/effects/TonemappingEffect.d.ts +3 -0
- package/types/renderingHardwareInterface/IHardwareRenderer.d.ts +74 -0
- package/types/renderingHardwareInterface/IPlatformBuffer.d.ts +1 -0
- package/types/renderingHardwareInterface/IPlatformPrimitive.d.ts +6 -0
- package/types/renderingHardwareInterface/IPlatformShaderProgram.d.ts +4 -0
- package/types/renderingHardwareInterface/IPlatformTexture2D.d.ts +0 -1
- package/types/renderingHardwareInterface/IPlatformTextureCube.d.ts +0 -1
- package/types/renderingHardwareInterface/IPlatformTransformFeedback.d.ts +36 -0
- package/types/renderingHardwareInterface/IPlatformTransformFeedbackPrimitive.d.ts +39 -0
- package/types/renderingHardwareInterface/index.d.ts +5 -0
- package/types/shader/BuiltinShaders.d.ts +27 -0
- package/types/shader/Shader.d.ts +52 -25
- package/types/shader/ShaderBlockProperty.d.ts +19 -0
- package/types/shader/ShaderData.d.ts +43 -4
- package/types/shader/ShaderFactory.d.ts +77 -0
- package/types/shader/ShaderMacro.d.ts +17 -2
- package/types/shader/ShaderMacroCollection.d.ts +57 -1
- package/types/shader/ShaderMacroProcessor.d.ts +54 -0
- package/types/shader/ShaderPass.d.ts +42 -13
- package/types/shader/ShaderProgram.d.ts +92 -1
- package/types/shader/ShaderProgramMap.d.ts +20 -0
- package/types/shader/ShaderProperty.d.ts +17 -0
- package/types/shader/ShaderTagKey.d.ts +2 -0
- package/types/shader/ShaderUniform.d.ts +49 -1
- package/types/shader/ShaderUniformBlock.d.ts +9 -1
- package/types/shader/enums/ConstantBufferBindingPoint.d.ts +7 -0
- package/types/shader/enums/ShaderLanguage.d.ts +1 -3
- package/types/shader/enums/ShaderPreprocessorDirective.d.ts +22 -0
- package/types/shader/index.d.ts +3 -1
- package/types/shader/state/BlendState.d.ts +16 -1
- package/types/shader/state/DepthState.d.ts +16 -1
- package/types/shader/state/RasterState.d.ts +19 -1
- package/types/shader/state/RenderState.d.ts +13 -2
- package/types/shader/state/RenderTargetBlendState.d.ts +2 -1
- package/types/shader/state/StencilState.d.ts +15 -1
- package/types/shadow/CascadedShadowCasterPass.d.ts +5 -3
- package/types/shadow/ShadowSliceData.d.ts +13 -1
- package/types/shadow/ShadowUtils.d.ts +41 -1
- package/types/sky/Sky.d.ts +13 -4
- package/types/sky/SkyBoxMaterial.d.ts +0 -7
- package/types/texture/RenderTarget.d.ts +28 -3
- package/types/texture/Texture.d.ts +48 -12
- package/types/texture/Texture2D.d.ts +5 -2
- package/types/texture/Texture2DArray.d.ts +5 -2
- package/types/texture/TextureCube.d.ts +5 -2
- package/types/texture/TextureUtils.d.ts +15 -1
- package/types/texture/enums/TextureFormat.d.ts +58 -56
- package/types/trail/TrailRenderer.d.ts +13 -8
- package/types/ui/IUICanvas.d.ts +16 -1
- package/types/utils/DisorderedArray.d.ts +3 -1
- package/types/xr/XRManager.d.ts +28 -0
- package/types/RenderPipeline/BatchUtils.d.ts +0 -1
- package/types/RenderPipeline/SubRenderElement.d.ts +0 -22
- package/types/clone/CloneManager.d.ts +0 -31
- package/types/clone/enums/CloneMode.d.ts +0 -13
- package/types/mesh/PrimitiveMeshRestorer.d.ts +0 -1
- package/types/physics/enums/ColliderShapeChangeFlag.d.ts +0 -1
- package/types/shader/ShaderPool.d.ts +0 -1
- package/types/shader/ShaderProgramPool.d.ts +0 -1
- package/types/shader/state/index.d.ts +0 -6
- package/types/shaderlib/ShaderFactory.d.ts +0 -20
- package/types/shaderlib/ShaderLib.d.ts +0 -73
- package/types/shaderlib/index.d.ts +0 -1
- package/types/shaderlib/particle/index.d.ts +0 -15
- package/types/shaderlib/pbr/index.d.ts +0 -11
- package/types/shaderlib/shadow/index.d.ts +0 -8
|
@@ -1,9 +1,47 @@
|
|
|
1
|
+
import { AnimationCurveLayerOwner } from "../internal/AnimationCurveLayerOwner";
|
|
2
|
+
import { AnimationCurveOwner } from "../internal/animationCurveOwner/AnimationCurveOwner";
|
|
1
3
|
import { Keyframe } from "../Keyframe";
|
|
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 AnimationFloatArrayCurve extends AnimationCurve<Float32Array> {
|
|
9
|
+
/** @internal */
|
|
10
|
+
static _isCopyMode: boolean;
|
|
11
|
+
/** @internal */
|
|
12
|
+
static _supportInterpolationMode: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
static _initializeOwner(owner: AnimationCurveOwner<Float32Array>): void;
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
static _initializeLayerOwner(owner: AnimationCurveLayerOwner): void;
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
static _lerpValue(srcValue: Float32Array, destValue: Float32Array, weight: number, out: Float32Array): Float32Array;
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
static _subtractValue(src: Float32Array, base: Float32Array, out: Float32Array): Float32Array;
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
static _getZeroValue(out: Float32Array): Float32Array;
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
static _additiveValue(value: Float32Array, weight: number, out: Float32Array): Float32Array;
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
static _setValue(source: Float32Array, out: Float32Array): Float32Array;
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
static _hermiteInterpolationValue(frame: Keyframe<Float32Array>, nextFrame: Keyframe<Float32Array>, t: number, dur: number, out: Float32Array): Float32Array;
|
|
7
45
|
/**
|
|
8
46
|
* @inheritdoc
|
|
9
47
|
*/
|
|
@@ -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 AnimationFloatCurve extends AnimationCurve<number> {
|
|
9
|
+
/** @internal */
|
|
10
|
+
static _isCopyMode: boolean;
|
|
11
|
+
/** @internal */
|
|
12
|
+
static _supportInterpolationMode: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
static _initializeOwner(owner: AnimationCurveOwner<number>): void;
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
static _initializeLayerOwner(owner: AnimationCurveLayerOwner): void;
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
static _lerpValue(srcValue: number, destValue: number, crossWeight: number): number;
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
static _additiveValue(value: number, weight: number, source: number): number;
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
static _subtractValue(src: number, base: number): number;
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
static _getZeroValue(): number;
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
static _setValue(source: number): number;
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
static _hermiteInterpolationValue(frame: Keyframe<number>, nextFrame: Keyframe<number>, t: number, dur: number): number;
|
|
6
45
|
constructor();
|
|
7
46
|
}
|
|
@@ -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
|
+
* Animates resource references. A `null` keyframe clears the reference.
|
|
5
7
|
*/
|
|
6
|
-
export declare class AnimationRefCurve extends AnimationCurve<ReferResource> {
|
|
8
|
+
export declare class AnimationRefCurve extends AnimationCurve<ReferResource | null> {
|
|
9
|
+
/** @internal */
|
|
10
|
+
static _isCopyMode: boolean;
|
|
11
|
+
/** @internal */
|
|
12
|
+
static _supportInterpolationMode: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
static _initializeOwner(owner: AnimationCurveOwner<ReferResource | null>): void;
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
static _initializeLayerOwner(owner: AnimationCurveLayerOwner): void;
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
static _setValue(value: ReferResource | null): ReferResource | null;
|
|
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
|
-
|
|
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
|
+
}
|
|
@@ -10,6 +10,7 @@ export { Animator } from "./Animator";
|
|
|
10
10
|
export { AnimatorController } from "./AnimatorController";
|
|
11
11
|
export { AnimatorControllerLayer } from "./AnimatorControllerLayer";
|
|
12
12
|
export { AnimatorState } from "./AnimatorState";
|
|
13
|
+
export { AnimatorStateInstance } from "./AnimatorStateInstance";
|
|
13
14
|
export { AnimatorStateMachine } from "./AnimatorStateMachine";
|
|
14
15
|
export { AnimatorStateTransition } from "./AnimatorStateTransition";
|
|
15
16
|
export { AnimatorConditionMode } from "./enums/AnimatorConditionMode";
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
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,28 @@
|
|
|
1
|
-
|
|
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 | null;
|
|
25
|
+
crossLayerOwnerCollection: AnimationCurveLayerOwner[];
|
|
26
|
+
getOrCreateInstance(state: AnimatorState): AnimatorStateInstance;
|
|
27
|
+
resetCurrentCheckIndex(): void;
|
|
28
|
+
}
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 | undefined, cureType: IAnimationCurveCalculator<V>);
|
|
29
|
+
evaluateValue(curve: AnimationCurve<V>, time: number, additive: boolean): KeyframeValueType | undefined;
|
|
30
|
+
evaluateCrossFadeValue(srcCurve: AnimationCurve<V> | null | undefined, destCurve: AnimationCurve<V> | null | undefined, srcTime: number, destTime: number, crossWeight: number, additive: boolean): KeyframeValueType;
|
|
31
|
+
crossFadeFromPoseAndApplyValue(destCurve: AnimationCurve<V> | null | undefined, 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
|
-
|
|
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
|
+
}
|
package/types/animation/internal/animationCurveOwner/assembler/IAnimationCurveOwnerAssembler.d.ts
CHANGED
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
+
}
|