Commit 3c7022e1 authored by r03ert0's avatar r03ert0

fix measure tool

parent 294cc869
...@@ -686,6 +686,7 @@ export var AtlasMakerInteraction = { ...@@ -686,6 +686,7 @@ export var AtlasMakerInteraction = {
} else { } else {
me.User.measureLength.push({ x:x, y:y }); me.User.measureLength.push({ x:x, y:y });
} }
me.displayInformation();
break; break;
case 'adjust': case 'adjust':
me.User.mouseIsDown = true; me.User.mouseIsDown = true;
...@@ -825,6 +826,7 @@ export var AtlasMakerInteraction = { ...@@ -825,6 +826,7 @@ export var AtlasMakerInteraction = {
for(i = 1; i<p.length; i++) { length += Math.sqrt(Math.pow(wdim*(p[i].x-p[i-1].x), 2) + Math.pow(hdim*(p[i].y-p[i-1].y), 2)); } for(i = 1; i<p.length; i++) { length += Math.sqrt(Math.pow(wdim*(p[i].x-p[i-1].x), 2) + Math.pow(hdim*(p[i].y-p[i-1].y), 2)); }
$("#log").append("Length: " + length + "<br/>"); $("#log").append("Length: " + length + "<br/>");
me.User.measureLength = null; me.User.measureLength = null;
me.displayInformation();
} }
break; break;
case 37: // left arrow case 37: // left arrow
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment