Members
(static, non-null) STATE :Object
State definition.
Type:
- Object
- Source:
Methods
attached()
- Source:
detached()
- Source:
preview(imageData) → {Promise}
Rotates the image to the current selected rotation angle.
Parameters:
Name | Type | Description |
---|---|---|
imageData |
ImageData | The image data representation of the image. |
- Source:
Returns:
A promise that resolves when processing is
complete.
- Type
- Promise
process(imageData) → {Promise}
Rotates the image to the current selected rotation angle.
Parameters:
Name | Type | Description |
---|---|---|
imageData |
ImageData | The image data representation of the image. |
- Source:
Returns:
A promise that resolves when processing is
complete.
- Type
- Promise
(protected) rotate_(imageData, rotationAngle) → {Promise}
Rotates the passed image data to the current rotation angle.
Parameters:
Name | Type | Description |
---|---|---|
imageData |
ImageData | The image data to rotate. |
rotationAngle |
number | The normalized rotation angle (in degrees) in the range [0-360). |
- Source:
Returns:
A promise that resolves when the image is
rotated.
- Type
- Promise
rotateLeft()
Rotates the image 90º counter-clockwise.
- Source:
rotateRight()
Rotates the image 90º clockwise.
- Source: