(cells: Cell[])
| 69 | // Loop length grows with the icon's stagger spread so every cell gets the |
| 70 | // same settle → hold → exit cadence. |
| 71 | function loopFramesFor(cells: Cell[]): number { |
| 72 | let maxStagger = 1; |
| 73 | for (const c of cells) { |
| 74 | maxStagger = Math.max(maxStagger, c.stagger); |
| 75 | } |
| 76 | return maxStagger + DROP_SETTLE + HOLD_FRAMES + EXIT_FALL; |
| 77 | } |
| 78 | |
| 79 | // The animation lives in a fixed VIEWBOX-sized coordinate space that is scaled down to the |
| 80 | // rendered `size`. Cells are absolutely positioned in this space, so all |
no outgoing calls
no test coverage detected