Skip to content

Function: cellCss() ​

ts
function cellCss(
   cell, 
   layout, 
   precision?, 
   options?
): CellCss;

CSS placement for cell within layout, including rounded corners if the layout has them. A window cell (see cellShape) is placed over its whole tile and clipped to the part of it inside layout.view.

Parameters ​

ParameterTypeDefault value
cellCellundefined
layoutLayoutundefined
precisionnumber4
optionsCellCssOptions{}

Returns ​

CellCss

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