GoJS 2.1.9 How to add from spot and to spot for a linkTemplate using LayeredDigraphLayout

How can I set from spot and to spot for link template when using LayeredDigraphLayout. It doesnt work with my setting below, It only work if Im not using LayeredDigraphLayout.

Example: vigorous-easley-o2j2m - CodeSandbox

Thanks for help.

Try setting LayeredDigraphLayout.setsPortSpots to false.