@galacean/engine-core 2.0.0-alpha.44 → 2.0.0-alpha.46
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 +105 -30
- package/dist/main.js.map +1 -1
- package/dist/module.js +105 -30
- 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 +38 -1
- package/types/ComponentsManager.d.ts +17 -0
- package/types/Engine.d.ts +106 -2
- package/types/Entity.d.ts +91 -1
- 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 +19 -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 +28 -0
- 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
|
@@ -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
|
-
|
|
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,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;
|
|
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, 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
|
-
|
|
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
|
+
}
|
|
@@ -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 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
|
-
|
|
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
|
}
|
|
@@ -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
|
}
|