Skip to main content

rects_of

Function rects_of 

Source
pub fn rects_of(root: &LayoutNode) -> Vec<(String, FracRect)>
Expand description

The rectangle of every node of root‘s tab, parents before children (the root is the whole area). A node’s share of its parent’s axis is its stored flex size over the sum of its siblings’; the stored tree is the only input, so a maximized pane and a minimized chip (display modes drawn over a tile) leave every rectangle as it is. The page’s twin is frontend/layout/lib/rectsOf.ts; both are checked against layout-rects-vectors.json.