function getAlignment(align) {
let result = 'preserveAspectRatio="';
switch (align) {
case "top-left":
result += 'xMinYMin" ';
break;
case "top-mid":
result += 'xMidYMin" ';
break;
case "top-right":
result += 'xMaxYMin" ';
break;
case "mid-mid":
result += 'xMidYMid" ';
break;
case "mid-left":
result += 'xMinYMid" ';
break;
case "mid-right":
result += 'xMaxYMid" ';
break;
case "bottom-left":
result += 'xMinYMax" ';
break;
case "bottom-mid":
result += 'xMidYMax" ';
break;
case "bottom-right":
result += 'xMaxYMax" ';
break;
default:
result = '';
}
return result;
}