Skip to main content

Module pane_share

Module pane_share 

Source
Expand description

What fraction of its tab’s area each docked pane has, from the layout tree srv holds (docs/specs/SPEC_AGENT_PANE_PLACEMENT_FLOATING_2026_11_22.md §2.3): Pane layout’s share.

A node’s size is a flex unit among its siblings, so a leaf’s share is the product, down the path from the root, of its size over the sum of its siblings’ sizes. Panes stacked as tabs of one leaf all have that leaf’s share. It is the layout as stored: what the window draws can differ by gaps and minimum sizes, which the measured pixel size (not part of this module) shows.

Functions§

rounded 🔒
A share as Pane layout shows it: to three places.
shares 🔒
The share of the tab (0 to 1) of every block the layout root holds.