API reference: @salmonui/editors/image-editor
ImageEditorRedactAnnotationinterface
import type { ImageEditorRedactAnnotation } from '@salmonui/editors/image-editor';interface ImageEditorRedactAnnotation extends AnnotationCommon {
readonly kind: 'redact';
readonly x: number;
readonly y: number;
readonly width: number;
readonly height: number;
readonly mode?: 'blur' | 'pixelate' | undefined;
readonly strength?: number | undefined;
}
Redaction: burned into the pixels below it on render and export.
| Name | Signature | Description |
|---|---|---|
kind | readonly kind: 'redact'; | |
x | readonly x: number; | |
y | readonly y: number; | |
width | readonly width: number; | |
height | readonly height: number; | |
modeoptional | readonly mode?: 'blur' | 'pixelate' | undefined; | Default |
strengthoptional | readonly strength?: number | undefined; | Blur radius or pixel block size in oriented-image pixels. Default 12. |
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. |