summaryrefslogtreecommitdiff
path: root/web/src/types.ts
diff options
context:
space:
mode:
authorJosh Kingsley <josh@joshkingsley.me>2025-10-26 18:31:23 +0200
committerJosh Kingsley <josh@joshkingsley.me>2025-10-26 18:31:23 +0200
commita984c69e3cca4bcf822989bb78a8befe2397e487 (patch)
treeb7599295851dcc87a89e696f32cdc211e77eab18 /web/src/types.ts
parent6ae3218e2dd130c085074a0d13d156bdba99716f (diff)
feat(web): draw selection
Diffstat (limited to 'web/src/types.ts')
-rw-r--r--web/src/types.ts8
1 files changed, 8 insertions, 0 deletions
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
+ );
+}