summaryrefslogtreecommitdiff
path: root/apps/web/src/components/app/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/src/components/app/index.ts')
-rw-r--r--apps/web/src/components/app/index.ts11
1 files changed, 9 insertions, 2 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;