Skip to main content

frame_for

Function frame_for 

Source
pub fn frame_for(root: &LayoutNode, node_id: &str) -> Option<Frame>
Expand description

The frame of node node_id in root’s tab (SPEC_PIN_TRANSFORM_FACILITY_2026_12_02.md §3): its rectangle, and the free space around it cut into rectangles by the splits on the path from the root to it. In [a | [b / c]] the frame of c is the bottom right corner and two slots, a’s column and b’s cell; the frame of a is its column and one slot, the rest (a strip). A stack is one node, so it is framed whole. None when the tree does not hold the node, or the node is the root (a tab with nothing around it to frame).