Skip to content

Function: useFitCount() ​

ts
function useFitCount(
   options, 
   count, 
   fit?
): Layout;

Compute a layout whose tiles are sized to give about count usable cells (see fitCount in @andamento/core). Options are compared by value; a cells function by identity.

Parameters ​

ParameterType
optionsLayoutOptions
countnumber
fitFitOptions

Returns ​

Layout

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