How to exclude port and portLabel calculate into bbox when linking? #3040
Unanswered
Orangewithsugar
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Use this config is able to make connectionpoint inside the elementView, but anchor still able to move out side. |
Beta Was this translation helpful? Give feedback.
2 replies
-
If you only need the bounding box of the element itself, you should use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Introduction
Hiiii jointJs Team~

This is the doc's demo impl for port, I see that when link the elements in the image, the bbox will count all the port and port label, but what my requirement is to only calculate elementView itself since it will have some problem with the anchor location after linking, the anchor could move to any place in the bbox, even outside the elementView, and if I have a feature to move port label any where, it will make the Bbox even bigger, and the anchor goes anywhere
Like this:

Btw, I use a custom shape and i've tried to use different options for connectionpoint, but seems it's useless when it's a custom shape.
Best regards.
Steps to reproduce
No response
Restrictions & Constraints
No response
Does your question relate to JointJS or JointJS+. Select both if applicable.
JointJS+
Beta Was this translation helpful? Give feedback.
All reactions