blob: a32aaf11f86ca12fefb2185598bce47f66b5fd39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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"));
|