 
   resize : (initial) =>
     @GRAPH.html ""
-    console.log "resize canvas"
-    console.log @GRAPH.innerWidth()
     @width = @GRAPH.innerWidth()
     @height = 500
 

    else
      @DATAVIEW.html('<p class="text-muted text-center">Multiple items selected</p>')

  # display highlight on selected items
  drawSelection : () =>
    d3.selectAll(@selected_nodes)


  getEdges: () =>
    (d.properties for d in @link_data)

  #add a new property to the form
  clickNewProperty: () =>
    str = """
      <div class="form-group">
        <div class="col-sm-4">
          <input class="form-control input-sm">
        </div>
        <div class="col-sm-8">
          <input class="form-control input-sm">
        </div>
      </div>
    """
    @DATAVIEW.find('.properties').append(str)


# GRAPHEDIT PLUGIN DEFINITION
