three-stdlib
Version:
stand-alone library of threejs examples
20 lines (16 loc) • 523 B
TypeScript
import { Loader, AnimationClip, BufferAttribute, LoadingManager } from 'three'
export interface MDD {
morphTargets: BufferAttribute[]
clip: AnimationClip
}
export class MDDLoader extends Loader {
constructor(manager?: LoadingManager)
load(
url: string,
onLoad: (result: MDD) => void,
onProgress?: (event: ProgressEvent) => void,
onError?: (event: ErrorEvent) => void,
): void
loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<MDD>
parse(data: ArrayBuffer): MDD
}