rect-crop (npm): Crop a dimension in a viewport: Compute a rectangle from a zoom ratio and a center point while preserving the dimension ratio.
Keywords: rect|rectangle|2d|crop|bound|ratio