diff --git a/README.md b/README.md index adcb8564..39c86da4 100644 --- a/README.md +++ b/README.md @@ -399,6 +399,10 @@ function rescaleY(y) { The scale *y* must use [d3.interpolateNumber](https://github.com/d3/d3-interpolate#interpolateNumber); do not use [*continuous*.rangeRound](https://github.com/d3/d3-scale#continuous_rangeRound) as this reduces the accuracy of [*continuous*.invert](https://github.com/d3/d3-scale#continuous_invert) and can lead to an inaccurate rescaled domain. This method does not modify the input scale *y*; *y* thus represents the untransformed scale, while the returned scale represents its transformed view. +# new d3.ZoomTransform(k, x, y) · [Source](https://github.com/d3/d3-zoom/blob/master/src/transform.js) + +Returns a transform with scale *k* and translation (*x*, *y*). + # transform.toString() · [Source](https://github.com/d3/d3-zoom/blob/master/src/transform.js) Returns a string representing the [SVG transform](https://www.w3.org/TR/SVG/coords.html#TransformAttribute) corresponding to this transform. Implemented as: