SelectionRect
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
| Name | Type | Default |
|---|---|---|
width | number | |
height | number | |
x | number | |
y | number | |
startX | number | |
startY | number |