Skip to content

right

ts
function Rect.right(rect: Rect): number

Gets the right x-coordinate of a rectangle.

Example

ts
Rect.right({ left: 10, top: 20, width: 100, height: 50 });
// 110
ts
pipe({ left: 10, top: 20, width: 100, height: 50 }, Rect.right());
// 110