Skip to main content

Class: AssetExporter

Asset-Management.AssetExporter

Hierarchy​

  • SimpleEventDispatcher<"exporterCreate" | "exportFile">

    ↳ AssetExporter

Implements​

Accessors​

processors​

• get processors(): ObjectProcessorMap<TAssetTypes>

Returns​

ObjectProcessorMap<TAssetTypes>

Implementation of​

IAssetExporter.processors

Properties​

Exporters​

• Readonly Exporters: IExporter[]

Implementation of​

IAssetExporter.Exporters

Methods​

getExporter​

▸ getExporter(...ext): undefined | IExporter

Parameters​

NameType
...extstring[]

Returns​

undefined | IExporter

Implementation of​

IAssetExporter.getExporter


exportObject​

▸ exportObject(obj?, options?): Promise<undefined | BlobExt>

Parameters​

NameType
obj?ISceneObject<any> | IRenderTarget
optionsExportFileOptions

Returns​

Promise<undefined | BlobExt>

Implementation of​

IAssetExporter.exportObject


processBeforeExport​

▸ processBeforeExport(obj, options?): Promise<undefined | { obj: any ; ext: string ; typeExt?: string }>

Parameters​

NameType
objISceneObject<any> | IRenderTarget
optionsAnyOptions

Returns​

Promise<undefined | { obj: any ; ext: string ; typeExt?: string }>


dispose​

▸ dispose(): void

Returns​

void

Constructors​

constructor​

• new AssetExporter(viewer, options?)

Parameters​

NameType
viewerViewerApp
optionsAnyOptions

Overrides​

SimpleEventDispatcher<'exporterCreate' | 'exportFile'\>.constructor