This commit is contained in:
tamat
2017-10-30 13:44:29 +01:00
2 changed files with 16 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
# 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.

View File

@@ -25,3 +25,18 @@ Slots have the next information:
* **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
## 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();
```