pdfrx_web
    Preparing search index...

    Variable PdfRect

    PdfRect: {
        containsPoint: (r: PdfRect, x: number, y: number) => boolean;
        height: (r: PdfRect) => number;
        isEmpty: (r: PdfRect) => boolean;
        width: (r: PdfRect) => number;
    }

    Helper functions for PdfRect values (the coordinate system is y-up).

    Type Declaration

    • ReadonlycontainsPoint: (r: PdfRect, x: number, y: number) => boolean

      True if (x, y) (page coordinates) lies within the rect, edges inclusive.

    • Readonlyheight: (r: PdfRect) => number

      Height of the rect (top - bottom, since the y-axis points up).

    • ReadonlyisEmpty: (r: PdfRect) => boolean

      True if the rect has non-positive width or height.

    • Readonlywidth: (r: PdfRect) => number

      Width of the rect (right - left).