Skip to content

Interface: WeightedLayoutOptions ​

Extends ​

Properties ​

cells? ​

ts
optional cells?: ContentCells;

Which cells may hold items: "all" (default), "whole" (not cut by the outline) or a test.

Inherited from ​

WeightOptions.cells


fit? ​

ts
optional fit?: boolean | "atLeast" | "nearest";

Size the tiles so the items fit, counting each item's weight in tiles (see fitCount): true / "atLeast" for the largest tiles that fit everything, "nearest" for the closest count.


placement? ​

ts
optional placement?: ContentPlacement;

Where items go when there are fewer than cells: "reading" (default), "center" or "spread".

Inherited from ​

WeightOptions.placement

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