Skip to content

Function: rasterSize() ​

ts
function rasterSize(layout, options?): object;

Pixel size of the raster for a layout: width (default the layout's) times pixelRatio.

Parameters ​

ParameterType
layoutLayout
optionsPick<RasterOptions, "width" | "pixelRatio">

Returns ​

object

h ​

ts
h: number;

w ​

ts
w: number;

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