mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-31 19:12:20 +08:00
[@types/three] Fix function signatures for some Animation related classes (#23782)
* fix(three): fix function signature for AnimationMixer.stopAllAction * fix(three): change first arg in AnimationClip.findByName to array
This commit is contained in:
4
types/three/three-core.d.ts
vendored
4
types/three/three-core.d.ts
vendored
@@ -271,7 +271,7 @@ export class AnimationClip {
|
||||
optimize(): AnimationClip;
|
||||
|
||||
static CreateFromMorphTargetSequence( name: string, morphTargetSequence: MorphTarget[], fps: number, noLoop: boolean ): AnimationClip;
|
||||
static findByName( clipArray: AnimationClip, name: string ): AnimationClip;
|
||||
static findByName( clipArray: AnimationClip[], name: string ): AnimationClip;
|
||||
static CreateClipsFromMorphTargetSequences( morphTargets: MorphTarget[], fps: number, noLoop: boolean ): AnimationClip[];
|
||||
static parse( json: any ): AnimationClip;
|
||||
static parseAnimation( animation: any, bones: Bone[], nodeName: string ): AnimationClip;
|
||||
@@ -286,7 +286,7 @@ export class AnimationMixer extends EventDispatcher {
|
||||
|
||||
clipAction(clip: AnimationClip, root?: any): AnimationAction;
|
||||
existingAction(clip: AnimationClip, root?: any): AnimationAction;
|
||||
stopAllAction(clip: AnimationClip, root?: any): AnimationMixer;
|
||||
stopAllAction(): AnimationMixer;
|
||||
update(deltaTime: number): AnimationMixer;
|
||||
getRoot(): any;
|
||||
uncacheClip(clip: AnimationClip): void;
|
||||
|
||||
Reference in New Issue
Block a user