Skip to content

currentSelectionRect

function currentSelectionRect(): DOMRect | null;

Defined in: react/src/comments.tsx:41

Bounding rect of the current (non-collapsed) DOM selection, in viewport coords.

DOMRect | null