function getTextXForPadding$1(x, textAlign, textPadding) {
    return textAlign === 'right'
        ? (x - textPadding[1])
        : textAlign === 'center'
        ? (x + textPadding[3] / 2 - textPadding[1] / 2)
        : (x + textPadding[3]);
}
@file Manages elements that can be defined in <defs> in SVG,
      e.g., gradients, clip path, etc.
@author Zhang Wenli