Hiyve Components - v1.0.0
    Preparing search index...
    • Fit a run of tiles (a filmstrip row or a sidebar column) into the space available along its axis.

      Returns the uniform scale to apply to every tile size (1 when everything already fits — tiles are never grown) and the leading offset that centers the run when it underfills. Gaps are not scaled, so the scaled run plus its gaps fits exactly. This is what keeps an 8-student filmstrip on screen instead of pushing the rightmost tiles past the container edge.

      Parameters

      • sizes: number[]
      • available: number
      • gap: number = 0

      Returns { offset: number; scale: number }