Skip to content
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

Update the position of a node #318

Open
SivanDuijn opened this issue Mar 14, 2021 · 0 comments
Open

Update the position of a node #318

SivanDuijn opened this issue Mar 14, 2021 · 0 comments

Comments

@SivanDuijn
Copy link

Hi, can i update the position of a node programmaticaly?
For example: The user clicks on a button, the position of a certain node is set to a certain location and the layout adjusts to this.

I can set a node's position like this:

graph.nodes[1].x = 10; 
graph.nodes[1].y = 10;

But this doesn't seem to work..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant