jit icon indicating copy to clipboard operation
jit copied to clipboard

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

Open nessborn opened this issue 11 years ago • 0 comments

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

nessborn avatar Aug 20 '14 10:08 nessborn