dagrejs / dagre-d3

A D3-based renderer for Dagre
MIT License
2.85k stars 587 forks source link

Replacements for the old min/max rank API #120

Open alexkalderimis opened 9 years ago

alexkalderimis commented 9 years ago

It used to be possible to pin leaf nodes to the baseline with {rank:'min'} and {rank:'max'} - that no longer seems to work and I don't see a layout API guide anywhere (happy to help with that though). What is the recommended replacement for this functionality, if any?

cpettitt commented 9 years ago

It needs to be added back. The code to pin the ranks is actually pretty simple, but the code to deal with sideways edges is a little more involved. Still, it is probably possible to almost blind port the code from the previous version. This is actually an issue in dagre, so tracking this in https://github.com/cpettitt/dagre/issues/159.