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