Arrow icon
See all demos

Fixed Connection Points

Various configurations are available for link management in different software. A typical method in diagramming tools involves placing several connection points around the perimeter of an element. This allows users to form links solely from these points, with the link targets also restricted to these specific points. This strategy streamlines the interface and aids in creating parallel links between elements, for example. For implementing this in JointJS, incorporating ports into your models is an option. However, an alternative and effective approach is to manage it at the logical level using link anchors, a custom highlighter, and some mathematics. Experience this technique in the demo app below.
Demo instructions
Connect elements and observe the fixed connection points in action.

Made with JointJS+

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.

Compatible with:

ReactAngularVueSvelteHTML5Salesforce Lightning

Made with JointJS+

All features required to build this demo are included in the commercial JointJS+ package. Don't have a license yet? Start a trial and build professional applications with ease.

Compatible with:

ReactAngularVueSvelteHTML5Salesforce Lightning

Made with JointJS

The source code of this demo is available in the JointJS open-source library which helps developers create simple visual applications in less time.

Compatible with:

ReactAngularVueSvelteHTML5Salesforce Lightning

Made with JointJS

All features required to build this demo application are included in our open-source library, JointJS. Download the package and create basic visual applications in no time.

Compatible with:

ReactAngularVueSvelteHTML5Salesforce Lightning

Speed up your development with a powerful library