From dacc1b2e8fe4b7971304116fce54b3757d37d164 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sat, 26 Mar 2022 12:22:12 +1100 Subject: Highlight search result --- src/lib.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib.ts') diff --git a/src/lib.ts b/src/lib.ts index 4daa1b2..957b508 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -29,6 +29,7 @@ export class LayoutNode { showHeader: boolean; sepSweptArea: SepSweptArea | null; hidden: boolean; + searchResult: boolean; // Used for layout heuristics and info display dCount: number; // Number of descendant leaf nodes depth: number; // Number of ancestor nodes @@ -43,6 +44,7 @@ export class LayoutNode { this.showHeader = false; this.sepSweptArea = null; this.hidden = false; + this.searchResult = false; this.dCount = children.length == 0 ? 1 : arraySum(children.map(n => n.dCount)); this.depth = 0; this.empSpc = 0; -- cgit v1.2.3