Class: LoadableComponent

LoadableComponent(reporter, settings)

Component without dependencies that needs data be loaded from somewhere

Constructor

new LoadableComponent(reporter, settings)

Parameters:
Name Type Description
reporter Reporter
settings Object
Properties
Name Type Attributes Description
id UUID <optional>
name string <optional>
source QualitySourceMap Either one URL, or three (one for every quality setting)
sizeBytes number <optional>
Source:

Members

source :QualitySourceMap

Type:
Source:

Methods

(async, protected) _load(base, quality) → {Promise.<any>}

Parameters:
Name Type Description
base LoadingBase
quality LoadingQuality
Source:
Returns:
Type
Promise.<any>

(async) load(base, qualityopt) → {Promise.<LoadableComponent>}

This method is not meant to be called directly. Instead it is meant to be called by the ComponentLoader, which will respond to its error state changes, in case anything fails.
Parameters:
Name Type Attributes Default Description
base LoadingBase
quality LoadingQuality <optional>
'medium'
Source:
Returns:
Type
Promise.<LoadableComponent>