Members
(static, non-null) STATE :Object
State definition.
Type:
- Object
- Source:
Methods
attached()
- Source:
detached()
- Source:
preview(imageData) → {CancellablePromise}
Applies a brightness filter to the image.
Parameters:
Name | Type | Description |
---|---|---|
imageData |
ImageData | ImageData representation of the image. |
- Source:
Returns:
A promise that will resolve when the webworker
finishes processing the image.
- Type
- CancellablePromise
process(imageData) → {CancellablePromise}
Applies a brightness filter to the image.
Parameters:
Name | Type | Description |
---|---|---|
imageData |
ImageData | ImageData representation of the image. |
- Source:
Returns:
A promise that will resolve when the webworker
finishes processing the image.
- Type
- CancellablePromise
requestPreview()
Notifies the editor that this component wants to generate
a different preview version of the current image. It debounces
the calls
- Source:
spawnWorker_(message) → {CancellablePromise}
Spawns the a webworker to do the image processing in a different thread.
Parameters:
Name | Type | Description |
---|---|---|
message |
Object | An object with the image and brightness value. |
- Source:
Returns:
A promise that will resolve when the webworker
finishes processing the image.
- Type
- CancellablePromise