(tooltip, align, options)
| 329 | } |
| 330 | |
| 331 | function getAlignedX(tooltip, align, options) { |
| 332 | const padding = toPadding(options.padding); |
| 333 | |
| 334 | return align === class="st">'center' |
| 335 | ? tooltip.x + tooltip.width / 2 |
| 336 | : align === class="st">'right' |
| 337 | ? tooltip.x + tooltip.width - padding.right |
| 338 | : tooltip.x + padding.left; |
| 339 | } |
| 340 | |
| 341 | /** |
| 342 | * Helper to build before and after body lines |
no test coverage detected