feat: add ScaleTool implementation
This commit is contained in:
@@ -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<void> {
|
||||
// Implementation for scale tool
|
||||
// Select elements, get base point and scale factor
|
||||
// Update Yjs document with scaled positions
|
||||
// Add to undo history
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user