flattenShapes

Returns every ShapeNode in the tree — a depth-first, source-order traversal, so the resulting order is the paint order.

Receiver

The tree to traverse.

Return

The tree's leaves, each carrying its own style and tags.