(animation)
| 72 | } |
| 73 | |
| 74 | function getCompiledAnimation(animation) { |
| 75 | if (typeof animation === 'string') { |
| 76 | const compiledAnimation = getAnimationByName(animation); |
| 77 | if (!compiledAnimation) { |
| 78 | throw new Error(`No animation registred by the name of ${animation}`); |
| 79 | } |
| 80 | return compiledAnimation; |
| 81 | } |
| 82 | return createAnimation(animation); |
| 83 | } |
| 84 | |
| 85 | function makeInterpolatedStyle(compiledAnimation, animationValue) { |
| 86 | const style = {}; |
no test coverage detected
searching dependent graphs…