# TreeRanges (@salmonui/data-grid/engine/tree)

> The TreeRanges interface of @salmonui/data-grid/engine/tree: Visible slot ranges of a layout (grid-free).

Canonical: https://salmonui.dev/docs/reference/data-grid/engine-tree/TreeRanges

```ts
import type { TreeRanges } from '@salmonui/data-grid/engine/tree';
```

Entry index: https://salmonui.dev/docs/reference/data-grid/engine-tree (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine-tree.md).

## Reference

Kind: interface

```ts
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).

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `starts` | `readonly starts: Int32Array;` |  | Range starts and ends (slots, `[start, end)`), ascending. |
| `ends` | `readonly ends: Int32Array;` |  |  |
| `prefix` | `readonly prefix: Int32Array;` |  | `prefix[r]`: visible data rows before range r; `prefix[k]` is the total. |
| `total` | `readonly total: number;` |  | Visible data rows. |
| `footerAt` | `readonly footerAt: Int32Array;` |  | Child summary rows: data rows before footer j (ascending; ties keep inner parents first). |
| `footerOwner` | `readonly footerOwner: Int32Array;` |  | Child summary rows: source index of the parent of footer j. |
