Divooka Reference

Nodes

8 nodes

On this page 8

Add Node

Function

Place a node, by its name in the node library, at a point of a graph.

Signature
AddNode(graph: Graph, name: Text, x: Number, y: Number) -> Node
Node AddNode(Graph graph, string name, double x, double y)

Parameters

nametypedefaultdescription
graphGraph—
nameText—
xNumber—
yNumber—

Returns

resultNode
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Nodes
Package
Editor Automation

Connect

Function

Wire an output of one node to an input of another, each by its title.

Signature
Connect(from: Node, output: Text, to: Node, input: Text)
void Connect(Node from, string output, Node to, string input)

Parameters

nametypedefaultdescription
fromNode—
outputText—
toNode—
inputText—
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Nodes
Package
Editor Automation

Find Node

Function

A node of a graph, by its title or the name its author gave it.

Signature
FindNode(graph: Graph, title: Text) -> Node
Node FindNode(Graph graph, string title)

Parameters

nametypedefaultdescription
graphGraph—
titleText—

Returns

resultNode
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Nodes
Package
Editor Automation

Insert After

Function

Place a statement, by its name in the node library, right after one and thread it into the path: whatever ran after that one runs after the new one.

Signature
InsertAfter(node: Node, name: Text) -> Node
Node InsertAfter(Node node, string name)

Parameters

nametypedefaultdescription
nodeNode—
nameText—

Returns

resultNode
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Nodes
Package
Editor Automation

Move Node

Function

Move a node to a point of its graph.

Signature
MoveNode(node: Node, x: Number, y: Number)
void MoveNode(Node node, double x, double y)

Parameters

nametypedefaultdescription
nodeNode—
xNumber—
yNumber—
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Nodes
Package
Editor Automation

Node Position

Function

Where a node stands in its graph.

Signature
NodePosition(node: Node) -> (Number, Number)
(double, double) NodePosition(Node node)

Parameters

nametypedefaultdescription
nodeNode—

Returns

result(Number, Number)
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Nodes
Package
Editor Automation

Remove Node

Function

Take a node and its wires away.

Signature
RemoveNode(node: Node)
void RemoveNode(Node node)

Parameters

nametypedefaultdescription
nodeNode—
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Nodes
Package
Editor Automation

Set Input

Function

Type a value into an input of a node, as into its box on the canvas.

Signature
SetInput(node: Node, input: Text, value: Text)
void SetInput(Node node, string input, string value)

Parameters

nametypedefaultdescription
nodeNode—
inputText—
valueText—
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Nodes
Package
Editor Automation