Closed grahamdjuric closed 5 years ago
Having the same issue: d3.event.transform
keeps maintaining the state even after I change the content of the svg. How can one reset d3.event.transform
to [0,0,1]?
Use zoom.transform.
If you have further questions, please use Stack Overflow to ask for help.
I am trying to have the values for pan reset to zero.
This doesn't work:
d3.event.transform.x = 0; d3.event.transform.y = 0;