Open rnbez opened 8 years ago
Looks like the library joint.shapes.devs.js has a nice implementation of ports.
It seems that JointJs library only create ports in the svg object when the classes inPorts and/or outPorts are used. Also, it doesn't seem possible to easily change the x-y coordinates from the ports that the library creates.
Possibles solutions are:
A further research showed that the process (at least for now) is easier then expected. Instead of relying on the library for the creations of ports, any element within the svg can be marked as a magnet which make them suitable for connections with Links.
Study the following links to learn how to implement ports: