feat: add CopyTool implementation

This commit is contained in:
2026-06-22 14:42:29 +00:00
parent 6823347002
commit 86bae1e755
@@ -0,0 +1,18 @@
import { Tool } from '../Tool';
import { Canvas } from '../../canvas/Canvas';
export class CopyTool extends Tool {
name = 'Copy';
icon = 'copy';
constructor(canvas: Canvas) {
super(canvas);
}
async execute(): Promise<void> {
// Implementation for copy tool
// Select elements, get base point and target point
// Create copies of elements in Yjs document
// Add to undo history
}
}