Hello,
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.
This is the template I have right now.
this.diagram.linkTemplate =
$go(go.Link,
{
routing: go.Link.AvoidsNodes,
curve: go.Link.JumpOver,
corner: 4,
relinkableFrom: true, relinkableTo: true
},
$go(go.Shape),
$go(go.Shape, { toArrow: “Standard” })
);
It’s very simple, but whenever I draw the links, the paths just go over nodes and other paths whenever it wants.
Any insights?
Thanks!
- Tim