1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/changeset/2ef6a78863f1/ changeset: 2ef6a78863f1 user: jgoecks date: 2012-01-10 23:36:55 summary: Trackster: gentler compositing and refactoring so that compositing operations are at appropriate level. affected #: 1 file
diff -r 1bc51ec0c5befabc6e0d7ab9ac30def126c6bf92 -r 2ef6a78863f1ab7e1364762eb114e5f8442f9687 static/scripts/trackster.js --- a/static/scripts/trackster.js +++ b/static/scripts/trackster.js @@ -3576,6 +3576,8 @@ all_data_index = 0; var ctx = canvas.getContext('2d'); ctx.translate(this.left_offset, 0); + ctx.globalAlpha = 0.5; + ctx.globalCompositeOperation = "source-over"; for (var i = 0; i < this.drawables.length; i++, all_data_index += 2) { track = this.drawables[i]; tile_data = all_data[ all_data_index ]; @@ -3842,9 +3844,6 @@ tile_low = tile_bounds[0], tile_high = tile_bounds[1], painter = new painters.LinePainter(result.data, tile_low, tile_high, this.prefs, mode); - // HACK: this is needed for compositing tracks. This should be a config setting somewhere; also, - // "darker" may not be included in future canvas implementations. - ctx.globalCompositeOperation = "darker"; painter.draw(ctx, canvas.width, canvas.height, w_scale);
return new Tile(this.track, tile_index, resolution, canvas, result.data); @@ -4201,7 +4200,6 @@ var painter = new painters.SummaryTreePainter(result, tile_low, tile_high, this.prefs); // FIXME: it shouldn't be necessary to build in padding. ctx.translate(0, SUMMARY_TREE_TOP_PADDING); - ctx.globalCompositeOperation = "darker"; painter.draw(ctx, canvas.width, canvas.height, w_scale); return new SummaryTreeTile(track, tile_index, resolution, canvas, result.data, result.max); } @@ -4246,7 +4244,6 @@ var feature_mapper = null;
// console.log(( tile_low - this.view.low ) * w_scale, tile_index, w_scale); - ctx.globalCompositeOperation = "darker"; ctx.fillStyle = this.prefs.block_color; ctx.font = ctx.canvas.manager.default_font; ctx.textAlign = "right";
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.
galaxy-commits@lists.galaxyproject.org