Skip to main content

Class: AssetExporter

Asset-Management.AssetExporter

Hierarchy

Implements

Properties

Exporters

Static Readonly Exporters: IExporter[]

Defined in

webgi/src/extras/asset_manager/exporter/threejs/AssetExporter.ts:31

Accessors

processors

get processors(): ObjectProcessorMap<TAssetTypes>

Returns

ObjectProcessorMap<TAssetTypes>

Implementation of

IAssetExporter.processors

Defined in

webgi/src/extras/asset_manager/exporter/threejs/AssetExporter.ts:17

Methods

getExporter

getExporter(...ext): undefined | IExporter

Parameters

NameType
...extstring[]

Returns

undefined | IExporter

Implementation of

IAssetExporter.getExporter

Defined in

webgi/src/extras/asset_manager/exporter/threejs/AssetExporter.ts:37


exportObject

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

Parameters

NameType
obj?ISceneObject<any>
optionsExportFileOptions

Returns

Promise<undefined | BlobExt>

Implementation of

IAssetExporter.exportObject

Defined in

webgi/src/extras/asset_manager/exporter/threejs/AssetExporter.ts:72


processBeforeExport

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

Parameters

NameType
objISceneObject<any>
optionsAnyOptions

Returns

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

Defined in

webgi/src/extras/asset_manager/exporter/threejs/AssetExporter.ts:133


dispose

dispose(): void

Returns

void

Defined in

webgi/src/extras/asset_manager/exporter/threejs/AssetExporter.ts:158


addEventListener

addEventListener(type, listener): void

Adds a listener to an event type.

Parameters

NameType
type"exportFile" | "exporterCreate"
listener(event: IEvent<"exportFile" | "exporterCreate">) => void

Returns

void

Implementation of

IAssetExporter.addEventListener

Inherited from

SimpleEventDispatcher.addEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:48


hasEventListener

hasEventListener(type, listener): boolean

Checks if listener is added to an event type.

Parameters

NameType
type"exportFile" | "exporterCreate"
listener(event: IEvent<"exportFile" | "exporterCreate">) => void

Returns

boolean

Implementation of

IAssetExporter.hasEventListener

Inherited from

SimpleEventDispatcher.hasEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:56


removeEventListener

removeEventListener(type, listener): void

Removes a listener from an event type.

Parameters

NameType
type"exportFile" | "exporterCreate"
listener(event: IEvent<"exportFile" | "exporterCreate">) => void

Returns

void

Implementation of

IAssetExporter.removeEventListener

Inherited from

SimpleEventDispatcher.removeEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:63


dispatchEvent

dispatchEvent(event): void

Fire an event type.

Parameters

NameType
eventIEvent<"exportFile" | "exporterCreate">

Returns

void

Implementation of

IAssetExporter.dispatchEvent

Inherited from

SimpleEventDispatcher.dispatchEvent

Defined in

webgi/src/helpers/EventDispatcher.ts:74

Constructors

constructor

new AssetExporter(viewer, options?)

Parameters

NameType
viewerIViewerApp
optionsAnyOptions

Overrides

SimpleEventDispatcher.constructor

Defined in

webgi/src/extras/asset_manager/exporter/threejs/AssetExporter.ts:41