Skip to content

1681-engine / ui / stackLayout

Function: stackLayout() ​

ts
function stackLayout(sizes, options?): StackResult;

Defined in: src/ui/layout/stack.ts:29

Lays items one after another down (or across) with a gap, inside padding. The stack's size is what the items need, so a parent can lay the stack out in turn. Pure, for canvas widgets and DOM/React layouts alike.

Parameters ​

ParameterType
sizesreadonly Size[]
optionsStackOptions

Returns ​

StackResult

Released under the MIT License.