Moved cursor in selection check to selection tool

This commit is contained in:
Nicola
2021-12-28 23:38:28 +01:00
parent 69d7f12790
commit b37d050af8
5 changed files with 35 additions and 25 deletions

View File

@@ -1,9 +1,19 @@
class SelectionTool extends Tool {
constructor(name, options, switchFunc) {
super(name, options, switchFunc);
switchFunc = undefined;
moveTool = undefined;
constructor(name, options, switchFunc, moveTool) {
super(name, options);
this.moveTool = moveTool;
this.switchFunc = switchFunc;
}
cutSelection() {}
pasteSelection(){}
copySelection(){}
cursorInSelectedArea(){}
}