expand
ts
function Rect.expand(rect: Rect, amount: number): RectExpands the rectangle in all directions by the specified amount.
Example
ts
Rect.expand({ left: 10, top: 20, width: 100, height: 50 }, 10);
// { left: 0, top: 10, width: 120, height: 70 }ts
pipe({ left: 10, top: 20, width: 100, height: 50 }, Rect.expand(10));
// { left: 0, top: 10, width: 120, height: 70 }