code: function(pos, canvas) {
        var size = canvas.getSize();
        if(pos.x >= size.width || pos.x < 0
           || pos.y >= size.height || pos.y < 0) return false;
         return true;
      }
docs: /*
  fitsInCanvas
  
  Returns _true_ or _false_ if the label for the node is contained in the canvas dom element or not.
  
  Parameters:
  
  pos - A <Complex> instance (I'm doing duck typing here so any object with _x_ and _y_ parameters will do).
  canvas - A <Canvas> instance.
  
  Returns:
  
  A boolean value specifying if the label is contained in the <Canvas> DOM element or not.