(x2, y2)
| 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; |
nothing calls this directly
no test coverage detected