View as Markdown

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.

ImageEditorRedactAnnotation members (10, 3 inherited)
NameSignatureDescription
kindreadonly kind: 'redact';
xreadonly x: number;
yreadonly y: number;
widthreadonly width: number;
heightreadonly height: number;
modeoptionalreadonly mode?: 'blur' | 'pixelate' | undefined;

Default 'blur'.

strengthoptionalreadonly strength?: number | undefined;

Blur radius or pixel block size in oriented-image pixels. Default 12.

idinheritedid: string;

Stable id; selection, history and callbacks use it.

rotationoptionalinheritedrotation?: number;

Clockwise degrees around the annotation's center. Default 0.

opacityoptionalinheritedopacity?: number;

0 to 1. Default 1.