FlexContainerOptions
import type { FlexContainerOptions } from 'pixi-silk/ui/layout';
Options of FlexContainer.
Extended by#
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
layout? | SmartLayout | The container’s own flex style: direction, gap, padding and so on. | ui/layout/flex-container.ts:66 |
onLayout? | (container: FlexContainer) => void | Called after every layout pass, on the container that ran it. | ui/layout/flex-container.ts:72 |
ticker? | Ticker | null | ticker 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? | boolean | Checks the children’s bounds every frame and lays out again when they change. Default false. | ui/layout/flex-container.ts:70 |