How to add arrow for the link if its end node's position is higher than start node's position

Hi everyone, This is my diagram.
The requirement is the link that connect to node from higher layer to lower layer, It doesn’t have arrow. But conversely it has.
Thank for seeing

Have the link template include an arrowhead, but set visible to false. Then in a “LayoutCompleted” DiagramEvent listener iterate over all of the Diagram.links and check the y values of the first and last Points of the Link.points, and set the arrowhead’s visible property accordingly.

1 Like

It works thanks for your help !