(animation)
| 54 | }; |
| 55 | |
| 56 | const loop = (animation) => { |
| 57 | return { |
| 58 | start: (callback) => { |
| 59 | setTimeout(() => { |
| 60 | if (callback) { |
| 61 | callback({ finished: true }); |
| 62 | } |
| 63 | }, 0); |
| 64 | }, |
| 65 | stop: () => { |
| 66 | throw new Error('Not implemented'); |
| 67 | }, |
| 68 | reset: () => { |
| 69 | throw new Error('Not implemented'); |
| 70 | }, |
| 71 | }; |
| 72 | }; |
| 73 | |
| 74 | const parallel = (animations) => ({ |
| 75 | start: (callback) => { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…