Usage guidesInteraction

Click to select

Click a node or edge to toggle selection. Click empty canvas to clear it.

Click a node or edge to toggle selection. Click empty canvas to clear it.

Configuration

With multiple enabled, hold the key named by trigger while clicking to add to the selection.

Example

Loading example…
Click a node or edge. Hold Shift to add to the selection.
const behaviors: BehaviorOption[] = [{ type: 'click-select', multiple: true, trigger: 'shift' }];

Options and defaults