dagrejs / dagre-d3

A D3-based renderer for Dagre
MIT License
2.86k stars 591 forks source link

Transition for each Node and Edge #269

Open shayan90 opened 8 years ago

shayan90 commented 8 years ago

Hey everyone

Firstly I would like you thank you guys for this amazing library.I just wanted to ask you a few question on transitions.bellow is a transition that works :

g.graph().transition = function(selection) { return selection.transition().duration(500); };

However

1- When we pass selection what exactly are we passing ? 2 - Is there a way to do a transition whenever we add or remove to/from g something like this : svg.select('g.node') .transition().duration(500);