Improve map physics

This commit is contained in:
Itay Mizeretz 2017-10-08 19:57:41 +03:00
parent 8ba6ccf939
commit 48790b6ecb
1 changed files with 5 additions and 4 deletions

View File

@ -38,10 +38,11 @@ let options = {
}
},
physics: {
solver: 'forceAtlas2Based',
forceAtlas2Based: {
gravitationalConstant: -370
}
barnesHut: {
gravitationalConstant: -120000,
avoidOverlap: 0.5
},
minVelocity: 0.75
},
groups: getGroupsOptions()
};