summaryrefslogtreecommitdiff
path: root/web/src/index.ts
diff options
context:
space:
mode:
authorJosh Kingsley <josh@joshkingsley.me>2025-10-26 22:13:31 +0200
committerJosh Kingsley <josh@joshkingsley.me>2025-10-26 22:13:31 +0200
commit74592676444cdb9bdc2fef5dc8c483667b557a5e (patch)
tree9481019fb81bd9dd47025298720c04004f1a93cb /web/src/index.ts
parented566a3f657e8256df9aabd107c199e6971a8f96 (diff)
feat(web): draw cell values
Diffstat (limited to 'web/src/index.ts')
-rw-r--r--web/src/index.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/src/index.ts b/web/src/index.ts
index 35af24c..f08aedc 100644
--- a/web/src/index.ts
+++ b/web/src/index.ts
@@ -7,8 +7,9 @@ import renderGrid, {
} from "./components/grid/renderGrid";
function defaultDoc(): Doc {
- const defaultCells: Cell[] = Array.from({ length: 16 }, () => ({
+ const defaultCells: Cell[] = Array.from({ length: 16 }, (_, i) => ({
widthRatio: new Ratio(1, 16),
+ value: i.toString(),
}));
return {