three-stdlib
Version:
stand-alone library of threejs examples
16 lines (12 loc) • 451 B
TypeScript
import { Loader, CanvasTexture, LoadingManager } from 'three'
export class LottieLoader extends Loader {
constructor(manager?: LoadingManager)
load(
url: string,
onLoad: (texture: CanvasTexture) => void,
onProgress?: (event: ProgressEvent) => void,
onError?: (event: ErrorEvent) => void,
): void
loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<CanvasTexture>
setQuality(value: number): void
}