import { Doc } from "./types"; function defaultDoc(): Doc { const defaultCells = Array(16).map(() => ({ value: "1" })); return { grids: [ { baseCellSize: 48, parts: [{ rows: Array(4).map(() => ({ cells: [...defaultCells] })) }], }, ], }; } export default class Notive { doc: Doc = defaultDoc(); } window.notive = new Notive(); window.dispatchEvent(new CustomEvent("ntv:initialized"));