gantt-renderer
    Preparing search index...

    Function flattenTree

    • Flattens a tree into a visible row list. A node's children are included only when its id is in expandedIds.

      Parameters

      • roots: TaskNode[]

        The root-level TaskNode instances of the tree.

      • expandedIds: ReadonlySet<number>

        Set of task IDs whose children should be rendered.

      Returns TaskNode[]

      A depth-first flattened array of visible TaskNode items.