Skip to Content
Vue Flow v2 is here and joins xyflow! Read more here →
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 Vue Flow store while a selection is in progress.

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

Fields

NameTypeDefault
widthnumber
heightnumber
xnumber
ynumber
startXnumber
startYnumber