Skip to main content

Interface: IAssetExporter

Core-API.IAssetExporter

Hierarchy

Implemented by

Methods

getExporter

getExporter(...ext): undefined | IExporter

Parameters

NameType
...extstring[]

Returns

undefined | IExporter

Defined in

webgi/src/extras/asset_manager/AssetManager.ts:58


exportObject

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

Parameters

NameType
obj?ISceneObject<any>
options?ExportFileOptions

Returns

Promise<undefined | BlobExt>

Defined in

webgi/src/extras/asset_manager/AssetManager.ts:59


addEventListener

addEventListener(type, listener): void

Adds a listener to an event type.

Parameters

NameTypeDescription
type"exportFile" | "exporterCreate"The type of event to listen to.
listener(event: IEvent<"exportFile" | "exporterCreate">) => voidThe function that gets called when the event is fired.

Returns

void

Inherited from

IEventDispatcher.addEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:14


hasEventListener

hasEventListener(type, listener): boolean

Checks if listener is added to an event type.

Parameters

NameTypeDescription
type"exportFile" | "exporterCreate"The type of event to listen to.
listener(event: IEvent<"exportFile" | "exporterCreate">) => voidThe function that gets called when the event is fired.

Returns

boolean

Inherited from

IEventDispatcher.hasEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:21


removeEventListener

removeEventListener(type, listener): void

Removes a listener from an event type.

Parameters

NameTypeDescription
type"exportFile" | "exporterCreate"The type of the listener that gets removed.
listener(event: IEvent<"exportFile" | "exporterCreate">) => voidThe listener function that gets removed.

Returns

void

Inherited from

IEventDispatcher.removeEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:28


dispatchEvent

dispatchEvent(event): void

Fire an event type.

Parameters

NameType
eventIEvent<"exportFile" | "exporterCreate">

Returns

void

Inherited from

IEventDispatcher.dispatchEvent

Defined in

webgi/src/helpers/EventDispatcher.ts:34

Properties

processors

processors: ObjectProcessorMap<TAssetTypes>

Defined in

webgi/src/extras/asset_manager/AssetManager.ts:60