API reference: @salmonui/data-grid/engine/tree
buildVisibleRangesfunction
import { buildVisibleRanges } from '@salmonui/data-grid/engine/tree';function buildVisibleRanges(layout: TreeLayout, expanded: Uint8Array, footers: boolean, allOpen?: boolean): TreeRanges;
Visible ranges of layout where expanded[s] (by source index) opens a
row with kept children. With footers, a child summary row follows the
last visible descendant of every expanded parent. O(visible rows + k);
O(1) when allOpen says every row is expanded (no footers).