moveBottomTo
ts
function Rect.moveBottomTo(rect: Rect, bottom: number): RectMoves the rectangle so its bottom edge is positioned at the specified y-coordinate.
Example
ts
Rect.moveBottomTo({ left: 10, top: 20, width: 100, height: 50 }, 100);
// { left: 10, top: 50, width: 100, height: 50 }ts
pipe({ left: 10, top: 20, width: 100, height: 50 }, Rect.moveBottomTo(100));
// { left: 10, top: 50, width: 100, height: 50 }