aboutsummaryrefslogtreecommitdiff
path: root/src/tol.ts
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2023-01-29 12:21:55 +1100
committerTerry Truong <terry06890@gmail.com>2023-01-29 12:23:13 +1100
commit629b9208503369c3f20ceb59685ef49766344093 (patch)
tree87071d862358c56ee38756ab94eb04f9c55fd0dc /src/tol.ts
parent8781fdb2b8c530a6c1531ae9e82221eb062e34fb (diff)
Adjust frontend coding style
Add line spacing and section comments Fix 'Last updated' line in help modal being shown despite overflow
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 bd299b3..3f7446b 100644
--- a/src/tol.ts
+++ b/src/tol.ts
@@ -13,6 +13,7 @@ export class TolNode {
imgName: null | string |
[string, string] | [null, string] | [string, null]; // Pairs represent compound images
iucn: null | string;
+
constructor(children: string[] = [], parent = null, tips = 0, pSupport = false){
this.otolId = null;
this.children = children;
@@ -24,5 +25,6 @@ export class TolNode {
this.iucn = null;
}
}
+
// Maps TolNode names to TolNode objects
export type TolMap = Map<string, TolNode>;