Usage guidesInteraction

Drag canvas

Drag empty space to pan the graph.

Drag empty space to pan the graph.

Configuration

With ignoreModifierKeys: true, holding Shift, Ctrl, or Meta leaves the drag gesture available for brush or lasso selection.

Example

Loading example…
Drag empty canvas space with the left mouse button.
const behaviors: BehaviorOption[] = [{ type: 'drag-canvas', ignoreModifierKeys: true }];

Options and defaults