rahal
1
I am using TreeLayout and wondering how to change link direction. I referred following documentation.
https://gojs.net/latest/intro/links.html#Arrowheads
It seems link direction is decided by “from” and “to” node definitions in linkDataArray.
Is there a property to override this behaviour and reverse link direction?
walter
2
Set Diagram | GoJS API , Diagram.isTreePathToChildren, to false.
rahal
3
Looks like it affected to dataModel. Before setting this flag to false
After setting this flag to false
I just want to switch link direction in first screenshot while keeping parent and children data as it is.
walter
4
Oh, so you just want to change the link arrowheads? I thought you didn’t want to swap the “from” and “to” keys on the link data.
Replace toArrow: "Standard"
with fromArrow: "Backward"
.
rahal
5
Yes, it did the trick. Thanks Walter!