Changeset - 9b9e056c177c
[Not reviewed]
beta
0 1 0
Aras Pranckevicius - 14 years ago 2012-01-06 18:13:06
aras@unity3d.com
changelog: center graph points vertically, now that each row is same size
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/public/js/graph.js
Show inline comments
 
@@ -97,13 +97,13 @@ function BranchRenderer() {
 
				if (end > this.max_column) {
 
					this.max_column = end;
 
				}
 
				
 
				this.setColor(color, 0.0, 0.65);
 
				
 
				y = row.offsetTop-rela.offsetTop+20;
 
				y = row.offsetTop-rela.offsetTop+row.offsetHeight/2;
 
				x = pad-((this.cell[0] + this.box_size * start - 1) + this.bg_height-2);
 
				
 
				this.ctx.lineWidth=this.line_width;
 
				this.ctx.beginPath();
 
				this.ctx.moveTo(x, y);
 

	
 
@@ -115,13 +115,13 @@ function BranchRenderer() {
 
			}
 
			
 
			column = node[0]
 
			color = node[1]
 
			
 
			radius = this.dot_radius;
 
			y = row.offsetTop-rela.offsetTop+20;
 
			y = row.offsetTop-rela.offsetTop+row.offsetHeight/2;
 
			x = pad-(Math.round(this.cell[0] * scale/2 * column + radius) + 15 - (column*4));
 
		
 
			this.ctx.beginPath();
 
			this.setColor(color, 0.25, 0.75);
 
			this.ctx.arc(x, y, radius, 0, Math.PI * 2, true);
 
			this.ctx.fill();
0 comments (0 inline, 0 general)