MCPcopy Create free account
hub / github.com/idank/explainshell / zoom

Function zoom

explainshell/web/static/js/d3.v3.js:1095–1097  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1093 d3.behavior.zoom = function() {
1094 var translate = [ 0, 0 ], translate0, scale = 1, scale0, scaleExtent = d3_behavior_zoomInfinity, event = d3_eventDispatch(zoom, "zoom"), x0, x1, y0, y1, touchtime;
1095 function zoom() {
1096 this.on("mousedown.zoom", mousedown).on("mousemove.zoom", mousemove).on(d3_behavior_zoomWheel + ".zoom", mousewheel).on("dblclick.zoom", dblclick).on("touchstart.zoom", touchstart).on("touchmove.zoom", touchmove).on("touchend.zoom", touchstart);
1097 }
1098 zoom.translate = function(x) {
1099 if (!arguments.length) return translate;
1100 translate = x.map(Number);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected