scaleY
ts
function Rect.scaleY(rect: Rect, factor: number): RectScales the rectangle vertically by the specified factor while keeping it vertically centered.
Example
ts
Rect.scaleY({ left: 10, top: 20, width: 100, height: 50 }, 1.5);
// { left: 10, top: 7.5, width: 100, height: 75 }ts
pipe({ left: 10, top: 20, width: 100, height: 50 }, Rect.scaleY(1.5));
// { left: 10, top: 7.5, width: 100, height: 75 }