         cursor: "pointer"
         zIndex: 2000
 
-    getNodePosition = (node) ->
-        if node.display and node.display.x and node.display.y
-            previousPosition = node.display
-            return node.display
-
-        previousPosition =
-            x: previousPosition.x + 200
-            y: previousPosition.y + 50
-
     jsPlumb.setRenderMode jsPlumb.CANVAS
 
 

jsPlumb.bind "ready", ->
    plumbNodes = {}

    document.onselectstart = -> 
        false

    previousPosition = 
        x: 0
        y: 0

    endPoints =
        obj:

            format: "YOWDHM"
            significant: 2

        addComponent node, endPoints for node in data.nodes

        for edge in data.edges
            unless edge.from.node
