Orientation of link label

HI here I have created rectangular box for to show values on link. and that rectangular box and label should have orientation of the link. Here i have attached image which expected and which I m getting.aaaa

. white theme image is represents which i expected. and black theme which is actual .

You want to set https://gojs.net/latest/api/symbols/GraphObject.html#segmentOrientation on the label GraphObject. Please read https://gojs.net/latest/intro/linkLabels.html#LinkLabelSegmentOrientation