if (~anchor.indexOf('t')) coords.y = y;
    else if (~anchor.indexOf('b')) coords.y = y - height;
    else coords.y = y - Math.round(height / 2);