Layer Layout

Auto layout (and grid layout) settings applied to the group layer

Type: object

AttributeTypeDescription
directionstring ("row", "column" or "grid") (Optional)Direction the children are laid out in
distributionstring ("min", "center", "max" or "space-between") (Optional)Distribution of the children along the layout direction
gapnumber (Optional)Gap between the children
item_alignmentstring ("min", "center", "max", "stretch", "inherit" or "baseline") (Optional)Alignment of the children across the layout direction
paddingobject (Optional)Padding around the children
wrapboolean (Optional)Indicates whether the children wrap onto multiple lines
wrap_gapnumber (Optional)Gap between the wrapped lines
column_countnumber (Optional)Number of columns, for grid layouts
column_gapnumber (Optional)Gap between the columns, for grid layouts
row_countnumber (Optional)Number of rows, for grid layouts
row_gapnumber (Optional)Gap between the rows, for grid layouts
column_sizesLayer Grid Size[] (Optional)Sizes of the columns, for grid layouts
row_sizesLayer Grid Size[] (Optional)Sizes of the rows, for grid layouts

padding

Padding around the children

AttributeTypeDescription
topnumber (Optional)-
rightnumber (Optional)-
bottomnumber (Optional)-
leftnumber (Optional)-

Example

{
  "direction": "column",
  "distribution": "min",
  "gap": 18,
  "item_alignment": "stretch",
  "padding": {
    "top": 0,
    "right": 0,
    "bottom": 0,
    "left": 0
  }
}