dropLeftPct
ts
function Rect.dropLeftPct(rect: Rect, amount: number): RectRemoves a percentage of the rectangle's width from the left edge, moving the left position rightward. The amount should be between 0 and 1.
Example
ts
Rect.dropLeftPct({ left: 10, top: 20, width: 100, height: 80 }, 0.25);
// { left: 35, top: 20, width: 75, height: 80 }ts
pipe({ left: 10, top: 20, width: 100, height: 80 }, Rect.dropLeftPct(0.25));
// { left: 35, top: 20, width: 75, height: 80 }