MCPcopy Create free account
hub / github.com/adobe/Marinus / dragged

Function dragged

web_server/public/javascripts/cert_graph.js:279–287  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

277 .clamp(true);
278
279 function dragged(d) {
280 var threshold = graph.draggedThreshold(graph.simulation.alpha()),
281 dx = d.oldX - d.x,
282 dy = d.oldY - d.y;
283 if (Math.abs(dx) >= threshold || Math.abs(dy) >= threshold) {
284 d.dragged = true;
285 }
286 return d.dragged;
287 }
288
289 graph.drag = d3.drag()
290 .subject(function (d) { return d; })

Callers 1

drawGraphFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected