diff options
author | Pushkar Joshi | 2012-06-07 09:53:44 -0700 |
---|---|---|
committer | Pushkar Joshi | 2012-06-07 09:53:44 -0700 |
commit | 1a40c4a3e1817004d1ce1c600ae4857fdd94a97a (patch) | |
tree | 25836d69f77472f60bab9a14c23865a3899a60d8 /js/tools/drawing-tool.js | |
parent | 763baf19f032c6fbae18963402b79d5d5510d923 (diff) | |
parent | 47e0e1f047e83b71c3f86812a45d33904201cc7a (diff) | |
download | ninja-1a40c4a3e1817004d1ce1c600ae4857fdd94a97a.tar.gz |
Merge branch 'master' into brushtool
Diffstat (limited to 'js/tools/drawing-tool.js')
-rwxr-xr-x | js/tools/drawing-tool.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/tools/drawing-tool.js b/js/tools/drawing-tool.js index d906fdf9..9ba4501c 100755 --- a/js/tools/drawing-tool.js +++ b/js/tools/drawing-tool.js | |||
@@ -64,6 +64,8 @@ exports.DrawingTool = Montage.create(ToolBase, { | |||
64 | set: function (value) { this._currentY = value; } | 64 | set: function (value) { this._currentY = value; } |
65 | }, | 65 | }, |
66 | 66 | ||
67 | drawData: { value: null }, | ||
68 | |||
67 | /** | 69 | /** |
68 | * PUBLIC METHODS | 70 | * PUBLIC METHODS |
69 | */ | 71 | */ |
@@ -74,6 +76,7 @@ exports.DrawingTool = Montage.create(ToolBase, { | |||
74 | this._isDrawing = true; | 76 | this._isDrawing = true; |
75 | this.mouseDownHitRec = null; | 77 | this.mouseDownHitRec = null; |
76 | this.mouseUpHitRec = null; | 78 | this.mouseUpHitRec = null; |
79 | this.drawData = null; | ||
77 | 80 | ||
78 | point = webkitConvertPointFromPageToNode(this.application.ninja.stage.canvas, new WebKitPoint(event.pageX, event.pageY)); | 81 | point = webkitConvertPointFromPageToNode(this.application.ninja.stage.canvas, new WebKitPoint(event.pageX, event.pageY)); |
79 | snapData = DrawingToolBase.getInitialSnapPoint(point.x, point.y, this._targetedElement); //event.layerX, event.layerY); | 82 | snapData = DrawingToolBase.getInitialSnapPoint(point.x, point.y, this._targetedElement); //event.layerX, event.layerY); |