From e635f8c72f5b2e7bd132993ce01fc9b1965e3207 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Thu, 10 Mar 2022 22:08:47 +1100 Subject: Change layout objects into functions --- src/components/TileTree.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/components/TileTree.vue') diff --git a/src/components/TileTree.vue b/src/components/TileTree.vue index 0e27c0d..1c7d593 100644 --- a/src/components/TileTree.vue +++ b/src/components/TileTree.vue @@ -12,7 +12,7 @@ function preprocessTol(tree){ preprocessTol(tol); import {staticSqrLayout, staticRectLayout, sweepToSideLayout, layoutInfoHooks, shiftEmpty} from '/src/layout.js'; -let LAYOUT_SYS = sweepToSideLayout; +let LAYOUT_FUNC = sweepToSideLayout; export default { data(){ @@ -76,7 +76,7 @@ export default { this.tryLayout(); }, tryLayout(){ - let layout = LAYOUT_SYS.genLayout(this.tree, 0, 0, this.width, this.height, true); + let layout = LAYOUT_FUNC(this.tree, 0, 0, this.width, this.height, true); if (layout == null){ console.log('Unable to layout tree'); return false; -- cgit v1.2.3