View as Markdown

API reference: @salmonui/editors/image-editor

ImageEditorEventinterface

import type { ImageEditorEvent } from '@salmonui/editors/image-editor';
interface ImageEditorEvent<T> {
    readonly operation: ImageEditorOperation;
    readonly previous: T;
    readonly value: T;
    readonly source: ImageEditorInputSource;
    readonly action?: 'add' | 'update' | 'delete' | 'clone' | 'reorder' | undefined;
}

After-callback payload: the value before and after the operation.

ImageEditorEvent members (5)
NameSignatureDescription
operationreadonly operation: ImageEditorOperation;
previousreadonly previous: T;
valuereadonly value: T;
sourcereadonly source: ImageEditorInputSource;
actionoptionalreadonly action?: 'add' | 'update' | 'delete' | 'clone' | 'reorder' | undefined;

Annotation operations: what happened.