View as Markdown

API reference: @salmonui/editors/image-editor

ImageEditorFrameinterface

import type { ImageEditorFrame } from '@salmonui/editors/image-editor';
interface ImageEditorFrame {
    readonly type: ImageEditorFrameType;
    readonly color?: string | undefined;
    readonly gradientColor?: string | undefined;
    readonly size?: number | undefined;
    readonly inset?: number | undefined;
    readonly radius?: number | undefined;
}

A frame drawn over the output edges.

ImageEditorFrame members (6)
NameSignatureDescription
typereadonly type: ImageEditorFrameType;
coloroptionalreadonly color?: string | undefined;

Default '#ffffff'.

gradientColoroptionalreadonly gradientColor?: string | undefined;

A second color: the frame fills with a linear gradient from color to it.

sizeoptionalreadonly size?: number | undefined;

Band or line width in output pixels. Default 5 % of the shorter side.

insetoptionalreadonly inset?: number | undefined;

Distance of the line, inset and hook strokes from the edge. Default size.

radiusoptionalreadonly radius?: number | undefined;

Corner radius of the opening (mat, bevel, inset) or of the line. Default 0.