diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-03-14 21:54:40 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-03-14 21:54:54 +1100 |
| commit | 91fc28593d82ee428d740d2a263b8ec7749894f4 (patch) | |
| tree | 6802a933c657fe9ec085c05285be3b0e9b2a562a /src/components/TileTree.vue | |
| parent | 1fd46c81c6f79787e8c2f73d9a1f7cba794d6b80 (diff) | |
Change layout.ts to lib.ts
Diffstat (limited to 'src/components/TileTree.vue')
| -rw-r--r-- | src/components/TileTree.vue | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/components/TileTree.vue b/src/components/TileTree.vue index e1b1814..461dab0 100644 --- a/src/components/TileTree.vue +++ b/src/components/TileTree.vue @@ -1,8 +1,12 @@ <script lang="ts"> import {defineComponent} from 'vue'; import Tile from './Tile.vue'; +import {TolNode, LayoutTree, LayoutNode} from '../lib'; +import type {LayoutOptions} from '../lib'; +//regarding importing a file f1.ts: + //using 'import f1.ts' makes vue-tsc complain, and 'import f1.js' makes vite complain + //using 'import f1' might cause problems with build systems other than vite -import {TolNode} from '../types'; import tol from '../tol.json'; function preprocessTol(tree: any): void { if (!tree.children){ @@ -13,12 +17,6 @@ function preprocessTol(tree: any): void { } preprocessTol(tol); -import {LayoutTree, LayoutNode} from '../layout'; -import type {LayoutOptions} from '../layout'; -//regarding importing a file f1.ts: - //using 'import f1.ts' makes vue-tsc complain, and 'import f1.js' makes vite complain - //using 'import f1' might cause problems with build systems other than vite - let defaultLayoutOptions: LayoutOptions = { tileSpacing: 5, headerSz: 20, |
