code: function getAncestors(node) {
    var path = [];
    var current = node;
    while (current.parent) {
      path.unshift(current);
      current = current.parent;
    }
    return path;
  }
docs: Given a node in a partition layout, return an array of all of its ancestor nodes, highest first, but excluding the root.