summaryrefslogtreecommitdiff
path: root/web/src/selection.ts
diff options
context:
space:
mode:
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 {}