werkbank
    Preparing search index...
    • Converts a pixel size to a fraction (fr) unit based on the parent container's size.

      Parameters

      • sizePx: number

        The size in pixels.

      • parent: HTMLElement

        The parent container element.

      • orientation: "horizontal" | "vertical"

        The orientation of the grid ("vertical" or "horizontal").

      Returns string

      A string representing the size in fr units.