aboutsummaryrefslogtreecommitdiff
path: root/src/lib.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.ts')
-rw-r--r--src/lib.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib.ts b/src/lib.ts
index 450eb90..a82bbd9 100644
--- a/src/lib.ts
+++ b/src/lib.ts
@@ -30,6 +30,8 @@ export class LayoutNode {
sepSweptArea: SepSweptArea | null;
hidden: boolean;
hasFocus: boolean;
+ collapseFailFlag: boolean; // Used to trigger failure animations
+ expandFailFlag: boolean; // Used to trigger failure animations
// Used for layout heuristics and info display
dCount: number; // Number of descendant leaf nodes
depth: number; // Number of ancestor nodes
@@ -45,6 +47,8 @@ export class LayoutNode {
this.sepSweptArea = null;
this.hidden = false;
this.hasFocus = false;
+ this.collapseFailFlag = false;
+ this.expandFailFlag = false;
this.dCount = children.length == 0 ? 1 : arraySum(children.map(n => n.dCount));
this.depth = 0;
this.empSpc = 0;