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