Scenic Layout-O-Matic v0.5.0 LayoutOMatic.Layouts.Components.Layout
Handles Auto-Layouts for Scenic Components.
Each Scenic component is a little different in how it's sized and positioned. While most components are positioned from it's top left most point, passing the next starting point is a little different. Sizing for components are based on font metrics. By determining the dimensions of the font, width and height are calculated and applied to the component. The Layout-O-Matic takes care of all of this for you. Width and height can also be passed as style arguments on a component in which case those dimensions will be used.
Auto-Layout, while a made up term, is used to describe that components will be automatically laid out by positioning components in equal rows and columns. Possibly in the future there may be other types of layouts.
Link to this section Summary
Link to this section Functions
auto_layout(graph, group_id, list_of_comp_ids)
auto_layout( graph :: Scenic.Graph.t(), group_id :: :atom, list_of_comp_ids :: [:atom] ) :: Scenic.Graph.t()