OptionalframeOptionalshape?: FrameShapeOptionalwidth?: numberPixels. Default 200.
Optionalheight?: numberPixels. Default 200.
OptionalcornerRadius?: numberCorner radius in pixels. Only used when shape is "rounded-rectangle". Default 20.
OptionalminDefault 1.
OptionalmaxDefault 4.
OptionalrotatableDefault true.
OptionalflippableDefault true.
OptionalresizableAdds drag handles at all four frame corners. Default false.
OptionallockWhen resizableFrame is on, dragging a corner handle preserves the
frame's current aspect ratio (the ratio it had when the drag started)
instead of resizing width/height independently. Default false.
OptionalmovableInverts which element is interactive. By default the image pans/zooms
while the frame stays fixed. When movableFrame is true, the image
is displayed at a fixed size and never pans or zooms — instead,
dragging (or arrow keys) moves the frame around the static image, and
(combine with resizableFrame) its corner handles resize it, clamped
to the image's own bounds. setZoom()/setOffset() become no-ops in
this mode (nothing to pan/zoom); use setFramePosition() instead.
rotate()/flip still work — they transform the whole static image in
place. Default false.
Optionalmouse"ctrl" requires holding Ctrl while scrolling to zoom. Default true.
OptionaluseCorrects rotation + horizontal flip from EXIF data on File/Blob sources. Default true.
OptionalfiltersInitial filter values; see Filters.
OptionaluploaderA custom upload implementation, used by upload() unless overridden per-call.
OptionalautoWhen true (default), the stage sizes itself to the frame's dimensions (plus a small margin) so it looks right with zero CSS. Set false to have the stage fill its container instead (100% width/height) — for embedding in a layout where you want to control the stage's size via your own CSS on the container element.
OptionalshowRenders a built-in zoom slider, kept in sync with wheel/pinch/setZoom() in both directions. Default false.
OptionalzoomerWhere the zoom slider sits relative to the stage. Purely a placement choice — identical behavior in every position. Default "bottom".
Default
"rectangle"."circle"and"rounded-rectangle"are real clips on export, not just a visual overlay.