StateNode

Public Class

Table of Contents
Signature
abstract class StateNode implements Partial<TLEventHandlers> {}
References

Partial, TLEventHandlers


Constructor

Public Constructor

Constructs a new instance of the StateNode class

Parameters
NameDescription

editor

Editor

parent

(optional)

StateNode
References

Editor, StateNode


Properties

children

Public Property

Signature
children?: Record<string, StateNode>
References

Record, StateNode


children

Public Static Property

Signature
static children?: () => TLStateNodeConstructor[]
References

TLStateNodeConstructor


current

Public Property

Signature
current: Atom<StateNode | undefined>
References

Atom, StateNode


editor

Public Property

Signature
editor: Editor
References

Editor


id

Public Property

Signature
id: string

id

Public Static Property

Signature
static id: string

initial

Public Property

Signature
initial?: string

initial

Public Static Property

Signature
static initial?: string

isActive

Public Property

Signature
isActive: boolean

onCancel

Public Property

Signature
onCancel?: TLEventHandlers['onCancel']
References

TLEventHandlers


onComplete

Public Property

Signature
onComplete?: TLEventHandlers['onComplete']
References

TLEventHandlers


onDoubleClick

Public Property

Signature
onDoubleClick?: TLEventHandlers['onDoubleClick']
References

TLEventHandlers


onEnter

Public Property

Signature
onEnter?: TLEnterEventHandler
References

TLEnterEventHandler


onExit

Public Property

Signature
onExit?: TLExitEventHandler
References

TLExitEventHandler


onInterrupt

Public Property

Signature
onInterrupt?: TLEventHandlers['onInterrupt']
References

TLEventHandlers


onKeyDown

Public Property

Signature
onKeyDown?: TLEventHandlers['onKeyDown']
References

TLEventHandlers


onKeyRepeat

Public Property

Signature
onKeyRepeat?: TLEventHandlers['onKeyRepeat']
References

TLEventHandlers


onKeyUp

Public Property

Signature
onKeyUp?: TLEventHandlers['onKeyUp']
References

TLEventHandlers


onMiddleClick

Public Property

Signature
onMiddleClick?: TLEventHandlers['onMiddleClick']
References

TLEventHandlers


onPointerDown

Public Property

Signature
onPointerDown?: TLEventHandlers['onPointerDown']
References

TLEventHandlers


onPointerEnter

Public Property

Signature
onPointerEnter?: TLEventHandlers['onPointerEnter']
References

TLEventHandlers


onPointerLeave

Public Property

Signature
onPointerLeave?: TLEventHandlers['onPointerLeave']
References

TLEventHandlers


onPointerMove

Public Property

Signature
onPointerMove?: TLEventHandlers['onPointerMove']
References

TLEventHandlers


onPointerUp

Public Property

Signature
onPointerUp?: TLEventHandlers['onPointerUp']
References

TLEventHandlers


onQuadrupleClick

Public Property

Signature
onQuadrupleClick?: TLEventHandlers['onQuadrupleClick']
References

TLEventHandlers


onRightClick

Public Property

Signature
onRightClick?: TLEventHandlers['onRightClick']
References

TLEventHandlers


onTripleClick

Public Property

Signature
onTripleClick?: TLEventHandlers['onTripleClick']
References

TLEventHandlers


onWheel

Public Property

Signature
onWheel?: TLEventHandlers['onWheel']
References

TLEventHandlers


parent

Public Property

Signature
parent: StateNode
References

StateNode


path

Public Property

Signature
path: Computed<string>
References

Computed


shapeType

Public Property

Signature
shapeType?: string

styles

Public Readonly Property

Signature
readonly styles: TLStyleType[]
References

TLStyleType


type

Public Property

Signature
type: TLStateNodeType
References

TLStateNodeType


Methods

enter()

Public Method

Parameters
NameDescription

info

any

from

string
Returns
void

exit()

Public Method

Parameters
NameDescription

info

any

from

string
Returns
void

handleEvent()

Public Method

Parameters
NameDescription

info

Exclude<TLEventInfo, TLPinchEventInfo>
Returns
void
References

Exclude, TLEventInfo, TLPinchEventInfo


transition()

Public Method

Parameters
NameDescription

id

string

info

any
Returns
this

Edit this page
Last edited on 12 June 2023
snapToGridSTYLES