@mocanvas/mocanvas · interface

TLZoomBrushOverlay

interface TLZoomBrushOverlay extends TLOverlay

The brush dragged by the zoom tool.

A separate record from TLBrushOverlay rather than a flag on it: the two are live at different times, are drawn differently (a zoom brush has no fill worth speaking of), and a tool that wanted one and got the other would be a silent bug.


Properties · 2

bounds: OverlayBox

The zoom rectangle, in page space.

type: "zoomBrush"

Mentioned here

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.