better management of the click on the canvas

The click on component display the ports and the options.
When a component is unselected (click on the background or anther component/line), the ports are hidden.

improve idea : 
When click on a link, the two components display the port to see the output and the input port.