mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 19:21:54 +00:00
Merge branch 'master' of https://github.com/jagenjo/litegraph.js
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# litegraph.js
|
# litegraph.js
|
||||||
|
|
||||||
A library in Javascript to create graphs in the browser similar to PD. Nodes can be programmed easily and it includes an editor to construct the graphs.
|
A library in Javascript to create graphs in the browser similar to [PureData](https://puredata.info/). Nodes can be programmed easily and it includes an editor to construct the graphs.
|
||||||
|
|
||||||
It can be integrated easily in any existing web applications and graphs can be run without the need of the editor.
|
It can be integrated easily in any existing web applications and graphs can be run without the need of the editor.
|
||||||
|
|
||||||
|
|||||||
@@ -25,3 +25,18 @@ Slots have the next information:
|
|||||||
* **label**: optional, string used to rename the name as shown in the canvas.
|
* **label**: optional, string used to rename the name as shown in the canvas.
|
||||||
|
|
||||||
To retrieve the data traveling through a link you can call node.getInputData or node.getOutputData
|
To retrieve the data traveling through a link you can call node.getInputData or node.getOutputData
|
||||||
|
|
||||||
|
|
||||||
|
## Integration
|
||||||
|
|
||||||
|
To integrate in you HTML application:
|
||||||
|
|
||||||
|
```js
|
||||||
|
var graph = new LiteGraph.LGraph();
|
||||||
|
var graph_canvas = new LiteGraph.LGraphCanvas( canvas, graph );
|
||||||
|
```
|
||||||
|
|
||||||
|
If you want to start the graph then:
|
||||||
|
```js
|
||||||
|
graph.start();
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user