Constructor
new LoadController(defaultCharacterSet)
Name | Type | Description |
---|---|---|
defaultCharacterSet | string | The default character set. |
- Source
Classes
Methods
abort()
Abort the current loaders.
- Source
loadFiles(files)
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. |
- Source
loadImageObject(data)
Load a list of ArrayBuffers.
Name | Type | Description |
---|---|---|
data | Array | The list of ArrayBuffers to load in the form of [{name: "", filename: "", data: data}]. |
- Source
loadURLs(urls, 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. | |
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. |