Canvas-based image annotation editor with arrow, rectangle, ellipse, freehand, and text tools
Draw arrows, rectangles, ellipses, freehand strokes, and text on any image. Uses an external image URL — cross-origin images require CORS headers.
| Prop | Type | Default | Description |
|---|---|---|---|
imageUrl | string | — | Image to annotate (CORS-friendly) |
initialShapes | MarkupShape[] | [] | Pre-existing shapes to load |
onsave | (shapes: MarkupShape[]) => void | — | Save callback with all shapes |
oncancel | () => void | — | Cancel / close callback |