       chainCount,
       isBranch: tree.children.length > 1
       isLeaf: tree.children.length == 0
+      isComment: @nodeIdHasComment(tree.id)
     }
 
 


  drawCommentChain : (decision, left, right, top, mode) ->

    topChild = @calculateChildTreeTop(mode, decision.chainCount, top) - @nodeDistance
    extent = @drawTreeWithWidths(decision.node, left, right, topChild, mode)
    return extent.middle


  drawBranch : (decision, left, right, top, mode) ->

    branchMiddle = @calculateBranchMiddle(decision, left, right)
    topChildren = @calculateChildTop(decision.chainCount, top, mode)
    leftTree = @drawTreeWithWidths(decision.node.children[0], left,  branchMiddle, topChildren, mode)
    rightTree = @drawTreeWithWidths(decision.node.children[1], branchMiddle, right, topChildren, mode)

