(degree: number)
| 50 | const MAX_SPEED = 26; |
| 51 | |
| 52 | export function nodeRadius(degree: number): number { |
| 53 | return 7 + Math.min(13, Math.sqrt(Math.max(0, degree)) * 2.2); |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * Builds (or rebuilds) a simulation, preserving positions of nodes that |