Skip to content

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

@nessborn

Description

@nessborn

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
});
}
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions