View as Markdown

API reference: @salmonui/editors/image-editor

ImageEditorShapeStyleinterface

import type { ImageEditorShapeStyle } from '@salmonui/editors/image-editor';
interface ImageEditorShapeStyle {
    readonly stroke?: string | undefined;
    readonly fill?: string | undefined;
    readonly strokeWidth?: number | undefined;
}

Stroke and fill of the shape kinds.

ImageEditorShapeStyle members (3)
NameSignatureDescription
strokeoptionalreadonly stroke?: string | undefined;

CSS color; 'transparent' or omitted draws no stroke for filled shapes. Default '#e5484d'.

filloptionalreadonly fill?: string | undefined;

CSS color; omitted draws no fill.

strokeWidthoptionalreadonly strokeWidth?: number | undefined;

Default 4.