'Alternative way to create ports in JointJs

I have come across this page about creating ports in JoinsJS and it fits my needs: https://resources.jointjs.com/tutorials/joint/tutorials/ports.html

However, it seems that this way got deprecated and the documentation offers no alternative solution. How can I achieve the same functionality in the new way?



Solution 1:[1]

I'm not sure it is deprecated,

you can see in their latest documentation https://resources.jointjs.com/docs/jointjs/v3.4/joint.html#shapes.devs

that it's not tagged as "deprecated" or "for backwards compatibility".

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 PierreN