# ImageEditorBoxAnnotation (@salmonui/editors/image-editor)

> The ImageEditorBoxAnnotation interface of @salmonui/editors/image-editor.

Canonical: https://salmonui.dev/docs/reference/editors/image-editor/ImageEditorBoxAnnotation

```ts
import type { ImageEditorBoxAnnotation } from '@salmonui/editors/image-editor';
```

Entry index: https://salmonui.dev/docs/reference/editors/image-editor (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/editors/image-editor.md).

## Reference

Kind: interface

```ts
interface ImageEditorBoxAnnotation extends AnnotationCommon, ImageEditorShapeStyle {
    readonly kind: 'rectangle' | 'ellipse';
    readonly x: number;
    readonly y: number;
    readonly width: number;
    readonly height: number;
    readonly radius?: number | undefined;
}
```

Members (12):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `kind` | `readonly kind: 'rectangle' \| 'ellipse';` |  |  |
| `x` | `readonly x: number;` |  |  |
| `y` | `readonly y: number;` |  |  |
| `width` | `readonly width: number;` |  |  |
| `height` | `readonly height: number;` |  |  |
| `radius` | `readonly radius?: number \| undefined;` | optional | Corner radius of a rectangle. |
| `id` | `id: string;` | inherited | Stable id; selection, history and callbacks use it. |
| `rotation` | `rotation?: number;` | optional, inherited | Clockwise degrees around the annotation's center. Default 0. |
| `opacity` | `opacity?: number;` | optional, inherited | 0 to 1. Default 1. |
| `stroke` | `stroke?: string;` | optional, inherited | CSS color; `'transparent'` or omitted draws no stroke for filled shapes. Default `'#e5484d'`. |
| `fill` | `fill?: string;` | optional, inherited | CSS color; omitted draws no fill. |
| `strokeWidth` | `strokeWidth?: number;` | optional, inherited | Default 4. |
