Skip to main content

Class: GLTFDracoExporter

Asset-Management.GLTFDracoExporter

Hierarchy

Implements

Properties

loader

Optional loader: DRACOLoader2

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFDracoExporter.ts:47

Constructors

constructor

new GLTFDracoExporter(encoderOptions?)

Parameters

NameType
encoderOptions?EncoderOptions

Overrides

GLTFExporter2.constructor

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFDracoExporter.ts:52

Methods

preload

preload(): GLTFDracoExporter

Returns

GLTFDracoExporter

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFDracoExporter.ts:80


parseAsync

parseAsync(obj, __namedParameters): Promise<Blob>

Parameters

NameType
objany
__namedParameters{ compress: boolean } & AnyOptions

Returns

Promise<Blob>

Implementation of

IExportParser.parseAsync

Overrides

GLTFExporter2.parseAsync

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFDracoExporter.ts:100


register

register(callback): GLTFDracoExporter

Parameters

NameType
callback(writer: GLTFWriter & GLTFWriter2) => GLTFExporterPlugin

Returns

GLTFDracoExporter

Inherited from

GLTFExporter2.register

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFExporter2.ts:16


parse

parse(input, onDone, onError, options?): any

Parameters

NameType
inputObject3D<Event> | Object3D<Event>[]
onDone(gltf: ArrayBuffer | { [key: string]: any; }) => void
onError(error: ErrorEvent) => void
optionsGLTFExporter2Options

Returns

any

Inherited from

GLTFExporter2.parse

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFExporter2.ts:32