@mocanvas/editor · constant

TL_CURSOR_TYPES

declare const TL_CURSOR_TYPES: readonly ["none", "default", "pointer", "cross", "move", "grab", "grabbing", "text", "zoom-in", "zoom-out", "resize-edge", "resize-corner", "rotate", "nwse-resize", "nesw-resize", "ns-resize", "ew-resize", "nw-resize", "ne-resize", "se-resize", "sw-resize", "n-resize", "e-resize", "s-resize", "w-resize"]

Every cursor the canvas can show.

The resize cursors (ew-resize, nwse-resize, …) are stored as a *name plus a rotation* rather than as eight separate images: a rotated shape's handles need cursors at arbitrary angles, and there are only so many CSS names.

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.