Object alignment
Create precise object alignment systems with edge detection, center points, and distribution controls. Perfect for building design tools that need consistent spacing and professional layouts.
Your users expect drag-and-drop that snaps perfectly.We handle the math.
Create precise object alignment systems with edge detection, center points, and distribution controls. Perfect for building design tools that need consistent spacing and professional layouts.
Manage z-index layering with intuitive bring-to-front and send-to-back controls that handle complex multi-object hierarchies and maintain visual depth relationships.
Build with tldraw’s magnetic snapping systems that guide shapes with bounds, handles, and geometric alignment for user interactions that feel natural.

Implement hierarchical object relationships that preserve individual shape properties while enabling batch operations and nested transformation behaviors.
Implement multi-directional resize handles with aspect ratio preservation, rotation controls, and proportional scaling options. It also works with multi-object batch operations.
Create transformation previews, dimension indicators, and alignment guides that automatically prioritize snap targets based on proximity and user intent.
Our team spent years to get all the details right, so you don’t have to.
tldraw’s layout system manages two coordinate spaces. Screen coordinates handle UI interactions and viewport positioning, while page coordinates maintain object relationships independent of zoom and pan state. This dual-coordinate approach enables consistent manipulation behavior regardless of canvas transform state. where users can manipulate objects at different viewport scales simultaneously.
Every shape maintains a transformation matrix that combines position, rotation, and scale operations. These matrices compose hierarchically for grouped objects and decompose cleanly for individual manipulation. The system handles matrix composition and inversion for smooth animation and precise positioning.
tldraw provides multi-layers precision control that adapts to different user needs and contexts. These control mechanisms work together to enable both rapid positioning and pixel-perfect fine-tuning within the same interaction framework.
ClickUp modernized its whiteboard for millions of users, replacing legacy infrastructure with the tldraw SDK.
Production ready starter kit to integrate agents into your canvas. Building something different? See all starter kits
Give your AI agents visual superpowers. Allow them to read drawings, generate diagrams, and interact with canvas elements just like human users. You handle the AI integration, tldraw handles the complex canvas interactions, shape recognition, and visual rendering.

examples
Have a look at our examples on how to implement layout management features.
Implement container-based layout systems with automatic positioning and size management.
Create custom snapping geometry for specialized shape alignment and magnetic positioning behavior.
Create custom shapes that can be dragged and dropped onto each other.
Tools that guide shapes, snaps, and spacing so your users don’t have to.