InferredAutoLayoutResult
layoutMode: 'NONE' | 'HORIZONTAL' | 'VERTICAL' | 'GRID'
Determines whether this layer uses auto-layout to position its children. Defaults to "NONE".
paddingLeft: number
Applicable only on auto-layout frames. Determines the left padding between the border of the frame and its children.
paddingRight: number
Applicable only on auto-layout frames. Determines the right padding between the border of the frame and its children.
paddingTop: number
Applicable only on auto-layout frames. Determines the top padding between the border of the frame and its children.
paddingBottom: number
Applicable only on auto-layout frames. Determines the bottom padding between the border of the frame and its children.
horizontalPadding: number
DEPRECATED: Use paddingLeft
and paddingRight
instead.
verticalPadding: number
DEPRECATED: Use paddingTop
and paddingBottom
instead.
primaryAxisSizingMode: 'FIXED' | 'AUTO'
Applicable only on auto-layout frames. Determines whether the primary axis has a fixed length (determined by the user) or an automatic length (determined by the layout engine).
counterAxisSizingMode: 'FIXED' | 'AUTO'
Applicable only on auto-layout frames. Determines whether the counter axis has a fixed length (determined by the user) or an automatic length (determined by the layout engine).
strokesIncludedInLayout: boolean
Applicable only on auto-layout frames. Determines whether strokes are included in layout calculations. When true, auto-layout frames behave like css box-sizing: border-box
.
layoutWrap: 'NO_WRAP' | 'WRAP'
Determines whether this layer should use wrapping auto-layout. Defaults to "NO_WRAP"
.
primaryAxisAlignItems: 'MIN' | 'MAX' | 'CENTER' | 'SPACE_BETWEEN'
Applicable only on "HORIZONTAL" or "VERTICAL" auto-layout frames. Determines how the auto-layout frame’s children should be aligned in the primary axis direction.
counterAxisAlignItems: 'MIN' | 'MAX' | 'CENTER' | 'BASELINE'
Applicable only on "HORIZONTAL" or "VERTICAL" auto-layout frames. Determines how the auto-layout frame’s children should be aligned in the counter axis direction.
counterAxisAlignContent: 'AUTO' | 'SPACE_BETWEEN'
Applicable only on auto-layout frames with layoutWrap
set to "WRAP"
. Determines how the wrapped tracks are spaced out inside of the auto-layout frame.
itemSpacing: number
Applicable only on "HORIZONTAL" or "VERTICAL" auto-layout frames. Determines distance between children of the frame.
counterAxisSpacing: number | null
Applicable only on "HORIZONTAL" or "VERTICAL" auto-layout frames with layoutWrap
set to "WRAP"
. Determines the distance between wrapped tracks. The value must be positive.
itemReverseZIndex: boolean
Applicable only on "HORIZONTAL" or "VERTICAL" auto-layout frames. Determines the canvas stacking order of layers in this frame. When true, the first layer will be draw on top.
layoutAlign: 'MIN' | 'CENTER' | 'MAX' | 'STRETCH' | 'INHERIT'
Applicable only on direct children of auto-layout frames. Determines if the layer should stretch along the parent’s counter axis. Defaults to “INHERIT”
.
layoutGrow: number
This property is applicable only for direct children of auto-layout frames. Determines whether a layer should stretch along the parent’s primary axis. 0 corresponds to a fixed size and 1 corresponds to stretch.
layoutPositioning: 'AUTO' | 'ABSOLUTE'
This property is applicable only for direct children of auto-layout frames. Determines whether a layer's size and position should be dermined by auto-layout settings or manually adjustable.