threepipe
Version:
A modern 3D viewer framework built on top of three.js, written in TypeScript, designed to make creating high-quality, modular, and extensible 3D experiences on the web simple and enjoyable.
15 lines • 790 B
TypeScript
import { Loader, LoadingManager, Texture } from 'three';
/**
* Same as TextureLoader but loads SVG images, fixes issues with windows not loading svg files without a defined size.
* See - https://github.com/mrdoob/three.js/issues/30899
*
* todo - create example for test, see sample code in gh issue.
*/
declare class SVGTextureLoader extends Loader<Texture> {
constructor(manager?: LoadingManager);
static USE_CANVAS_TEXTURE: boolean;
load(url: string, onLoad: (texture: Texture) => void, onProgress?: (event: ProgressEvent) => void, onError?: (err: unknown) => void): Texture;
static CopyImageToCanvas(canvas: HTMLCanvasElement, image: HTMLImageElement): void;
}
export { SVGTextureLoader };
//# sourceMappingURL=../../src/assetmanager/import/SVGTextureLoader.d.ts.map