joint icon indicating copy to clipboard operation
joint copied to clipboard

DirectedGraph layouting does not take paper size into account

Open norm2782 opened this issue 13 years ago • 2 comments

DirectedGraph layouting does not take paper size into account. I currently have a 600x300 paper, but the DirectedGraph layout algorithm lays my objects out vertically, causing them to fall off the paper. Rather than rendering vertically, it would be ideal if the layout algorithm could use the empty horizontal space as well.

norm2782 avatar Oct 09 '13 07:10 norm2782

Seems like you can already explicitly tell the layout algorithm to lay things out horizontally by providing a 'rankDir: "LR"', solving my particular problem. Still, it would be nice if the layout algorithm could take the paper size into account.

norm2782 avatar Oct 09 '13 08:10 norm2782

Won't fix as the DirectedGraph plugin works with dia.Graph not with dia.Paper. Note that you can set the paper dimensions based on the layouted graph content size once layout done.

kumilingus avatar Aug 28 '15 12:08 kumilingus