#rectangle #aspect #scale #ratio #fit

aspect-fit

Scale up a rectangle to be as big as possible while keeping aspect ratio and fitting inside a container rectangle. Based on https://github.com/maxtherocket/aspect-fit.

1 unstable release

0.1.0 Dec 4, 2023

#9 in #aspect

Custom license

6KB
155 lines

aspect-fit

Scale up a rectangle to be as big as possible while keeping aspect ratio and fitting inside a container rectangle

Dependencies

~465KB