ratatui/benches/main
Josh McKinney 3df685e114
fix(rect)!: Rect::area now returns u32 and Rect::new() no longer clamps area to u16::MAX (#1378)
This change fixes the unexpected behavior of the Rect::new() function to
be more intuitive. The Rect::new() function now clamps the width and
height of the rectangle to keep each bound within u16::MAX. The
Rect::area() function now returns a u32 instead of a u16 to allow for
larger areas to be calculated.

Previously, the Rect::new() function would clamp the total area of the
rectangle to u16::MAX, by preserving the aspect ratio of the rectangle.

BREAKING CHANGE: Rect::area() now returns a u32 instead of a u16.

Fixes: <https://github.com/ratatui/ratatui/issues/1375>

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-10-14 15:04:56 -07:00
..
barchart.rs chore: remove usage of prelude (#1390) 2024-09-28 11:47:45 -07:00
block.rs chore(block): deprecate block::Title (#1372) 2024-09-20 10:21:26 +03:00
buffer.rs fix(rect)!: Rect::area now returns u32 and Rect::new() no longer clamps area to u16::MAX (#1378) 2024-10-14 15:04:56 -07:00
line.rs perf: move benchmarks into a single benchmark harness (#1302) 2024-08-06 05:31:13 -07:00
list.rs chore: rename ratatui-org to ratatui (#1334) 2024-08-21 11:35:08 -07:00
paragraph.rs chore: rename ratatui-org to ratatui (#1334) 2024-08-21 11:35:08 -07:00
rect.rs perf: move benchmarks into a single benchmark harness (#1302) 2024-08-06 05:31:13 -07:00
sparkline.rs chore: rename ratatui-org to ratatui (#1334) 2024-08-21 11:35:08 -07:00
table.rs chore: add benchmark for Table (#1408) 2024-10-07 12:32:05 -07:00