()
| 1156 | d3.behavior.zoom = function() { |
| 1157 | var translate = [ 0, 0 ], translate0, scale = 1, scaleExtent = d3_behavior_zoomInfinity, mousedown = "mousedown.zoom", mousemove = "mousemove.zoom", mouseup = "mouseup.zoom", touchstart = "touchstart.zoom", touchmove = "touchmove.zoom", touchend = "touchend.zoom", touchtime, event = d3_eventDispatch(zoom, "zoom"), x0, x1, y0, y1; |
| 1158 | function zoom() { |
| 1159 | this.on(mousedown, mousedowned).on(d3_behavior_zoomWheel + ".zoom", mousewheeled).on(mousemove, mousewheelreset).on("dblclick.zoom", dblclicked).on(touchstart, touchstarted); |
| 1160 | } |
| 1161 | zoom.translate = function(x) { |
| 1162 | if (!arguments.length) return translate; |
| 1163 | translate = x.map(Number); |
nothing calls this directly
no outgoing calls
no test coverage detected