papi-dts
    Preparing search index...
    • Checks whether a document-relative position is currently within the visible viewport. Used to detect when a popover anchor has scrolled out of view.

      Parameters

      • position: { x: number; y: number }

        The document-relative position to check

      • Optionalmargin: number

        Extra margin outside the viewport to tolerate (default 50px)

      Returns boolean

      True if the position is within the viewport (plus margin)