Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animation direction and fromcurrent #1087

Merged
merged 1 commit into from
Oct 26, 2016
Merged

Animation direction and fromcurrent #1087

merged 1 commit into from
Oct 26, 2016

Conversation

rreusser
Copy link
Contributor

This PR adds two animation options:

  • fromcurrent: true | false: Seems obvious. Uses the gd._fullLayout._currentFrame which is the de facto internal reference to the mostly recently animated named frame, if applicable.
  • direction: 'forward' | 'reverse': Seems obvious.

Together, these add a bit more capability to play buttons. Not strictly called for, but there's no way this won't get asked for. Wohooo.

@etpinard etpinard added this to the v1.19.0 milestone Oct 26, 2016
expect(c1).toEqual(c2);

// Prevent lots of ugly logging when it's already failed:
if(c1 !== c2) return;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😄

@etpinard
Copy link
Contributor

Amazing.

💃

Thanks ❗

@rreusser rreusser merged commit 4886d94 into master Oct 26, 2016
@etpinard etpinard deleted the animation-fromcurrent branch November 15, 2016 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants