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

Let the zoom behavior choose the appropriate transition duration? #15

Open
mbostock opened this issue May 18, 2016 · 0 comments
Open

Let the zoom behavior choose the appropriate transition duration? #15

mbostock opened this issue May 18, 2016 · 0 comments
Labels

Comments

@mbostock
Copy link
Member

It might be nice if the zoom behavior set the transition duration by scaling the duration computed by d3.interpolateZoom. You’d need to have a multipler, though, like maybe you specify the duration as 250ms, but it means that’s the duration for a 2x zoom in-place, and it’s scaled accordingly for other transitions.

However, we’d need an option to disable this, since it’s equally valid for someone to specify the transition’s duration explicitly. Also, we might want to disambiguate between setting the duration of the dblclick transition and setting the duration of other zoom transitions.

@Fil Fil added the idea label Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants