View as Markdown

API reference: @salmonui/editors/image-editor

ImageEditorCropRatiotype

import type { ImageEditorCropRatio } from '@salmonui/editors/image-editor';
type ImageEditorCropRatio = 'free' | 'square' | 'circle' | '3:2' | '4:3' | '16:9' | {
    readonly label: string;
    readonly ratio: number;
};

Crop ratio presets. A number is width / height.