Skip to content

Interface: LayoutNeeds ​

What a layout's items need from it: how many there are, and how they're sized and placed.

Properties ​

cells? ​

ts
optional cells?: ContentCells;

count ​

ts
count: number;

fit? ​

ts
optional fit?: FitProp;

placement? ​

ts
optional placement?: ContentPlacement;

weights? ​

ts
optional weights?: readonly number[];

Tiles each item spans (see weightedLayout); heavier items get featured tiles.

Hat tiling and isohedral tilings after Craig S. Kaplan's hatviz and Tactile (BSD 3-Clause).