Ignore:
Timestamp:
05/12/14 14:18:32 (11 years ago)
Author:
tbretz
Message:
No fading for tooltip - hopefully this solves the 'maximum stack exceeded error'; fixed a problem with Disp... width and length need to be scaled in x correctly.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/www/viewer/index.js

    r17825 r17838  
    426426    if (!item)
    427427    {
    428         $("#tooltip").fadeOut(100);
     428        $("#tooltip").hide();//fadeOut(100);
    429429        return;
    430430    }
     
    436436    tooltip.html(parseInt(x) + " / " + y);
    437437    tooltip.css({top: item.pageY-20, left: item.pageX+5});
    438     tooltip.fadeIn(200);
     438    tooltip.show();//fadeIn(200);
    439439}
    440440
     
    15251525    var axis1 = yy;
    15261526    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;
    15281531
    15291532    if (d1!=0 || d2==0)
     
    15391542        sin = tand/s;
    15401543
    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);
    15441553    }
    15451554
     
    15471556    var width  = axis2<0 ? 0 : Math.sqrt(axis2/sz);
    15481557
     1558    //var r = (cos*cos*f + sin*sin)/(sin*sin*f + cos*cos);
    15491559    return {
    15501560        "mean":  [ mx/sz, my/sz ],
Note: See TracChangeset for help on using the changeset viewer.