Pages
Ui.ImageCrop
A simple image cropping component.
States
The status.
Properties
Whether or not to embed the panel (removes border and padding).
The change
event handler.
The size of the component.
{
source = "",
height = 0.5,
width = 0.5,
x = 0.25,
y = 0.25
}
The value (crop data).
Functions
calculateAxis
(
direction
:
Ui.ImageCrop.Direction
startPosition
:
Number
startSize
:
Number
distance
:
Number
)
Calculates the next position and size based on a direction for an axis.
Handles the keydown event.
Handles the move event.
Renders the component.
Starts the drag.
Handles the up event.