From a984c69e3cca4bcf822989bb78a8befe2397e487 Mon Sep 17 00:00:00 2001 From: Josh Kingsley Date: Sun, 26 Oct 2025 18:31:23 +0200 Subject: feat(web): draw selection --- web/src/types.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'web/src/types.ts') diff --git a/web/src/types.ts b/web/src/types.ts index 008d1ee..9b7a51a 100644 --- a/web/src/types.ts +++ b/web/src/types.ts @@ -35,3 +35,11 @@ export interface CellRef { rowIndex: number; cellIndex: number; } + +export function cellRefEquals(a: CellRef, b: CellRef): boolean { + return ( + a.partIndex === b.partIndex && + a.rowIndex === b.rowIndex && + a.cellIndex === b.cellIndex + ); +} -- cgit v1.2.3