UNPKG

threepipe

Version:

A 3D viewer framework built on top of three.js in TypeScript with a focus on quality rendering, modularity and extensibility.

33 lines 1.48 kB
import { Importer } from '../../assetmanager'; import { BufferGeometry, Mesh } from 'three'; import { AnyOptions } from 'ts-browser-helpers'; import { BaseImporterPlugin } from '../base/BaseImporterPlugin'; /** * Adds support for loading `.stl`, `model/stl` files and data uris. * @category Plugins */ export declare class STLLoadPlugin extends BaseImporterPlugin { static readonly PluginType = "STLLoadPlugin"; protected _importer: Importer<{ transform(res: BufferGeometry, _: AnyOptions): Mesh | undefined; load(url: string, onLoad: (geometry: BufferGeometry) => void, onProgress?: (event: ProgressEvent) => void, onError?: (event: ErrorEvent) => void): void; loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<BufferGeometry>; parse(data: ArrayBuffer | string): BufferGeometry; crossOrigin: string; withCredentials: boolean; path: string; resourcePath: string; manager: import("three").LoadingManager; requestHeader: { [header: string]: string; }; setCrossOrigin(crossOrigin: string): /*elided*/ any; setWithCredentials(value: boolean): /*elided*/ any; setPath(path: string): /*elided*/ any; setResourcePath(resourcePath: string): /*elided*/ any; setRequestHeader(requestHeader: { [header: string]: string; }): /*elided*/ any; }>; } //# sourceMappingURL=STLLoadPlugin.d.ts.map