Github
Examples
Docs
Crop Example
Allowing the user to select an arbitrary portion of the canvas.
Draw layer(s) to canvas and make them unselectable
Draw an invisible layer to the canvas, and programmatically select it
Listen for the
layer-deselect
event and prevent it so the user can't de-select the crop area.
Use the
cropToLayer
method to get the cropped image behind the selected invisible layer.
Unrotate crop?
Full Canvas
Cropped Region