Links issue at endpoints


#1

i m working on a diagram i have run into an issue with my links i want to force them to protrude a little outward instead of drawing a straight line. i dont want it like the link between inventory and rental
Screenshot%20from%202019-02-08%2019-44-40
i want them protrude first then continue how to do so i m using this template
Screenshot%20from%202019-02-08%2019-46-52

Screenshot%20from%202019-02-08%2019-47-41


#2

That is why one normally sets fromSpot and toSpot to be a specific spot or side such as go.Spot.Right or go.Spot.LeftRightSides or whatever is appropriate for the port element. Or override Link.computeSpot.

Specifying a spot ensures that there will be an “end segment” at that end of the link route. You can control how long that perpendicular segment is by setting fromEndSegmentLength and toEndSegmentLength. Or override Link.computeEndSegmentLength.