nodes that contain onExecute
used to detect changes
custom data
Rest ...args: any[]to store custom data
Static DEFAULT_Adds a new node instance to this graph
the instance of the node
Tell this graph it has a global graph input of this type
Optional value: anyCreates a global graph output
used to resend actions, called after any change is made to the graph
Optional info: LGraphNodePositions every node in a more readable manner
Attach Canvas to this graph
used for undo, called before any change is made to the graph
Optional info: LGraphNodeChanges the type of a global graph input
Changes the type of a global graph output
This is more internal, it computes the executable nodes in order and returns it
Optional set_level: anyOptional set_level: anyConfigure a graph from a JSON string
configure a graph from a JSON string
Optional keep_old: booleanif there was any error parsing
Optional linkInfo: LLinkDetach Canvas to this graph
Returns the first node that matches a name in its title
the name of the node to search
the node or null
Returns a list of nodes that matches a class
a list with all the nodes of this type
Returns a list of nodes that matches a class
a list with all the nodes of this type
Returns a list of nodes that matches a name
the name of the node to search
a list with all the nodes with this name
Returns a list of nodes that matches a type
the name of the node type
a list with all the nodes of this type
Returns a list of nodes that matches a type
the name of the node type
a list with all the nodes of this type
Returns all the nodes that could affect this one (ancestors) by crawling all the inputs recursively. It doesn't include the node itself
an array with all the LGraphNodes that affect this node, in order of execution
Returns the top-most group in that position
the x coordinate in canvas space
the y coordinate in canvas space
the group or null
Returns a node by its id.
Returns a node by its id.
Returns the top-most node in this position of the canvas
the x coordinate in canvas space
the y coordinate in canvas space
Optional nodesList: LGraphNode[]a list with all the nodes to search from, by default is all the nodes in the graph
Optional margin: numberthe node at this position or null
Iterates all nodes in this graph excluding subgraphs.
Iterates all nodes in this graph and subgraphs.
Iterates all nodes in this graph excluding subgraphs.
Iterates all nodes in this graph excluding subgraphs.
Iterates all nodes in this graph excluding subgraphs.
Optional onCalled after the graph is changed
Optional onOptional onOptional onCalled before the graph is changed
Optional onOptional onOptional onOptional onOptional onOptional onOptional onOptional onOptional onOptional onOptional onOptional onOptional onCalled when a new node is added
the instance of the node
Optional onCalled when a node's connection is changed
the instance of the node
Optional target_node: LGraphNodeOptional target_slot: numberOptional onCalled when a node is removed
the instance of the node
Optional onOptional onOptional onOptional onOptional onOptional onOptional onOptional onOptional onRemoves a node from the graph
Destroys a link
Sends an event to all the nodes, useful to trigger stuff
the name of the event (function to be called)
parameters in array format
nodes that are executable sorted in execution order