MCPcopy
hub / github.com/jipegit/OSXAuditor / translateTo

Function translateTo

d3-3.2.8/d3.js:1203–1207  ·  view source on GitHub ↗
(p, l)

Source from the content-addressed store, hash-verified

1201 scale = Math.max(scaleExtent[0], Math.min(scaleExtent[1], s));
1202 }
1203 function translateTo(p, l) {
1204 l = point(l);
1205 translate[0] += p[0] - l[0];
1206 translate[1] += p[1] - l[1];
1207 }
1208 function rescale() {
1209 if (x1) x1.domain(x0.range().map(function(x) {
1210 return (x - translate[0]) / scale;

Callers 4

movedFunction · 0.85
startedFunction · 0.85
mousewheeledFunction · 0.85
dblclickedFunction · 0.85

Calls 1

pointFunction · 0.85

Tested by

no test coverage detected