getXOffset = (alignment) => {
  if (!alignment || (alignment !== 'left' && alignment !== 'right')) return 0;
  return alignment === 'left' ? -CURVE_FACTOR : CURVE_FACTOR;
}
Calculates the offset accordingly to the alignment