@mocanvas/editor · interface

TLHandleDragInfo

interface TLHandleDragInfo<T extends UnknownShape = UnknownShape>

What a handle-drag callback is told.


Properties · 3

handle: ShapeHandle

The handle being dragged, in shape-local coordinates.

initial?: T | undefined

The shape as it was when the drag started, for gestures that need a baseline.

isPrecise: boolean

Whether the drag should ignore snapping and land exactly where the pointer is. Held-modifier behaviour, surfaced so a util can honour it in its own placement logic too.

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.