diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-03-10 22:08:47 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-03-10 22:08:47 +1100 |
| commit | e635f8c72f5b2e7bd132993ce01fc9b1965e3207 (patch) | |
| tree | 97926c63bbf890201295cd4b7b087ac54d9e4caf /src/components/TileTree.vue | |
| parent | 6677c0419908954fd1edf531a7bbc3dc6902724e (diff) | |
Change layout objects into functions
Diffstat (limited to 'src/components/TileTree.vue')
| -rw-r--r-- | src/components/TileTree.vue | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
