jquery-connections icon indicating copy to clipboard operation
jquery-connections copied to clipboard

How to change the start side and the end side of the connection between two elements?

Open gatre96 opened this issue 1 year ago • 1 comments

I'm actually working on a binary tree and i need to connect nodes. The code works good for me, but i would like to change the starting point of the connection. When i connect a partent node to child nodes, the connections starts from bottom of parent node, but i want it to start from left and the connect to top border of the child(for left child, right for the right child)

gatre96 avatar Feb 19 '24 15:02 gatre96

Would switching from and to do the trick? See https://github.com/musclesoft/jquery-connections/wiki/Line-Drawing-Strategies for why I think this could work.

dcsaszar avatar Feb 19 '24 21:02 dcsaszar

Sorry for the late answer, anyway i read the line drawing strategies and this helped. I didn't actually try tour solution because i switched to another way to do what i had to do, but reading the drawing strategies it should work like i wanted.

gatre96 avatar May 08 '24 23:05 gatre96