Open bknill opened 2 years ago
Maybe this helps?
import { PathFindingLinkFactory } from '@projectstorm/react-diagrams';
const reroute = (engine) => {
engine
.getLinkFactories()
.getFactory(PathFindingLinkFactory.NAME)
.calculateRoutingMatrix();
};
Hi,
I'm trying to do something similar to this https://github.com/projectstorm/react-diagrams/issues/107
However the answer is 4 years old and doesn't appear to be valid anymore.
I'm moving nodes via a websocket update,
I'm trying to update the links after moving the node.
I've tried removing them
And then re-adding them but they're still going to the old port positions when I repaint.
How can I get the engine to re-draw the links?