Changeset 17838 for trunk/FACT++/www/viewer
- Timestamp:
- 05/12/14 14:18:32 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/viewer/index.js
r17825 r17838 426 426 if (!item) 427 427 { 428 $("#tooltip"). fadeOut(100);428 $("#tooltip").hide();//fadeOut(100); 429 429 return; 430 430 } … … 436 436 tooltip.html(parseInt(x) + " / " + y); 437 437 tooltip.css({top: item.pageY-20, left: item.pageX+5}); 438 tooltip. fadeIn(200);438 tooltip.show();//fadeIn(200); 439 439 } 440 440 … … 1525 1525 var axis1 = yy; 1526 1526 var axis2 = xx; 1527 var ratio = xx/yy; 1527 1528 // Correction for scale in x 1529 var f = Math.sqrt(3)/2; 1530 var ratio = xx/yy/f; 1528 1531 1529 1532 if (d1!=0 || d2==0) … … 1539 1542 sin = tand/s; 1540 1543 1541 axis1 = (tand2*yy + d2 + xx)/s2; 1542 axis2 = (tand2*xx - d2 + yy)/s2; 1543 ratio = (tand2*xx - d2 + yy)/(tand2*yy + d2 + xx); 1544 axis1 = (tand2*yy + d2 + xx); 1545 axis2 = (tand2*xx - d2 + yy); 1546 1547 ratio = axis2/axis1; 1548 1549 axis1 /= s2; 1550 axis2 /= s2; 1551 1552 ratio *= (f + tand*tand)/(tand*tand*f + 1); 1544 1553 } 1545 1554 … … 1547 1556 var width = axis2<0 ? 0 : Math.sqrt(axis2/sz); 1548 1557 1558 //var r = (cos*cos*f + sin*sin)/(sin*sin*f + cos*cos); 1549 1559 return { 1550 1560 "mean": [ mx/sz, my/sz ],
Note:
See TracChangeset
for help on using the changeset viewer.