Add a function to get the complex of a node, simply by traversing upward and returning the first parent that matches a scale > the scale of the current node. We could then chain the complex calls to get the upper ones, e.g.:
node |> complex |> complex
Add a function to get the complex of a node, simply by traversing upward and returning the first parent that matches a scale > the scale of the current node. We could then chain the complex calls to get the upper ones, e.g.: