mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 22:37:32 +00:00
2114 lines
70 KiB
JSON
Executable File
2114 lines
70 KiB
JSON
Executable File
{
|
|
"project": {},
|
|
"files": {
|
|
"../src/litegraph.js": {
|
|
"name": "../src/litegraph.js",
|
|
"modules": {},
|
|
"classes": {
|
|
"LiteGraph": 1,
|
|
"LGraph": 1,
|
|
"LGraphNode": 1,
|
|
"LGraphCanvas": 1,
|
|
"ContextMenu": 1
|
|
},
|
|
"fors": {},
|
|
"namespaces": {}
|
|
}
|
|
},
|
|
"modules": {},
|
|
"classes": {
|
|
"LiteGraph": {
|
|
"name": "LiteGraph",
|
|
"shortname": "LiteGraph",
|
|
"classitems": [],
|
|
"plugins": [],
|
|
"extensions": [],
|
|
"plugin_for": [],
|
|
"extension_for": [],
|
|
"file": "../src/litegraph.js",
|
|
"line": 6,
|
|
"description": "The Global Scope. It contains all the registered node classes.",
|
|
"is_constructor": 1
|
|
},
|
|
"LGraph": {
|
|
"name": "LGraph",
|
|
"shortname": "LGraph",
|
|
"classitems": [],
|
|
"plugins": [],
|
|
"extensions": [],
|
|
"plugin_for": [],
|
|
"extension_for": [],
|
|
"file": "../src/litegraph.js",
|
|
"line": 438,
|
|
"description": "LGraph is the class that contain a full graph. We instantiate one and add nodes to it, and then we can run the execution loop.",
|
|
"is_constructor": 1,
|
|
"params": [
|
|
{
|
|
"name": "o",
|
|
"description": "data from previous serialization [optional]",
|
|
"type": "Object"
|
|
}
|
|
]
|
|
},
|
|
"LGraphNode": {
|
|
"name": "LGraphNode",
|
|
"shortname": "LGraphNode",
|
|
"classitems": [],
|
|
"plugins": [],
|
|
"extensions": [],
|
|
"plugin_for": [],
|
|
"extension_for": [],
|
|
"file": "../src/litegraph.js",
|
|
"line": 1830,
|
|
"description": "Base Class for all the node type classes",
|
|
"params": [
|
|
{
|
|
"name": "name",
|
|
"description": "a name for the node",
|
|
"type": "String"
|
|
}
|
|
]
|
|
},
|
|
"LGraphCanvas": {
|
|
"name": "LGraphCanvas",
|
|
"shortname": "LGraphCanvas",
|
|
"classitems": [],
|
|
"plugins": [],
|
|
"extensions": [],
|
|
"plugin_for": [],
|
|
"extension_for": [],
|
|
"file": "../src/litegraph.js",
|
|
"line": 4164,
|
|
"description": "marks as dirty the canvas, this way it will be rendered again",
|
|
"is_constructor": 1,
|
|
"params": [
|
|
{
|
|
"name": "canvas",
|
|
"description": "the canvas where you want to render (it accepts a selector in string format or the canvas element itself)",
|
|
"type": "HTMLCanvas"
|
|
},
|
|
{
|
|
"name": "graph",
|
|
"description": "[optional]",
|
|
"type": "LGraph"
|
|
},
|
|
{
|
|
"name": "options",
|
|
"description": "[optional] { skip_rendering, autoresize }",
|
|
"type": "Object"
|
|
}
|
|
],
|
|
"itemtype": "method"
|
|
},
|
|
"ContextMenu": {
|
|
"name": "ContextMenu",
|
|
"shortname": "ContextMenu",
|
|
"classitems": [],
|
|
"plugins": [],
|
|
"extensions": [],
|
|
"plugin_for": [],
|
|
"extension_for": [],
|
|
"file": "../src/litegraph.js",
|
|
"line": 8395,
|
|
"description": "ContextMenu from LiteGUI",
|
|
"is_constructor": 1,
|
|
"params": [
|
|
{
|
|
"name": "values",
|
|
"description": "(allows object { title: \"Nice text\", callback: function ... })",
|
|
"type": "Array"
|
|
},
|
|
{
|
|
"name": "options",
|
|
"description": "[optional] Some options:\\\n- title: title to show on top of the menu\n- callback: function to call when an option is clicked, it receives the item information\n- ignore_item_callbacks: ignores the callback inside the item, it just calls the options.callback\n- event: you can pass a MouseEvent, this way the ContextMenu appears in that position",
|
|
"type": "Object"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"elements": {},
|
|
"classitems": [
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 93,
|
|
"description": "Register a node class so it can be listed when the user wants to create a new one",
|
|
"itemtype": "method",
|
|
"name": "registerNodeType",
|
|
"params": [
|
|
{
|
|
"name": "type",
|
|
"description": "name of the node and path",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "base_class",
|
|
"description": "class containing the structure of a node",
|
|
"type": "Class"
|
|
}
|
|
],
|
|
"class": "LiteGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 160,
|
|
"description": "Create a new node type by passing a function, it wraps it with a propper class and generates inputs according to the parameters of the function.\nUseful to wrap simple methods that do not require properties, and that only process some input to generate an output.",
|
|
"itemtype": "method",
|
|
"name": "wrapFunctionAsNode",
|
|
"params": [
|
|
{
|
|
"name": "name",
|
|
"description": "node name with namespace (p.e.: 'math/sum')",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "func",
|
|
"description": "",
|
|
"type": "Function"
|
|
},
|
|
{
|
|
"name": "param_types",
|
|
"description": "[optional] an array containing the type of every parameter, otherwise parameters will accept any type",
|
|
"type": "Array"
|
|
},
|
|
{
|
|
"name": "return_type",
|
|
"description": "[optional] string with the return type, otherwise it will be generic",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "properties",
|
|
"description": "[optional] properties to be configurable",
|
|
"type": "Object"
|
|
}
|
|
],
|
|
"class": "LiteGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 193,
|
|
"description": "Adds this method to all nodetypes, existing and to be created\n(You can add it to LGraphNode.prototype but then existing node types wont have it)",
|
|
"itemtype": "method",
|
|
"name": "addNodeMethod",
|
|
"params": [
|
|
{
|
|
"name": "func",
|
|
"description": "",
|
|
"type": "Function"
|
|
}
|
|
],
|
|
"class": "LiteGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 211,
|
|
"description": "Create a node of a given type with a name. The node is not attached to any graph yet.",
|
|
"itemtype": "method",
|
|
"name": "createNode",
|
|
"params": [
|
|
{
|
|
"name": "type",
|
|
"description": "full name of the node class. p.e. \"math/sin\"",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "name",
|
|
"description": "a name to distinguish from other nodes",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "options",
|
|
"description": "to set options",
|
|
"type": "Object"
|
|
}
|
|
],
|
|
"class": "LiteGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 270,
|
|
"description": "Returns a registered node type with a given name",
|
|
"itemtype": "method",
|
|
"name": "getNodeType",
|
|
"params": [
|
|
{
|
|
"name": "type",
|
|
"description": "full name of the node class. p.e. \"math/sin\"",
|
|
"type": "String"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "the node class",
|
|
"type": "Class"
|
|
},
|
|
"class": "LiteGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 281,
|
|
"description": "Returns a list of node types matching one category",
|
|
"itemtype": "method",
|
|
"name": "getNodeType",
|
|
"params": [
|
|
{
|
|
"name": "category",
|
|
"description": "category name",
|
|
"type": "String"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "array with all the node classes",
|
|
"type": "Array"
|
|
},
|
|
"class": "LiteGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 309,
|
|
"description": "Returns a list with all the node type categories",
|
|
"itemtype": "method",
|
|
"name": "getNodeTypesCategories",
|
|
"return": {
|
|
"description": "array with all the names of the categories",
|
|
"type": "Array"
|
|
},
|
|
"class": "LiteGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 468,
|
|
"description": "Removes all nodes from this graph",
|
|
"itemtype": "method",
|
|
"name": "clear",
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 531,
|
|
"description": "Attach Canvas to this graph",
|
|
"itemtype": "method",
|
|
"name": "attachCanvas",
|
|
"params": [
|
|
{
|
|
"name": "graph_canvas",
|
|
"description": "",
|
|
"type": "GraphCanvas"
|
|
}
|
|
],
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 550,
|
|
"description": "Detach Canvas from this graph",
|
|
"itemtype": "method",
|
|
"name": "detachCanvas",
|
|
"params": [
|
|
{
|
|
"name": "graph_canvas",
|
|
"description": "",
|
|
"type": "GraphCanvas"
|
|
}
|
|
],
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 567,
|
|
"description": "Starts running this graph every interval milliseconds.",
|
|
"itemtype": "method",
|
|
"name": "start",
|
|
"params": [
|
|
{
|
|
"name": "interval",
|
|
"description": "amount of milliseconds between executions, if 0 then it renders to the monitor refresh rate",
|
|
"type": "Number"
|
|
}
|
|
],
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 609,
|
|
"description": "Stops the execution loop of the graph",
|
|
"itemtype": "method",
|
|
"name": "stop execution",
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 634,
|
|
"description": "Run N steps (cycles) of the graph",
|
|
"itemtype": "method",
|
|
"name": "runStep",
|
|
"params": [
|
|
{
|
|
"name": "num",
|
|
"description": "number of steps to run, default is 1",
|
|
"type": "Number"
|
|
}
|
|
],
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 716,
|
|
"description": "Updates the graph execution order according to relevance of the nodes (nodes with only outputs have more relevance than\nnodes with only inputs.",
|
|
"itemtype": "method",
|
|
"name": "updateExecutionOrder",
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 848,
|
|
"description": "Returns all the nodes that could affect this one (ancestors) by crawling all the inputs recursively.\nIt doesnt include the node itself",
|
|
"itemtype": "method",
|
|
"name": "getAncestors",
|
|
"return": {
|
|
"description": "an array with all the LGraphNodes that affect this node, in order of execution",
|
|
"type": "Array"
|
|
},
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 885,
|
|
"description": "Positions every node in a more readable manner",
|
|
"itemtype": "method",
|
|
"name": "arrange",
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 929,
|
|
"description": "Returns the amount of time the graph has been running in milliseconds",
|
|
"itemtype": "method",
|
|
"name": "getTime",
|
|
"return": {
|
|
"description": "number of milliseconds the graph has been running",
|
|
"type": "Number"
|
|
},
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 939,
|
|
"description": "Returns the amount of time accumulated using the fixedtime_lapse var. This is used in context where the time increments should be constant",
|
|
"itemtype": "method",
|
|
"name": "getFixedTime",
|
|
"return": {
|
|
"description": "number of milliseconds the graph has been running",
|
|
"type": "Number"
|
|
},
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 950,
|
|
"description": "Returns the amount of time it took to compute the latest iteration. Take into account that this number could be not correct\nif the nodes are using graphical actions",
|
|
"itemtype": "method",
|
|
"name": "getElapsedTime",
|
|
"return": {
|
|
"description": "number of milliseconds it took the last cycle",
|
|
"type": "Number"
|
|
},
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 962,
|
|
"description": "Sends an event to all the nodes, useful to trigger stuff",
|
|
"itemtype": "method",
|
|
"name": "sendEventToAllNodes",
|
|
"params": [
|
|
{
|
|
"name": "eventname",
|
|
"description": "the name of the event (function to be called)",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "params",
|
|
"description": "parameters in array format",
|
|
"type": "Array"
|
|
}
|
|
],
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1004,
|
|
"description": "Adds a new node instasnce to this graph",
|
|
"itemtype": "method",
|
|
"name": "add",
|
|
"params": [
|
|
{
|
|
"name": "node",
|
|
"description": "the instance of the node",
|
|
"type": "LGraphNode"
|
|
}
|
|
],
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1068,
|
|
"description": "Removes a node from the graph",
|
|
"itemtype": "method",
|
|
"name": "remove",
|
|
"params": [
|
|
{
|
|
"name": "node",
|
|
"description": "the instance of the node",
|
|
"type": "LGraphNode"
|
|
}
|
|
],
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1149,
|
|
"description": "Returns a node by its id.",
|
|
"itemtype": "method",
|
|
"name": "getNodeById",
|
|
"params": [
|
|
{
|
|
"name": "id",
|
|
"description": "",
|
|
"type": "Number"
|
|
}
|
|
],
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1162,
|
|
"description": "Returns a list of nodes that matches a class",
|
|
"itemtype": "method",
|
|
"name": "findNodesByClass",
|
|
"params": [
|
|
{
|
|
"name": "classObject",
|
|
"description": "the class itself (not an string)",
|
|
"type": "Class"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "a list with all the nodes of this type",
|
|
"type": "Array"
|
|
},
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1178,
|
|
"description": "Returns a list of nodes that matches a type",
|
|
"itemtype": "method",
|
|
"name": "findNodesByType",
|
|
"params": [
|
|
{
|
|
"name": "type",
|
|
"description": "the name of the node type",
|
|
"type": "String"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "a list with all the nodes of this type",
|
|
"type": "Array"
|
|
},
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1195,
|
|
"description": "Returns a list of nodes that matches a name",
|
|
"itemtype": "method",
|
|
"name": "findNodesByTitle",
|
|
"params": [
|
|
{
|
|
"name": "name",
|
|
"description": "the name of the node to search",
|
|
"type": "String"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "a list with all the nodes with this name",
|
|
"type": "Array"
|
|
},
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1211,
|
|
"description": "Returns the top-most node in this position of the canvas",
|
|
"itemtype": "method",
|
|
"name": "getNodeOnPos",
|
|
"params": [
|
|
{
|
|
"name": "x",
|
|
"description": "the x coordinate in canvas space",
|
|
"type": "Number"
|
|
},
|
|
{
|
|
"name": "y",
|
|
"description": "the y coordinate in canvas space",
|
|
"type": "Number"
|
|
},
|
|
{
|
|
"name": "nodes_list",
|
|
"description": "a list with all the nodes to search from, by default is all the nodes in the graph",
|
|
"type": "Array"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "the node at this position or null",
|
|
"type": "LGraphNode"
|
|
},
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1231,
|
|
"description": "Returns the top-most group in that position",
|
|
"itemtype": "method",
|
|
"name": "getGroupOnPos",
|
|
"params": [
|
|
{
|
|
"name": "x",
|
|
"description": "the x coordinate in canvas space",
|
|
"type": "Number"
|
|
},
|
|
{
|
|
"name": "y",
|
|
"description": "the y coordinate in canvas space",
|
|
"type": "Number"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "the group or null",
|
|
"type": "LGraphGroup"
|
|
},
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1251,
|
|
"description": "Tell this graph it has a global graph input of this type",
|
|
"itemtype": "method",
|
|
"name": "addGlobalInput",
|
|
"params": [
|
|
{
|
|
"name": "name",
|
|
"description": "",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "type",
|
|
"description": "",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "value",
|
|
"description": "[optional]",
|
|
"type": "*"
|
|
}
|
|
],
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1274,
|
|
"description": "Assign a data to the global graph input",
|
|
"itemtype": "method",
|
|
"name": "setGlobalInputData",
|
|
"params": [
|
|
{
|
|
"name": "name",
|
|
"description": "",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "data",
|
|
"description": "",
|
|
"type": "*"
|
|
}
|
|
],
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1288,
|
|
"description": "Returns the current value of a global graph input",
|
|
"itemtype": "method",
|
|
"name": "getInputData",
|
|
"params": [
|
|
{
|
|
"name": "name",
|
|
"description": "",
|
|
"type": "String"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "the data",
|
|
"type": "*"
|
|
},
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1302,
|
|
"description": "Changes the name of a global graph input",
|
|
"itemtype": "method",
|
|
"name": "renameInput",
|
|
"params": [
|
|
{
|
|
"name": "old_name",
|
|
"description": "",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "new_name",
|
|
"description": "",
|
|
"type": "String"
|
|
}
|
|
],
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1333,
|
|
"description": "Changes the type of a global graph input",
|
|
"itemtype": "method",
|
|
"name": "changeInputType",
|
|
"params": [
|
|
{
|
|
"name": "name",
|
|
"description": "",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "type",
|
|
"description": "",
|
|
"type": "String"
|
|
}
|
|
],
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1353,
|
|
"description": "Removes a global graph input",
|
|
"itemtype": "method",
|
|
"name": "removeInput",
|
|
"params": [
|
|
{
|
|
"name": "name",
|
|
"description": "",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "type",
|
|
"description": "",
|
|
"type": "String"
|
|
}
|
|
],
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1375,
|
|
"description": "Creates a global graph output",
|
|
"itemtype": "method",
|
|
"name": "addOutput",
|
|
"params": [
|
|
{
|
|
"name": "name",
|
|
"description": "",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "type",
|
|
"description": "",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "value",
|
|
"description": "",
|
|
"type": "*"
|
|
}
|
|
],
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1394,
|
|
"description": "Assign a data to the global output",
|
|
"itemtype": "method",
|
|
"name": "setOutputData",
|
|
"params": [
|
|
{
|
|
"name": "name",
|
|
"description": "",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "value",
|
|
"description": "",
|
|
"type": "String"
|
|
}
|
|
],
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1408,
|
|
"description": "Returns the current value of a global graph output",
|
|
"itemtype": "method",
|
|
"name": "getOutputData",
|
|
"params": [
|
|
{
|
|
"name": "name",
|
|
"description": "",
|
|
"type": "String"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "the data",
|
|
"type": "*"
|
|
},
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1422,
|
|
"description": "Renames a global graph output",
|
|
"itemtype": "method",
|
|
"name": "renameOutput",
|
|
"params": [
|
|
{
|
|
"name": "old_name",
|
|
"description": "",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "new_name",
|
|
"description": "",
|
|
"type": "String"
|
|
}
|
|
],
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1450,
|
|
"description": "Changes the type of a global graph output",
|
|
"itemtype": "method",
|
|
"name": "changeOutputType",
|
|
"params": [
|
|
{
|
|
"name": "name",
|
|
"description": "",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "type",
|
|
"description": "",
|
|
"type": "String"
|
|
}
|
|
],
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1470,
|
|
"description": "Removes a global graph output",
|
|
"itemtype": "method",
|
|
"name": "removeOutput",
|
|
"params": [
|
|
{
|
|
"name": "name",
|
|
"description": "",
|
|
"type": "String"
|
|
}
|
|
],
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1514,
|
|
"description": "returns if the graph is in live mode",
|
|
"itemtype": "method",
|
|
"name": "isLive",
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1533,
|
|
"description": "clears the triggered slot animation in all links (stop visual animation)",
|
|
"itemtype": "method",
|
|
"name": "clearTriggeredSlots",
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1565,
|
|
"description": "Destroys a link",
|
|
"itemtype": "method",
|
|
"name": "removeLink",
|
|
"params": [
|
|
{
|
|
"name": "link_id",
|
|
"description": "",
|
|
"type": "Number"
|
|
}
|
|
],
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1582,
|
|
"description": "Creates a Object containing all the info about this graph, it can be serialized",
|
|
"itemtype": "method",
|
|
"name": "serialize",
|
|
"return": {
|
|
"description": "value of the node",
|
|
"type": "Object"
|
|
},
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1619,
|
|
"description": "Configure a graph from a JSON string",
|
|
"itemtype": "method",
|
|
"name": "configure",
|
|
"params": [
|
|
{
|
|
"name": "str",
|
|
"description": "configure a graph from a JSON string",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "returns",
|
|
"description": "if there was any error parsing",
|
|
"type": "Boolean"
|
|
}
|
|
],
|
|
"class": "LGraph"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1881,
|
|
"description": "configure a node from an object containing the serialized info",
|
|
"itemtype": "method",
|
|
"name": "configure",
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 1949,
|
|
"description": "serialize the content",
|
|
"itemtype": "method",
|
|
"name": "serialize",
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2039,
|
|
"description": "serialize and stringify",
|
|
"itemtype": "method",
|
|
"name": "toString",
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2051,
|
|
"description": "get the title string",
|
|
"itemtype": "method",
|
|
"name": "getTitle",
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2064,
|
|
"description": "sets the output data",
|
|
"itemtype": "method",
|
|
"name": "setOutputData",
|
|
"params": [
|
|
{
|
|
"name": "slot",
|
|
"description": "",
|
|
"type": "Number"
|
|
},
|
|
{
|
|
"name": "data",
|
|
"description": "",
|
|
"type": "*"
|
|
}
|
|
],
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2100,
|
|
"description": "sets the output data type, useful when you want to be able to overwrite the data type",
|
|
"itemtype": "method",
|
|
"name": "setOutputDataType",
|
|
"params": [
|
|
{
|
|
"name": "slot",
|
|
"description": "",
|
|
"type": "Number"
|
|
},
|
|
{
|
|
"name": "datatype",
|
|
"description": "",
|
|
"type": "String"
|
|
}
|
|
],
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2129,
|
|
"description": "Retrieves the input data (data traveling through the connection) from one slot",
|
|
"itemtype": "method",
|
|
"name": "getInputData",
|
|
"params": [
|
|
{
|
|
"name": "slot",
|
|
"description": "",
|
|
"type": "Number"
|
|
},
|
|
{
|
|
"name": "force_update",
|
|
"description": "if set to true it will force the connected node of this slot to output data into this link",
|
|
"type": "Boolean"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "data or if it is not connected returns undefined",
|
|
"type": "*"
|
|
},
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2165,
|
|
"description": "Retrieves the input data type (in case this supports multiple input types)",
|
|
"itemtype": "method",
|
|
"name": "getInputDataType",
|
|
"params": [
|
|
{
|
|
"name": "slot",
|
|
"description": "",
|
|
"type": "Number"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "datatype in string format",
|
|
"type": "String"
|
|
},
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2191,
|
|
"description": "Retrieves the input data from one slot using its name instead of slot number",
|
|
"itemtype": "method",
|
|
"name": "getInputDataByName",
|
|
"params": [
|
|
{
|
|
"name": "slot_name",
|
|
"description": "",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "force_update",
|
|
"description": "if set to true it will force the connected node of this slot to output data into this link",
|
|
"type": "Boolean"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "data or if it is not connected returns null",
|
|
"type": "*"
|
|
},
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2207,
|
|
"description": "tells you if there is a connection in one input slot",
|
|
"itemtype": "method",
|
|
"name": "isInputConnected",
|
|
"params": [
|
|
{
|
|
"name": "slot",
|
|
"description": "",
|
|
"type": "Number"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "",
|
|
"type": "Boolean"
|
|
},
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2220,
|
|
"description": "tells you info about an input connection (which node, type, etc)",
|
|
"itemtype": "method",
|
|
"name": "getInputInfo",
|
|
"params": [
|
|
{
|
|
"name": "slot",
|
|
"description": "",
|
|
"type": "Number"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "object or null { link: id, name: string, type: string or 0 }",
|
|
"type": "Object"
|
|
},
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2235,
|
|
"description": "returns the node connected in the input slot",
|
|
"itemtype": "method",
|
|
"name": "getInputNode",
|
|
"params": [
|
|
{
|
|
"name": "slot",
|
|
"description": "",
|
|
"type": "Number"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "node or null",
|
|
"type": "LGraphNode"
|
|
},
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2257,
|
|
"description": "returns the value of an input with this name, otherwise checks if there is a property with that name",
|
|
"itemtype": "method",
|
|
"name": "getInputOrProperty",
|
|
"params": [
|
|
{
|
|
"name": "name",
|
|
"description": "",
|
|
"type": "String"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "value",
|
|
"type": "*"
|
|
},
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2284,
|
|
"description": "tells you the last output data that went in that slot",
|
|
"itemtype": "method",
|
|
"name": "getOutputData",
|
|
"params": [
|
|
{
|
|
"name": "slot",
|
|
"description": "",
|
|
"type": "Number"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "object or null",
|
|
"type": "Object"
|
|
},
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2302,
|
|
"description": "tells you info about an output connection (which node, type, etc)",
|
|
"itemtype": "method",
|
|
"name": "getOutputInfo",
|
|
"params": [
|
|
{
|
|
"name": "slot",
|
|
"description": "",
|
|
"type": "Number"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "object or null { name: string, type: string, links: [ ids of links in number ] }",
|
|
"type": "Object"
|
|
},
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2318,
|
|
"description": "tells you if there is a connection in one output slot",
|
|
"itemtype": "method",
|
|
"name": "isOutputConnected",
|
|
"params": [
|
|
{
|
|
"name": "slot",
|
|
"description": "",
|
|
"type": "Number"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "",
|
|
"type": "Boolean"
|
|
},
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2331,
|
|
"description": "tells you if there is any connection in the output slots",
|
|
"itemtype": "method",
|
|
"name": "isAnyOutputConnected",
|
|
"return": {
|
|
"description": "",
|
|
"type": "Boolean"
|
|
},
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2347,
|
|
"description": "retrieves all the nodes connected to this output slot",
|
|
"itemtype": "method",
|
|
"name": "getOutputNodes",
|
|
"params": [
|
|
{
|
|
"name": "slot",
|
|
"description": "",
|
|
"type": "Number"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "",
|
|
"type": "Array"
|
|
},
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2380,
|
|
"description": "Triggers an event in this node, this will trigger any output with the same name",
|
|
"itemtype": "method",
|
|
"name": "trigger",
|
|
"params": [
|
|
{
|
|
"name": "event",
|
|
"description": "name ( \"on_play\", ... ) if action is equivalent to false then the event is send to all",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "param",
|
|
"description": "",
|
|
"type": "*"
|
|
}
|
|
],
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2403,
|
|
"description": "Triggers an slot event in this node",
|
|
"itemtype": "method",
|
|
"name": "triggerSlot",
|
|
"params": [
|
|
{
|
|
"name": "slot",
|
|
"description": "the index of the output slot",
|
|
"type": "Number"
|
|
},
|
|
{
|
|
"name": "param",
|
|
"description": "",
|
|
"type": "*"
|
|
},
|
|
{
|
|
"name": "link_id",
|
|
"description": "[optional] in case you want to trigger and specific output link in a slot",
|
|
"type": "Number"
|
|
}
|
|
],
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2453,
|
|
"description": "clears the trigger slot animation",
|
|
"itemtype": "method",
|
|
"name": "clearTriggeredSlot",
|
|
"params": [
|
|
{
|
|
"name": "slot",
|
|
"description": "the index of the output slot",
|
|
"type": "Number"
|
|
},
|
|
{
|
|
"name": "link_id",
|
|
"description": "[optional] in case you want to trigger and specific output link in a slot",
|
|
"type": "Number"
|
|
}
|
|
],
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2485,
|
|
"description": "add a new property to this node",
|
|
"itemtype": "method",
|
|
"name": "addProperty",
|
|
"params": [
|
|
{
|
|
"name": "name",
|
|
"description": "",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "default_value",
|
|
"description": "",
|
|
"type": "*"
|
|
},
|
|
{
|
|
"name": "type",
|
|
"description": "string defining the output type (\"vec3\",\"number\",...)",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "extra_info",
|
|
"description": "this can be used to have special properties of the property (like values, etc)",
|
|
"type": "Object"
|
|
}
|
|
],
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2511,
|
|
"description": "add a new output slot to use in this node",
|
|
"itemtype": "method",
|
|
"name": "addOutput",
|
|
"params": [
|
|
{
|
|
"name": "name",
|
|
"description": "",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "type",
|
|
"description": "string defining the output type (\"vec3\",\"number\",...)",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "extra_info",
|
|
"description": "this can be used to have special properties of an output (label, special color, position, etc)",
|
|
"type": "Object"
|
|
}
|
|
],
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2535,
|
|
"description": "add a new output slot to use in this node",
|
|
"itemtype": "method",
|
|
"name": "addOutputs",
|
|
"params": [
|
|
{
|
|
"name": "array",
|
|
"description": "of triplets like [[name,type,extra_info],[...]]",
|
|
"type": "Array"
|
|
}
|
|
],
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2561,
|
|
"description": "remove an existing output slot",
|
|
"itemtype": "method",
|
|
"name": "removeOutput",
|
|
"params": [
|
|
{
|
|
"name": "slot",
|
|
"description": "",
|
|
"type": "Number"
|
|
}
|
|
],
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2590,
|
|
"description": "add a new input slot to use in this node",
|
|
"itemtype": "method",
|
|
"name": "addInput",
|
|
"params": [
|
|
{
|
|
"name": "name",
|
|
"description": "",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "type",
|
|
"description": "string defining the input type (\"vec3\",\"number\",...), it its a generic one use 0",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "extra_info",
|
|
"description": "this can be used to have special properties of an input (label, color, position, etc)",
|
|
"type": "Object"
|
|
}
|
|
],
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2615,
|
|
"description": "add several new input slots in this node",
|
|
"itemtype": "method",
|
|
"name": "addInputs",
|
|
"params": [
|
|
{
|
|
"name": "array",
|
|
"description": "of triplets like [[name,type,extra_info],[...]]",
|
|
"type": "Array"
|
|
}
|
|
],
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2641,
|
|
"description": "remove an existing input slot",
|
|
"itemtype": "method",
|
|
"name": "removeInput",
|
|
"params": [
|
|
{
|
|
"name": "slot",
|
|
"description": "",
|
|
"type": "Number"
|
|
}
|
|
],
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2665,
|
|
"description": "add an special connection to this node (used for special kinds of graphs)",
|
|
"itemtype": "method",
|
|
"name": "addConnection",
|
|
"params": [
|
|
{
|
|
"name": "name",
|
|
"description": "",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "type",
|
|
"description": "string defining the input type (\"vec3\",\"number\",...)",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "pos",
|
|
"description": "position of the connection inside the node",
|
|
"type": "[x,y]"
|
|
},
|
|
{
|
|
"name": "direction",
|
|
"description": "if is input or output",
|
|
"type": "String"
|
|
}
|
|
],
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2686,
|
|
"description": "computes the size of a node according to its inputs and output slots",
|
|
"itemtype": "method",
|
|
"name": "computeSize",
|
|
"params": [
|
|
{
|
|
"name": "minHeight",
|
|
"description": "",
|
|
"type": "Number"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "the total size",
|
|
"type": "Number"
|
|
},
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2753,
|
|
"description": "Allows to pass",
|
|
"itemtype": "method",
|
|
"name": "addWidget",
|
|
"return": {
|
|
"description": "the created widget",
|
|
"type": "Object"
|
|
},
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2791,
|
|
"description": "returns the bounding of the object, used for rendering purposes\nbounding is: [topleft_cornerx, topleft_cornery, width, height]",
|
|
"itemtype": "method",
|
|
"name": "getBounding",
|
|
"return": {
|
|
"description": "the total size",
|
|
"type": "Float32Array[4]"
|
|
},
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2810,
|
|
"description": "checks if a point is inside the shape of a node",
|
|
"itemtype": "method",
|
|
"name": "isPointInside",
|
|
"params": [
|
|
{
|
|
"name": "x",
|
|
"description": "",
|
|
"type": "Number"
|
|
},
|
|
{
|
|
"name": "y",
|
|
"description": "",
|
|
"type": "Number"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "",
|
|
"type": "Boolean"
|
|
},
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2836,
|
|
"description": "checks if a point is inside a node slot, and returns info about which slot",
|
|
"itemtype": "method",
|
|
"name": "getSlotInPosition",
|
|
"params": [
|
|
{
|
|
"name": "x",
|
|
"description": "",
|
|
"type": "Number"
|
|
},
|
|
{
|
|
"name": "y",
|
|
"description": "",
|
|
"type": "Number"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "if found the object contains { input|output: slot object, slot: number, link_pos: [x,y] }",
|
|
"type": "Object"
|
|
},
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2868,
|
|
"description": "returns the input slot with a given name (used for dynamic slots), -1 if not found",
|
|
"itemtype": "method",
|
|
"name": "findInputSlot",
|
|
"params": [
|
|
{
|
|
"name": "name",
|
|
"description": "the name of the slot",
|
|
"type": "String"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "the slot (-1 if not found)",
|
|
"type": "Number"
|
|
},
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2884,
|
|
"description": "returns the output slot with a given name (used for dynamic slots), -1 if not found",
|
|
"itemtype": "method",
|
|
"name": "findOutputSlot",
|
|
"params": [
|
|
{
|
|
"name": "name",
|
|
"description": "the name of the slot",
|
|
"type": "String"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "the slot (-1 if not found)",
|
|
"type": "Number"
|
|
},
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 2899,
|
|
"description": "connect this node output to the input of another node",
|
|
"itemtype": "method",
|
|
"name": "connect",
|
|
"params": [
|
|
{
|
|
"name": "slot",
|
|
"description": "(could be the number of the slot or the string with the name of the slot)",
|
|
"type": "Number_or_string"
|
|
},
|
|
{
|
|
"name": "node",
|
|
"description": "the target node",
|
|
"type": "LGraphNode"
|
|
},
|
|
{
|
|
"name": "target_slot",
|
|
"description": "the input slot of the target node (could be the number of the slot or the string with the name of the slot, or -1 to connect a trigger)",
|
|
"type": "Number_or_string"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "the link_info is created, otherwise null",
|
|
"type": "Object"
|
|
},
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 3024,
|
|
"description": "disconnect one output to an specific node",
|
|
"itemtype": "method",
|
|
"name": "disconnectOutput",
|
|
"params": [
|
|
{
|
|
"name": "slot",
|
|
"description": "(could be the number of the slot or the string with the name of the slot)",
|
|
"type": "Number_or_string"
|
|
},
|
|
{
|
|
"name": "target_node",
|
|
"description": "the target node to which this slot is connected [Optional, if not target_node is specified all nodes will be disconnected]",
|
|
"type": "LGraphNode"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "if it was disconnected succesfully",
|
|
"type": "Boolean"
|
|
},
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 3132,
|
|
"description": "disconnect one input",
|
|
"itemtype": "method",
|
|
"name": "disconnectInput",
|
|
"params": [
|
|
{
|
|
"name": "slot",
|
|
"description": "(could be the number of the slot or the string with the name of the slot)",
|
|
"type": "Number_or_string"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "if it was disconnected succesfully",
|
|
"type": "Boolean"
|
|
},
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 3206,
|
|
"description": "returns the center of a connection point in canvas coords",
|
|
"itemtype": "method",
|
|
"name": "getConnectionPos",
|
|
"params": [
|
|
{
|
|
"name": "is_input",
|
|
"description": "true if if a input slot, false if it is an output",
|
|
"type": "Boolean"
|
|
},
|
|
{
|
|
"name": "slot",
|
|
"description": "(could be the number of the slot or the string with the name of the slot)",
|
|
"type": "Number_or_string"
|
|
},
|
|
{
|
|
"name": "out",
|
|
"description": "[optional] a place to store the output, to free garbage",
|
|
"type": "Vec2"
|
|
}
|
|
],
|
|
"return": {
|
|
"description": "the position",
|
|
"type": "[x,y]"
|
|
},
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 3390,
|
|
"description": "Collapse the node to make it smaller on the canvas",
|
|
"itemtype": "method",
|
|
"name": "collapse",
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 3406,
|
|
"description": "Forces the node to do not move or realign on Z",
|
|
"itemtype": "method",
|
|
"name": "pin",
|
|
"class": "LGraphNode"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 3837,
|
|
"description": "clears all the data inside",
|
|
"itemtype": "method",
|
|
"name": "clear",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 3880,
|
|
"description": "assigns a graph, you can reasign graphs to the same canvas",
|
|
"itemtype": "method",
|
|
"name": "setGraph",
|
|
"params": [
|
|
{
|
|
"name": "graph",
|
|
"description": "",
|
|
"type": "LGraph"
|
|
}
|
|
],
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 3911,
|
|
"description": "opens a graph contained inside a node in the current graph",
|
|
"itemtype": "method",
|
|
"name": "openSubgraph",
|
|
"params": [
|
|
{
|
|
"name": "graph",
|
|
"description": "",
|
|
"type": "LGraph"
|
|
}
|
|
],
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 3938,
|
|
"description": "closes a subgraph contained inside a node",
|
|
"itemtype": "method",
|
|
"name": "closeSubgraph",
|
|
"params": [
|
|
{
|
|
"name": "assigns",
|
|
"description": "a graph",
|
|
"type": "LGraph"
|
|
}
|
|
],
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 3961,
|
|
"description": "assigns a canvas",
|
|
"itemtype": "method",
|
|
"name": "setCanvas",
|
|
"params": [
|
|
{
|
|
"name": "assigns",
|
|
"description": "a canvas (also accepts the ID of the element (not a selector)",
|
|
"type": "Canvas"
|
|
}
|
|
],
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 4038,
|
|
"description": "binds mouse, keyboard, touch and drag events to the canvas",
|
|
"itemtype": "method",
|
|
"name": "bindEvents",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 4090,
|
|
"description": "unbinds mouse events from the canvas",
|
|
"itemtype": "method",
|
|
"name": "unbindEvents",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 4138,
|
|
"description": "this function allows to render the canvas using WebGL instead of Canvas2D\nthis is useful if you plant to render 3D objects inside your nodes, it uses litegl.js for webgl and canvas2DtoWebGL to emulate the Canvas2D calls in webGL",
|
|
"itemtype": "method",
|
|
"name": "enableWebGL",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 4180,
|
|
"description": "Used to attach the canvas in a popup",
|
|
"itemtype": "method",
|
|
"name": "getCanvasWindow",
|
|
"return": {
|
|
"description": "returns the window where the canvas is attached (the DOM root node)",
|
|
"type": "Window"
|
|
},
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 4194,
|
|
"description": "starts rendering the content of the canvas when needed",
|
|
"itemtype": "method",
|
|
"name": "startRendering",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 4218,
|
|
"description": "stops rendering the content of the canvas (to save resources)",
|
|
"itemtype": "method",
|
|
"name": "stopRendering",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 4501,
|
|
"description": "Called when a mouse move event has to be processed",
|
|
"itemtype": "method",
|
|
"name": "processMouseMove",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 4675,
|
|
"description": "Called when a mouse up event has to be processed",
|
|
"itemtype": "method",
|
|
"name": "processMouseUp",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 4847,
|
|
"description": "Called when a mouse wheel event has to be processed",
|
|
"itemtype": "method",
|
|
"name": "processMouseWheel",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 4876,
|
|
"description": "retuns true if a position (in graph space) is on top of a node little corner box",
|
|
"itemtype": "method",
|
|
"name": "isOverNodeBox",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 4888,
|
|
"description": "retuns true if a position (in graph space) is on top of a node input slot",
|
|
"itemtype": "method",
|
|
"name": "isOverNodeInput",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 4917,
|
|
"description": "process a key event",
|
|
"itemtype": "method",
|
|
"name": "processKey",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 5074,
|
|
"description": "process a item drop event on top the canvas",
|
|
"itemtype": "method",
|
|
"name": "processDrop",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 5192,
|
|
"description": "selects a given node (or adds it to the current selection)",
|
|
"itemtype": "method",
|
|
"name": "selectNode",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 5204,
|
|
"description": "selects several nodes (or adds them to the current selection)",
|
|
"itemtype": "method",
|
|
"name": "selectNodes",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 5242,
|
|
"description": "removes a node from the current selection",
|
|
"itemtype": "method",
|
|
"name": "deselectNode",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 5268,
|
|
"description": "removes all nodes from the current selection",
|
|
"itemtype": "method",
|
|
"name": "deselectAllNodes",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 5291,
|
|
"description": "deletes all nodes in the current selection from the graph",
|
|
"itemtype": "method",
|
|
"name": "deleteSelectedNodes",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 5308,
|
|
"description": "centers the camera on a given node",
|
|
"itemtype": "method",
|
|
"name": "centerOnNode",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 5319,
|
|
"description": "adds some useful properties to a mouse event, like the position in graph coordinates",
|
|
"itemtype": "method",
|
|
"name": "adjustMouseEvent",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 5347,
|
|
"description": "changes the zoom level of the graph (default is 1), you can pass also a place used to pivot the zoom",
|
|
"itemtype": "method",
|
|
"name": "setZoom",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 5378,
|
|
"description": "converts a coordinate from graph coordinates to canvas2D coordinates",
|
|
"itemtype": "method",
|
|
"name": "convertOffsetToCanvas",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 5387,
|
|
"description": "converts a coordinate from Canvas2D coordinates to graph space",
|
|
"itemtype": "method",
|
|
"name": "convertCanvasToOffset",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 5403,
|
|
"description": "brings a node to front (above all other nodes)",
|
|
"itemtype": "method",
|
|
"name": "bringToFront",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 5416,
|
|
"description": "sends a node to the back (below all other nodes)",
|
|
"itemtype": "method",
|
|
"name": "sendToBack",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 5436,
|
|
"description": "checks which nodes are visible (inside the camera area)",
|
|
"itemtype": "method",
|
|
"name": "computeVisibleNodes",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 5461,
|
|
"description": "renders the whole canvas content, by rendering in two separated canvas, one containing the background grid and the connections, and one containing the nodes)",
|
|
"itemtype": "method",
|
|
"name": "draw",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 5488,
|
|
"description": "draws the front canvas (the one containing all the nodes)",
|
|
"itemtype": "method",
|
|
"name": "drawFrontCanvas",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 5632,
|
|
"description": "draws some useful stats in the corner of the canvas",
|
|
"itemtype": "method",
|
|
"name": "renderInfo",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 5659,
|
|
"description": "draws the back canvas (the one containing the background and the connections)",
|
|
"itemtype": "method",
|
|
"name": "drawBackCanvas",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 5807,
|
|
"description": "draws the given node inside the canvas",
|
|
"itemtype": "method",
|
|
"name": "drawNode",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 6115,
|
|
"description": "draws the shape of the given node in the canvas",
|
|
"itemtype": "method",
|
|
"name": "drawNodeShape",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 6311,
|
|
"description": "draws every connection visible in the canvas\nOPTIMIZE THIS: precatch connections position instead of recomputing them every time",
|
|
"itemtype": "method",
|
|
"name": "drawConnections",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 6398,
|
|
"description": "draws a link between two points",
|
|
"itemtype": "method",
|
|
"name": "renderLink",
|
|
"params": [
|
|
{
|
|
"name": "a",
|
|
"description": "start pos",
|
|
"type": "Vec2"
|
|
},
|
|
{
|
|
"name": "b",
|
|
"description": "end pos",
|
|
"type": "Vec2"
|
|
},
|
|
{
|
|
"name": "link",
|
|
"description": "the link object with all the link info",
|
|
"type": "Object"
|
|
},
|
|
{
|
|
"name": "skip_border",
|
|
"description": "ignore the shadow of the link",
|
|
"type": "Boolean"
|
|
},
|
|
{
|
|
"name": "flow",
|
|
"description": "show flow animation (for events)",
|
|
"type": "Boolean"
|
|
},
|
|
{
|
|
"name": "color",
|
|
"description": "the color for the link",
|
|
"type": "String"
|
|
},
|
|
{
|
|
"name": "start_dir",
|
|
"description": "the direction enum",
|
|
"type": "Number"
|
|
},
|
|
{
|
|
"name": "end_dir",
|
|
"description": "the direction enum",
|
|
"type": "Number"
|
|
},
|
|
{
|
|
"name": "num_sublines",
|
|
"description": "number of sublines (useful to represent vec3 or rgb)",
|
|
"type": "Number"
|
|
}
|
|
],
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 6663,
|
|
"description": "draws the widgets stored inside a node",
|
|
"itemtype": "method",
|
|
"name": "drawNodeWidgets",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 6813,
|
|
"description": "process an event on widgets",
|
|
"itemtype": "method",
|
|
"name": "processNodeWidgets",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 6924,
|
|
"description": "draws every group area in the background",
|
|
"itemtype": "method",
|
|
"name": "drawGroups",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 6979,
|
|
"description": "resizes the canvas to a given size, if no size is passed, then it tries to fill the parentNode",
|
|
"itemtype": "method",
|
|
"name": "resize",
|
|
"class": "LGraphCanvas"
|
|
},
|
|
{
|
|
"file": "../src/litegraph.js",
|
|
"line": 7002,
|
|
"description": "switches to live mode (node shapes are not rendered, only the content)\nthis feature was designed when graphs where meant to create user interfaces",
|
|
"itemtype": "method",
|
|
"name": "switchLiveMode",
|
|
"class": "LGraphCanvas"
|
|
}
|
|
],
|
|
"warnings": []
|
|
} |