aboutsummaryrefslogtreecommitdiff
path: root/src/tol.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/tol.ts')
-rw-r--r--src/tol.ts25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/tol.ts b/src/tol.ts
deleted file mode 100644
index 59ecadc..0000000
--- a/src/tol.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Provides classes for representing and working with tree-of-life data.
- */
-
-// Maps tree-of-life node names to node objects
-export type TolMap = Map<string, TolNode>;
-// Represents a tree-of-life node
-export class TolNode {
- otolId: string | null;
- children: string[];
- parent: string | null;
- tips: number;
- pSupport: boolean;
- commonName: null | string;
- imgName: null | string | [string, string] | [null, string] | [string, null];
- constructor(children: string[] = [], parent = null, tips = 0, pSupport = false){
- this.otolId = null;
- this.children = children;
- this.parent = parent;
- this.tips = tips;
- this.pSupport = pSupport;
- this.imgName = null;
- this.commonName = null;
- }
-}