expandY
ts
function Rect.expandY(rect: Rect, amount: number): RectExpands the rectangle vertically by the specified amount.
Example
ts
Rect.expandY({ left: 10, top: 20, width: 100, height: 50 }, 10);
// { left: 10, top: 10, width: 100, height: 70 }ts
pipe({ left: 10, top: 20, width: 100, height: 50 }, Rect.expandY(10));
// { left: 10, top: 10, width: 100, height: 70 }