StateNode
Public Class
Table of Contents
- Properties
- children
- children
- current
- editor
- id
- id
- initial
- initial
- isActive
- onCancel
- onComplete
- onDoubleClick
- onEnter
- onExit
- onInterrupt
- onKeyDown
- onKeyRepeat
- onKeyUp
- onMiddleClick
- onPointerDown
- onPointerEnter
- onPointerLeave
- onPointerMove
- onPointerUp
- onQuadrupleClick
- onRightClick
- onTripleClick
- onWheel
- parent
- path
- shapeType
- styles
- type
- Methods
Signature
abstract class StateNode implements Partial<TLEventHandlers> {}
References
Constructor
Public Constructor
Constructs a new instance of the StateNode
class
Parameters
Name | Description |
---|---|
|
|
(optional) |
|
References
Properties
children
Public Property
Signature
children?: Record<string, StateNode>
References
children
Public Static Property
Signature
static children?: () => TLStateNodeConstructor[]
References
current
Public Property
Signature
current: Atom<StateNode | undefined>
References
editor
Public Property
Signature
editor: Editor
References
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
onComplete
Public Property
Signature
onComplete?: TLEventHandlers['onComplete']
References
onDoubleClick
Public Property
Signature
onDoubleClick?: TLEventHandlers['onDoubleClick']
References
onEnter
Public Property
Signature
onEnter?: TLEnterEventHandler
References
onExit
Public Property
Signature
onExit?: TLExitEventHandler
References
onInterrupt
Public Property
Signature
onInterrupt?: TLEventHandlers['onInterrupt']
References
onKeyDown
Public Property
Signature
onKeyDown?: TLEventHandlers['onKeyDown']
References
onKeyRepeat
Public Property
Signature
onKeyRepeat?: TLEventHandlers['onKeyRepeat']
References
onKeyUp
Public Property
Signature
onKeyUp?: TLEventHandlers['onKeyUp']
References
onMiddleClick
Public Property
Signature
onMiddleClick?: TLEventHandlers['onMiddleClick']
References
onPointerDown
Public Property
Signature
onPointerDown?: TLEventHandlers['onPointerDown']
References
onPointerEnter
Public Property
Signature
onPointerEnter?: TLEventHandlers['onPointerEnter']
References
onPointerLeave
Public Property
Signature
onPointerLeave?: TLEventHandlers['onPointerLeave']
References
onPointerMove
Public Property
Signature
onPointerMove?: TLEventHandlers['onPointerMove']
References
onPointerUp
Public Property
Signature
onPointerUp?: TLEventHandlers['onPointerUp']
References
onQuadrupleClick
Public Property
Signature
onQuadrupleClick?: TLEventHandlers['onQuadrupleClick']
References
onRightClick
Public Property
Signature
onRightClick?: TLEventHandlers['onRightClick']
References
onTripleClick
Public Property
Signature
onTripleClick?: TLEventHandlers['onTripleClick']
References
onWheel
Public Property
Signature
onWheel?: TLEventHandlers['onWheel']
References
parent
Public Property
Signature
parent: StateNode
References
path
Public Property
Signature
path: Computed<string>
References
shapeType
Public Property
Signature
shapeType?: string
styles
Public Readonly Property
Signature
readonly styles: TLStyleType[]
References
type
Public Property
Signature
type: TLStateNodeType
References
Methods
enter()
Public Method
Parameters
Name | Description |
---|---|
|
|
|
|
Returns
void
exit()
Public Method
Parameters
Name | Description |
---|---|
|
|
|
|
Returns
void
handleEvent()
Public Method
Parameters
Name | Description |
---|---|
|
|
Returns
void
References
Exclude, TLEventInfo, TLPinchEventInfo
transition()
Public Method
Parameters
Name | Description |
---|---|
|
|
|
|
Returns
this