Showing ports on hover of the node for GoJs


I would like to implement behaviour as described here

but for GoJS insead of GoXam.
Is it possible to do that ?


The Flowchart sample does that:

Note that the showPorts function does not set GraphObject.visible, but just properties to make the ports seen or unseen. The user cannot link to ports that are not visible, but can link to ports that are transparent.