Changeset 17848 for trunk/FACT++/www


Ignore:
Timestamp:
05/13/14 12:48:46 (10 years ago)
Author:
tbretz
Message:
Reordered the elements in the display.
File:
1 edited

Legend:

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

    r17843 r17848  
    13931393            hasData |= fillHex(ctx, i, data[i], min, max);
    13941394
    1395     // =================== Draw Pixel marker ====================
    1396 
    1397     if (document.getElementById('marker').checked)
    1398     {
    1399         // Draw marker
    1400         ctx.lineWidth = 0.25;
    1401         ctx.strokeStyle = "#000";
    1402         drawHex(ctx, pixel);
    1403     }
    1404 
    14051395    // ======================= Draw Ellipse ======================
    14061396
     
    14141404            ctx.scale(1, 2/Math.sqrt(3));
    14151405
     1406            ctx.beginPath();
     1407            ctx.moveTo(0.5, 0);
     1408            ctx.lineTo(h.mean[0], h.mean[1]);
     1409
     1410            ctx.strokeStyle = "#CCC";
     1411            ctx.lineWidth = 0.1;
     1412            ctx.stroke();
     1413
    14161414            ctx.translate(h.mean[0], h.mean[1]);
    14171415            ctx.rotate(h.phi);
     1416
     1417            ctx.beginPath();
     1418            ctx.moveTo(0, -h.disp);
     1419            ctx.lineTo(0,  h.disp);
     1420
     1421            ctx.strokeStyle = "#888";
     1422            ctx.lineWidth = 0.15;
     1423            ctx.stroke();
    14181424
    14191425            ctx.save();
     
    14231429            ctx.restore();
    14241430
     1431            ctx.strokeStyle = "#555";
    14251432            ctx.lineWidth = 0.15;
    1426             ctx.strokeStyle = "#555";
    1427             ctx.stroke();
    1428 
    1429             ctx.strokeStyle = "#888";
    1430             ctx.beginPath();
    1431             ctx.moveTo(0, -h.disp);
    1432             ctx.lineTo(0,  h.disp);
    14331433            ctx.stroke();
    14341434
     
    14361436        }
    14371437    }
     1438
     1439    // =================== Draw Pixel marker ====================
     1440
     1441    if (document.getElementById('marker').checked)
     1442    {
     1443        // Draw marker
     1444        ctx.lineWidth = 0.25;
     1445        ctx.strokeStyle = "#000";
     1446        drawHex(ctx, pixel);
     1447    }
     1448
    14381449
    14391450    ctx.restore();
Note: See TracChangeset for help on using the changeset viewer.