From f2d7c17b198a3e0909d2b913339a87027e00d15d Mon Sep 17 00:00:00 2001 From: Javi Agenjo Date: Thu, 8 Jun 2017 16:28:13 +0200 Subject: [PATCH 1/3] Create README.md --- guides/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/guides/README.md b/guides/README.md index d5f2c51f48..cc9761170f 100644 --- a/guides/README.md +++ b/guides/README.md @@ -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: + +``` +var graph = new LiteGraph.LGraph(); +var graph_canvas = new LiteGraph.LGraphCanvas( canvas, graph ); +``` + +If you want to start the graph then: +``` +graph.start(); +``` From f2123b0bcb8881472237e971618939c6681ed81e Mon Sep 17 00:00:00 2001 From: Javi Agenjo Date: Thu, 8 Jun 2017 16:28:27 +0200 Subject: [PATCH 2/3] Create README.md --- guides/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guides/README.md b/guides/README.md index cc9761170f..ebd024e302 100644 --- a/guides/README.md +++ b/guides/README.md @@ -31,12 +31,12 @@ Slots have the next information: 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(); ``` From 3674fc5e6b3ab7e3ed3444e9f8cc6c3c01692bab Mon Sep 17 00:00:00 2001 From: Javi Agenjo Date: Sun, 24 Sep 2017 10:46:38 +0200 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4b1bddc93c..1df5e1f87a 100755 --- a/README.md +++ b/README.md @@ -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.