(value, maxValue)
| 8913 | } |
| 8914 | |
| 8915 | function parsePercent(value, maxValue) { |
| 8916 | if (typeof value === 'string') { |
| 8917 | if (value.lastIndexOf('%') >= 0) { |
| 8918 | return parseFloat(value) / 100 * maxValue; |
| 8919 | } |
| 8920 | return parseFloat(value); |
| 8921 | } |
| 8922 | return value; |
| 8923 | } |
| 8924 | |
| 8925 | function getTextXForPadding(x, textAlign, textPadding) { |
| 8926 | return textAlign === 'right' |