(zapSpeed: ZapSpeed)
| 43 | const SINK_NODE_SIZE: Size = [40, 30]; |
| 44 | |
| 45 | function zapSpeedToMilliseconds(zapSpeed: ZapSpeed): number { |
| 46 | switch (zapSpeed) { |
| 47 | case 'slow': return 1100; |
| 48 | case 'normal': return 80; |
| 49 | case 'fast': return 16; |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | class IdTable { |
| 54 | private mutableIncrementingId: number; |