Expand description
The layout algorithms themselves
Functionsยง
- compute_
block_ layout - Computes the layout of
PartialLayoutTree
according to the block layout algorithm - compute_
cached_ layout - Updates the stored layout of the provided
node
and its children - compute_
flexbox_ layout - Computes the layout of
PartialLayoutTree
according to the flexbox algorithm - compute_
grid_ layout - Grid layout algorithm This consists of a few phases:
- compute_
hidden_ layout - Creates a layout for this node and its children, recursively. Each hidden node has zero size and is placed at the origin
- compute_
layout - Updates the stored layout of the provided
node
and its children - compute_
leaf_ layout - Compute the size of a leaf node (node with no children)
- round_
layout - Rounds the calculated
Layout
to exact pixel values