Selection
Node and edge selection with single, multi, modifier-key, lasso, and path-based modes.
Import
import { useSelection, GraphCanvas } from 'reagraph';
useSelection Hook
Parameters
| Param | Type | Default | Description |
|---|---|---|---|
ref | RefObject<GraphCanvasRef> | — | Graph ref (required) |
nodes | GraphNode[] | — | Node data |
edges | GraphEdge[] | — | Edge data |
selections | string[] | — | Controlled se |
[Description truncada. Veja o README completo no GitHub.]