0

I have a JointJs element with ports. I'd like the element not to be movable within the diagram, but still allow the user to connect its ports to other elements. If I use the interactive attribute in the Paper to disallow interactions for these elements, then it becomes unmovable, but it's ports no longer work.

How can I accomplish that?

Thanks!

Edy Bourne
  • 5,679
  • 13
  • 53
  • 101

1 Answers1

0

interactive can be both boolean or an object. Object defines more specific cases. It can have properties such as:

labelMove arrowheadMove vertexMove useLinkTools applicable for links and elementMove applicable for elements.

so in your case paper.setInteractivity({elementMove: false}) should do the trick

vt.
  • 1,398
  • 7
  • 15