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

Function scaleTo

explainshell/web/static/js/d3.v3.js:1137–1139  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

1135 return [ l[0] * scale + translate[0], l[1] * scale + translate[1] ];
1136 }
1137 function scaleTo(s) {
1138 scale = Math.max(scaleExtent[0], Math.min(scaleExtent[1], s));
1139 }
1140 function translateTo(p, l) {
1141 l = point(l);
1142 translate[0] += p[0] - l[0];

Callers 4

mousewheelFunction · 0.85
dblclickFunction · 0.85
touchstartFunction · 0.85
touchmoveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected