             # TODO finish this
 
 
-
     # TODO
     # - After resize get the latest sizes for controlling zooming.
-
 
     display: (treeData)->
       console.log("Received data", treeData)

              x: source.x0,
              y: source.y0
            }
            @diagonal({
              source: o,
              target: o
            })

      @updateNode(d)
      @centerNode(d)

    # Main handler of D3-afication of nodes. Takes a data node and adds it to
    # the displayed set of data. Can be used to update what's currently displayed
    # if the current state has changed to collapse or expand a node.
    updateNode: (source)->
      # Compute the new height, function counts total children of root node and sets tree height accordingly.
      # This prevents the layout looking squashed when new nodes are made visible or looking sparse when nodes are removed
