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

Function d3_eventDispatch

explainshell/web/static/js/d3.v3.js:412–428  ·  view source on GitHub ↗
(target)

Source from the content-addressed store, hash-verified

410 return e;
411 }
412 function d3_eventDispatch(target) {
413 var dispatch = new d3_dispatch(), i = 0, n = arguments.length;
414 while (++i < n) dispatch[arguments[i]] = d3_dispatch_event(dispatch);
415 dispatch.of = function(thiz, argumentz) {
416 return function(e1) {
417 try {
418 var e0 = e1.sourceEvent = d3.event;
419 e1.target = target;
420 d3.event = e1;
421 dispatch[e1.type].apply(thiz, argumentz);
422 } finally {
423 d3.event = e0;
424 }
425 };
426 };
427 return dispatch;
428 }
429 d3.mouse = function(container) {
430 return d3_mousePoint(container, d3_eventSource());
431 };

Callers 1

d3.v3.jsFile · 0.85

Calls 1

d3_dispatch_eventFunction · 0.85

Tested by

no test coverage detected