Port to port automatic link after drag the node from the html palette

There’s a new example:
I want to get the shortest port distance between two node for every node we have two ports - GoJS - Northwoods Software (nwoods.com)