(duration)
| 851 | |
| 852 | def configure_animation_controls(args, constructor, fig): |
| 853 | def frame_args(duration): |
| 854 | return { |
| 855 | "frame": {"duration": duration, "redraw": constructor != go.Scatter}, |
| 856 | "mode": "immediate", |
| 857 | "fromcurrent": True, |
| 858 | "transition": {"duration": duration, "easing": "linear"}, |
| 859 | } |
| 860 | |
| 861 | if "animation_frame" in args and args["animation_frame"] and len(fig.frames) > 1: |
| 862 | fig.layout.updatemenus = [ |
no outgoing calls
no test coverage detected