From 648ee61ae84216d0236e0dbc211addc13b2cfa3a Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Fri, 6 Jul 2012 11:52:06 -0700 Subject: Expand tabs --- js/stage/tool-handle.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'js/stage/tool-handle.js') diff --git a/js/stage/tool-handle.js b/js/stage/tool-handle.js index 5ce243ff..e5b0a22f 100755 --- a/js/stage/tool-handle.js +++ b/js/stage/tool-handle.js @@ -736,14 +736,14 @@ exports.TranslateHandle = Montage.create(ToolHandle, { }, collidesWithPoint: - { + { value:function (x, y) - { + { var globalPt = [x, y, this._origin[2]]; - // test for a hit on the origin - var dist = vecUtils.vecDist( 2, globalPt, this._origin ); - if (dist <= 5) return 1; + // test for a hit on the origin + var dist = vecUtils.vecDist( 2, globalPt, this._origin ); + if (dist <= 5) return 1; var nearPt = MathUtils.nearestPointOnLine2D( this._origin, this._dirVec, globalPt ); if(!nearPt) -- cgit v1.2.3 From 04343eda8c2f870b0da55cfdc8003c99fe1cc4de Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Fri, 6 Jul 2012 11:53:10 -0700 Subject: Remove trailing spaces --- js/stage/tool-handle.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'js/stage/tool-handle.js') diff --git a/js/stage/tool-handle.js b/js/stage/tool-handle.js index e5b0a22f..ecd16951 100755 --- a/js/stage/tool-handle.js +++ b/js/stage/tool-handle.js @@ -111,7 +111,7 @@ var ToolHandle = exports.ToolHandle = Montage.create(Component, { return true; } } - + }); @@ -302,7 +302,7 @@ exports.RotateHandle = Montage.create(ToolHandle, { this._planeEq[3] = -vecUtils.vecDot(3, this._planeEq, this._origin); this._dirVecL = MathUtils.transformPoint(this._dirVec, this._matL); - + context.beginPath(); var pt = [this._radius, 0.0, 0.0]; @@ -322,7 +322,7 @@ exports.RotateHandle = Montage.create(ToolHandle, { // Draw the transform handle context.beginPath(); - + pt = [this._transformCenterRadius, 0.0, 0.0]; for (var i=0; i