@mocanvas/editor · constant

TL_HANDLE_TYPES

declare const TL_HANDLE_TYPES: readonly ["vertex", "virtual", "create", "clone"]

What a handle on a shape does.

vertex handles are real points a user can drag; virtual handles are the midpoints shown between vertices that become real when dragged; create handles add a point; clone duplicates the shape. The distinction matters for hit-testing, since virtual handles must not be picked up as easily as real ones.

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.