Skip to content
pixi-silk
GitHub repository
Interface

FlexContainerOptions

import type { FlexContainerOptions } from 'pixi-silk/ui/layout';

Options of FlexContainer.

Extended by#

Properties#

PropertyTypeDescriptionDefined in
layout?SmartLayoutThe container’s own flex style: direction, gap, padding and so on.ui/layout/flex-container.ts:66
onLayout?(container: FlexContainer) => voidCalled after every layout pass, on the container that ran it.ui/layout/flex-container.ts:72
ticker?Ticker | nullticker defaults to Ticker.shared. Pass null to call FlexContainer.tick yourself.ui/layout/flex-container.ts:74
transition?| boolean | { damping?: number; stiffness?: number; }Glide children to new slots on a spring. true uses stiffness 170 and damping 26. Default false.ui/layout/flex-container.ts:68
watch?booleanChecks the children’s bounds every frame and lays out again when they change. Default false.ui/layout/flex-container.ts:70