Skip to content

Function: safeAreaCss() ​

ts
function safeAreaCss(
   cell, 
   layout, 
   options?, 
   precision?
): Omit<CellCss, "clipPath">;

Placement, inside a cell's element (as positioned by cellCss), of the cell's safe area (see safeArea): the largest rectangle that isn't clipped by the tile's shape.

Parameters ​

ParameterTypeDefault value
cellCellundefined
layoutLayoutundefined
optionsSafeAreaOptions{}
precisionnumber4

Returns ​

Omit<CellCss, "clipPath">

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