@mocanvas/mocanvas · interface

TLSelectionForegroundOverlay

interface TLSelectionForegroundOverlay extends TLOverlay

The selection box and one of its resize/rotate handles.

"Foreground" because it is drawn *over* the shapes, as opposed to the selection background that catches a drag on the interior. One record per handle, plus one for the box itself (handle: null), so the manager can say which handle the pointer is over.


Properties · 3

handle: string | null

The handle this record is, or null for the box outline.

point: VecLike | null

Screen-space position of the handle; null for the box outline.

type: "selectionForeground"

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.