Class: RotateComponent

RotateComponent()

Rotate Component

Constructor

new RotateComponent()

Source:

Members

(static, non-null) STATE :Object

State definition.
Type:
  • Object
Source:

Methods

attached()

Source:

detached()

Source:

preview(imageData) → {CancellablePromise}

Rotates the image to the current selected rotation angle.
Parameters:
Name Type Description
imageData ImageData ImageData representation of the image.
Source:
Returns:
A promise that will resolve when the processing is complete.
Type
CancellablePromise

process(imageData) → {CancellablePromise}

Rotates the image to the current selected rotation angle.
Parameters:
Name Type Description
imageData ImageData ImageData representation of the image.
Source:
Returns:
A promise that will resolve when the processing is complete.
Type
CancellablePromise

(protected) rotate_(imageData, rotationAngle) → {CancellablePromise}

Rotates the passed ImageData to the current rotation angle.
Parameters:
Name Type Description
imageData ImageData The ImageData to rotate
rotationAngle number Normalized rotation angle in degrees in the range [0-360)
Source:
Returns:
A promise to be fullfilled when the image has been rotated.
Type
CancellablePromise

rotateLeft()

Rotates the image 90º counter-clockwise.
Source:

rotateRight()

Rotates the image 90º clockwise.
Source: