Open EmmaShredda opened 3 weeks ago
In case you haven't got it yet.
LGraphNode.prototype.pos is a Float32[] where you have x, y from the top left of the barely visible blue box (0,0). The provided number needs to be a valid number (not suffixed with 'px') as per HTMLCanvas.
I'm really banging my head against the wall here. I can't for the life of me figure out how to get the graph coordinates from any other .js file. Like I simply want to add a node at the center of my screen, no matter where I am in the graph, but everything I try just keeps adding the node to 0,0.