Skip to content

Interface: Layout ​

Properties ​

bounds ​

ts
bounds: Rect;

Bounding box of the region; a good SVG viewBox.


cells ​

ts
cells: Cell[];

cornerRadius ​

ts
cornerRadius: number;

Corner radius renderers apply to every cell (0 for sharp corners).


holes ​

ts
holes: Polygon[];

The region's holes (before margin), positively oriented.


region ​

ts
region: Polygon;

The region outline (before margin).


view? ​

ts
optional view?: Shape[];

With edges: "window": the area tiles show in (the region less its margin and holes). Renderers hide whatever part of a tile lies outside it.

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