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.
Scoping core, DOM-free for tests: text of
selonly when BOTH ends sit inside a rendered PDF page (same.react-pdf__Pagescoping 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.