UNPKG

@polygonjs/polygonjs

Version:

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

12 lines (11 loc) 457 B
import { Loader, LoadingManager } from 'three'; import { Font, FontData } from './Font'; type OnLoad = (font: Font) => void; type OnProgress = (event: ProgressEvent<EventTarget>) => void; type OnError = (error: any) => void; export declare class FontLoader extends Loader<Font> { constructor(manager: LoadingManager); load(url: string, onLoad: OnLoad, onProgress?: OnProgress, onError?: OnError): void; parse(json: FontData): Font; } export {};