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 do I avoid the nodes to extend outside of the visible canvas #186

Open
nessborn opened this issue Aug 20, 2014 · 0 comments
Open

How do I avoid the nodes to extend outside of the visible canvas #186

nessborn opened this issue Aug 20, 2014 · 0 comments

Comments

@nessborn
Copy link

Sometimes when loading the ForceDirected graph, some nodes gets displayed outside of the canvas area and are therefore hidden. Is there some property to set to avoid this behaviour?

capture

// load JSON data.
fd.loadJSON(json);
// compute positions incrementally and animate.
fd.computeIncremental({
iter: 40,
property: 'end',
onStep: function (perc) {
Log.write(perc + '% loaded...');
},
onComplete: function () {
Log.write('done');
fd.animate({
modes: ['linear'],
transition: $jit.Trans.Elastic.easeOut,
duration: 2500
});
}
});

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