Restrict linking to a part of an element/its subelement. #2726
-
IntroductionHi, Let's assume I have a custom element containing two svg This looks pretty straightforward by setting this.attr('root/magnetSelector', 'header');
this.attr('root/highlighterSelector', 'header'); but I can't figure out how to "exclude" the I assume I could override the Thank you! Steps to reproduceNo response Restrictions & ConstraintsNo response Does your question relate to JointJS or JointJS+. Select both if applicable.JointJS, JointJS+ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can make the header the actual this.attr({
root: { magnet: false },
header: { magnet: true } // or `passive`
}); |
Beta Was this translation helpful? Give feedback.
You can make the header the actual
magnet
and prevent anything from connecting the element as a whole.