(angle)
| 201 | } |
| 202 | |
| 203 | function getTextAlignForAngle(angle) { |
| 204 | if (angle === 0 || angle === 180) { |
| 205 | return 'center'; |
| 206 | } else if (angle < 180) { |
| 207 | return 'left'; |
| 208 | } |
| 209 | |
| 210 | return 'right'; |
| 211 | } |
| 212 | |
| 213 | function leftForTextAlign(x, w, align) { |
| 214 | if (align === 'right') { |
no outgoing calls
no test coverage detected