Layout Configuration Attributes
This type represents the directions of representation , wherein TB stands for Top-to-Bottom, BT stands for Bottom-to-Top, LR stands for Left-to-Right and RL stands for Right-to-Left
{ widthDict : Dict Basics.Int Basics.Float
, heightDict : Dict Basics.Int Basics.Float
, width : Basics.Float
, height : Basics.Float
, marginX : Basics.Float
, marginY : Basics.Float
, elemDistX : Basics.Float
, elemDistY : Basics.Float
, direction : Direction
, wrapVal : Maybe Basics.Int
}
This type represents the layout configurations of the drawer
These function set the respective attributes for the algorithm
widthDict : Dict Basics.Int Basics.Float -> Render.StandardDrawers.Attributes.Attribute { b | widthDict : Dict Basics.Int Basics.Float }
The widthDict associates nodes with a width that will be used during the layout.
The default value is Dict.empty
heightDict : Dict Basics.Int Basics.Float -> Render.StandardDrawers.Attributes.Attribute { b | heightDict : Dict Basics.Int Basics.Float }
The heightDict associates nodes with a height that will be used during the layout.
The default value is Dict.empty
width : Basics.Float -> Render.StandardDrawers.Attributes.Attribute { b | width : Basics.Float }
Defines the default width that will be used during the layout. This value will be used when no value is available in widthDict for some node.
The default value is 60 pixels
height : Basics.Float -> Render.StandardDrawers.Attributes.Attribute { b | height : Basics.Float }
Defines the default height that will be used during the layout. This value will be used when no value is available in heightDict for some node.
The default value is 60 pixels
marginX : Basics.Float -> Render.StandardDrawers.Attributes.Attribute { b | marginX : Basics.Float }
Defines the number of pixels to use as a margin around the left and right of the Array.
The default value is 50 pixels
marginY : Basics.Float -> Render.StandardDrawers.Attributes.Attribute { b | marginY : Basics.Float }
Defines the number of pixels to use as a margin around the top and bottom of the Array.
The default value is 50 pixels
elemDistX : Basics.Float -> Render.StandardDrawers.Attributes.Attribute { b | elemDistX : Basics.Float }
Defines Relative distance between elements of array in x-axis direction
The default value is 50 pixels
elemDistY : Basics.Float -> Render.StandardDrawers.Attributes.Attribute { b | elemDistY : Basics.Float }
Defines Relative distance between elements of array in y-axis direction
The default value is 50 pixels
direction : Direction -> Render.StandardDrawers.Attributes.Attribute { b | direction : Direction }
Defines array layout direction i.e LR, RL, TB, BT
The default value is LR
wrapVal : Maybe Basics.Int -> Render.StandardDrawers.Attributes.Attribute { b | wrapVal : Maybe Basics.Int }
Defines the number of nodes to be wrapped in a row before moving to next row
The default value is Nothing