You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -223,11 +223,18 @@ Or if you want to associate a widget with a property of the node, then specify i
223
223
functionMyNode()
224
224
{
225
225
this.properties= { surname:"smith" };
226
-
this.addWidget("text","Surname","", { property:"surname"}); //this will modify the node.properties
226
+
this.addWidget("text","Surname","", { property:"surname"}); //this will modify the node.properties
227
227
}
228
228
```
229
229
## LGraphCanvas
230
230
LGraphCanvas is the class in charge of rendering/interaction with the nodes inside the browser.
231
+
232
+
## LGraphCanvas settings
233
+
There are graph canvas settings that could be defined or modified to change behaviour:
234
+
235
+
***allow_interaction**: when set to `false` disable interaction with the canvas
236
+
***drag_mode**: when set to `true` and `allow_interaction` is `false`, allow individual nodes with `flags.allow_interaction` set to `true` to be interacted with
237
+
231
238
### Canvas Shortcuts
232
239
* Space - Holding space key while moving the cursor moves the canvas around. It works when holding the mouse button down so it is easier to connect different nodes when the canvas gets too large.
233
240
* Ctrl/Shift + Click - Add clicked node to selection.
@@ -277,7 +284,7 @@ To define slots for nodes you must use the type LiteGraph.ACTION for inputs, and
0 commit comments