-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tree structure in Backends #19
Comments
(Imported. Original comment by byor...@gmail.com on March 11, 2012, 07:07:12 PM UTC) In fact I have been working on this very thing for the past day or so! I will send a message to the mailing list with some issues for discussion and feedback soon. |
See https://groups.google.com/d/msg/diagrams-discuss/saNEFpMe9-Y/jvyZQiDUuIoJ, and also http://www.haskell.org/haskellwiki/Diagrams/Dev/Freezing for discussion of some relevant issues. |
Next Steps to enhancing performance by passing a tree to the backends:
|
Status Report: https://github.com/diagrams/dual-tree/blob/internal-d/src/Data/Tree/DUAL/Internal.hs This is used in the I have implemented this for the SVG backend except for handling clipping. https://github.com/diagrams/diagrams-svg/blob/optimize/src/Diagrams/Backend/SVG.hs#L165 |
This is now all implemented and merged. Both the SVG backend and the cairo backend make use of the new exposed tree structure. |
Nice !!! |
Thanks for your work on this. I'm really happy with where we ended up. From here I think there are a lot more incremental improvements we can make, both in optimizing the output of |
Your welcome, On Thu, Nov 7, 2013 at 10:45 PM, Brent Yorgey notifications@github.comwrote:
|
(Imported from http://code.google.com/p/diagrams/issues/detail?id=73. Original issue from tillk.v...@gmail.com on March 11, 2012, 05:14:51 PM UTC)
Hi,
All of the Backends that I have seen so far flatten the UD-tree to produce output. Using a program like Inkscape to further edit an SVG image, it would be better to preserve this structure.
I also need to have such a structure to make a 3d-Backend. At first I aimed at WebGL using SceneJS, for which I need a SceneGraph (a tree structure). It seems easier to first make a Backend with lambdacubeengine (I roughly understand how the scenegraph works there) and then involve the other people here on the mailing list for the right structures for 3d.
The announcement for diagrams-0.5 mentions a new SVG-Backend. Is it preserving the structure? If yes, I would like to see the code.
Documentation about UD-trees would also help a lot.
The text was updated successfully, but these errors were encountered: