Understand sizing and dimension values in PixiJS Layout
mainSizing in PixiJS Layout is managed by the Yoga layout engine. Size-related properties (like width and height) accept several types of values to determine how much space a node occupies:
- Pixel numbers: Absolute pixel values (e.g.,
width: 200). - Percentage strings: Relative to the parent container (e.g.,
width: '50%'). - Auto sizing: Uses
'auto'to let the layout engine determine size. - Intrinsic sizing: Uses
'intrinsic'to size the node based on its own PixiJS bounds (content size).