Constructor
new LoadController(defaultCharacterSet)
Name | Type | Description |
---|---|---|
defaultCharacterSet | string | The default character set. |
- Source
Classes
Methods
abort(dataId)
Abort an individual current loader.
Name | Type | Description |
---|---|---|
dataId | string | The data to stop loading. |
- Source
getLoadingDataIds() → {Array.<string>}
Get the currently loaded data ids.
- Source
The data ids.
- Type:
- Array.<string>
loadFiles(files, dataId)
Load a list of files. Can be image files or a state file.
Name | Type | Description |
---|---|---|
files | Array.<File> | The list of files to load. |
dataId | string | The data Id. |
- Source
loadImageObject(data, dataId)
Load a list of ArrayBuffers.
Name | Type | Description |
---|---|---|
data | Array | The list of ArrayBuffers to load in the form of [{name: '', filename: '', data: data}]. |
dataId | string | The data Id. |
- Source
loadURLs(urls, dataId, optionsopt)
Load a list of URLs. Can be image files or a state file.
Name | Type | Attributes | Description |
---|---|---|---|
urls | Array.<string> | The list of urls to load. | |
dataId | string | The data Id. | |
options | object | <optional> | The load options:
|
- Source
onabort(_event)
Handle an abort event. Default does nothing.
Name | Type | Description |
---|---|---|
_event | object | The abort event. |
onerror(_event)
Handle an error event. Default does nothing.
Name | Type | Description |
---|---|---|
_event | object | The error event. |
onload(_event)
Handle a load event. Default does nothing.
Name | Type | Description |
---|---|---|
_event | object | The load event fired when a file has been loaded successfully. |
onloadend(_event)
Handle a load end event. Default does nothing.
Name | Type | Description |
---|---|---|
_event | object | The load end event fired when a file load has completed, successfully or not. |
onloaditem(_event)
Handle a load item event. Default does nothing.
Name | Type | Description |
---|---|---|
_event | object | The load event fired when an item has been loaded successfully. |
onloadstart(_event)
Handle a load start event. Default does nothing.
Name | Type | Description |
---|---|---|
_event | object | The load start event. |
onprogress(_event)
Handle a load progress event. Default does nothing.
Name | Type | Description |
---|---|---|
_event | object | The progress event. |