updateLabelPositions alternative? #2831
Unanswered
bedretchukdevoz
asked this question in
Q&A
Replies: 1 comment
-
It still exists in Here's an example on how to implement it using the custom presentation attributes: https://codepen.io/jointjs/pen/xbKXOgL Note: the labels are currently not updated when the link path changes, so the linkView update logic needs to be rewritten a bit. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Introduction
In version 3.4, within joint.dia.LinkView, there was the updateLabelPositions method, which we used to detect when the label was moved. We used this method to calculate an anchor line for the label relative to the link it was associated with. In version 4.0, we noticed that this method no longer exists, thus breaking our implementation.
Is there another method or event that could be used to work around this incompatibility?
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