docs: function(align, valign)
  	{
  		var dx = 0;
  		var dy = 0;
  		
  		// Horizontal alignment
  		if (align == mxConstants.ALIGN_CENTER)
  		{
  			dx = -0.5;
  		}
  		else if (align == mxConstants.ALIGN_RIGHT)
  		{
  			dx = -1;
  		}
  
  		// Vertical alignment
  		if (valign == mxConstants.ALIGN_MIDDLE)
  		{
  			dy = -0.5;
  		}
  		else if (valign == mxConstants.ALIGN_BOTTOM)
  		{
  			dy = -1;
  		}
  		
  		return new mxPoint(dx, dy);
  	}