Specific Interaction in paper

21 views
Skip to first unread message

Hariprasad Rengarajan

unread,
Apr 5, 2021, 6:45:47 AM4/5/21
to JointJS
Hello,

I am a beginner to joint.js and I am loving the ease in which I can draw graphs.

I have an issue, where I want to have only specific interaction in my graph. For instance,
1. Having remove link option
2. Connecting using ports alone

I do not want to allow moving the nodes on the paper. Can I set the interactive flag in a more grained manner?

Please correct me if I am missing something.

Thanks

Roman Bruckner

unread,
Apr 5, 2021, 2:36:08 PM4/5/21
to joi...@googlegroups.com
Hi,

yes, you can enable/disable specific features via the `paper.options.insteractive` option - https://resources.jointjs.com/docs/jointjs/v3.3/joint.html#dia.Paper.prototype.options.interactive

paper.setInteractivity({ elementMove: false });

Best,
Roman


--

---
You received this message because you are subscribed to the Google Groups "JointJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jointjs+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jointjs/0adda4b3-0eff-4861-9858-130e278b9e52n%40googlegroups.com.


--

Hariprasad Rengarajan

unread,
Apr 6, 2021, 11:56:16 PM4/6/21
to JointJS
Thank you so much Roman.

Hari

Reply all
Reply to author
Forward
0 new messages