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

Function dispatch

explainshell/web/static/js/d3.v3.js:1153–1161  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

1151 }).map(y0.invert));
1152 }
1153 function dispatch(event) {
1154 rescale();
1155 d3.event.preventDefault();
1156 event({
1157 type: "zoom",
1158 scale: scale,
1159 translate: translate
1160 });
1161 }
1162 function mousedown() {
1163 var target = this, event_ = event.of(target, arguments), eventTarget = d3.event.target, moved = 0, w = d3.select(d3_window).on("mousemove.zoom", mousemove).on("mouseup.zoom", mouseup), l = location(d3.mouse(target));
1164 d3_window.focus();

Callers 5

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

Calls 2

rescaleFunction · 0.85
eventFunction · 0.85

Tested by

no test coverage detected