aboutsummaryrefslogtreecommitdiff
path: root/src/tol.ts
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-05-05 13:17:13 +1000
committerTerry Truong <terry06890@gmail.com>2022-05-05 13:19:02 +1000
commit6bb1d2e369512bec91ecc0c63238f4ad4c54c528 (patch)
tree1ff7b085fb518ec69c4d1cc82879d4f588a43991 /src/tol.ts
parent975638afe73b3aec4617987800fc6871e6134469 (diff)
Display common names
Also add capitalizeWords() in util.ts, for more capitalization control
Diffstat (limited to 'src/tol.ts')
-rw-r--r--src/tol.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tol.ts b/src/tol.ts
index 073f848..41ace2c 100644
--- a/src/tol.ts
+++ b/src/tol.ts
@@ -11,11 +11,13 @@ export class TolNode {
tips: number;
pSupport: boolean;
imgName: null | string;
+ commonName: null | string;
constructor(children: string[] = [], parent = null, tips = 0, pSupport = false){
this.children = children;
this.parent = parent;
this.tips = tips;
this.pSupport = pSupport;
this.imgName = null;
+ this.commonName = null;
}
}