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

Function moveDrawnEdgeEndPoint

chapter24/docs/d3-graphviz.js:1540–1553  ·  view source on GitHub ↗
(x2, y2)

Source from the content-addressed store, hash-verified

1538 return this;
1539 }
1540 function moveDrawnEdgeEndPoint(x2, y2) {
1541 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
1542 if (!this._drawnEdge) {
1543 throw Error('No edge has been drawn');
1544 }
1545 var edge = this._drawnEdge.g;
1546 var x1 = this._drawnEdge.x1;
1547 var y1 = this._drawnEdge.y1;
1548 var attributes = this._drawnEdge.attributes;
1549 this._drawnEdge.x2 = x2;
1550 this._drawnEdge.y2 = y2;
1551 _moveEdge(edge, x1, y1, x2, y2, attributes, options);
1552 return this;
1553 }
1554 function removeDrawnEdge() {
1555 if (!this._drawnEdge) {
1556 return this;

Callers

nothing calls this directly

Calls 1

_moveEdgeFunction · 0.70

Tested by

no test coverage detected