jagenjo / litegraph.js

A graph node engine and editor written in Javascript similar to PD or UDK Blueprints, comes with its own editor in HTML5 Canvas2D. The engine can run client side or server side using Node. It allows to export graphs as JSONs to be included in applications independently.
MIT License
5.33k stars 602 forks source link

size not working #451

Open three-old-coders opened 3 months ago

three-old-coders commented 3 months ago

Hi!

I am trying to set the size of a node, but without effect, no errors in the console window either.

    const node = LiteGraph.createNode("custom/device");
    node.title = "NANOPAD [hw:1,0]"
    node.pos = [500, 200];
    node.resizeable = true;
    node.size = [400, 300];

Thanks in advance

Jens