Port highlighting

Screenshot (10)

how to edit the highlighting of fromPort and toPort when creating a link in flow.

https://gojs.net/latest/intro/tools.html#LinkingToolAndRelinkingTool

I want to highlight the toPort only, if set

diagram.toolManager.linkingTool.temproraryFromPort=null

or

localDig.toolManager.linkingTool.temporaryFromPort = localDig.toolManager.linkingTool.originalFromPort

it shows error message of

go.js:1161 Uncaught TypeError: Cannot read property ‘panel’ of null
at U.push…/…/node_modules/gojs/release/go.js.t.tb

Try setting its opacity to zero.