       x = util.centerToEdge(point.x, width)
       y = util.centerToEdge(point.y, height) + MARGIN*2
       util.drawText(ctx, nodeView, x, y)
-
 
   drawEdge: (edge, fromPoint, toPoint) ->
     ctx.strokeStyle = 'rgba(0,0,0, .333)'


  drawNode: (node, point) ->
      MARGIN = 10

      nodeView = view node.data
      ctx.font = "10pt Times"
      {width, height, count} = util.textSize ctx, nodeView

      width = Math.min(width, maxWidth)
      height = Math.min(height, maxHeight)

      color = if node.data.first then "blue" else "green"
      util.roundRect(ctx, point, width+(MARGIN*2), height, color, 10)

