sasza2 / arrows

MIT License
60 stars 11 forks source link

Anchor translation offset #44

Closed JackMorganNZ closed 2 years ago

JackMorganNZ commented 2 years ago

Is there a way (or trick) to set a offset for the anchor translation on a start on end node? This is translation in the sense of moving on x/y coords of the elements position, rather than translation of the beizer curves.

For example, I want to start the arrow at the location of the red cross (under the last digit): image

At the moment, my strategy is to create a HTML element, that is absolutely positioned and hidden with CSS and anchor to that.

Thank you for a great package!

JackMorganNZ commented 2 years ago

Update: Using a absolutely position hidden element works really well, here it is with a custom tail:

image

sasza2 commented 2 years ago

hi, you're welcome! your solution looks really nice

JackMorganNZ commented 2 years ago

Thanks @sasza2. I'll close this issue as this solution achieves the desired outcome.