I need to use the bboxes of the links to be able to clip them.
I simply tried: link.getBBox() which seems to return an incorrect value.
Further investigation reveals that getPointFromConnectedLink always returns on this line if there is no port id: if (!portId || !this.hasPort(portId)) return center;
Why is the endDef not taken into account in this case and instead it takes the center of the element(s)?
Thanks.
Steps to reproduce
- Create two elements
- Link them
- Modify the anchor points of the link
link.getBBox() returns incorrect values
Version
4.0.1 jointplus

I need to use the bboxes of the links to be able to clip them.
I simply tried:
link.getBBox()which seems to return an incorrect value.Further investigation reveals that
getPointFromConnectedLinkalways returns on this line if there is no port id:if (!portId || !this.hasPort(portId)) return center;Why is the
endDefnot taken into account in this case and instead it takes the center of the element(s)?Thanks.
Steps to reproduce
link.getBBox()returns incorrect valuesVersion
4.0.1 jointplus