See below to learn more about properties, slots, events, style variables, CSS parts, and methods.
A number between 0 and 1. Specifies the automatic cropping area size.
Specifies the initial aspect ratio of the viewport.
Shows the grid background of the container.
Disables the element functionality.
Shows the dashed lines above the viewport.
Shows the center indicator above the viewport.
Specifies the mode.
Enables to resize the viewport by dragging (Works when the value of the mode property is crop).
Specifies the shape of the resizer.
Re-renders when resizing the window.
Specifies the shape of the viewport.
Specifies the image's src.
Hides the black modal above the image and under the viewport.
Specifies the view.
Enables to zoom the image.
Specifies zoom ratio when zooming the image by wheeling the mouse.
Overrides default configuration for specific breakpoints. See Overrides for details.
There are no Slots.
Fires when the image or the viewport is changed.
Fires when the image or the viewport changes are finished.
Fires when the image or the viewport is changing.
Fires when the image or the viewport starts to change.
Fires when the image has been loaded and the element is ready for operation.
Fires when the element starts to zoom in or zoom out.
Used to adjust the backdrop color.
Used to adjust the backdrop opacity.
Used to adjust the guides color.
Used to adjust the guides opacity.
Used to adjust the guides style.
Used to adjust the guides weight.
Used to adjust the indicator color.
Used to adjust the indicator opacity.
Used to adjust the indicator size.
Used to adjust the indicator weight.
Used to adjust the resizer color.
Used to adjust the resizer offset.
Used to adjust the resizer opacity.
Used to adjust the resizer size.
Used to adjust the resizer weight.
Used to adjust the viewport color.
Used to adjust the viewport opacity.
Used to adjust the viewport style.
Used to adjust the viewport weight.
There are no CSS Parts.
Flips horizontally.
Flips vertically.
Moves the canvas with relative offsets.
Moves the canvas to an absolute point.
Resets the image and viewport to their initial states.
Rotates the image with a relative degree.
Rotates the image to an absolute degree.
Gets canvas from the cropped image.
Zooms the canvas with a relative ratio.
Zooms the canvas to an absolute ratio.