When a connectionChange event occurs, even if the xy coordinate is arbitrarily changed, the connected connection cannot be disconnected.
connectionChange: (args) => {
let diagram = document.getElementById('diagram').ej2_instances[0];
if(args.state == "Changed"){
if(diagram.connectors.length > 3){
args.cancel = true;
diagram.selectedItems.connectors[0].sourcePoint.x = 0;
diagram.selectedItems.connectors[0].sourcePoint.y = 0;
diagram.selectedItems.connectors[0].targetPoint.x = 0;
diagram.selectedItems.connectors[0].targetPoint.y = 0;
diagram.dataBind();
}
Can Connect connected to a node be disconnected and returned to its previous state?
or
can i cause Undo?