| | |
| | | if (!container) |
| | | return false |
| | | |
| | | const offsetX = 12 |
| | | const offsetY = 18 |
| | | const offsetX = 1 |
| | | const offsetY = 7 |
| | | const rawX = Number(pixel.x) + offsetX |
| | | const rawY = Number(pixel.y) - offsetY |
| | | const clampedX = Math.max(12, Math.min(rawX, container.clientWidth - 12)) |
| | |
| | | return false |
| | | |
| | | const tooltipWidth = 88 |
| | | const offsetX = 12 |
| | | const offsetY = 18 |
| | | const offsetX = 1 |
| | | const offsetY = 7 |
| | | const rawX = Number(pixel.x) + offsetX |
| | | const rawY = Number(pixel.y) - offsetY |
| | | const clampedX = Math.max(12, Math.min(rawX, container.clientWidth - 12)) |