anseki / plain-draggable

The simple and high performance library to allow HTML/SVG element to be dragged.
https://anseki.github.io/plain-draggable/
MIT License
765 stars 96 forks source link

How to center the leaderline but behind the draggable div? #130

Closed vukic-makro closed 1 year ago

vukic-makro commented 1 year ago

Hey @anseki First of all I'd like to say that this is one of the most amazing things I've ever used. You've really nailed on this feature and it's working extremely well for me.

However due to the designs which were requested I need to have the line sort of behind the draggable divs raher than on the same level or above. Also it needs to be starting and ending in hte center of draggable div which I've solved.

Any additional input into how lines would have lower Z-index than the draggable divs would be greatly appreciated.

I've tried manually setting z-indexes through inspector but that seems to break everything rather than just show it behind

Thanks again!

vukic-makro commented 1 year ago

Screenshot 2023-03-12 at 12 56 51

Here's a screenshot to perhaps give you a better understanding of what I'm trying to solve. Basically when the white line overlaps yellow circle I just want it to be below it rather than above

anseki commented 1 year ago

Hi @vukic-makro, thank you for the comment. Was the issue already solved?