@dusrel/image API
    Preparing search index...

    Interface DusrelCropProps

    interface DusrelCropProps {
        aspect?: string;
        className?: string;
        onCropChange?: (crop: CropRect) => void;
        shape?: "rect" | "circle";
        src: string;
        style?: CSSProperties;
    }
    Index
    aspect?: string

    Aspect lock, e.g. "16/9" or "1.5". Omit for a free crop.

    className?: string
    onCropChange?: (crop: CropRect) => void

    Fires with the crop (natural pixels) on load and after every interaction.

    shape?: "rect" | "circle"

    Crop shape. Default "rect"; "circle" forces a square crop with a round mask.

    src: string

    Image URL (any source, including blob: and data: URLs).

    style?: CSSProperties