Composable Primitives

Precise camera and viewport control

Composable Primitives

Precise camera and viewport control

Composable Primitives

Precise camera and viewport control

Navigate the canvas smoothly with zoom and flexible viewport positioning.

Smart zoom

Add intuitive zooming that steps smoothly in and out, always landing at the right level of detail with content-aware calculations.

Camera constraints

Set flexible camera boundaries tailored to your app’s needs, from free-flow movement to contained views, or more fine-tuned solutions.

Optimized smooth animations

Customize fluid transitions to match your brand and adapt to your users’ needs, optimized across all devices with built-in viewport culling and level-of-detail scaling.

Viewport following

Build real-time camera synchronization so your users stay in sync. Perfect for presentation modes, guided tours, or restricted editing workflows.

Own the viewport

Add precise zoom, pan, and navigation to your canvas in minutes, not weeks.

Solid engineering

Our team spent years to get all the details right, so you don’t have to.

Screen and page space translation

Our camera system maintains dual coordinate system with precise translation between the screen space and page space. Regardless of zoom level, it creates accurate hit testing and shape positioning. Screen space handles UI positioning and input events relative to the browser viewport, while page space manages canvas content with precision.

Intelligent zoom management

The zoom system operates on step-based architecture rather than continuous scaling. Our base zoom calculations automatically determine optimal zoom levels based on content bounds. This prevents jarring zoom jumps and maintains visual coherence. Even when zoom levels are customized, they will still feel natural and predictable to users.

Performance-optimized rendering pipeline

The camera system relies on tldraw’s rendering pipeline to maintain smooth performance during movements and zoom operations. It optimizes rendering by culling shapes outside the viewport, scaling level of detail based on zoom, synchronizing updates with the browser’s refresh cycles, and using memory-efficient viewport tracking to minimize computational overhead. All of this ensures smooth interactions across all users, tabs, and devices.

Starter kits

Production ready starter kit to build a workflow canvas. Building something different?

Workflow starter kit

Build visual tools where users drag, connect and execute nodes to build automation pipelines within a canvas interface. Set up your first workflow builder in minutes, then customize nodes and behaviors for your specific use case. Drag-and-drop nodes, automatic connection routing, and execution management out of the box.

Workflow starter kit

Build visual tools where users drag, connect and execute nodes to build automation pipelines within a canvas interface. Set up your first workflow builder in minutes, then customize nodes and behaviors for your specific use case. Drag-and-drop nodes, automatic connection routing, and execution management out of the box.

Zach Blodgett,

Staff Product Manager at

“tldraw’s technology enabled us to deliver a high-quality foundation and also develop native functionality ourselves. The technology and team have been great to work with.”

ClickUp modernized its whiteboard for millions of users, replacing legacy infrastructure with the tldraw SDK.

Zach Blodgett,

Staff Product Manager at

“tldraw’s technology enabled us to deliver a high-quality foundation and also develop native functionality ourselves. The technology and team have been great to work with.”

ClickUp modernized its whiteboard for millions of users, replacing legacy infrastructure with the tldraw SDK.

Examples

See for yourself

Have a look at our examples on how to implement camera and viewport features.

Camera options configuration

Configure camera constraints, zoom behaviors, and navigation controls for custom canvas experiences.

Lock camera zoom

Implement zoom locking functionality to constrain user navigation for focused editing experiences.

Slides with viewport following

Build application-specific navigation patterns with programmatic camera positioning and constraint management.

Drawing that feels right

Freehand drawing and shapes built in for your app.

Join the community

45K

Source available on

72K

followers on

...

weekly downloads on

8.75K

members on

Join the community

45K

Source available on

72K

followers on

...

weekly downloads on

8.75K

members on

© 2026 tldraw

© 2026 tldraw

© 2026 tldraw