I’m working on a project that requires the diagram to be user-built by drag/dropping nodes from a palette onto the diagram, and then the user will manually connect up ports between the nodes. I have all of that working, but the linkTemplate I want never seems to be applied.
That looks OK to me. But this is JavaScript, so the slightest error can go undetected at the time that it occurs.
First, are there any warnings or errors in the console log?
Second, is the value of “this.diagram” really a go.Diagram? And if so, is it really the same diagram that the user is looking at?
Third, are the nodes very close to each other? If there isn’t enough room between them for links to be routed to avoid nodes, then it just goes “through” them.