Table of contents

Public class

Signature
References

TLEventHandlers

Source

packages/editor/src/lib/editor/tools/StateNode.ts


Constructor

Public constructor

Constructs a new instance of the StateNode class

Parameters
NameDescription

editor

parent

References

Editor, StateNode


Properties



children

Public property

Signature
References

StateNode


children

Public static property

Signature
References

TLStateNodeConstructor


editor

Public property

Signature
References

Editor


enter

Public property

Signature

exit

Public property

Signature

handleEvent

Public property

Signature
References

TLEventInfo, TLPinchEventInfo


id

Public property

Signature

id

Public static property

Signature

initial

Public property

Signature

initial

Public static property

Signature

onCancel

Public property

Signature
References

TLEventHandlers


onComplete

Public property

Signature
References

TLEventHandlers


onDoubleClick

Public property

Signature
References

TLEventHandlers


onEnter

Public property

Signature
References

TLEnterEventHandler


onExit

Public property

Signature
References

TLExitEventHandler


onInterrupt

Public property

Signature
References

TLEventHandlers


onKeyDown

Public property

Signature
References

TLEventHandlers


onKeyRepeat

Public property

Signature
References

TLEventHandlers


onKeyUp

Public property

Signature
References

TLEventHandlers


onMiddleClick

Public property

Signature
References

TLEventHandlers


onPointerDown

Public property

Signature
References

TLEventHandlers


onPointerMove

Public property

Signature
References

TLEventHandlers


onPointerUp

Public property

Signature
References

TLEventHandlers


onQuadrupleClick

Public property

Signature
References

TLEventHandlers


onRightClick

Public property

Signature
References

TLEventHandlers


onTick

Public property

Signature
References

TLTickEventHandler


onTripleClick

Public property

Signature
References

TLEventHandlers


onWheel

Public property

Signature
References

TLEventHandlers


parent

Public property

Signature
References

StateNode


shapeType

Public property

Signature

transition

Public property

Transition to a new active child state node.

Example
Signature
Parameters
NameDescription

id

The id of the child state node to transition to.

info

Any data to pass to the onEnter and onExit handlers.


type

Public property

Signature

Methods

getCurrent()

Public method

This node's current active child node, if any.

Signature
References

StateNode


getCurrentToolIdMask()

Public method

Signature

getIsActive()

Public method

Whether this node is active.

Signature

getPath()

Public method

This node's path of active state nodes

Signature

setCurrentToolIdMask()

Public method

Signature
Parameters
NameDescription

id

Returns

Stadium2dstopEventPropagation