rullino
    Preparing search index...

    Interface Geometry

    interface Geometry {
        crop: { height: number; width: number; x: number; y: number };
        flipH: boolean;
        flipV: boolean;
        perspective?: readonly [Vec2, Vec2, Vec2, Vec2];
        rotate: 0 | 90 | 180 | 270;
        straighten: number;
    }
    Index
    crop: { height: number; width: number; x: number; y: number }

    The kept rectangle, normalised to the oriented frame.

    flipH: boolean

    Mirror the oriented image left-right / top-bottom.

    flipV: boolean
    perspective?: readonly [Vec2, Vec2, Vec2, Vec2]

    Four points (top-left, top-right, bottom-right, bottom-left), normalised to the oriented image, that become the corners of the frame: keystone / perspective correction.

    rotate: 0 | 90 | 180 | 270

    Quarter turns, clockwise. Applied first, with the flips: together they are the orientation.

    straighten: number

    Degrees in [-45, 45]; positive turns the content clockwise about the centre.