aboutsummaryrefslogtreecommitdiff
path: root/js/tools/drawing-tool.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/tools/drawing-tool.js')
-rwxr-xr-xjs/tools/drawing-tool.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/tools/drawing-tool.js b/js/tools/drawing-tool.js
index f587bcd5..a7e585e3 100755
--- a/js/tools/drawing-tool.js
+++ b/js/tools/drawing-tool.js
@@ -118,7 +118,7 @@ exports.DrawingTool = Montage.create(ToolBase, {
118 value: function (event) { 118 value: function (event) {
119 var point; 119 var point;
120 point = webkitConvertPointFromPageToNode(this.application.ninja.stage.canvas, new WebKitPoint(event.pageX, event.pageY)); 120 point = webkitConvertPointFromPageToNode(this.application.ninja.stage.canvas, new WebKitPoint(event.pageX, event.pageY));
121 121
122 if (this.drawingFeedback.mode === "Draw3D") { 122 if (this.drawingFeedback.mode === "Draw3D") {
123 var do3DSnap; 123 var do3DSnap;
124 this.application.ninja.stage.clearDrawingCanvas(); 124 this.application.ninja.stage.clearDrawingCanvas();
@@ -154,12 +154,12 @@ exports.DrawingTool = Montage.create(ToolBase, {
154 this.downPoint.y += this._currentDY; 154 this.downPoint.y += this._currentDY;
155 this.currentX += this._currentDX; 155 this.currentX += this._currentDX;
156 this.currentY += this._currentDY; 156 this.currentY += this._currentDY;
157 157
158 DrawingToolBase.draw2DRectangle(this.downPoint.x,this.downPoint.y,this.currentX - this.downPoint.x,this.currentY - this.downPoint.y); 158 DrawingToolBase.draw2DRectangle(this.downPoint.x,this.downPoint.y,this.currentX - this.downPoint.x,this.currentY - this.downPoint.y);
159 } else { 159 } else {
160 this._currentX = point.x; 160 this._currentX = point.x;
161 this._currentY = point.y; 161 this._currentY = point.y;
162 162
163 DrawingToolBase.draw2DRectangle(this.downPoint.x,this.downPoint.y,point.x - this.downPoint.x,point.y - this.downPoint.y); 163 DrawingToolBase.draw2DRectangle(this.downPoint.x,this.downPoint.y,point.x - this.downPoint.x,point.y - this.downPoint.y);
164 } 164 }
165 165
@@ -233,7 +233,7 @@ exports.DrawingTool = Montage.create(ToolBase, {
233 return DrawingToolBase.getHitRecPos(this.mouseUpHitRec); 233 return DrawingToolBase.getHitRecPos(this.mouseUpHitRec);
234 } 234 }
235 }, 235 },
236 236
237 getDrawingData: { 237 getDrawingData: {
238 value: function (event) { 238 value: function (event) {
239 return DrawingToolBase.getCompletePoints(this.mouseDownHitRec, this.mouseUpHitRec); 239 return DrawingToolBase.getCompletePoints(this.mouseDownHitRec, this.mouseUpHitRec);