summaryrefslogtreecommitdiff
path: root/web/src/selection.ts
diff options
context:
space:
mode:
authorJosh Kingsley <josh@joshkingsley.me>2025-10-26 14:28:55 +0200
committerJosh Kingsley <josh@joshkingsley.me>2025-10-26 14:28:55 +0200
commit0324660a26684a5382b2c6c18cd0a4e9f0169631 (patch)
tree64c16e8a4a4815f050f7e06a3b9486a668f2b4d4 /web/src/selection.ts
parent1b8d05bf83d7bd9ab425852f519ea81bdc379444 (diff)
feat(web): add dummy toolbar + tailwindcss colors
Diffstat (limited to 'web/src/selection.ts')
-rw-r--r--web/src/selection.ts19
1 files changed, 19 insertions, 0 deletions
diff --git a/web/src/selection.ts b/web/src/selection.ts
new file mode 100644
index 0000000..88d394b
--- /dev/null
+++ b/web/src/selection.ts
@@ -0,0 +1,19 @@
+import { CellRef } from "./types";
+
+export abstract class Selection {
+ readonly gridId: string;
+ readonly activeCellRef: CellRef;
+
+ constructor(gridId: string, activeCellRef: CellRef) {
+ this.gridId = gridId;
+ this.activeCellRef = activeCellRef;
+ }
+}
+
+export class ActiveCellSelection extends Selection {}
+
+export class RangeSelection extends Selection {}
+
+export class AllSelection extends Selection {}
+
+export class PendingSelection extends Selection {}