18 lines
416 B
TypeScript
18 lines
416 B
TypeScript
|
|
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<void> {
|
||
|
|
// Implementation for move tool
|
||
|
|
// Select elements, get base point and target point
|
||
|
|
// Update Yjs document with new positions
|
||
|
|
// Add to undo history
|
||
|
|
}
|
||
|
|
}
|