rect-clamp
Constraint a Rectangle into another by preserving the ratio.
var rect = ;// rect == [0, 0, 200, 200]var rect2 = ;// rect2 == [ 0, 0, 600, 600 ]
Constraint a Rectangle into another by preserving the ratio.
var rect = ;// rect == [0, 0, 200, 200]var rect2 = ;// rect2 == [ 0, 0, 600, 600 ]
npm i rect-clamp
63
0.0.0
ISC