summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/web/src/components/app/index.ts11
-rw-r--r--apps/web/src/index.ts5
2 files changed, 9 insertions, 7 deletions
diff --git a/apps/web/src/components/app/index.ts b/apps/web/src/components/app/index.ts
index a2c0c9d..63fde86 100644
--- a/apps/web/src/components/app/index.ts
+++ b/apps/web/src/components/app/index.ts
@@ -5,16 +5,23 @@ import {
changeSelectedSubdivisions,
getSelectedSubdivisionsCount,
} from "../../grid";
-import { Doc } from "../../types";
+import { Doc as LocalDoc } from "../../types";
import ntvGrid, { NotiveGridElement } from "../grid";
import renderGrid from "../grid/renderGrid";
import { GridSelection } from "../grid/selection";
import ntvToolbar from "../toolbar";
import "./index.css";
+import { State } from "@notive/doc";
+
+const state = new State();
+
+state.create_grid();
+
+console.log(state.to_json());
@customElement("ntv-app")
export class NotiveAppElement extends NotiveElement {
- doc: Doc = defaultDoc();
+ doc: LocalDoc = defaultDoc();
#selectedGridId?: string;
#selection?: GridSelection;
diff --git a/apps/web/src/index.ts b/apps/web/src/index.ts
index 857e76a..7842326 100644
--- a/apps/web/src/index.ts
+++ b/apps/web/src/index.ts
@@ -1,8 +1,3 @@
import ntvApp from "./components/app";
-import { State } from "@notive/doc";
-
-const state = new State();
-state.create_grid();
-console.log(state.to_json());
document.body.append(ntvApp());