From 7fa2fec00d9e71ccfe1e5b57ddd22433424859aa Mon Sep 17 00:00:00 2001 From: Leopoldadmin Date: Mon, 22 Jun 2026 14:42:48 +0000 Subject: [PATCH] feat: add TrimTool implementation --- frontend/src/tools/modification/TrimTool.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 frontend/src/tools/modification/TrimTool.ts diff --git a/frontend/src/tools/modification/TrimTool.ts b/frontend/src/tools/modification/TrimTool.ts new file mode 100644 index 0000000..cd78628 --- /dev/null +++ b/frontend/src/tools/modification/TrimTool.ts @@ -0,0 +1,18 @@ +import { Tool } from '../Tool'; +import { Canvas } from '../../canvas/Canvas'; + +export class TrimTool extends Tool { + name = 'Trim'; + icon = 'trim'; + + constructor(canvas: Canvas) { + super(canvas); + } + + async execute(): Promise { + // Implementation for trim tool + // Select boundary and elements to trim + // Update Yjs document with trimmed elements + // Add to undo history + } +} \ No newline at end of file