From 1b8d05bf83d7bd9ab425852f519ea81bdc379444 Mon Sep 17 00:00:00 2001 From: Josh Kingsley Date: Sat, 25 Oct 2025 22:05:04 +0300 Subject: feat(web): render and draw grid --- web/src/types.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'web/src/types.ts') 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 { -- cgit v1.2.3