Constructor
new MultiProgressHandler(callback)
Parameters:
Name | Type | Description |
---|---|---|
callback | function | The function to pass the global progress to. |
- Source
Classes
Members
onprogress
Handle a load progress. Call the member callback with a global event.
- Source
Methods
getMonoProgressHandler(index, subindex) → {eventFn}
Create a mono progress event handler.
Parameters:
Name | Type | Description |
---|---|---|
index | number | The index of the data. |
subindex | number | The sub-index of the data. |
- Source
Returns:
A progress handler function.
- Type:
- eventFn
getUndefinedMonoProgressHandler(subindex) → {eventFn}
Create a mono progress event handler with an undefined index. Warning: The caller handles the progress index.
Parameters:
Name | Type | Description |
---|---|---|
subindex | number | The sub-index of the data. |
- Source
Returns:
A progress handler function.
- Type:
- eventFn
setNToLoad(n)
Set the number of data to load.
Parameters:
Name | Type | Description |
---|---|---|
n | number | The number of data to load. |
- Source
setNumberOfDimensions(num)
Set the number of dimensions.
Parameters:
Name | Type | Description |
---|---|---|
num | number | The number. |
- Source