     top.push anchor
 
   drawDot: (x, y, commit) ->
-    r = @raphael
+    r = @r
     r.circle(x, y, 3).attr(
       fill: @colors[commit.space]
       stroke: "none"
     )
 
   drawLines: (x, y, commit) ->
-    r = @raphael
+    r = @r
     for parent in commit.parents
       parentCommit = @preparedCommits[parent[0]]
-      parentY = @offsetY + 20 * parentCommit.time
-      parentX1 = @offsetX + 10 * (@mspace - parentCommit.space)
-      parentX2 = @offsetX + 10 * (@mspace - parent[1])
+      parentY = @offsetY + @unitTime * parentCommit.time
+      parentX1 = @offsetX + @unitSpace * (@mspace - parentCommit.space)
+      parentX2 = @offsetX + @unitSpace * (@mspace - parent[1])
 
       if parentCommit.space is commit.space and parentCommit.space is parent[1]
         r.path(["M", x, y, "L", parentX1, parentY]).attr(

    text.toFront()

  appendAnchor: (top, commit, x, y) ->
    r = @raphael
    options = @options
    anchor = r.circle(x, y, 10).attr(
      fill: "#000"


      if cumonth isnt day[1]
        # Months
        r.text(10, @offsetY + @unitTime * mm, day[1])
          .attr(
            font: "12px Monaco, monospace"
            fill: "#EEE"
