MCPcopy Create free account
hub / github.com/microsoft/data-formulator / estimateThreadHeight

Function estimateThreadHeight

src/views/DataThread.tsx:2443–2450  ·  view source on GitHub ↗
(
    tableCount: number, entryCount: number, chartCount: number
)

Source from the content-addressed store, hash-verified

2441const SCROLL_TOLERANCE = 1.5; // a column / segment may extend up to 1.5 × vh before we add another
2442
2443function 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

Callers 1

DataThreadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected