jxxcarlson/elm-tree-builder/2.0.0

NOTE: the latest version is 7.0.0

Tree.Transform

type alias Preferences =
{ halfAngle : Float
, initialEdgeLength : Float
, scaleFactor : Float
, ballRadius : Float
, ballColor : String
}

Preferences for function toGraph.

defaults : Preferences

Default Preferences

toGraph : Preferences -> (a -> String) -> Tree a -> Graph

Transform a Tree to a Graph: a data structure that can be rendered to SVG.