LiteGraph Class
The Global Scope. It contains all the registered node classes.
Constructor
LiteGraph
()
Item Index
Methods
createNode
(
-
type -
name -
options
Create a node of a given type with a name. The node is not attached to any graph yet.
Parameters:
-
typeStringfull name of the node class. p.e. "math/sin"
-
nameStringa name to distinguish from other nodes
-
optionsObjectto set options
getNodeType
(
Class
-
type
Returns a registered node type with a given name
Parameters:
-
typeStringfull name of the node class. p.e. "math/sin"
Returns:
Class:
the node class
getNodeType
(
Array
-
category
Returns a list of node types matching one category
Parameters:
-
categoryStringcategory name
Returns:
Array:
array with all the node classes
getNodeTypesCategories
()
Array
Returns a list with all the node type categories
Returns:
Array:
array with all the names of the categories
registerNodeType
(
-
type -
base_class
Register a node class so it can be listed when the user wants to create a new one
Parameters:
-
typeStringname of the node and path
-
base_classClassclass containing the structure of a node
