Skip to main content

LayoutProps

interface LayoutProps extends NodeProps

Extended by

  • ShapeProps

Properties​

alignContent​


alignItems​


alignSelf​


anchor​


anchorX​


anchorY​


basis​

basis?: SignalValueFlexBasis

bottom​

The position of the bottom edge of this node.

This shortcut property will set the node's position so that the bottom edge ends up in the given place. If present, overrides the NodeProps.position property.


bottomLeft​

The position of the bottom left corner of this node.

This shortcut property will set the node's position so that the bottom left corner ends up in the given place. If present, overrides the NodeProps.position property.


bottomRight​

The position of the bottom right corner of this node.

This shortcut property will set the node's position so that the bottom right corner ends up in the given place. If present, overrides the NodeProps.position property.


cache​

Inherited from NodeProps.cache

cachePadding​

Controls the padding of the cached canvas used by this node.

By default, the size of the cache is determined based on the bounding box of the node and its children. That includes effects such as stroke or shadow. This property can be used to expand the cache area further. Usually used to account for custom effects created by shaders.

Inherited from NodeProps.cachePadding

cachePaddingBottom​

Controls the padding of the cached canvas used by this node.

By default, the size of the cache is determined based on the bounding box of the node and its children. That includes effects such as stroke or shadow. This property can be used to expand the cache area further. Usually used to account for custom effects created by shaders.

Inherited from NodeProps.cachePaddingBottom

cachePaddingLeft​

Controls the padding of the cached canvas used by this node.

By default, the size of the cache is determined based on the bounding box of the node and its children. That includes effects such as stroke or shadow. This property can be used to expand the cache area further. Usually used to account for custom effects created by shaders.

Inherited from NodeProps.cachePaddingLeft

cachePaddingRight​

Controls the padding of the cached canvas used by this node.

By default, the size of the cache is determined based on the bounding box of the node and its children. That includes effects such as stroke or shadow. This property can be used to expand the cache area further. Usually used to account for custom effects created by shaders.

Inherited from NodeProps.cachePaddingRight

cachePaddingTop​

Controls the padding of the cached canvas used by this node.

By default, the size of the cache is determined based on the bounding box of the node and its children. That includes effects such as stroke or shadow. This property can be used to expand the cache area further. Usually used to account for custom effects created by shaders.

Inherited from NodeProps.cachePaddingTop

children​

children?: SignalValueComponentChildren
Inherited from NodeProps.children

clip​

clip?: SignalValueboolean

columnGap​


composite​

Inherited from NodeProps.composite

compositeOperation​

compositeOperation?: SignalValueGlobalCompositeOperation
Inherited from NodeProps.compositeOperation

direction​

direction?: SignalValueFlexDirection

filters​

Inherited from NodeProps.filters

fontFamily​


fontSize​


fontStyle​


fontWeight​


gap​


grow​


height​


justifyContent​


key​

key?: string
Inherited from NodeProps.key

layout​

layout?: LayoutMode

layoutChildren​

layoutChildren?: LayoutMode

Whether this node lays out its own children with flex. When null (the default), falls back to layout.


layoutSelf​

layoutSelf?: LayoutMode

Whether this node participates in its parent's flex layout. When null (the default), falls back to layout.


left​

The position of the left edge of this node.

This shortcut property will set the node's position so that the left edge ends up in the given place. If present, overrides the NodeProps.position property.


letterSpacing​


lineHeight​


margin​


marginBottom​


marginLeft​


marginRight​


marginTop​


maxHeight​

maxHeight?: SignalValueLengthLimit

maxWidth​

maxWidth?: SignalValueLengthLimit

middle​

The position of the center of this node.

This shortcut property will set the node's position so that the center ends up in the given place. If present, overrides the NodeProps.position property. When anchor is not set, this will be the same as the NodeProps.position.


minHeight​

minHeight?: SignalValueLengthLimit

minWidth​

minWidth?: SignalValueLengthLimit

opacity​

Inherited from NodeProps.opacity

padding​


paddingBottom​


paddingLeft​


paddingRight​


paddingTop​


position​

Inherited from NodeProps.position

ratio​


ref​

Inherited from NodeProps.ref

The position of the right edge of this node.

This shortcut property will set the node's position so that the right edge ends up in the given place. If present, overrides the NodeProps.position property.


rotation​

Inherited from NodeProps.rotation

rowGap​


scale​

Inherited from NodeProps.scale

scaleX​

Inherited from NodeProps.scaleX

scaleY​

Inherited from NodeProps.scaleY

shaders​

shaders?: PossibleShaderConfig
Experimental
This is an experimental feature. The behavior and API may change drastically between minor releases.
Inherited from NodeProps.shaders

shadowBlur​

Inherited from NodeProps.shadowBlur

shadowColor​

Inherited from NodeProps.shadowColor

shadowOffset​

Inherited from NodeProps.shadowOffset

shadowOffsetX​

Inherited from NodeProps.shadowOffsetX

shadowOffsetY​

Inherited from NodeProps.shadowOffsetY

shrink​


size​


skew​

Inherited from NodeProps.skew

skewX​

Inherited from NodeProps.skewX

skewY​

Inherited from NodeProps.skewY

spawner​

spawner?: SignalValueComponentChildren

Deprecated

Use children instead.

Inherited from NodeProps.spawner

textAlign​


textDirection​

textDirection?: SignalValueCanvasDirection

textWrap​


top​

The position of the top edge of this node.

This shortcut property will set the node's position so that the top edge ends up in the given place. If present, overrides the NodeProps.position property.


topLeft​

The position of the top left corner of this node.

This shortcut property will set the node's position so that the top left corner ends up in the given place. If present, overrides the NodeProps.position property.


topRight​

The position of the top right corner of this node.

This shortcut property will set the node's position so that the top right corner ends up in the given place. If present, overrides the NodeProps.position property.


translate​


translateX​


translateY​


verticalAlign​

verticalAlign?: SignalValueVerticalAlign

width​


wordBreak​


wrap​

wrap?: SignalValueFlexWrap

x​

x?: SignalValuenumber
Inherited from NodeProps.x

y​

y?: SignalValuenumber
Inherited from NodeProps.y

zIndex​

Inherited from NodeProps.zIndex