     @renderer = new THREE.WebGLRenderer({antialias: true, alpha: true})
     @renderer.setSize(@cwidth, @cheight)
     @renderer.setClearColor(@clear, @alpha)
-    #@renderer.setPixelRatio(window.devicePixelRatio)
 
     @mouseh = new MouseHandler(this)
-    #@keyh = new KeyHandler(this.ve)
     @raycaster = new THREE.Raycaster()
     @raycaster.linePrecision = 10
     @container.appendChild(@renderer.domElement)


    isIfxPhysical: (i) ->
      @endpoint[i] instanceof Phyo
      #@endpoint[i] instanceof Sax
    


    applyWanProps: ->
      @props.capacity = 100

  ondown: (event) =>
    keycode = window.event.keyCode || event.which

    if(keycode == 8 || keycode == 46)
      @ve.surface.deleteSelection()
      event.preventDefault()
    else if(keycode == 16)
      console.log("multiselect start")
      @multiselect = true
      true
    else if(keycode == 67)
      @ve.sview.container.style.cursor = "crosshair"
      @ve.sview.container.onmousemove = (eve) =>
        @ve.sview.mouseh.linkingH.handleMove0(eve)
      @ve.sview.container.onmousedown = (eve) =>
        @ve.sview.mouseh.linkingH.handleDown0(eve)


  onup: (event) =>
    keycode = window.event.keyCode || event.which
