diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-03-11 00:49:57 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-03-11 00:49:57 +1100 |
| commit | 97ddb2c84b1eeb96d476f3214c1f9be96cfc7d77 (patch) | |
| tree | c909d9cfb0c53bb0566a4547d80fb95f260c2847 /src/components | |
| parent | e2df6e256dd017760747bd0c982e7b2a489b0794 (diff) | |
Add LayoutNode class
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/TileTree.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/TileTree.vue b/src/components/TileTree.vue index debf77a..34a2cf6 100644 --- a/src/components/TileTree.vue +++ b/src/components/TileTree.vue @@ -10,6 +10,7 @@ function preprocessTol(tree){ } } preprocessTol(tol); +//tol-node format: {name: string1, children: [node1, ...]} import {staticSqrLayout, staticRectLayout, sweepToSideLayout, layoutInfoHooks, shiftEmpty} from '/src/layout.js'; let LAYOUT_FUNC = sweepToSideLayout; @@ -89,7 +90,6 @@ export default { } }, applyLayout(layout, tree){ - //layout format: {x, y, w, h, headerSz, children:[layout1, ...], contentW, contentH, empSpc, sideArea} tree.x = layout.x; tree.y = layout.y; tree.w = layout.w; |
