new LoadController(defaultCharacterSet)
Load controller.
Name | Type | Description |
---|---|---|
defaultCharacterSet | string | The default character set. |
- Source
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 | 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, options)
Load a list of URLs. Can be image files or a state file.
Name | Type | Description |
---|---|---|
urls | Array | The list of urls to load. |
options | object | 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. |
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. |
(inner) augmentCallbackEvent(callback, info) → {object}
Augment a callback event: adds loadtype to the event passed to a callback.
Name | Type | Description |
---|---|---|
callback | object | The callback to update. |
info | object | Info object to append to the event. |
A function representing the modified callback.
- Type:
- object
(inner) getNextLoadId() → {number}
Get the next load id.
- Source
The next id.
- Type:
- number