Closed trusktr closed 7 years ago
Sorry, but this is not a feature request I’m willing to support. You might be able to use d3-transform. If it helps, I would be willing to consider changing zoom.transform so that you can pass in an object with x, y and k properties rather than requiring an instance of d3.zoomTransform; that could possibly let you use d3-transform (or another class of your own design) with the zoom.transform API.
Continuing from https://github.com/d3/d3/issues/3119#issuecomment-314589750
I understand.
This is more of a feature request: a feature to preserve meaningful transform input.
This could be useful in cases where we wish to retrieve the original values that were inputted.
In other libraries (f.e. Three.js, Pixi.js, etc), one can set
position.x
,position.y
, etc, and later can retrieve those original values.