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

> The siblingInfo function of @salmonui/data-grid/engine/tree: [childCount, posinset, setsize] of a kept row (source index): short sibling walks, falling back to the layout's arrays (built on first read) for wide sibling lists, so per-row reads stay O(1) amortized without an O(n) pass per layout.

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

```ts
import { siblingInfo } 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: function

```ts
function siblingInfo(layout: TreeLayout, s: number): readonly [
    number,
    number,
    number
];
```

`[childCount, posinset, setsize]` of a kept row (source index): short
sibling walks, falling back to the layout's arrays (built on first read)
for wide sibling lists, so per-row reads stay O(1) amortized without an
O(n) pass per layout.
