mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Moved cursor in selection check to selection tool
This commit is contained in:
@@ -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(){}
|
||||
}
|
||||
Reference in New Issue
Block a user