diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-03-28 12:10:27 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-03-28 12:10:27 +1100 |
| commit | e39f5ada10723dc1f5c29f32543051f90df03041 (patch) | |
| tree | 04b7a75789a92da305c3d4493d2e1b4d41a260dd /src/lib.ts | |
| parent | 34e34b9620d88b5d76b87a4bbcd473c2fc6002a9 (diff) | |
Move TolNode code to tol.ts
Diffstat (limited to 'src/lib.ts')
| -rw-r--r-- | src/lib.ts | 15 |
1 files changed, 3 insertions, 12 deletions
@@ -1,5 +1,5 @@ /* - * Contains classes used for representing tree-of-life data, and tile-based layouts of such data. + * Contains classes used for representing tile-based layouts of tree-of-life data. * * Generally, given a TolNode with child TolNodes representing tree-of-life T, * initLayoutTree() produces a tree structure representing a subtree of T, @@ -7,17 +7,8 @@ * The tree structure consists of LayoutNode objects, each of which holds placement info for a linked TolNode. */ -// Represents a tree-of-life node/tree -export class TolNode { - name: string; - children: TolNode[]; - parent: TolNode | null; - constructor(name: string, children: TolNode[] = [], parent = null){ - this.name = name; - this.children = children; - this.parent = parent; - } -} +import {TolNode} from './tol'; + // Represents a node/tree, and holds layout data for a TolNode node/tree export class LayoutNode { tolNode: TolNode; |
