@dusrel/image API
    Preparing search index...

    Interface CropConstraints

    @dusrel/image-crop

    Interactive cropping for the @dusrel/image family, split the way the whole family is split: a pure geometry core (this entry — clamping, aspect locks, handle maths, display/natural mapping, all unit-tested) and an accessible Web Component in the './element' entry that renders it. The component returns geometry only; @dusrel/image-core applies it.

    interface CropConstraints {
        aspect?: number;
        minHeight?: number;
        minWidth?: number;
        shape?: CropShape;
    }
    Index
    aspect?: number

    Width / height ratio lock. Ignored when shape is 'circle' (always 1).

    minHeight?: number
    minWidth?: number
    shape?: CropShape