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

Function removeDrawnNode

chapter19/docs/d3-graphviz.js:1721–1731  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1719 return this;
1720 }
1721 function removeDrawnNode() {
1722 if (!this._drawnNode) {
1723 return this;
1724 }
1725 var node = this._drawnNode.g;
1726 if (!node.empty()) {
1727 node.remove();
1728 }
1729 this._drawnNode = null;
1730 return this;
1731 }
1732 function insertDrawnNode(nodeId) {
1733 if (!this._drawnNode) {
1734 throw Error('No node has been drawn');

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected