feat: add CopyTool implementation
This commit is contained in:
@@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user