rect-clamp

Constraint a Rectangle into another by preserving the ratio.

Browse on unpkg