Computes a transform between two rects just like background-size: contain.
Primary LanguageJavaScript