     selected: null
     mirror: false
     unstyled: false
+    orientation: 'vertical'
 
   componentWillReceiveProps: ->
     @graphData = null

    @getContentWidth()

  getContentWidth: ->
    (@getBranchCount() + 0.5) * @props.x_step

  getHeight: ->
    return @props.height if @props.height?
    @getContentHeight()

  getContentHeight: ->
    (@getGraphData().length + 2) * @props.y_step

  getInvert: ->
    if @props.mirror

    [dot_offset, dot_branch] = dot

    # draw dot
    {x_step, y_step, orientation} = @props
    offset = @getOffset()
    invert = @getInvert()

    if orientation is 'horizontal'
      x = (idx + 0.5) * x_step
      y = offset + invert + (dot_offset + 1) * y_step
    else
      x = offset + invert + (dot_offset + 1) * x_step
      y = (idx + 0.5) * y_step

    commitNode = @renderCommitNode(x, y, sha, dot_branch)

