Open kapilkumawat86 opened 3 years ago
I have tried the below ways, but the model is not removing the node.
model.removeNode(node)
const node = model.getNodeFromId(id) if (node) { const ports = node.getPorts() for (const portKey in ports) { const port = ports[portKey] const links = port.getLinks() for (const keyLink in links) { const link = links[keyLink] link.remove() } port.remove() } node.remove() }
What works for me is:
node.remove(); engine.repaintCanvas();
I tried this still same issue.
I have tried the below ways, but the model is not removing the node.
model.removeNode(node)