( AreaSize
, Graph.Tree.Forest ( Position
, a )
)
Geometry is used to store previously-calculated positions of items in Tree.Forest
as well as the items themselves.
To build up Geometry a
from Tree.Forest a
, use one of:
Graph.Geometry.Vertical.make
- positions are calculated as the vertical flow from top to bottom;Graph.Geometry.Radial.make
- positions are calculated as spreading radially from center to the radius;Graph.Geometry.Make.make
- combines both ways;{ x : Basics.Float, y : Basics.Float }
Position
of the item on the area
fold : (Position -> a -> acc -> acc) -> acc -> Geometry a -> List acc
Fold Geometry
into list using items' positions.
forest : Geometry a -> Graph.Tree.Forest ( Position, a )
Get Forest
with positions from Geometry
none : AreaSize
Empty area.
areaSize : Geometry a -> { width : Basics.Float, height : Basics.Float }
Get size of the geometry area.
The size of the item in the Tree
, to differ it from AreaSize
.
The size of the complete area taken by Geometry
, to differ it from ItemSize
.