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

How to fix node position? #116

Open
number-00 opened this issue May 10, 2021 · 4 comments
Open

How to fix node position? #116

number-00 opened this issue May 10, 2021 · 4 comments

Comments

@number-00
Copy link

I tried setting x, y values for the nodes, and set it as fixed. But I noticed that it still renders at different position on each reload.

@number-00
Copy link
Author

nodes: [
{
id: 1,
label: '1',
title: '1 tootip text',
fixed: {
x: true,
y: true,
},
group: 'myGroup',
physics: false,
size: 32,
x: -35,
y: -152,
},

@VakarisZ
Copy link

@number-00 Try setting randomSeed , this is what helped me

@dannykennedy
Copy link

This doesn't seem to work for me either, and randomSeed didn't help...

@dannykennedy
Copy link

OK, I was using physics: true, and the physics were just pulling things out of place 🤦‍♂️

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

3 participants