Skip to content

Commit

Permalink
Add AA code to position text, e.g. 25Y
Browse files Browse the repository at this point in the history
  • Loading branch information
fredludlow committed May 18, 2016
1 parent 48b5886 commit 1c2887d
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 @@ -1554,8 +1554,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] || "";
$(div + " #zoomPosition").text(pos);
});

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

0 comments on commit 1c2887d

Please sign in to comment.