jquery.flowchart icon indicating copy to clipboard operation
jquery.flowchart copied to clipboard

help me to get the mid point of the link

Open umarsuhail opened this issue 7 years ago • 3 comments

I want the mid point of the link between two operators. please help me on this issue

umarsuhail avatar Aug 14 '18 09:08 umarsuhail

I feel you are going to have to do some deep changes to do that - but I got interested in what the answer might be. The links are paths - so you could possibly (not checked in any way) find the path and use this

https://stackoverflow.com/questions/25278029/have-a-path-point-to-the-middle-of-another-path.

What do you need it for ?

runette avatar Aug 14 '18 15:08 runette

and - again untested - looks like you can find the path since it is a child of an element configured as : group.setAttribute('class', 'flowchart-link'); group.setAttribute('data-link_id', linkId);

i.e class="flowchart-link" and data-link_id is the relevant link id.

runette avatar Aug 14 '18 15:08 runette

if you do sort it out - please feed it back so that other people can use it :)

runette avatar Aug 14 '18 16:08 runette