Skip to content

Interface: Focus ​

A point in an image to keep in view, as fractions of its width and height ({ x: 0, y: 0 } is the top left), and optionally the image's shape, so renderers can place it exactly without being told the image's aspect elsewhere.

Properties ​

aspect? ​

ts
optional aspect?: number;

The image's width / height.


x ​

ts
x: number;

y ​

ts
y: number;

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