Image markup
A picture to mark over the whole window, in a person's inks, handed back as a new picture and its marks as data.
import { ImageMarkup } from "@arcadia/ui"TSX
A person's inks
- P, A, M, E, T
- Pen, arrow, marker, eraser, words
- Command or Ctrl Z, Shift Z
- Undo, redo
- Enter on the picture
- Words, or an arrow, at its middle
- Arrow keys on a handle
- Move the mark; with Option or Alt, turn an arrow's head
- Delete on a handle
- Remove the mark
- Space and a drag
- Move the picture
- Command or Ctrl Enter
- Done
ImageMarkup
imagerequired- Blob | ImageBitmap
- The picture, as its bytes or already decoded.
widthrequired- number
- Its own size in pixels: the frame of every mark and the size of the PNG.
heightrequired- number
marks- readonly Mark[]
- Marks to go on from.
label- stringDefault "Mark up"
- Its name for assistive technology, in the product's words ("Annotate").
onDonerequired- (result: MarkupResult) => void
- Done: the new picture and its marks.
onCancelrequired- () => void
- Nothing is handed back.