fn count_visible_nodes(
nodes: &[SceneNode],
collapsed: &HashSet<EntityId>,
) -> usizeExpand description
Counts the rows a forest actually shows, stopping at folded nodes.
Used for the scroll extent: counting the whole tree would let the view scroll past the end of a mostly-folded hierarchy.