UNPKG

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.

30 lines 1.4 kB
import { IViewerPluginSync } from '../../viewer'; import { SimpleEventDispatcher } from 'ts-browser-helpers'; /** * Loads the MeshOpt Decoder module from [meshoptimizer](https://github.com/zeux/meshoptimizer) library at runtime from a customisable cdn url. * The loaded module is set in window.MeshoptDecoder and then used by {@link GLTFLoader2} to decode files using [EXT_meshopt_compression](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Vendor/EXT_meshopt_compression/README.md) extension * * The plugin name includes GLTF, but its not really GLTF specific, it can be used to decode any meshopt compressed files. */ export declare class GLTFMeshOptDecodePlugin extends SimpleEventDispatcher<'initialized'> implements IViewerPluginSync { readonly rootNode: HTMLHeadElement; ['constructor']: typeof GLTFMeshOptDecodePlugin; static readonly PluginType = "GLTFMeshOptDecodePlugin"; enabled: boolean; toJSON: any; constructor(initialize?: boolean, rootNode?: HTMLHeadElement); get initialized(): boolean; static DECODER_URL: string; protected _script?: HTMLScriptElement; protected _initializing?: Promise<void>; initialize(): Promise<void>; dispose(): void; onAdded(): void; onRemove(): void; } declare global { interface Window { MeshoptDecoder?: any; } } //# sourceMappingURL=GLTFMeshOptDecodePlugin.d.ts.map