1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/637aab626ea7/ changeset: r5165:637aab626ea7 user: jgoecks date: 2011-03-03 17:47:10 summary: Trackster bug fixes for drawing feature tracks in squish and dense mode. affected #: 1 file (48 bytes) --- a/static/scripts/trackster.js Thu Mar 03 08:29:15 2011 -0500 +++ b/static/scripts/trackster.js Thu Mar 03 11:47:10 2011 -0500 @@ -1,5 +1,5 @@ /* Trackster - 2010, James Taylor, Kanwei Li, Jeremy Goecks + 2010-2011: James Taylor, Kanwei Li, Jeremy Goecks */ /** @@ -2336,7 +2336,7 @@ // Dense mode displays the same for all data. if (mode === "Dense") { ctx.fillStyle = block_color; - ctx.fillRect(f_start + left_offset, y_center + 5, f_end - f_start, DENSE_FEATURE_HEIGHT); + ctx.fillRect(f_start + left_offset, y_center, f_end - f_start, DENSE_FEATURE_HEIGHT); } else if (mode === "no_detail") { // No details for feature, so only one way to display. @@ -2345,7 +2345,7 @@ ctx.fillRect(f_start + left_offset, y_center + 5, f_end - f_start, DENSE_FEATURE_HEIGHT); } else { // Mode is either Squish or Pack: - // Feature has details. + // Feature details. var feature_strand = feature[5], feature_ts = feature[6], feature_te = feature[7], @@ -2378,10 +2378,9 @@ } } else { // No strand. - ctx.fillStyle = CONNECTOR_COLOR; + ctx.fillStyle = block_color; } - ctx.fillRect(f_start + left_offset, y_center + (thick_height-thin_height)/2 + 1, - f_end - f_start, thick_height); + ctx.fillRect(f_start + left_offset, y_center, f_end - f_start, thick_height); } else { // There are feature blocks and mode is either Squish or Pack. @@ -2642,8 +2641,8 @@ continue; } - // Draw feature. - if (is_overlap([feature_start, feature_end], [tile_low, tile_high]) && slot !== null) { + // Draw feature if there's overlap and mode is dense or feature is slotted (as it must be for all non-dense modes). + if (is_overlap([feature_start, feature_end], [tile_low, tile_high]) && (mode == "Dense" || slot !== null)) { this.draw_element(ctx, tile_index, mode, feature, slot, tile_low, tile_high, w_scale, y_scale, width, left_offset, ref_seq); } 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.