Expand description
UI layout calculation utilities
This module contains pure utility functions for calculating UI dimensions, scrolling, and layout-related operations without coupling to the main TUI state.
Functions§
- calculate_
available_ data_ rows - Calculate the number of data rows available for display in the terminal This accounts for all UI chrome including input area, status bar, table header, and borders
- calculate_
table_ data_ rows - Calculate the number of data rows available for a table area This accounts only for table chrome (header, borders)
- extract_
timing_ from_ debug_ string - Extract timing information from debug strings Parses strings like “total=123µs” or “total=1.5ms” and returns milliseconds as f64