Is there on in samples. I am over-riding but things aren’t working as expected. What I am trying to do is allow the link to acquire inital points collection from default and then over-ride compute points and immediately call it for a tweak. Perhaps there is something I need to do to have the change displayed?
This may be difficult to understand. NOTE: “$” is this example is jQuery and NOT GOJS. What I am trying to do is have all links headed to the same node make their x-crossover at the same y-point on the screen.
I’m not sure exactly what you’re trying to do, but I think it is much easier to override a Link method so that you don’t have to spend so much effort to try to fix the route.
myDiagram.linkTemplate =
$(CustomLink,
{ routing: go.Link.Orthogonal },
$(go.Shape, { strokeWidth: 1.5 }) // the link shape, with the default black stroke
);
I am very close with the computePoints over-ride. As long as I don’t need any additional points than created by the inherited “createPoints”, everything works perfectly. ComputePoints is called multiple times. The first time it is called I pass it to the inherited method which I held a reference to before I did the override. The code in my computePoints is: