shamansir / elm-graph-render / Graph.Geometry.Radial

make : Options a -> (a -> { width : Basics.Float, height : Basics.Float }) -> Graph.Tree.Forest a -> Graph.Geometry.Geometry a

Calculate radial geometry of the given Forest a, using the function that provides size for each item.

Options


type alias Options a =
{ distanceBetweenRings : Basics.Float
, focusPoint : Maybe { x : Basics.Float
, y : Basics.Float }
, zoom : Basics.Float
, forces : Maybe (a -> List Force) 
}

defaultOptions : Options a


type alias Force =
{ x : Basics.Float, y : Basics.Float }

Some vecrtor direction.