Closed vickyvishal closed 4 years ago
Hmm... apparently there's a configuration that does exactly that.
It defaults to false
, but you can change it by doing this:
const state = engine.getStateMachine().getCurrentState();
state.dragNewLink.config.allowLinksFromLockedPorts = true;
Please note that I've never seen this before, so I'm not sure it works hehe
@renato-bohler Can you give here details example or something which i can implement.
Thanks in advance
I understand that
model.setLocked(true)
will make it not draggable but we cannot initiate a link from its ports. Is there a way to make the nodes not draggable but the port can initial a link?TIA