linXiv frontend (TS/JS)
    Preparing search index...

    Function pdfSelectionText

    • Scoping core, DOM-free for tests: text of sel only when BOTH ends sit inside a rendered PDF page (same .react-pdf__Page scoping PdfReader uses for highlights) \u2014 a drag that starts in the PDF and ends over the editor would otherwise return mixed PDF+UI text. Returns "" for no/collapsed/out-of-scope selections.

      Parameters

      • sel: Selection | null

      Returns string