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

Function dblclick

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

Source from the content-addressed store, hash-verified

1188 translate0 = null;
1189 }
1190 function dblclick() {
1191 var p = d3.mouse(this), l = location(p), k = Math.log(scale) / Math.LN2;
1192 scaleTo(Math.pow(2, d3.event.shiftKey ? Math.ceil(k) - 1 : Math.floor(k) + 1));
1193 translateTo(p, l);
1194 dispatch(event.of(this, arguments));
1195 }
1196 function touchstart() {
1197 var touches = d3.touches(this), now = Date.now();
1198 scale0 = scale;

Callers

nothing calls this directly

Calls 4

locationFunction · 0.85
scaleToFunction · 0.85
translateToFunction · 0.85
dispatchFunction · 0.85

Tested by

no test coverage detected