MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / _updateEdge

Function _updateEdge

chapter24/docs/d3-graphviz.js:1484–1490  ·  view source on GitHub ↗
(edge, x1, y1, x2, y2, attributes, options)

Source from the content-addressed store, hash-verified

1482 return this;
1483 }
1484 function _updateEdge(edge, x1, y1, x2, y2, attributes, options) {
1485 var newEdge = createEdge.call(this, attributes);
1486 var edgeData = extractAllElementsData(newEdge);
1487 edge.data([edgeData]);
1488 attributeElement.call(edge.node(), edgeData);
1489 _moveEdge(edge, x1, y1, x2, y2, attributes, options);
1490 }
1491 function _moveEdge(edge, x1, y1, x2, y2, attributes, options) {
1492 var shortening = options.shortening || 0;
1493 var arrowHeadLength = 10;

Callers

nothing calls this directly

Calls 4

extractAllElementsDataFunction · 0.70
_moveEdgeFunction · 0.70
callMethod · 0.45
nodeMethod · 0.45

Tested by

no test coverage detected