Members
(static, non-null) STATE :Object
State definition.
Type:
- Object
- Source:
Methods
attached()
- Source:
process(imageData) → {CancellablePromise}
Executes the resize operation to get the final version of the image.
Parameters:
| Name | Type | Description |
|---|---|---|
imageData |
ImageData | ImageData representation of the image. |
- Source:
Returns:
A promise that will resolve with the
resized image data representation.
- Type
- CancellablePromise
resizeImageData_(imageData) → {ImageData}
Resizes a given ImageData to the user selected width and height values.
Parameters:
| Name | Type | Description |
|---|---|---|
imageData |
ImageData | The original ImageData |
- Source:
Returns:
Resized ImageData to the component width and
height user selected values.
- Type
- ImageData
syncDimensions(event)
Keeps the width/height ratio when the lockProportions is set to true.
Parameters:
| Name | Type | Description |
|---|---|---|
event |
InputEvent |
- Source:
toggleLockProportions(event)
Toggles the value of the lockProportions attribute. When enabled, changes
in one of the dimensions will cascade changes to the other in order to keep
the original image ratio.
Parameters:
| Name | Type | Description |
|---|---|---|
event |
MouseEvent |
- Source: