@galacean/engine-core 2.0.0-alpha.43 → 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.
- package/dist/main.js +3 -3
- package/dist/main.js.map +1 -1
- package/dist/module.js +3 -3
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- 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 +27 -1
- package/types/2d/sprite/SpriteMask.d.ts +43 -0
- package/types/2d/sprite/SpriteRenderer.d.ts +29 -0
- 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 +10 -0
- package/types/2d/text/SubFont.d.ts +35 -1
- package/types/2d/text/TextRenderer.d.ts +53 -0
- package/types/2d/text/TextUtils.d.ts +89 -1
- package/types/Background.d.ts +17 -0
- package/types/BasicResources.d.ts +52 -0
- package/types/Camera.d.ts +71 -1
- package/types/Canvas.d.ts +13 -0
- package/types/Component.d.ts +33 -0
- package/types/ComponentsDependencies.d.ts +34 -1
- package/types/ComponentsManager.d.ts +17 -0
- package/types/Engine.d.ts +106 -2
- package/types/Entity.d.ts +88 -0
- package/types/Polyfill.d.ts +12 -1
- package/types/RenderPipeline/BasicRenderPipeline.d.ts +3 -0
- package/types/RenderPipeline/BatcherManager.d.ts +23 -1
- package/types/RenderPipeline/CullingResults.d.ts +17 -1
- package/types/RenderPipeline/DepthOnlyPass.d.ts +18 -1
- package/types/RenderPipeline/InstanceBuffer.d.ts +28 -1
- 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 +9 -0
- 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 -1
- package/types/RenderPipeline/enums/RenderQueueMaskType.d.ts +9 -1
- package/types/RenderPipeline/index.d.ts +2 -0
- package/types/Renderer.d.ts +58 -0
- package/types/Scene.d.ts +28 -0
- package/types/SceneManager.d.ts +13 -0
- package/types/Script.d.ts +40 -0
- package/types/SystemInfo.d.ts +10 -0
- package/types/Transform.d.ts +13 -0
- package/types/UpdateFlag.d.ts +3 -0
- 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 +5 -0
- package/types/animation/AnimationClipCurveBinding.d.ts +16 -1
- package/types/animation/Animator.d.ts +25 -0
- package/types/animation/AnimatorController.d.ts +17 -0
- package/types/animation/AnimatorControllerLayer.d.ts +9 -0
- package/types/animation/AnimatorControllerParameter.d.ts +4 -0
- package/types/animation/AnimatorState.d.ts +44 -0
- package/types/animation/AnimatorStateInstance.d.ts +8 -0
- package/types/animation/AnimatorStateMachine.d.ts +14 -0
- package/types/animation/AnimatorStateTransition.d.ts +9 -0
- package/types/animation/AnimatorStateTransitionCollection.d.ts +23 -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 +8 -0
- 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 +18 -0
- 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/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/GraphicsResource.d.ts +10 -0
- package/types/asset/IReferable.d.ts +8 -0
- package/types/asset/ReferResource.d.ts +28 -0
- package/types/asset/RenderingStatistics.d.ts +8 -0
- package/types/asset/ResourceManager.d.ts +94 -4
- package/types/audio/AudioClip.d.ts +8 -0
- package/types/audio/AudioManager.d.ts +14 -0
- package/types/audio/AudioSource.d.ts +17 -0
- package/types/base/EngineObject.d.ts +4 -0
- package/types/base/Time.d.ts +13 -0
- package/types/clone/CloneDecorators.d.ts +20 -0
- package/types/clone/CloneUtil.d.ts +30 -1
- package/types/clone/ComponentCloner.d.ts +11 -1
- package/types/enums/CameraType.d.ts +9 -1
- package/types/env-probe/CubeProbe.d.ts +2 -0
- package/types/graphic/Buffer.d.ts +10 -0
- package/types/graphic/BufferUtil.d.ts +5 -0
- package/types/graphic/IndexBufferBinding.d.ts +4 -0
- package/types/graphic/Mesh.d.ts +54 -0
- package/types/graphic/Primitive.d.ts +50 -1
- package/types/graphic/TransformFeedback.d.ts +46 -1
- package/types/graphic/TransformFeedbackPrimitive.d.ts +67 -1
- package/types/graphic/TransformFeedbackSimulator.d.ts +55 -1
- package/types/graphic/VertexBufferBinding.d.ts +4 -0
- package/types/input/InputManager.d.ts +19 -0
- 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 +36 -0
- 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 -0
- package/types/lighting/DirectLight.d.ts +17 -0
- 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 +38 -1
- package/types/material/BaseMaterial.d.ts +4 -0
- package/types/material/Material.d.ts +2 -0
- package/types/mesh/BlendShape.d.ts +13 -0
- package/types/mesh/BlendShapeFrame.d.ts +7 -0
- package/types/mesh/BlendShapeManager.d.ts +101 -1
- package/types/mesh/MeshRenderer.d.ts +37 -0
- package/types/mesh/ModelMesh.d.ts +18 -0
- package/types/mesh/PrimitiveMesh.d.ts +31 -3
- package/types/mesh/PrimitiveMeshRestorer.d.ts +107 -0
- package/types/mesh/Skin.d.ts +10 -0
- package/types/mesh/SkinnedMeshRenderer.d.ts +21 -0
- package/types/particle/ParticleBufferUtils.d.ts +26 -1
- package/types/particle/ParticleGenerator.d.ts +102 -0
- package/types/particle/ParticleRenderer.d.ts +55 -0
- package/types/particle/ParticleTransformFeedbackSimulator.d.ts +52 -1
- package/types/particle/enums/ParticleRandomSubSeeds.d.ts +25 -1
- package/types/particle/enums/attributes/BillboardParticleVertexAttribute.d.ts +6 -1
- package/types/particle/enums/attributes/ParticleFeedbackVertexAttribute.d.ts +8 -1
- package/types/particle/enums/attributes/ParticleInstanceVertexAttribute.d.ts +17 -1
- package/types/particle/modules/ColorOverLifetimeModule.d.ts +12 -0
- package/types/particle/modules/CustomDataModule.d.ts +5 -0
- package/types/particle/modules/EmissionModule.d.ts +28 -0
- package/types/particle/modules/ForceOverLifetimeModule.d.ts +16 -1
- package/types/particle/modules/LimitVelocityOverLifetimeModule.d.ts +20 -1
- package/types/particle/modules/MainModule.d.ts +33 -1
- package/types/particle/modules/NoiseModule.d.ts +12 -1
- package/types/particle/modules/ParticleCompositeCurve.d.ts +37 -0
- package/types/particle/modules/ParticleCurve.d.ts +28 -0
- package/types/particle/modules/ParticleGeneratorModule.d.ts +7 -0
- package/types/particle/modules/ParticleGradient.d.ts +16 -0
- package/types/particle/modules/RotationOverLifetimeModule.d.ts +12 -0
- package/types/particle/modules/SizeOverLifetimeModule.d.ts +16 -0
- package/types/particle/modules/SubEmitter.d.ts +3 -0
- package/types/particle/modules/SubEmittersModule.d.ts +17 -0
- package/types/particle/modules/TextureSheetAnimationModule.d.ts +14 -1
- package/types/particle/modules/VelocityOverLifetimeModule.d.ts +28 -1
- package/types/particle/modules/shape/BaseShape.d.ts +33 -1
- package/types/particle/modules/shape/BoxShape.d.ts +13 -1
- package/types/particle/modules/shape/CircleShape.d.ts +13 -0
- package/types/particle/modules/shape/ConeShape.d.ts +13 -0
- package/types/particle/modules/shape/HemisphereShape.d.ts +13 -0
- package/types/particle/modules/shape/MeshShape.d.ts +17 -0
- 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 +21 -0
- package/types/physics/Collider.d.ts +39 -0
- package/types/physics/Collision.d.ts +3 -0
- package/types/physics/DynamicCollider.d.ts +14 -0
- package/types/physics/PhysicsMaterial.d.ts +3 -0
- package/types/physics/PhysicsScene.d.ts +51 -0
- package/types/physics/StaticCollider.d.ts +5 -0
- package/types/physics/enums/ColliderShapeChangeFlag.d.ts +8 -1
- 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 +20 -0
- package/types/physics/joint/JointLimits.d.ts +3 -0
- package/types/physics/joint/JointMotor.d.ts +3 -0
- package/types/physics/shape/ColliderShape.d.ts +17 -0
- package/types/physics/shape/MeshColliderShape.d.ts +4 -0
- package/types/postProcess/FinalPass.d.ts +19 -1
- package/types/postProcess/PostProcess.d.ts +2 -0
- package/types/postProcess/PostProcessEffect.d.ts +4 -0
- package/types/postProcess/PostProcessEffectParameter.d.ts +4 -0
- package/types/postProcess/PostProcessManager.d.ts +43 -0
- package/types/postProcess/effects/BloomEffect.d.ts +25 -0
- package/types/postProcess/effects/TonemappingEffect.d.ts +3 -0
- package/types/renderingHardwareInterface/IPlatformTransformFeedback.d.ts +36 -1
- package/types/renderingHardwareInterface/IPlatformTransformFeedbackPrimitive.d.ts +40 -1
- package/types/shader/Shader.d.ts +22 -0
- package/types/shader/ShaderBlockProperty.d.ts +19 -1
- package/types/shader/ShaderData.d.ts +29 -0
- package/types/shader/ShaderFactory.d.ts +23 -0
- package/types/shader/ShaderMacro.d.ts +15 -0
- package/types/shader/ShaderMacroCollection.d.ts +57 -1
- package/types/shader/ShaderMacroProcessor.d.ts +72 -1
- package/types/shader/ShaderPass.d.ts +38 -0
- package/types/shader/ShaderProgram.d.ts +91 -1
- package/types/shader/ShaderProgramMap.d.ts +20 -1
- 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 -1
- package/types/shader/state/BlendState.d.ts +14 -0
- package/types/shader/state/DepthState.d.ts +14 -0
- package/types/shader/state/RasterState.d.ts +17 -0
- package/types/shader/state/RenderState.d.ts +11 -0
- package/types/shader/state/StencilState.d.ts +13 -0
- package/types/shadow/CascadedShadowCasterPass.d.ts +5 -0
- package/types/shadow/ShadowSliceData.d.ts +13 -1
- package/types/shadow/ShadowUtils.d.ts +43 -1
- package/types/sky/Sky.d.ts +9 -0
- package/types/texture/RenderTarget.d.ts +21 -0
- package/types/texture/Texture.d.ts +21 -0
- package/types/texture/Texture2D.d.ts +4 -0
- package/types/texture/Texture2DArray.d.ts +4 -0
- package/types/texture/TextureCube.d.ts +4 -0
- package/types/texture/TextureUtils.d.ts +16 -1
- package/types/trail/TrailRenderer.d.ts +5 -0
- package/types/ui/IUICanvas.d.ts +16 -1
- package/types/utils/DisorderedArray.d.ts +2 -0
- package/types/xr/XRManager.d.ts +28 -0
package/types/Utils.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Matrix } from "@galacean/engine-math";
|
|
1
2
|
export declare class Utils {
|
|
2
3
|
/**
|
|
3
4
|
* Fast remove an element from array.
|
|
@@ -32,6 +33,25 @@ export declare class Utils {
|
|
|
32
33
|
* @returns The resolved url.
|
|
33
34
|
*/
|
|
34
35
|
static resolveAbsoluteUrl(baseUrl: string, relativeUrl: string): string;
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
static _floatMatrixMultiply(left: Matrix, re: Float32Array, rOffset: number, oe: Float32Array, offset: number): void;
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
* Simplify lodash get: https://github.com/lodash/lodash/blob/master/get.js.
|
|
43
|
+
* @param target - The object to query.
|
|
44
|
+
* @param path - The path of the property to get.
|
|
45
|
+
* @returns Returns the resolved value.
|
|
46
|
+
*/
|
|
47
|
+
static _reflectGet(target: object, path: string): object;
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
* @remarks
|
|
51
|
+
* Modified based on v8.
|
|
52
|
+
* https://github.com/v8/v8/blob/7.2-lkgr/src/js/array.js
|
|
53
|
+
*/
|
|
54
|
+
static _quickSort<T>(a: T[], from: number, to: number, compareFunc: Function): void;
|
|
35
55
|
private static _stringToPath;
|
|
36
56
|
private static _insertionSort;
|
|
37
57
|
private static _encodePathComponents;
|
package/types/VirtualCamera.d.ts
CHANGED
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import { DataObject } from "./base/DataObject";
|
|
2
|
+
import { Matrix, Vector3 } from "@galacean/engine-math";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare class VirtualCamera extends DataObject {
|
|
7
|
+
isOrthographic: boolean;
|
|
8
|
+
nearClipPlane: number;
|
|
9
|
+
farClipPlane: number;
|
|
10
|
+
position: Vector3;
|
|
11
|
+
viewMatrix: Matrix;
|
|
12
|
+
projectionMatrix: Matrix;
|
|
13
|
+
viewProjectionMatrix: Matrix;
|
|
14
|
+
/** Only orth mode use. */
|
|
15
|
+
forward: Vector3;
|
|
16
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EngineObject } from "../base/EngineObject";
|
|
2
2
|
import { Component } from "../Component";
|
|
3
3
|
import { ComponentConstructor, Entity } from "../Entity";
|
|
4
|
+
import { UpdateFlagManager } from "../UpdateFlagManager";
|
|
4
5
|
import { AnimationClipCurveBinding } from "./AnimationClipCurveBinding";
|
|
5
6
|
import { AnimationCurve } from "./animationCurve/AnimationCurve";
|
|
6
7
|
import { AnimationEvent } from "./AnimationEvent";
|
|
@@ -10,6 +11,10 @@ import { KeyframeValueType } from "./Keyframe";
|
|
|
10
11
|
*/
|
|
11
12
|
export declare class AnimationClip extends EngineObject {
|
|
12
13
|
readonly name: string;
|
|
14
|
+
/** @internal */
|
|
15
|
+
_curveBindings: AnimationClipCurveBinding[];
|
|
16
|
+
/** @internal */
|
|
17
|
+
_updateFlagManager: UpdateFlagManager;
|
|
13
18
|
private _length;
|
|
14
19
|
private _events;
|
|
15
20
|
/**
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Component } from "../Component";
|
|
2
|
+
import { ComponentConstructor, Entity } from "../Entity";
|
|
2
3
|
import { KeyframeValueType } from "./Keyframe";
|
|
3
4
|
import { AnimationCurve } from "./animationCurve";
|
|
5
|
+
import { AnimationCurveLayerOwner } from "./internal/AnimationCurveLayerOwner";
|
|
6
|
+
import { AnimationCurveOwner } from "./internal/animationCurveOwner/AnimationCurveOwner";
|
|
4
7
|
/**
|
|
5
8
|
* Associate AnimationCurve and the Entity
|
|
6
9
|
*/
|
|
@@ -27,4 +30,16 @@ export declare class AnimationClipCurveBinding {
|
|
|
27
30
|
/** The animation curve. */
|
|
28
31
|
curve: AnimationCurve<KeyframeValueType>;
|
|
29
32
|
private _tempCurveOwner;
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
_createCurveOwner(entity: Entity, component: Component): AnimationCurveOwner<KeyframeValueType>;
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
_createCurveLayerOwner(owner: AnimationCurveOwner<KeyframeValueType>): AnimationCurveLayerOwner;
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
_getTempCurveOwner(entity: Entity, component: Component): AnimationCurveOwner<KeyframeValueType>;
|
|
30
45
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BoolUpdateFlag } from "../BoolUpdateFlag";
|
|
2
2
|
import { Component } from "../Component";
|
|
3
|
+
import { Entity } from "../Entity";
|
|
3
4
|
import type { ICloneHook } from "../clone/ICloneHook";
|
|
4
5
|
import { AnimatorController } from "./AnimatorController";
|
|
5
6
|
import { AnimatorControllerLayer } from "./AnimatorControllerLayer";
|
|
@@ -18,6 +19,10 @@ export declare class Animator extends Component implements ICloneHook<Animator>
|
|
|
18
19
|
speed: number;
|
|
19
20
|
/** Whether the Animator sends AnimationEvent callbacks. */
|
|
20
21
|
fireEvents: boolean;
|
|
22
|
+
/** @internal */
|
|
23
|
+
_playFrameCount: number;
|
|
24
|
+
/** @internal */
|
|
25
|
+
_onUpdateIndex: number;
|
|
21
26
|
protected _animatorController: AnimatorController;
|
|
22
27
|
protected _controllerUpdateFlag: BoolUpdateFlag;
|
|
23
28
|
protected _updateMark: number;
|
|
@@ -39,6 +44,10 @@ export declare class Animator extends Component implements ICloneHook<Animator>
|
|
|
39
44
|
* The parameters in the animator's controller.
|
|
40
45
|
*/
|
|
41
46
|
get parameters(): Readonly<AnimatorControllerParameter[]>;
|
|
47
|
+
/**
|
|
48
|
+
* @internal
|
|
49
|
+
*/
|
|
50
|
+
constructor(entity: Entity);
|
|
42
51
|
/**
|
|
43
52
|
* Play a state by name.
|
|
44
53
|
* @param stateName - The state name
|
|
@@ -115,6 +124,22 @@ export declare class Animator extends Component implements ICloneHook<Animator>
|
|
|
115
124
|
* @param name - The name of the trigger parameter
|
|
116
125
|
*/
|
|
117
126
|
deactivateTriggerParameter(name: string): void;
|
|
127
|
+
/**
|
|
128
|
+
* @internal
|
|
129
|
+
*/
|
|
130
|
+
_onEnable(): void;
|
|
131
|
+
/**
|
|
132
|
+
* @internal
|
|
133
|
+
*/
|
|
134
|
+
_onEnableInScene(): void;
|
|
135
|
+
/**
|
|
136
|
+
* @internal
|
|
137
|
+
*/
|
|
138
|
+
_onDisableInScene(): void;
|
|
139
|
+
/**
|
|
140
|
+
* @internal
|
|
141
|
+
*/
|
|
142
|
+
_reset(): void;
|
|
118
143
|
private _resetIfControllerUpdated;
|
|
119
144
|
/**
|
|
120
145
|
* @inheritdoc
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BoolUpdateFlag } from "../BoolUpdateFlag";
|
|
1
2
|
import { AnimatorControllerParameter, AnimatorControllerParameterValue } from "./AnimatorControllerParameter";
|
|
2
3
|
import { AnimatorControllerLayer } from "./AnimatorControllerLayer";
|
|
3
4
|
import { ReferResource } from "../asset/ReferResource";
|
|
@@ -6,6 +7,14 @@ import { Engine } from "../Engine";
|
|
|
6
7
|
* Store the data for Animator playback.
|
|
7
8
|
*/
|
|
8
9
|
export declare class AnimatorController extends ReferResource {
|
|
10
|
+
/** @internal */
|
|
11
|
+
_parameters: AnimatorControllerParameter[];
|
|
12
|
+
/** @internal */
|
|
13
|
+
_parametersMap: Record<string, AnimatorControllerParameter>;
|
|
14
|
+
/** @internal */
|
|
15
|
+
_layers: AnimatorControllerLayer[];
|
|
16
|
+
/** @internal */
|
|
17
|
+
_layersMap: Record<string, AnimatorControllerLayer>;
|
|
9
18
|
private _updateFlagManager;
|
|
10
19
|
private _onStatesInvalidate;
|
|
11
20
|
/**
|
|
@@ -69,5 +78,13 @@ export declare class AnimatorController extends ReferResource {
|
|
|
69
78
|
* Clear layers.
|
|
70
79
|
*/
|
|
71
80
|
clearLayers(): void;
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
_registerChangeFlag(): BoolUpdateFlag;
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
*/
|
|
88
|
+
_setEngine(engine: Engine): void;
|
|
72
89
|
private _addParameter;
|
|
73
90
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Engine } from "../Engine";
|
|
1
2
|
import { AnimatorStateMachine } from "./AnimatorStateMachine";
|
|
2
3
|
import { AnimatorLayerBlendingMode } from "./enums/AnimatorLayerBlendingMode";
|
|
3
4
|
import { AnimatorLayerMask } from "./AnimatorLayerMask";
|
|
@@ -24,4 +25,12 @@ export declare class AnimatorControllerLayer {
|
|
|
24
25
|
* @param name - The layer's name
|
|
25
26
|
*/
|
|
26
27
|
constructor(name: string);
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
_setEngine(engine: Engine): void;
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
_setStatesInvalidateCallback(onStatesInvalidate: (() => void) | null): void;
|
|
27
36
|
}
|
|
@@ -5,6 +5,10 @@ export type AnimatorControllerParameterValue = number | string | boolean;
|
|
|
5
5
|
export declare class AnimatorControllerParameter {
|
|
6
6
|
/** The default value of the parameter. */
|
|
7
7
|
defaultValue: AnimatorControllerParameterValue;
|
|
8
|
+
/** @internal */
|
|
9
|
+
_onNameChanged: (oldName: string, newName: string) => void;
|
|
10
|
+
/** @internal */
|
|
11
|
+
_isTrigger: boolean;
|
|
8
12
|
private _name;
|
|
9
13
|
/**
|
|
10
14
|
* The name of the parameter.
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { Engine } from "../Engine";
|
|
2
|
+
import { UpdateFlagManager } from "../UpdateFlagManager";
|
|
1
3
|
import { AnimationClip } from "./AnimationClip";
|
|
4
|
+
import type { Animator } from "./Animator";
|
|
2
5
|
import { AnimatorStateTransition } from "./AnimatorStateTransition";
|
|
6
|
+
import { AnimatorStateTransitionCollection } from "./AnimatorStateTransitionCollection";
|
|
3
7
|
import { WrapMode } from "./enums/WrapMode";
|
|
4
8
|
import { StateMachineScript } from "./StateMachineScript";
|
|
5
9
|
/**
|
|
@@ -11,6 +15,10 @@ export declare class AnimatorState {
|
|
|
11
15
|
speed: number;
|
|
12
16
|
/** The wrap mode used in the state. */
|
|
13
17
|
wrapMode: WrapMode;
|
|
18
|
+
/** @internal */
|
|
19
|
+
_updateFlagManager: UpdateFlagManager;
|
|
20
|
+
/** @internal */
|
|
21
|
+
_transitionCollection: AnimatorStateTransitionCollection;
|
|
14
22
|
private _onStateEnterScripts;
|
|
15
23
|
private _onStateUpdateScripts;
|
|
16
24
|
private _onStateExitScripts;
|
|
@@ -70,4 +78,40 @@ export declare class AnimatorState {
|
|
|
70
78
|
* Clears all transitions from the state.
|
|
71
79
|
*/
|
|
72
80
|
clearTransitions(): void;
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
_callOnEnter(animator: Animator, layerIndex: number): void;
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
*/
|
|
88
|
+
_callOnUpdate(animator: Animator, layerIndex: number): void;
|
|
89
|
+
/**
|
|
90
|
+
* @internal
|
|
91
|
+
*/
|
|
92
|
+
_callOnExit(animator: Animator, layerIndex: number): void;
|
|
93
|
+
/**
|
|
94
|
+
* @internal
|
|
95
|
+
*/
|
|
96
|
+
_getDuration(): number;
|
|
97
|
+
/**
|
|
98
|
+
* @internal
|
|
99
|
+
*/
|
|
100
|
+
_removeStateMachineScript(script: StateMachineScript): void;
|
|
101
|
+
/**
|
|
102
|
+
* @internal
|
|
103
|
+
*/
|
|
104
|
+
_onClipChanged(): void;
|
|
105
|
+
/**
|
|
106
|
+
* @internal
|
|
107
|
+
*/
|
|
108
|
+
_getClipActualStartTime(): number;
|
|
109
|
+
/**
|
|
110
|
+
* @internal
|
|
111
|
+
*/
|
|
112
|
+
_getClipActualEndTime(): number;
|
|
113
|
+
/**
|
|
114
|
+
* @internal
|
|
115
|
+
*/
|
|
116
|
+
_setEngine(engine: Engine): void;
|
|
73
117
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { AnimationClip } from "./AnimationClip";
|
|
2
|
+
import { AnimatorState } from "./AnimatorState";
|
|
3
|
+
import { AnimatorStatePlayData } from "./internal/AnimatorStatePlayData";
|
|
2
4
|
import { WrapMode } from "./enums/WrapMode";
|
|
3
5
|
/**
|
|
4
6
|
* Per-Animator view of an `AnimatorState`.
|
|
@@ -7,6 +9,10 @@ import { WrapMode } from "./enums/WrapMode";
|
|
|
7
9
|
* fall through to the underlying state asset.
|
|
8
10
|
*/
|
|
9
11
|
export declare class AnimatorStateInstance {
|
|
12
|
+
/** @internal */
|
|
13
|
+
readonly _state: AnimatorState;
|
|
14
|
+
/** @internal */
|
|
15
|
+
readonly _playData: AnimatorStatePlayData;
|
|
10
16
|
private _speed;
|
|
11
17
|
private _wrapMode;
|
|
12
18
|
/**
|
|
@@ -35,4 +41,6 @@ export declare class AnimatorStateInstance {
|
|
|
35
41
|
*/
|
|
36
42
|
get wrapMode(): WrapMode;
|
|
37
43
|
set wrapMode(value: WrapMode);
|
|
44
|
+
/** @internal */
|
|
45
|
+
constructor(state: AnimatorState);
|
|
38
46
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { Engine } from "../Engine";
|
|
1
2
|
import { AnimatorState } from "./AnimatorState";
|
|
2
3
|
import { AnimatorStateTransition } from "./AnimatorStateTransition";
|
|
4
|
+
import { AnimatorStateTransitionCollection } from "./AnimatorStateTransitionCollection";
|
|
3
5
|
export interface AnimatorStateMap {
|
|
4
6
|
[key: string]: AnimatorState;
|
|
5
7
|
}
|
|
@@ -16,6 +18,10 @@ export declare class AnimatorStateMachine {
|
|
|
16
18
|
* @remarks When the Animator's AnimatorController changed or the Animator's onEnable be triggered. Cleared to `null` if the state is removed via `removeState`.
|
|
17
19
|
*/
|
|
18
20
|
defaultState: AnimatorState | null;
|
|
21
|
+
/** @internal */
|
|
22
|
+
_entryTransitionCollection: AnimatorStateTransitionCollection;
|
|
23
|
+
/** @internal */
|
|
24
|
+
_anyStateTransitionCollection: AnimatorStateTransitionCollection;
|
|
19
25
|
private _statesMap;
|
|
20
26
|
/**
|
|
21
27
|
* The list of entry transitions in the state machine.
|
|
@@ -84,4 +90,12 @@ export declare class AnimatorStateMachine {
|
|
|
84
90
|
* Clear all any state transitions.
|
|
85
91
|
*/
|
|
86
92
|
clearAnyStateTransitions(): void;
|
|
93
|
+
/**
|
|
94
|
+
* @internal
|
|
95
|
+
*/
|
|
96
|
+
_setEngine(engine: Engine): void;
|
|
97
|
+
/**
|
|
98
|
+
* @internal
|
|
99
|
+
*/
|
|
100
|
+
_setStatesInvalidateCallback(onStatesInvalidate: (() => void) | null): void;
|
|
87
101
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AnimatorCondition } from "./AnimatorCondition";
|
|
2
2
|
import { AnimatorControllerParameterValue } from "./AnimatorControllerParameter";
|
|
3
3
|
import { AnimatorState } from "./AnimatorState";
|
|
4
|
+
import { AnimatorStateTransitionCollection } from "./AnimatorStateTransitionCollection";
|
|
4
5
|
import { AnimatorConditionMode } from "./enums/AnimatorConditionMode";
|
|
5
6
|
/**
|
|
6
7
|
* Transitions define when and how the state machine switch from on state to another. AnimatorTransition always originate from a StateMachine or a StateMachine entry.
|
|
@@ -18,6 +19,10 @@ export declare class AnimatorStateTransition {
|
|
|
18
19
|
mute: boolean;
|
|
19
20
|
/** Determines whether the duration of the transition is reported in a fixed duration in seconds or as a normalized time. */
|
|
20
21
|
isFixedDuration: boolean;
|
|
22
|
+
/** @internal */
|
|
23
|
+
_collection: AnimatorStateTransitionCollection;
|
|
24
|
+
/** @internal */
|
|
25
|
+
_isExit: boolean;
|
|
21
26
|
private _conditions;
|
|
22
27
|
private _solo;
|
|
23
28
|
private _hasExitTime;
|
|
@@ -56,4 +61,8 @@ export declare class AnimatorStateTransition {
|
|
|
56
61
|
* @param condition - The condition to remove
|
|
57
62
|
*/
|
|
58
63
|
removeCondition(condition: AnimatorCondition): void;
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
67
|
+
_getFixedDuration(): number;
|
|
59
68
|
}
|
|
@@ -1 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
import { AnimatorState } from "./AnimatorState";
|
|
2
|
+
import { AnimatorStateTransition } from "./AnimatorStateTransition";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare class AnimatorStateTransitionCollection {
|
|
7
|
+
transitions: AnimatorStateTransition[];
|
|
8
|
+
noExitTimeCount: number;
|
|
9
|
+
needResetCurrentCheckIndex: boolean;
|
|
10
|
+
currentCheckIndex: number;
|
|
11
|
+
private _soloCount;
|
|
12
|
+
get isSoloMode(): boolean;
|
|
13
|
+
get count(): number;
|
|
14
|
+
get(index: number): AnimatorStateTransition;
|
|
15
|
+
add(transitionOrAnimatorState: AnimatorStateTransition | AnimatorState): AnimatorStateTransition;
|
|
16
|
+
remove(transition: AnimatorStateTransition): void;
|
|
17
|
+
clear(): void;
|
|
18
|
+
updateTransitionSolo(isModifiedSolo: boolean): void;
|
|
19
|
+
updateTransitionsIndex(transition: AnimatorStateTransition, newHasExitTime: boolean): void;
|
|
20
|
+
updateCurrentCheckIndex(isForward: boolean): void;
|
|
21
|
+
resetCurrentCheckIndex(isForward: boolean): void;
|
|
22
|
+
private _addTransition;
|
|
23
|
+
}
|
|
@@ -5,6 +5,8 @@ import { EngineObject } from "../base/EngineObject";
|
|
|
5
5
|
* StateMachineScript is a component that can be added to a animator state. It's the base class every script on a state derives from.
|
|
6
6
|
*/
|
|
7
7
|
export declare class StateMachineScript extends EngineObject {
|
|
8
|
+
/** @internal */
|
|
9
|
+
_state: AnimatorState;
|
|
8
10
|
constructor();
|
|
9
11
|
/**
|
|
10
12
|
* onStateEnter is called when a transition starts and the state machine starts to evaluate this state.
|
|
@@ -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 AnimationArrayCurve 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[], weight: number, out: number[]): number[];
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
static _subtractValue(src: number[], base: number[], out: number[]): number[];
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
static _getZeroValue(out: number[]): number[];
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
static _additiveValue(value: number[], weight: number, out: number[]): number[];
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
static _setValue(source: number[], out: number[]): number[];
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
static _hermiteInterpolationValue(frame: Keyframe<number[]>, nextFrame: Keyframe<number[]>, t: number, duration: number, out: number[]): number[];
|
|
6
45
|
constructor();
|
|
7
46
|
}
|
|
@@ -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 AnimationBoolCurve extends AnimationCurve<boolean> {
|
|
9
|
+
/** @internal */
|
|
10
|
+
static _isCopyMode: boolean;
|
|
11
|
+
/** @internal */
|
|
12
|
+
static _supportInterpolationMode: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
static _initializeOwner(owner: AnimationCurveOwner<boolean>): void;
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
static _initializeLayerOwner(owner: AnimationCurveLayerOwner): void;
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
static _lerpValue(srcValue: boolean, destValue: boolean): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
static _subtractValue(src: boolean, base: boolean, out: boolean): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
static _getZeroValue(): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
static _additiveValue(value: boolean, weight: number, source: boolean): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
static _setValue(value: boolean): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
static _hermiteInterpolationValue(frame: Keyframe<boolean>): boolean;
|
|
6
45
|
constructor();
|
|
7
46
|
}
|
|
@@ -1,8 +1,47 @@
|
|
|
1
1
|
import { Color } 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 AnimationColorCurve extends AnimationCurve<Color> {
|
|
10
|
+
/** @internal */
|
|
11
|
+
static _isCopyMode: boolean;
|
|
12
|
+
/** @internal */
|
|
13
|
+
static _supportInterpolationMode: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
static _initializeOwner(owner: AnimationCurveOwner<Color>): void;
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
static _initializeLayerOwner(owner: AnimationCurveLayerOwner): void;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
static _lerpValue(srcValue: Color, destValue: Color, weight: number, out: Color): Color;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
static _subtractValue(src: Color, base: Color, out: Color): Color;
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
static _getZeroValue(out: Color): Color;
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
static _additiveValue(value: Color, weight: number, out: Color): Color;
|
|
38
|
+
/**
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
static _setValue(source: Color, out: Color): Color;
|
|
42
|
+
/**
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
45
|
+
static _hermiteInterpolationValue(frame: Keyframe<Color>, nextFrame: Keyframe<Color>, t: number, dur: number, out: Color): Color;
|
|
7
46
|
constructor();
|
|
8
47
|
}
|
|
@@ -36,4 +36,12 @@ export declare abstract class AnimationCurve<V extends KeyframeValueType> {
|
|
|
36
36
|
* @param index - The index of the key to remove
|
|
37
37
|
*/
|
|
38
38
|
removeKey(index: number): void;
|
|
39
|
+
/**
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
_evaluate(time: number, evaluateData: IEvaluateData<V>): V;
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
_evaluateAdditive(time: number, evaluateData: IEvaluateData<V>): V;
|
|
39
47
|
}
|
|
@@ -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
|
}
|