Skip to main content

Class: SimpleDataSource

Core-API.SimpleDataSource

Hierarchy

Implements

Constructors

constructor

new SimpleDataSource(...assets)

Parameters

NameType
...assetsSimpleAssetList[]

Overrides

SimpleEventDispatcher.constructor

Defined in

webgi/src/extras/asset_manager/importer/DataSource.ts:7

Methods

addAssetList

addAssetList(list): void

Parameters

NameType
listSimpleAssetList

Returns

void

Implementation of

IDataSource.addAssetList

Defined in

webgi/src/extras/asset_manager/importer/DataSource.ts:13


removeAssetList

removeAssetList(list): void

Parameters

NameType
listSimpleAssetList

Returns

void

Implementation of

IDataSource.removeAssetList

Defined in

webgi/src/extras/asset_manager/importer/DataSource.ts:17


findAssetRegex

findAssetRegex(query): Promise<undefined | IAsset>

Parameters

NameType
queryRegExp

Returns

Promise<undefined | IAsset>

Implementation of

IDataSource.findAssetRegex

Defined in

webgi/src/extras/asset_manager/importer/DataSource.ts:23


findAsset

findAsset(query): Promise<undefined | IAsset>

Parameters

NameType
queryIAssetSearchQuery

Returns

Promise<undefined | IAsset>

Implementation of

IDataSource.findAsset

Defined in

webgi/src/extras/asset_manager/importer/DataSource.ts:32


findAssetSimple

findAssetSimple(match, ignoreCase?): Promise<undefined | IAsset>

Parameters

NameTypeDefault value
matchstringundefined
ignoreCasebooleanfalse

Returns

Promise<undefined | IAsset>

Implementation of

IDataSource.findAssetSimple

Defined in

webgi/src/extras/asset_manager/importer/DataSource.ts:36


addEventListener

addEventListener(type, listener): void

Adds a listener to an event type.

Parameters

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

Returns

void

Implementation of

IDataSource.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""
listener(event: IEvent<"">) => void

Returns

boolean

Implementation of

IDataSource.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""
listener(event: IEvent<"">) => void

Returns

void

Implementation of

IDataSource.removeEventListener

Inherited from

SimpleEventDispatcher.removeEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:63


dispatchEvent

dispatchEvent(event): void

Fire an event type.

Parameters

NameType
eventIEvent<"">

Returns

void

Implementation of

IDataSource.dispatchEvent

Inherited from

SimpleEventDispatcher.dispatchEvent

Defined in

webgi/src/helpers/EventDispatcher.ts:74