Hi Indrani,
Please confirm us whether you need to hide the line tool userhandles while selecting the node. If yes, please use selectionChange event in which you can hide the line tool userhandles. If we misunderstood your requirement, please provide us more details such as explain your requirement in detail with screenshot. Please refer to the code example below.
Code example:
DiagramProperties model = new DiagramProperties();
//define selectionchange event
model.SelectionChange = "selectionchange";
function selectionchange(args) {
if (args.state === "changed") {
if (args.model.selectedItems.userHandles.length > 0) {
for (var i = 0; i < args.model.selectedItems.userHandles.length; i++) {
var handle = args.model.selectedItems.userHandles[i];
//hide the user handle
handle.visible = false;
//Based on your condition you can hide the userhandle
}
}
}
}
Regards,
Shyam G