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