diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-03-25 21:55:32 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-03-25 21:56:29 +1100 |
| commit | e5742fc061685fcc9f933fb0501b1cb109e83d49 (patch) | |
| tree | 436177857eb9a878bb40621c9180667fe913b7be /src/lib.ts | |
| parent | 58aba42dbd153c1d51ddd845f88648cd78d56ded (diff) | |
Add tolNode parent pointers, tolMap, and layoutMap
Diffstat (limited to 'src/lib.ts')
| -rw-r--r-- | src/lib.ts | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -11,9 +11,11 @@ export class TolNode { name: string; children: TolNode[]; - constructor(name: string, children: TolNode[] = []){ + parent: TolNode | null; + constructor(name: string, children: TolNode[] = [], parent = null){ this.name = name; this.children = children; + this.parent = parent; } } // Represents a node/tree, and holds layout data for a TolNode node/tree |
