(
from: { x: number; y: number },
to: { x: number; y: number },
)
| 79 | } |
| 80 | |
| 81 | function linePath( |
| 82 | from: { x: number; y: number }, |
| 83 | to: { x: number; y: number }, |
| 84 | ) { |
| 85 | return `M${from.x} ${from.y} L${to.x} ${to.y}` |
| 86 | } |
| 87 | |
| 88 | const GRATICULE_LINES = [ |
| 89 | ...[-120, -60, 0, 60, 120].map((lon) => ({ |