jointjsrappid

Display Ports Dynamically in JointJs


Is it possible to show ports programmatically in JoinJS? This is what I want to do.

I see API for addPort and removePort but don't see anything around hide / display.


Solution

  • Please try setting the port opacity attribute to show ports only after dropping to paper.

            attrs: {
                    '.port-body': {
                        opacity: 1 // or 0
                    }