You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently transition.{attr,style,text,…} are built on transition.tween, and they don’t evaluate the new value until the tween is initialized. That’s bad; many examples (such as this one) rely on synchronous evaluation of transition.attr and the like, so that external state can be modified during the initialization of a transition.
I’m not suggesting we change transition.{attrTween,styleTween,tween,…}: those can’t be evaluated until the transition starts, by design. By the transition methods that only compute the destination value must be evaluated earlier.
The text was updated successfully, but these errors were encountered:
mbostock
changed the title
transition.{attr,style,text,…} must evaluate the new value immediately.
Transition must evaluate new values immediately.
Feb 23, 2016
Currently transition.{attr,style,text,…} are built on transition.tween, and they don’t evaluate the new value until the tween is initialized. That’s bad; many examples (such as this one) rely on synchronous evaluation of transition.attr and the like, so that external state can be modified during the initialization of a transition.
I’m not suggesting we change transition.{attrTween,styleTween,tween,…}: those can’t be evaluated until the transition starts, by design. By the transition methods that only compute the destination value must be evaluated earlier.
The text was updated successfully, but these errors were encountered: