I'm looking to add half-circle ports in JointJS programmatically when clicking on a port-like "add" button, like so: mockup
I've created basic ports, and it looks like I could use element.addPort(port, [opt])
but I'm not sure how I'd trigger a click event inside the rectangle element to add the port. The styling of the add button and ports is also something that I'm still trying to recreate with Joint.