if (~anchor.indexOf('l')) coords.x = x;
    else if (~anchor.indexOf('r')) coords.x = x - width;
    else coords.x = x - Math.round(width / 2);