@mocanvas/editor · interface

SnapData

interface SnapData

How far a snap moved the thing being dragged.

Always an adjustment rather than a position: the caller has already worked out where the gesture wants to be, and snapping only ever nudges that. A zero nudge means nothing snapped, which callers can apply unconditionally.


Properties · 1

nudge: Vec

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.