TL_SCRIBBLE_STATES
See source codeAll available scribble states used by the tldraw drawing system.
Scribble states represent the different phases of a drawing stroke:
starting: The scribble is being initiatedpaused: The scribble is temporarily pausedactive: The scribble is actively being drawnstopping: The scribble is being finished
These states help manage the drawing lifecycle and apply appropriate visual effects during different phases of the stroke.
TL_SCRIBBLE_STATES: Set<'active' | 'paused' | 'starting' | 'stopping'>Example
// Check if a scribble state is valid
if (TL_SCRIBBLE_STATES.has('active')) {
console.log('Valid scribble state')
}
// Get all available scribble states
const allStates = Array.from(TL_SCRIBBLE_STATES)Prev
TL_HANDLE_TYPESNext
TLDOCUMENT_ID