From 91fc28593d82ee428d740d2a263b8ec7749894f4 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Mon, 14 Mar 2022 21:54:40 +1100
Subject: Change layout.ts to lib.ts

---
 src/components/TileTree.vue | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

(limited to 'src/components/TileTree.vue')

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,
-- 
cgit v1.2.3

