Skip to content

Commit

Permalink
Merge pull request #6 from fredludlow/aa-code
Browse files Browse the repository at this point in the history
Add AA code to position text, e.g. 25Y
  • Loading branch information
MatSchaeff committed May 23, 2016
2 parents bcad198 + 563d9cf commit fda2987
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/feature-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1573,8 +1573,10 @@ var FeatureViewer = (function () {
.attr("in", "SourceGraphic");

svgContainer.on('mousemove', function () {
var absoluteMousePos = SVGOptions.brushActive ? d3.mouse(d3.select(".background").node()) : d3.mouse(svgContainer.node());;
$(div + " #zoomPosition").text(Math.round(scalingPosition(absoluteMousePos[0])));
var absoluteMousePos = SVGOptions.brushActive ? d3.mouse(d3.select(".background").node()) : d3.mouse(svgContainer.node());;
var pos = Math.round(scalingPosition(absoluteMousePos[0]));
pos += sequence[pos-1] || "";
$(div + " #zoomPosition").text(pos);
});

if (options.showSequence && !(intLength)) {
Expand Down

0 comments on commit fda2987

Please sign in to comment.