From 8fd4f3403013f42ad6e2dfee3a4d2239674f23c1 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Sun, 13 Mar 2022 19:46:30 +1100
Subject: Combine SideArea and LeftoverArea into SepSweptArea

---
 src/components/TileTree.vue | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'src/components/TileTree.vue')

diff --git a/src/components/TileTree.vue b/src/components/TileTree.vue
index ce2688e..24d0d84 100644
--- a/src/components/TileTree.vue
+++ b/src/components/TileTree.vue
@@ -89,16 +89,16 @@ export default defineComponent({
 			tree.headerSz = layout.headerSz;
 			layout.children.forEach((n,i) => this.applyLayout(n, tree.children[i]));
 			//handle case where leaf nodes placed in leftover space from parent-sweep
-			if (layout.sideArea != null){
+			if (layout.sepSweptArea != null){
 				//add parent area coords
-				tree.sideArea = layout.sideArea;
+				tree.sepSweptArea = layout.sepSweptArea;
 				//move leaf node children to parent area
 				tree.children.filter(n => n.children.length == 0).map(n => {
-					n.x += layout.sideArea!.x;
-					n.y += layout.sideArea!.y;
+					n.x += layout.sepSweptArea!.x;
+					n.y += layout.sepSweptArea!.y;
 				});
 			} else {
-				tree.sideArea = null;
+				tree.sepSweptArea = null;
 			}
 		}
 	},
-- 
cgit v1.2.3

