sasza2 / arrows

MIT License
60 stars 11 forks source link

Question: Is is possible to auto calculate default translation / direction ? #17

Closed laurent67100 closed 3 years ago

laurent67100 commented 3 years ago

Hi! First thanks for this great library! I was wondering if it is possible to auto calculate default translation and from/to direction based on the position of the elements one to each other?

In this example, since the to element is on the bottom right of the from element, default translation / direction could be:

Thanks!

image

sasza2 commented 3 years ago

hi, you're welcome. yes. it is, but be patient - i'm currently rewriting it to preact

sasza2 commented 3 years ago

@laurent67100 it's done. please, check the newest version and see examples/auto