Are you working with ports and looking for inspiration? Check out this demo showing the following features: connection events, connection validations, magnet validations, custom ports markup, custom link tools, delayed link tools removal and highlighting available ports.
Link the output and input ports of different elements (1-3) and hover over the links to use features such as custom link tools or switch the output port to another (available) input port. Follow the connection events displayed in the right panel.
The source code of this demo is available as part of the JointJS+ commercial license. Don't have a license yet? Start a trial and use the source code of this and many other demos for free, with no obligations, for 30 days.