-
Notifications
You must be signed in to change notification settings - Fork 609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting the coordinates on a graph #470
Comments
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: