View as Markdown

API reference: @salmonui/data-grid/engine/tree

TreeRangesinterface

import type { TreeRanges } from '@salmonui/data-grid/engine/tree';
interface TreeRanges {
    readonly starts: Int32Array;
    readonly ends: Int32Array;
    readonly prefix: Int32Array;
    readonly total: number;
    readonly footerAt: Int32Array;
    readonly footerOwner: Int32Array;
}

Visible slot ranges of a layout (grid-free).

TreeRanges members (6)
NameSignatureDescription
startsreadonly starts: Int32Array;

Range starts and ends (slots, [start, end)), ascending.

endsreadonly ends: Int32Array;
prefixreadonly prefix: Int32Array;

prefix[r]: visible data rows before range r; prefix[k] is the total.

totalreadonly total: number;

Visible data rows.

footerAtreadonly footerAt: Int32Array;

Child summary rows: data rows before footer j (ascending; ties keep inner parents first).

footerOwnerreadonly footerOwner: Int32Array;

Child summary rows: source index of the parent of footer j.