Started magic wand

This commit is contained in:
Nicola
2022-01-09 23:53:28 +01:00
parent 8eebb35df6
commit 4c4fbede6e
5 changed files with 31 additions and 1 deletions

17
js/tools/MagicWandTool.js Normal file
View File

@@ -0,0 +1,17 @@
class MagicWandTool extends SelectionTool {
constructor (name, options, switchFunc, moveTool) {
super(name, options, switchFunc, moveTool);
Events.on('click', this.mainButton, switchFunc, this);
}
onEnd(mousePos) {
super.onStart(mousePos);
}
getSelection() {
// this.currSelection should be filled
this.drawSelectedArea();
}
}