@mocanvas/editor · interface

BoundsSnapPoint

interface BoundsSnapPoint extends VecLike

One point a dragged shape's own points may align to.

id is stable for the life of the shape and identifies the point across frames, so an indicator drawn for "the top-left corner of that frame" keeps pointing at the same thing while the drag continues. handle names the selection handle the point corresponds to, when it corresponds to one.


Properties · 2

handle?: string

Which corner/edge this point is, when it is one.

id: string

Stable within one shape; the snap manager namespaces it by shape id.

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.