diff options
| author | Josh Kingsley <josh@joshkingsley.me> | 2025-10-25 22:05:04 +0300 |
|---|---|---|
| committer | Josh Kingsley <josh@joshkingsley.me> | 2025-10-25 22:10:04 +0300 |
| commit | 1b8d05bf83d7bd9ab425852f519ea81bdc379444 (patch) | |
| tree | a2555ce10f3c607c6809d020ba4d31fa3c05c7fb /web/src/types.ts | |
| parent | 5404a95c15e176d25728bf1a319ddb9828b23625 (diff) | |
feat(web): render and draw grid
Diffstat (limited to 'web/src/types.ts')
| -rw-r--r-- | web/src/types.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/web/src/types.ts b/web/src/types.ts index df421d7..008d1ee 100644 --- a/web/src/types.ts +++ b/web/src/types.ts @@ -2,22 +2,23 @@ import Ratio from "./math/Ratio"; export interface Cell { value?: string; + widthRatio: Ratio; } export interface Row { - cells: [Cell, ...Cell[]]; + cells: Cell[]; } export interface Part { title?: string; - rows: [Row, ...Row[]]; + rows: Row[]; } export interface Grid { id: string; baseCellSize: number; baseCellWidthRatio: Ratio; - parts: [Part, ...Part[]]; + parts: Part[]; } export interface Doc { |
