class Geometry · Computations
GridTrack
The size wish of one column or row for Grids.fit.
Works like a CSS flex item: the track starts at preferred, gets a share of the free space in
proportion to grow, gives up space in proportion to shrink × its preferred size when there is
too little, and stays within min and max. A fixed size is { preferred: 80, grow: 0, shrink: 0 } (or min = max); grow: 0 alone still shrinks.
Properties
growoptional
grow?: numberThe share of free space this track gets, relative to the others (default 1; 0 = doesn't grow).
maxoptional
max?: numberThe largest size (default: no limit).
minoptional
min?: numberThe smallest size (default 0).
preferred
preferred: numberThe preferred size.
shrinkoptional
shrink?: numberHow much this track gives up when there is too little space, relative to the others and
weighted by the preferred size, as CSS flex-shrink (default 1; 0 = doesn't shrink).
