(step?: number)
| 671 | }; |
| 672 | |
| 673 | const updateWebAnimation = (step?: number) => { |
| 674 | webAnimations.forEach((animation) => { |
| 675 | animation.effect!.updateTiming({ |
| 676 | delay: getDelay(), |
| 677 | duration: getDuration(), |
| 678 | easing: getEasing(), |
| 679 | iterations: getIterations(), |
| 680 | fill: getFill(), |
| 681 | direction: getDirection(), |
| 682 | }); |
| 683 | }); |
| 684 | |
| 685 | if (step !== undefined) { |
| 686 | setAnimationStep(step); |
| 687 | } |
| 688 | }; |
| 689 | |
| 690 | const update = (deep = false, toggleAnimationName = true, step?: number) => { |
| 691 | if (deep) { |
no test coverage detected