* Get ancestors of a node in the containment hierarchy * * @param nodeId - ID of the node * @returns Array of ancestor nodes from immediate parent to root
(nodeId: string)
| 3246 | * @returns Array of ancestor nodes from immediate parent to root |
| 3247 | */ |
| 3248 | getAncestors(nodeId: string): Node[] { |
| 3249 | return this.traverser.getAncestors(nodeId); |
| 3250 | } |
| 3251 | |
| 3252 | /** |
| 3253 | * Get immediate children of a node |