in packages/react-heat-streams/src/components/HeatStreamsChart.tsx [263:273]
function useMaxCategories(
rowGap: boolean,
height: number,
rowHeight: number,
axisHeight: number,
) {
return useMemo(() => {
const gap = rowGap ? 1 : 0
return Math.floor((height - axisHeight) / (rowHeight + gap))
}, [rowGap, height, axisHeight, rowHeight])
}