Skip to Content
React Flow 13 is here! Read the announcement →
ReferenceTypes

SelectionRect

Source on GitHub 

The SelectionRect type describes the selection rectangle a user draws on the pane to select multiple nodes and edges. It extends Rect with the startX and startY position where the user started dragging. You’ll find it in the userSelectionRect field of the React Flow store while a selection is in progress.

type SelectionRect = Rect & { startX: number; startY: number; };

Fields

NameTypeDefault
widthnumber
heightnumber
xnumber
ynumber
startXnumber
startYnumber