diff options
Diffstat (limited to 'packages/web/src/defaultDoc.ts')
| -rw-r--r-- | packages/web/src/defaultDoc.ts | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/packages/web/src/defaultDoc.ts b/packages/web/src/defaultDoc.ts deleted file mode 100644 index 0a3fbfb..0000000 --- a/packages/web/src/defaultDoc.ts +++ /dev/null @@ -1,42 +0,0 @@ -import Ratio from "./math/Ratio"; -import { Cell, Doc } from "./types"; - -export default function defaultDoc(): Doc { - const defaultCells: Cell[] = Array.from({ length: 16 }, () => ({ - widthRatio: new Ratio(1, 16), - })); - - return { - grids: [ - { - id: globalThis.crypto.randomUUID(), - baseCellSize: 42, - baseCellWidthRatio: new Ratio(1, 16), - parts: [ - { - rows: Array.from({ length: 4 }, () => ({ - cells: [...defaultCells], - })), - }, - ], - }, - { - id: globalThis.crypto.randomUUID(), - baseCellSize: 42, - baseCellWidthRatio: new Ratio(1, 16), - parts: [ - { - rows: Array.from({ length: 2 }, () => ({ - cells: [...defaultCells], - })), - }, - { - rows: Array.from({ length: 2 }, () => ({ - cells: [...defaultCells], - })), - }, - ], - }, - ], - }; -} |
