TL_CURSOR_TYPES
See source codeAll available cursor types used throughout the tldraw editor.
These cursor types correspond to CSS cursor values and are used to indicate different interaction modes and states within the editor. The cursor types cover selection, resizing, rotation, text editing, and various other editor interactions.
TL_CURSOR_TYPES: Set<string>
Example
// Check if a cursor type is valid
if (TL_CURSOR_TYPES.has('resize-corner')) {
console.log('Valid cursor type')
}
// Get all available cursor types
const allCursors = Array.from(TL_CURSOR_TYPES)
Prev
TL_CANVAS_UI_COLOR_TYPESNext
TL_HANDLE_TYPES