From 0324660a26684a5382b2c6c18cd0a4e9f0169631 Mon Sep 17 00:00:00 2001 From: Josh Kingsley Date: Sun, 26 Oct 2025 14:28:55 +0200 Subject: feat(web): add dummy toolbar + tailwindcss colors --- web/src/selection.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 web/src/selection.ts (limited to 'web/src/selection.ts') 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 {} -- cgit v1.2.3