fromEdges
ts
function Rect.fromEdges(edges: { bottom: number, left: number, right: number, top: number }): RectCreates a rectangle from edge coordinates.
Example
ts
Rect.fromEdges({ left: 10, top: 20, right: 110, bottom: 70 });
// { left: 10, top: 20, width: 100, height: 50 }ts
pipe({ left: 10, top: 20, right: 110, bottom: 70 }, Rect.fromEdges());
// { left: 10, top: 20, width: 100, height: 50 }