From b3b2ba0d961065ce70803c939440c9cff7e89db6 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Wed, 16 Mar 2022 23:13:53 +1100
Subject: Clean up sqrLayoutFn() code

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

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

diff --git a/src/components/TileTree.vue b/src/components/TileTree.vue
index ab8ba1b..fc60a49 100644
--- a/src/components/TileTree.vue
+++ b/src/components/TileTree.vue
@@ -22,9 +22,9 @@ let layoutOptions: LayoutOptions = {
 	//integer values specify pixels
 	tileSpacing: 5,
 	headerSz: 20,
-	minTileSz: 20,
-	maxTileSz: 500,
-	layoutType: 'sqr', //'sqr' | 'rect' | 'sweep'
+	minTileSz: 50,
+	maxTileSz: 200,
+	layoutType: 'sweep', //'sqr' | 'rect' | 'sweep'
 	rectMode: 'auto', //'horz' | 'vert' | 'linear' | 'auto'
 	sweepMode: 'left', //'left' | 'top' | 'shorter' | 'auto'
 	sweptNodesPrio: 'sqrt', //'linear' | 'sqrt' | 'sqrt-when-high'
@@ -80,8 +80,9 @@ export default defineComponent({
 	},
 	created(){
 		window.addEventListener('resize', this.onResize);
-		if (!this.layoutTree.tryLayout([0,0], [this.width,this.height]))
+		if (!this.layoutTree.tryLayout([0,0], [this.width,this.height])){
 			console.log('Unable to layout tree');
+		}
 	},
 	unmounted(){
 		window.removeEventListener('resize', this.onResize);
-- 
cgit v1.2.3

