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

Function rescale

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

Source from the content-addressed store, hash-verified

1143 translate[1] += p[1] - l[1];
1144 }
1145 function rescale() {
1146 if (x1) x1.domain(x0.range().map(function(x) {
1147 return (x - translate[0]) / scale;
1148 }).map(x0.invert));
1149 if (y1) y1.domain(y0.range().map(function(y) {
1150 return (y - translate[1]) / scale;
1151 }).map(y0.invert));
1152 }
1153 function dispatch(event) {
1154 rescale();
1155 d3.event.preventDefault();

Callers 5

d3.v3.jsFile · 0.85
dispatchFunction · 0.85
d3_scale_linearFunction · 0.85
d3_scale_quantileFunction · 0.85
d3_scale_quantizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected