LoadController
Source: loadController.js:24
Load controller.
Constructor
new LoadController(defaultCharacterSet: string): LoadControllerParameters
defaultCharacterSet(string) — The default character set.
Instance Methods
loadFiles(files: Array.<File>, dataId: string)
Load a list of image files.
Parameters
files(Array.<File>) — The list of files to load.dataId(string) — The data Id.
loadURLs(urls: Array.<string>, dataId: string, options?: object)
Load a list of image URLs.
Parameters
urls(Array.<string>) — The list of urls to load.dataId(string) — The data Id.options(object, optional) — The load options:
loadImageObject(data: Array, dataId: string)
Load a list of ArrayBuffers.
Parameters
data(Array) — The list of ArrayBuffers to load in the form of [{name: '', filename: '', data: data}].dataId(string) — The data Id.
getLoadingDataIds(): Array.<string>
Get the currently loaded data ids.
Returns
Array.<string>— The data ids.
abort(dataId: string)
Abort an individual current loader.
Parameters
dataId(string) — The data to stop loading.