@resee-movies/utilities - v0.8.0
    Preparing search index...

    Function getAspectRatio

    • Given a ratio constant, and a value corresponding to either the "x - numerator" or "y - denominator" of that ratio, calculate the other value and return both.

      Parameters

      • value: number
      • side: "x" | "y"
      • ratio: "square" | "video" | "1/1" | "2/3" | "poster" | "4/5" | "16/9"

      Returns { x: number; y: number }