Changeset 17848
- Timestamp:
- 05/13/14 12:48:46 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/viewer/index.js
r17843 r17848 1393 1393 hasData |= fillHex(ctx, i, data[i], min, max); 1394 1394 1395 // =================== Draw Pixel marker ====================1396 1397 if (document.getElementById('marker').checked)1398 {1399 // Draw marker1400 ctx.lineWidth = 0.25;1401 ctx.strokeStyle = "#000";1402 drawHex(ctx, pixel);1403 }1404 1405 1395 // ======================= Draw Ellipse ====================== 1406 1396 … … 1414 1404 ctx.scale(1, 2/Math.sqrt(3)); 1415 1405 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 1416 1414 ctx.translate(h.mean[0], h.mean[1]); 1417 1415 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(); 1418 1424 1419 1425 ctx.save(); … … 1423 1429 ctx.restore(); 1424 1430 1431 ctx.strokeStyle = "#555"; 1425 1432 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);1433 1433 ctx.stroke(); 1434 1434 … … 1436 1436 } 1437 1437 } 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 1438 1449 1439 1450 ctx.restore();
Note:
See TracChangeset
for help on using the changeset viewer.