Skip to content

Interface: CoverOptions ​

Properties ​

aspect? ​

ts
optional aspect?: number;

The image's width / height (defaults to focus.aspect, else square).


focus? ​

ts
optional focus?: Focus;

What to keep in view. Defaults to the middle, { x: 0.5, y: 0.5 }.


within? ​

ts
optional within?: "tile" | "visible";

Where the focus should land: the middle of the part of the cell that shows ("visible", the default), or of the whole tile ("tile"), for a cell an edges: "window" layout cuts. Either way it's the middle of the cell's safe area, so it's well inside the shape.

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