mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Finished magic wand
This commit is contained in:
parent
37d21f5dec
commit
86ab2e08e6
@ -40,6 +40,11 @@ class MagicWandTool extends SelectionTool {
|
|||||||
this.boundingBoxCenter = [this.boundingBox.minX + (this.boundingBox.maxX - this.boundingBox.minX) / 2,
|
this.boundingBoxCenter = [this.boundingBox.minX + (this.boundingBox.maxX - this.boundingBox.minX) / 2,
|
||||||
this.boundingBox.minY + (this.boundingBox.maxY - this.boundingBox.minY) / 2];
|
this.boundingBox.minY + (this.boundingBox.maxY - this.boundingBox.minY) / 2];
|
||||||
|
|
||||||
|
// Cut the selection
|
||||||
|
this.cutSelection();
|
||||||
|
// Put it on the TMP layer
|
||||||
|
currFile.TMPLayer.context.putImageData(this.previewData, 0, 0);
|
||||||
|
|
||||||
return selectedData;
|
return selectedData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user