services/flattener library

Classes

FlattenChange
Metadata describing an incremental single-node expand/collapse, so a scroll anchor can preserve position when the change happened above the viewport.
Flattener<T>
Owns the flat-list cache and the incremental-vs-rebuild decision.
FlattenResult<T>
The result of a Flattener.update: the current flat list plus, when the update was an incremental single-node change, its FlattenChange.