API reference: @salmonui/editors/image-editor
ImageEditorImageAnnotationinterface
import type { ImageEditorImageAnnotation } from '@salmonui/editors/image-editor';interface ImageEditorImageAnnotation extends AnnotationCommon {
readonly kind: 'image';
readonly x: number;
readonly y: number;
readonly width: number;
readonly height: number;
readonly src: string;
}
Image annotation.
| Name | Signature | Description |
|---|---|---|
kind | readonly kind: 'image'; | |
x | readonly x: number; | |
y | readonly y: number; | |
width | readonly width: number; | |
height | readonly height: number; | |
src | readonly src: string; | URL or data URL. |
idinherited | id: string; | Stable id; selection, history and callbacks use it. |
rotationoptionalinherited | rotation?: number; | Clockwise degrees around the annotation's center. Default 0. |
opacityoptionalinherited | opacity?: number; | 0 to 1. Default 1. |