From 5404a95c15e176d25728bf1a319ddb9828b23625 Mon Sep 17 00:00:00 2001 From: Josh Kingsley Date: Sat, 25 Oct 2025 20:46:35 +0300 Subject: refactor(web): re-organize files --- web/src/types.ts | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 web/src/types.ts (limited to 'web/src/types.ts') diff --git a/web/src/types.ts b/web/src/types.ts new file mode 100644 index 0000000..df421d7 --- /dev/null +++ b/web/src/types.ts @@ -0,0 +1,36 @@ +import Ratio from "./math/Ratio"; + +export interface Cell { + value?: string; +} + +export interface Row { + cells: [Cell, ...Cell[]]; +} + +export interface Part { + title?: string; + rows: [Row, ...Row[]]; +} + +export interface Grid { + id: string; + baseCellSize: number; + baseCellWidthRatio: Ratio; + parts: [Part, ...Part[]]; +} + +export interface Doc { + grids: Grid[]; +} + +export interface RowRef { + partIndex: number; + rowIndex: number; +} + +export interface CellRef { + partIndex: number; + rowIndex: number; + cellIndex: number; +} -- cgit v1.2.3