(n = 1)
| 17 | const [activeIndex, setActiveIndex] = useState(initialActiveIndex); |
| 18 | |
| 19 | const noise = (n = 1) => n / 2 - Math.random() * n; |
| 20 | const getXY = (distance, pointIndex, totalPoints) => { |
| 21 | const angle = ((360 + noise(8)) / totalPoints) * pointIndex * (Math.PI / 180); |
| 22 | return [distance * Math.cos(angle), distance * Math.sin(angle)]; |
no outgoing calls
no test coverage detected