Skip to content

Commit

Permalink
Add feature argument for drawMismatches
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Oct 31, 2018
1 parent d057e7f commit 7ffaf30
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/JBrowse/View/FeatureGlyph/Alignment.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,14 @@ return declare( [BoxGlyph,MismatchesMixin], {
// might be large enough to see)
if( fRect.w > 2 ) {
if( fRect.viewInfo.scale > 0.2 )
this._drawMismatches( context, fRect, this._getMismatches( fRect.f ) );
this._drawMismatches( context, fRect, fRect.f, this._getMismatches( fRect.f ) );
else
this._drawMismatches( context, fRect, this._getSkipsAndDeletions( fRect.f ));
this._drawMismatches( context, fRect, fRect.f, this._getSkipsAndDeletions( fRect.f ));
}
},

// draw both gaps and mismatches
_drawMismatches: function( context, fRect, mismatches ) {
var feature = fRect.f;
_drawMismatches: function( context, fRect, feature, mismatches ) {
var block = fRect.viewInfo.block;
var scale = block.scale;

Expand Down

0 comments on commit 7ffaf30

Please sign in to comment.