()
| 16 | // tick see the same value (keeps animations synchronized) |
| 17 | let tickTime = 0; |
| 18 | function tick(): void { |
| 19 | tickTime = Date.now() - startTime; |
| 20 | for (const onChange of subscribers.keys()) { |
| 21 | onChange(); |
| 22 | } |
| 23 | } |
| 24 | function updateInterval(): void { |
| 25 | const anyKeepAlive = [...subscribers.values()].some(Boolean); |
| 26 | if (anyKeepAlive) { |