UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

50 lines (49 loc) 2.4 kB
import { Object3D, AnimationMixer, AnimationAction, AnimationClip } from 'three'; import { NamedFunction1, NamedFunction2, NamedFunction3, NamedFunction5, ObjectNamedFunction0 } from './_Base'; export declare function findOrCreateAnimationMixer(object3D: Object3D): AnimationMixer; export declare function animationClipsFromAnimationMixer(animationMixer: AnimationMixer): AnimationClip[] | undefined; export declare function existingAnimationActionsFromAnimationMixer(animationMixer: AnimationMixer): AnimationAction[]; export declare function getMostActiveAnimationActionFromMixer(animationMixer: AnimationMixer, except?: AnimationAction): { otherActions: AnimationAction[]; mostActiveAnimationAction: AnimationAction; }; type GetAnimationAction = () => AnimationAction; export declare class getAnimationMixer extends ObjectNamedFunction0 { static type(): string; func(object3D: Object3D): AnimationMixer; } export declare class animationMixerUpdate extends ObjectNamedFunction0 { static type(): string; func(object3D: Object3D): void; } export declare class getAnimationAction extends NamedFunction3<[AnimationMixer, string, boolean]> { static type(): string; func(mixer: AnimationMixer, clipName: string, autoPlay: boolean): AnimationAction; } export declare class animationActionPlay extends NamedFunction1<[AnimationAction]> { static type(): string; func(action: AnimationAction): void; } export declare class animationActionStop extends NamedFunction1<[AnimationAction]> { static type(): string; func(action: AnimationAction): void; } export declare class animationActionFadeIn extends NamedFunction5<[AnimationAction, number, boolean, boolean, boolean]> { static type(): string; func(action: AnimationAction, duration: number, fadeOutOtherActions: boolean, warp: boolean, startOnFromActionEnd: boolean): void; } export declare class animationActionFadeOut extends NamedFunction2<[AnimationAction, number]> { static type(): string; func(action: AnimationAction, duration: number): void; } export declare class animationActionCrossFade extends NamedFunction5<[ AnimationAction, GetAnimationAction, number, boolean, boolean ]> { static type(): string; func(actionFrom: AnimationAction, actionToGet: GetAnimationAction, duration: number, warp: boolean, startOnFromActionEnd: boolean): void; } export {};