Skip to content

Function: cellPath() ​

ts
function cellPath(
   layout, 
   cell, 
   precision?
): string;

d attribute for a cell's outline, including the layout's corner rounding and any holes (as extra subpaths; draw with fill-rule="evenodd"). For a window cell this is the whole tile (see cellShape); clip it to viewPath.

Parameters ​

ParameterTypeDefault value
layoutLayoutundefined
cellCellundefined
precisionnumber3

Returns ​

string

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