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
I read "order of transformations matters" in the context of applying a transform as a css style or attribute: transform="translate(x,y) scale(k)".
In the notebook you're mentioning the explanation for the double call to translate is that, when we call transform.translate(x,y), the actual elements t.x, t.y of the transform t will be incremented by t.k×x, t.k×y, like so:
In the examples on https://observablehq.com/collection/@d3/d3-zoom I see that you are adding
.translate
twice and to the end:d3.zoomIdentity.translate(width / 2, height / 2).scale(40).translate(-x, -y)
In the docs it says that the order matters. It would be nice to add an explanation to the docs.
Thanks for your amazing work!
The text was updated successfully, but these errors were encountered: