aspect-fit (npm): Returns scale and dimensions of a rectagle that will fit a specific area.
Keywords: fit,|calculation,|rectangle,|aspect,|dimensions,|area