When I change the link toSpot or fromSpot to some xxxSide, it doesn't reshape the link

When I change the toSpot or fromSpot to some xxxSide don’t reshape the link or auto justify.

Screen Recording 2021-01-01 at 12.02.42 PM

when I move the node little link will reshape.
and this is the sample code,

I don’t understand – when I repeat the actions that you seemed to do in your screenshot video, I find that the links remain connected at the bottom of the node, unlike what is shown in your video. That behavior is what you want, yes? And not what is shown in your video?

What I mean is, when I change the link spot to the bottom, the links don’t automatically even the spaces in between them. Right now, it looks like this when I do that.
image

It should have even spaces, like this picture.
image

Remember not to execute transactions repeatedly, such as in loops.

    diagramA.startTransaction("linkCh");
    diagramA.selection.each(function(part) {
      if (part instanceof go.Link) {
        diagramA.model.setDataProperty(part.data, "fromSpot", "BottomSide");
      }
    })
    diagramA.commitTransaction("linkCh");
    diagramA.startTransaction("linkCh");
    diagramA.selection.each(function(part) {
      if (part instanceof go.Link) {
        part.fromNode.invalidateConnectedLinks();
      }
    })
    diagramA.commitTransaction("linkCh");

Walter, thank you kindly reply,
it works !