TLDR Dev · ARTICLES & TUTORIALS

COMPUTING BOUNDING BOXES

tldraw.dev6 min read

Summary from the TLDR Dev newsletter

tldraw transforms shape vertices into page coordinates, then takes their minimum and maximum values to compute fast axis-aligned bounding boxes. The walkthrough covers nested transforms and rotated selection handles, with approximate bounds filtering candidates before more expensive geometry checks.