MCPcopy Create free account
hub / github.com/jipegit/OSXAuditor / zoom

Function zoom

d3-3.2.8/d3.js:1158–1160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected