You computed layout rectangles with float precision. Now you need them as ratatui::layout::Rect without gaps between adjacent panels.
panes-ratatui converts panes layouts into ratatui rects with pixel-perfect edge rounding.
Install
cargo add panes panes-ratatui
Usage
use Layout;
let resolved = master_stack
.resolve?;
let rects = convert;
for in &rects
Adjacent panels sharing a float boundary produce matching integer edges. No gaps, no overlaps.
License
MIT or Apache 2.0, at your option. See LICENSE-MIT and LICENSE-APACHE.