MCPcopy Index your code
hub / github.com/bqplot/bqplot / dragstarted

Method dragstarted

js/src/Graph.ts:372–381  ·  view source on GitHub ↗
(d: NodeData)

Source from the content-addressed store, hash-verified

370 }
371
372 private dragstarted(d: NodeData) {
373 if (this.model.static) {
374 return;
375 }
376 if (!d3GetEvent().active) {
377 this.force_layout.alphaTarget(0.4).restart();
378 }
379 d.fx = d.x;
380 d.fy = d.y;
381 }
382
383 private dragged(d: NodeData) {
384 if (this.model.static) {

Callers

nothing calls this directly

Calls 1

d3GetEventFunction · 0.90

Tested by

no test coverage detected