commit/galaxy-central: james_taylor: Trackster: dense mode features are full height again, don't draw strand indicators when drawing squished features.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/542aa2dab591/ changeset: 542aa2dab591 user: james_taylor date: 2011-11-08 17:37:12 summary: Trackster: dense mode features are full height again, don't draw strand indicators when drawing squished features. affected #: 1 file diff -r 132798922d53213d6ca4e1596619f254bdd582d0 -r 542aa2dab591d6df036096547c6f615a2a412dce static/scripts/trackster.js --- a/static/scripts/trackster.js +++ b/static/scripts/trackster.js @@ -4292,7 +4292,7 @@ SQUISH_TRACK_HEIGHT = 5, PACK_TRACK_HEIGHT = 10, NO_DETAIL_FEATURE_HEIGHT = 1, - DENSE_FEATURE_HEIGHT = 3, + DENSE_FEATURE_HEIGHT = 9, SQUISH_FEATURE_HEIGHT = 3, PACK_FEATURE_HEIGHT = 9, LABEL_SPACING = 2, @@ -4365,7 +4365,9 @@ var feature_strand = feature[4], feature_ts = feature[5], feature_te = feature[6], - feature_blocks = feature[7]; + feature_blocks = feature[7], + // Whether we are drawing full height or squished features + full_height = true; if (feature_ts && feature_te) { thick_start = Math.floor( Math.max(0, (feature_ts - tile_low) * w_scale) ); @@ -4374,9 +4376,13 @@ // Set vars that depend on mode. var thin_height, thick_height; - if (mode === "Squish" || mode === "Dense" ) { + if (mode === "Squish" ) { thin_height = 1; thick_height = SQUISH_FEATURE_HEIGHT; + full_height = false; + } else if ( mode === "Dense" ) { + thin_height = 5; + thick_height = DENSE_FEATURE_HEIGHT; } else { // mode === "Pack" thin_height = 5; thick_height = PACK_FEATURE_HEIGHT; @@ -4388,7 +4394,7 @@ ctx.fillStyle = block_color; ctx.fillRect(f_start, y_center + 1, f_end - f_start, thick_height); // If strand is specified, draw arrows over feature - if ( feature_strand ) { + if ( feature_strand && full_height ) { if (feature_strand === "+") { ctx.fillStyle = ctx.canvas.manager.get_pattern( 'right_strand_inv' ); } else if (feature_strand === "-") { Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket