Skip to main content

Interface: IAssetImporter

Asset-Management.IAssetImporter

Hierarchy

Implemented by

Properties

loadingManager

loadingManager: any

Defined in

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


processors

processors: ObjectProcessorMap<TAssetTypes>

Defined in

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

Methods

registerFile

registerFile(path, file?): undefined | ILoader

Parameters

NameType
pathstring
file?IFile

Returns

undefined | ILoader

Defined in

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


unregisterFile

unregisterFile(path): void

Parameters

NameType
pathstring

Returns

void

Defined in

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


processImported

processImported(res, options): Promise<ISceneObject<any>[]>

Parameters

NameType
resany
optionsAnyOptions

Returns

Promise<ISceneObject<any>[]>

Defined in

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


importAsset

importAsset(asset?, options?): Promise<ISceneObject<any>[]>

Returns the object or undefined

Parameters

NameType
asset?IAsset
options?AnyOptions

Returns

Promise<ISceneObject<any>[]>

Defined in

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


importSingle

importSingle<T>(asset?, options?): Promise<undefined | T>

Type parameters

Name
T

Parameters

NameType
asset?IAsset
options?AnyOptions

Returns

Promise<undefined | T>

Defined in

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


importFiles

importFiles(files, onProgress?, options?): Promise<undefined | Map<string, ISceneObject<any>[]>>

Parameters

NameType
filesMap<string, IFile>
onProgress?(event: ProgressEvent<EventTarget>) => void
options?AnyOptions & { allowedExtensions?: string[] }

Returns

Promise<undefined | Map<string, ISceneObject<any>[]>>

Defined in

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


importPath

importPath(path, options): Promise<ISceneObject<any>[]>

Parameters

NameType
pathstring
optionsAnyOptions

Returns

Promise<ISceneObject<any>[]>

Defined in

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


addEventListener

addEventListener(type, listener): void

Adds a listener to an event type.

Parameters

NameTypeDescription
typestringThe type of event to listen to.
listener(event: IEvent<string>) => 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
typestringThe type of event to listen to.
listener(event: IEvent<string>) => 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
typestringThe type of the listener that gets removed.
listener(event: IEvent<string>) => 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<string>

Returns

void

Inherited from

IEventDispatcher.dispatchEvent

Defined in

webgi/src/helpers/EventDispatcher.ts:34


dispose

dispose(): void

Returns

void

Inherited from

IDisposable.dispose

Defined in

webgi/src/interfaces.ts:34