Skip to content

Function: useFitCount() ​

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

A layout whose tiles are sized to give about count usable cells (see fitCount).

Parameters ​

ParameterType
optionsMaybeRefOrGetter<LayoutOptions>
countMaybeRefOrGetter<number>
fitFitOptions

Returns ​

ComputedRef<Layout>

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