@hackage wumpus-tree0.16.0

Drawing trees

Tree drawing with nice layout.

Draw trees represented by Data.Tree, output SVG or EPS. The output should be quite good - no overlapping edges, identical subtrees should have the same shape, leaf nodes evenly spaced.

Note - the demos now use font metrics. Font metrics for the "Core 14" PostScript fonts are distributed as *.afm files with GhostScript (AFM file version 2.0 for GhostScript 8.63) or available from Adode (AFM file version 4.1). To run the demos properly you will need one of these sets of metrics.

Adobe Font technical notes: https://www.adobe.com/devnet/font.html

Core 14 AFM metrics: https://www.adobe.com/content/dam/Adobe/en/devnet/font/pdfs/Core14_AFMs.tar

** WARNING ** - the API is unstable and will change.

Changelog:

v0.15.0 to v0.16.0:

  • Re-worked so tree drawings form a LocGraphic rather than a TraceDrawing, this makes more in line with other graphic objects in Wumpus like shapes.

  • Changed node type to be any LocImage where the answer supports anchors.