   path: null
   width: null
   height: null
+  zoom: null
 
   constructor: (@selector) ->
     @$node = $(@selector)
+    @setZoom()
     @path = @$node.data("source")
     @width = @$node.width()
-    @height = @width
+    @height = @width/2
     @createD3Elements()
     @drawSVG()
     @getNeurons()

              .append('g')
              .attr("class","drawarea")
              .attr('transform', 'translate(0,10)')
    d3.select('svg').call d3.behavior.zoom().scaleExtent([
      0.5
      5
    ]).on('zoom', zoom)

  getNeurons: ->
    d3.json @path, @gotNeurons

  zoom = ->
    $('.popover').hide()
    @m = [40, 240, 40, 240]
    @realWidth = 20000
    @realHeight = 2000
    @w = @realWidth - @m[0] - @m[0]
    @h = @realHeight - @m[0] - @m[2]
    scale = d3.event.scale
