Skip to content

Type Alias: ContentPlacement ​

ts
type ContentPlacement = "reading" | "center" | "spread";

Where content goes when there are fewer items than cells that may hold content:

  • "reading": the first cells in reading order (content packs to the top left).
  • "center": the cells nearest the middle of the region.
  • "spread": cells spread evenly over the region. Items always fill the chosen cells in reading order.

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