Change node highlight shape

how to change node highlight shape while creating link between two nodes.

As in the image we can see the node is circular but the highlight shape is rectangle . I want to change this rectangle shape to circular . While creating link betwwen two nodes.

You could set a portTargeted function to set the temporaryFromPort or temporaryToPort to match the figure of the targeted port.

myDiagram.toolManager.linkingTool.portTargeted = function(realnode, realport, tempnode, tempport, toend) {
  if (realport === null) {
    tempport.figure = "Square";
  } else {
    tempport.figure = realport.figure;
  }
}

You probably want to do the same for the RelinkingTool, if your app supports relinking.

Thanks. Works well.