From f2d7c17b198a3e0909d2b913339a87027e00d15d Mon Sep 17 00:00:00 2001 From: Javi Agenjo Date: Thu, 8 Jun 2017 16:28:13 +0200 Subject: [PATCH] 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(); +```