Replies: 1 comment
-
Please provide an example that we can run. Thank you. |
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
Hi,
Please help me out with this.
The idea is to show some tools after selecting a link.
One of the tools modifies the model to show an additional svg path (which should be rendered into the view, so this change to the model just sets the correct path and the ratio at which the path should be shown). This change to the model triggers a
confirmUpdate
(when called on its own) and works fine. But as soon as it is called from a previousconfirmUpdate
call - the tools update in this case, it doesn't work. And considering it is the tool('srender
) that triggers thisattributes
change...Something like this:
So the end result is that after calling
select()
the additional svg path is not rendered. Checking the model, thed
property is correct but it is not reflected in the view where it is still the initial0 0 0 0
or whatever the previous value was. TheconfirmUpdate
is never called with the custom 'path-update' flag in this case.Subsequently hovering the target or the source of the link triggers an "updateAll" on the link and it rerenders and shows correctly.
How can I solve this issue? I tried to require the view but it makes no difference.
Thank you!
Does your question relate to JointJS or JointJS+. Select both if applicable.
JointJS, JointJS+
Beta Was this translation helpful? Give feedback.
All reactions