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

app

App

parent

(optional)

StateNode
References

App, StateNode


Properties

app

Public Property

Signature
app: App
References

App


children

Public Property

Signature
children?: Record<string, StateNode>
References

Record, StateNode


children

Public Static Property

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

StateNodeConstructor


current

Public Property

Signature
current: Atom<StateNode | undefined>
References

Atom, StateNode


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?: UiEnterHandler
References

UiEnterHandler


onExit

Public Property

Signature
onExit?: UiExitHandler
References

UiExitHandler


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


styles

Public Readonly Property

Signature
readonly styles: TLStyleType[]
References

TLStyleType


type

Public Property

Signature
type: StateNodeType
References

StateNodeType


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 11 May 2023
sortByIndexStateNodeConstructor