From 6bb1d2e369512bec91ecc0c63238f4ad4c54c528 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Thu, 5 May 2022 13:17:13 +1000 Subject: Display common names Also add capitalizeWords() in util.ts, for more capitalization control --- src/tol.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/tol.ts') 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; } } -- cgit v1.2.3