Skip to main content
The camera is represented by a Viewport:

Control

Range

The default range is 0.1 to 8. Customize via props:

Interaction

Users can pan via:
  • Hand tool
  • Two-finger drag (trackpad/touch)
  • Space + drag
Fast pans include deceleration momentum (slide).

Coordinates

Convert between screen (pixel) and page (canvas) space:

Listeners