Here is an example how to add Assistant to node - Org Chart Editor with Assistants
But it has a bug, please look carefully to init animation and of animation. You will see that link comes through an assistant and only at the end of animation link changes their position. (Link from top parent)
Are you able to give us more information about the cases where the link stays over the assistant? What browser are you using, what type of machine are you running on, etc. I haven’t been able to reproduce a problem on any of the major browsers.
Thanks,
when AnimationManager.isEnabled is false it works fine, but Unfortunately I can’t switch off animation it is important for my app.
I prepared an example for you based on your assistant sample Plunker - Untitled
Toggle any node to Assistant and back and you will see that links above jump during animation - this looks bad.
Also you can see this bug at this video https://drive.google.com/file/d/0BywlVSJDF9VYX2RkQWc0b21LSDA/view
Could you improve it at your sample?
I don’t think that would be easy to accomplish, because animating an orthogonal link as the nodes are moving cannot be done by tweening all of the points of the route except in simple cases.
But you could set layerName: "Background" in your Link template, so that links do not cross “over” any nodes.
I found reason of such behaviour.
I use Nodes and Groups. Group has Placeholder. So if I remove Placeholder it works pretty well, but with Placeholder it has bug.
I see now what you mean – you were not talking about how during animation the link routes would appear to go through some nodes, but that they did so after the initial animation finished. And in fact the problem has nothing to do with animation. We’ll have to look at this.
By the way, in looking at your code, your Binding conversion functions really should not be having any side-effects.
In general one cannot depend on the order or frequency in which Bindings are evaluated. That’s part of why having side-effects is a bad idea, as well as wanting to keep them simple and fast.