GNOME Bugzilla – Bug 84624
RFE: Auto relayout of diagrams
Last modified: 2014-02-01 21:19:33 UTC
It'd be handy if Dia could take a diagram and reformat it. Other tools could then create .dia files with <dia:object>'s and just specify the <dia:connections> to other objects and have Dia generate the diagram (without needing obj_pos and obj_bb for everything).
What do you mean, reformat? Autolayout is a major problem, not even well defined. Certainly, the bounding box could be recalculated, but object positions are not that easy. Take a look at 'dot' in the graphviz package to get an idea of what is involved in autolayout. If you are thinking of something less general, let us know.
Autolayout was what I was thinking. Something along the lines of what dot can do, builtin to Dia would be quite cool. I suppose Dia could even call out to dot to get a clue on positions.
Reopening.
Hi, at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=148876 , a Debian user proposed to integrate with graphviz, or usage of the latter. Thanks.
Graphviz integration would probably be the way to go. A Python plugin could probably do it. Problem is that graphviz uses its own internal formats, and I'm not sure if it can operate on e.g. Dia Class objects. It may be possible to make a hack to make it work, and I'd welcome work on this side. I don't have the time to do this right now.
mentioned on the mailing list again http://mail.gnome.org/archives/dia-list/2005-March/msg00018.html
More discussion on the mailing list but (may I say again) very few working code (: http://mail.gnome.org/archives/dia-list/2008-August/msg00031.html Another option to grphviz could be to integrate with OSGF http://www.oreas.com/
There is working code on Dia master for some time: https://git.gnome.org/browse/dia/log/plug-ins/layout