(x, textAlign, textPadding)
| 8923 | } |
| 8924 | |
| 8925 | function getTextXForPadding(x, textAlign, textPadding) { |
| 8926 | return textAlign === 'right' |
| 8927 | ? (x - textPadding[1]) |
| 8928 | : textAlign === 'center' |
| 8929 | ? (x + textPadding[3] / 2 - textPadding[1] / 2) |
| 8930 | : (x + textPadding[3]); |
| 8931 | } |
| 8932 | |
| 8933 | /** |
| 8934 | * @param {string} text |
no outgoing calls
no test coverage detected