Skip to main content

count_visible_nodes

Function count_visible_nodes 

Source
fn count_visible_nodes(
    nodes: &[SceneNode],
    collapsed: &HashSet<EntityId>,
) -> usize
Expand 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.