API Reference

Complete API documentation for Vyuh Node Flow

API Reference

Complete reference documentation for all classes, methods, and properties in Vyuh Node Flow.

Core Classes

Widgets

Events

Theming

Quick Reference

Controller Methods

MethodDescription
addNode(node)Add a node to the graph
removeNode(id)Remove a node by ID
moveNode(id, delta)Move a node by offset
setNodeSize(id, size)Update node size
addConnection(conn)Create a connection
removeConnection(id)Remove a connection
selectNode(id)Select a node
clearSelection()Clear all selections
fitToView()Fit viewport to content
zoomTo(level)Set zoom level
panBy(delta)Pan by offset
loadGraph(graph)Load complete graph
exportGraph()Export graph state

Node Properties

PropertyTypeDescription
idStringUnique identifier
typeString?Node type for categorization
positionOffsetPosition on canvas
sizeSizeNode dimensions
dataTCustom data payload
inputPortsList<Port>Input connection ports
outputPortsList<Port>Output connection ports
shapeNodeShapeVisual shape (rectangle, circle, etc.)

Port Properties

PropertyTypeDescription
idStringUnique identifier
nameString?Display name
positionPortPositionSide of node (top, right, bottom, left)
shapePortShapeVisual shape (circle, square, diamond, triangle)
colorColor?Port color override

Connection Properties

PropertyTypeDescription
idStringUnique identifier
sourceNodeIdStringSource node ID
sourcePortIdStringSource port ID
targetNodeIdStringTarget node ID
targetPortIdStringTarget port ID
labelString?Center label
startLabelString?Label at source
endLabelString?Label at target

On this page