Hi, I’m currently working on re-implementing our tool using GoJS. In the past we have used GoDiagram and in our GoDiagram implementation, we stored the points for links excluding the first and last point, since these could be derived from the position of the objects the link is connecting to.
In our GoJS implementation, if I don’t set the start and end point, the link appears to be unconnected at both ends. So I need to add those points. Links have a getRealPoint method, but I imagine the only time I can call that method is once the diagram is loaded. Is there a good event to hook into to call this method and set up my links? I have tried doing this after a 1/2 second timeout which is working but seems a little fragile and causes a small flicker.
Alternatively is there a way to tell GoJS to use sensible defaults for the start and end point, based on the location of the nodes and ports the link goes to? That way I can set up the points in my model data which should be more reliable.