| 2441 | const SCROLL_TOLERANCE = 1.5; // a column / segment may extend up to 1.5 × vh before we add another |
| 2442 | |
| 2443 | function estimateThreadHeight( |
| 2444 | tableCount: number, entryCount: number, chartCount: number |
| 2445 | ): number { |
| 2446 | return LAYOUT_THREAD_OVERHEAD |
| 2447 | + tableCount * LAYOUT_TABLE_HEIGHT |
| 2448 | + entryCount * LAYOUT_ENTRY_HEIGHT |
| 2449 | + chartCount * LAYOUT_CHART_HEIGHT; |
| 2450 | } |
| 2451 | |
| 2452 | /** Effective rendered row count for an interaction list: data-agent |
| 2453 | * `summary` entries that are immediately followed by an `instruction` get |