aboutsummaryrefslogtreecommitdiff
path: root/js/tools/drawing-tool-base.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/tools/drawing-tool-base.js')
-rwxr-xr-xjs/tools/drawing-tool-base.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/tools/drawing-tool-base.js b/js/tools/drawing-tool-base.js
index e4f4d5d5..353ee185 100755
--- a/js/tools/drawing-tool-base.js
+++ b/js/tools/drawing-tool-base.js
@@ -50,7 +50,7 @@ exports.DrawingToolBase = Montage.create(Component, {
50 50
51 /** 51 /**
52 * Used on the initial MouseDown for Drawing Tools 52 * Used on the initial MouseDown for Drawing Tools
53 * 53 *
54 * Returns: An array containing: 54 * Returns: An array containing:
55 * 0 - HitRec point 55 * 0 - HitRec point
56 * 1 - X value converted to screen point 56 * 1 - X value converted to screen point
@@ -292,7 +292,7 @@ exports.DrawingToolBase = Montage.create(Component, {
292// return ({"width":w, "height":h, "planeMat":planeMat, "midPt":midPt}); 292// return ({"width":w, "height":h, "planeMat":planeMat, "midPt":midPt});
293 var s0Offset = s0.slice(0); 293 var s0Offset = s0.slice(0);
294 var s1Offset = s1.slice(0); 294 var s1Offset = s1.slice(0);
295 295
296 s0Offset[0] += snapManager.getStageWidth() / 2.0; 296 s0Offset[0] += snapManager.getStageWidth() / 2.0;
297 s0Offset[1] += snapManager.getStageHeight() / 2.0; 297 s0Offset[1] += snapManager.getStageHeight() / 2.0;
298 s1Offset[0] += snapManager.getStageWidth() / 2.0; 298 s1Offset[0] += snapManager.getStageWidth() / 2.0;
@@ -515,7 +515,7 @@ exports.DrawingToolBase = Montage.create(Component, {
515 value: function( s0In, s1In, planeMat, planeMatInv, fixedS1 ) { 515 value: function( s0In, s1In, planeMat, planeMatInv, fixedS1 ) {
516 var s0 = s0In.slice(0); 516 var s0 = s0In.slice(0);
517 var s2 = s1In.slice(0); 517 var s2 = s1In.slice(0);
518 518
519 519
520 // calculate the mid point of the rectangle 520 // calculate the mid point of the rectangle
521 var midPt = vecUtils.vecAdd(3, s0, s2); 521 var midPt = vecUtils.vecAdd(3, s0, s2);
@@ -549,7 +549,7 @@ exports.DrawingToolBase = Montage.create(Component, {
549 z = pt[2]*p/(p + pt[2]); 549 z = pt[2]*p/(p + pt[2]);
550 var x = pt[0]*(p - z)/p, 550 var x = pt[0]*(p - z)/p,
551 y = pt[1]*(p - z)/p; 551 y = pt[1]*(p - z)/p;
552 552
553 553
554 pt[0] = x; pt[1] = y; pt[2] = z; 554 pt[0] = x; pt[1] = y; pt[2] = z;
555 } 555 }
@@ -683,6 +683,6 @@ exports.DrawingToolBase = Montage.create(Component, {
683 } 683 }
684 } 684 }
685 } 685 }
686 686
687}); 687});
688 688