Adding rectangle tool

This commit is contained in:
Vince
2012-09-02 13:19:20 +02:00
parent 4622cf67a7
commit 946444a16b
7 changed files with 141 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
/*
* @provide pskl.drawingtools.SimplePen
* @provide pskl.drawingtools.Stroke
*
* @require pskl.utils
*/
@@ -75,7 +75,8 @@
this.endCol = col;
this.endRow = row;
// If the stroke tool is released outside of the canvas, we cancel the stroke:
// If the stroke tool is released outside of the canvas, we cancel the stroke:
// TODO: Mutualize this check in common method
if(col < 0 || row < 0 || col > frame.length || row > frame[0].length) {
this.removeCanvasOverlays();
return;