aboutsummaryrefslogtreecommitdiff
path: root/js/tools/drawing-tool.js
diff options
context:
space:
mode:
authorJon Reid2012-06-12 13:32:02 -0700
committerJon Reid2012-06-12 13:32:02 -0700
commit8c55dfcb0a669eef0a3bb406b70868078ef09810 (patch)
treee4d070fe1e67fea38cc0343eda297572da717efa /js/tools/drawing-tool.js
parent8e98ce012f55576ddb979969a3a1d834301af0c7 (diff)
parent7887aafbff794e9c5f918c667e73a8386c38cf02 (diff)
downloadninja-8c55dfcb0a669eef0a3bb406b70868078ef09810.tar.gz
Merge remote-tracking branch 'ninja-jduran/TimelineUber' into timeline-local
Diffstat (limited to 'js/tools/drawing-tool.js')
-rwxr-xr-xjs/tools/drawing-tool.js3
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);