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

            # TODO finish this



    # TODO
    # - After resize get the latest sizes for controlling zooming.


    display: (treeData)->
      console.log("Received data", treeData)

          .style("opacity", 0);

      # define a d3 diagonal projection for use by the node paths later on.
      @diagonalProjection = d3.svg.diagonal().projection((d)-> [d.y, d.x])

      # Call visit function to establish maxLabelLength
      visit(treeData, (d)=>
