aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/TileTree.vue4
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;