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

odd behaviour for transtion(t) in d3 timer #97

Closed
SunGuoQiang123 opened this issue Nov 11, 2019 · 2 comments
Closed

odd behaviour for transtion(t) in d3 timer #97

SunGuoQiang123 opened this issue Nov 11, 2019 · 2 comments

Comments

@SunGuoQiang123
Copy link

when i use selection.transition(t) in a d3.timeout or d3.inerval, the transition ease looks like something wrong, but when i use transition().duration(1000).ease(d3.easeLinear) the transition works well. below is the reproduction link

https://codepen.io/sungunguoqiang/pen/wvvxPRq?editors=1011

@mbostock mbostock transferred this issue from d3/d3-timer Nov 11, 2019
@mbostock
Copy link
Member

You can only inherit from a transition that’s still running. If the transition t has ended by the time your timeout fires, it will be ignored when you pass it to selection.transition; you’ll just get the default timing parameters. You can only inherit when the transition t has no yet ended, and the transition t applies to a parent element of the selection.

@mbostock
Copy link
Member

See also #59.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants