A link line problem

How do I change the style of the current port and link line when I drag a new link line from a port?
image

That’s discussed at: GoJS Tools -- Northwoods Software

Also, how you define the node template will determine the sizes and positions of the ports.