Events

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val added: Event<List<GraphNode>>

nodes were added, by add or by undoing their removal; fired before the connected of their wires

Link copied to clipboard

a badge of a node was clicked, see badges

Link copied to clipboard

nodes became compact or were expanded, see GraphNode.compact, which changes their heights and the positions of their ports; also by undo and redo, and by compactNodes

Link copied to clipboard
val connected: Event<Wire>

a wire was connected

Link copied to clipboard
val disconnected: Event<Wire>

a wire was disconnected

Link copied to clipboard
val moved: Event<List<GraphNode>>

nodes were moved, at the end of a drag, or by its undo or redo

Link copied to clipboard
val removed: Event<List<GraphNode>>

nodes were removed, by remove or by undoing their addition; fired after the disconnected of their wires

Link copied to clipboard
val requested: Event<Vector2>

the background was double clicked, at the position in the coordinates of the graph, like to add a node

Link copied to clipboard
val selected: Event<Set<GraphNode>>

the selected nodes changed

Functions

Link copied to clipboard
open override fun close()