MCPcopy
hub / github.com/jipegit/OSXAuditor / moved

Function moved

d3-3.2.8/d3.js:1127–1139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1125 type: "dragstart"
1126 });
1127 function moved() {
1128 if (!parent) return ended();
1129 var p = position(parent, eventId), dx = p[0] - origin_[0], dy = p[1] - origin_[1];
1130 dragged |= dx | dy;
1131 origin_ = p;
1132 event_({
1133 type: "drag",
1134 x: p[0] + offset[0],
1135 y: p[1] + offset[1],
1136 dx: dx,
1137 dy: dy
1138 });
1139 }
1140 function ended() {
1141 w.on(move + "." + drag, null).on(end + "." + drag, null);
1142 dragRestore(dragged && d3.event.target === eventTarget);

Callers

nothing calls this directly

Calls 5

endedFunction · 0.85
positionFunction · 0.85
translateToFunction · 0.85
dispatchFunction · 0.85
scaleToFunction · 0.85

Tested by

no test coverage detected