web3d / node_modules /three /src /animation /AnimationClip.d.ts
julien-c's picture
julien-c HF staff
do not gitignore the builds
6cd9596
raw
history blame
967 Bytes
import { KeyframeTrack } from './KeyframeTrack';
import { Bone } from './../objects/Bone';
import { MorphTarget } from '../core/Geometry';
export class AnimationClip {
constructor(name?: string, duration?: number, tracks?: KeyframeTrack[]);
name: string;
tracks: KeyframeTrack[];
duration: number;
uuid: string;
results: any[];
resetDuration(): void;
trim(): AnimationClip;
optimize(): AnimationClip;
static CreateFromMorphTargetSequence(
name: string,
morphTargetSequence: MorphTarget[],
fps: number,
noLoop: boolean
): 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;
static toJSON(): any;
}