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