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

Function location

explainshell/web/static/js/d3.v3.js:1131–1133  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

1129 return zoom;
1130 };
1131 function location(p) {
1132 return [ (p[0] - translate[0]) / scale, (p[1] - translate[1]) / scale ];
1133 }
1134 function point(l) {
1135 return [ l[0] * scale + translate[0], l[1] * scale + translate[1] ];
1136 }

Callers 4

mousedownFunction · 0.85
mousewheelFunction · 0.85
dblclickFunction · 0.85
touchstartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected