react-xarrows icon indicating copy to clipboard operation
react-xarrows copied to clipboard

Setting direction that arrow from an element travels and minimum distance before it turns

Open appglue opened this issue 3 years ago • 21 comments

This is a new feature. My company would be happy to fund development time to get this included in the library. Contact me if you are interested in this.

we are using Xarrow as a key componet in a diagraming project. we need the arrow to travel OUT from the html element before it turns.

Attached is a video showing what we are after, you can see that the arrow switches to start right instead of left.\

https://www.awesomescreenshot.com/video/3823751?key=07782652924a1a857f76cf1f52e23cde

property like

TailConnectionSegmentDirection TailConnectionSegmentLength HeadConnectionSegmentDirection HeadConnectionSegmentLength

would be great.

appglue avatar May 20 '21 20:05 appglue

hey @x365Project, thank you. I would be happy to add this feature if your company will fund the development time for this feature. please contact me on mail [email protected]

Eliav2 avatar May 21 '21 12:05 Eliav2

hi

this is carl hewitt. starting a new venture and using xArrow (nice lib, btw).

asked about adding directionality to arrows (happy to fund).

can you get me quote on this?

Carl

On Fri, May 21, 2021 at 8:27 AM Eliav2 @.***> wrote:

hey @x365Project https://github.com/x365Project, thank you. I would be happy to add this feature if your company will fund the development time for this feature. please contact me on mail @.***

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Eliav2/react-xarrows/issues/70#issuecomment-845915166, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARCCXOV2O4P63R3VVVZ5FBLTOZGRZANCNFSM45HZZNAQ .

appglue avatar May 21 '21 14:05 appglue

a better way to define this might be telling arrow it needs to go AWAY from html element (that is what I am always after)

On Fri, May 21, 2021 at 10:52 AM Carl Hewitt @.***> wrote:

hi

this is carl hewitt. starting a new venture and using xArrow (nice lib, btw).

asked about adding directionality to arrows (happy to fund).

can you get me quote on this?

Carl

On Fri, May 21, 2021 at 8:27 AM Eliav2 @.***> wrote:

hey @x365Project https://github.com/x365Project, thank you. I would be happy to add this feature if your company will fund the development time for this feature. please contact me on mail @.***

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Eliav2/react-xarrows/issues/70#issuecomment-845915166, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARCCXOV2O4P63R3VVVZ5FBLTOZGRZANCNFSM45HZZNAQ .

appglue avatar May 21 '21 14:05 appglue

I already thought about algorithm to handle such cases. it's also related to #66. If I will rewrite the path algo to be directional, and to avoid predefined rectangles(start and end elements will always be included) i could solve this issue and could make this arrow be much smarter. the thing is that it's not going to be simple and will probably take many hours to plan ,write, and integrate with the current available features.

just to make thing clear: currently Xarrow is implemented with svg path which consist bezier curve with 2 control points, in order to make this arrow smarter i will need to rewrite the path calculation section to be more generic and to add more control points based on the elements that the arrow will need to avoid so the draw will be 'pretty'.

Eliav2 avatar May 21 '21 17:05 Eliav2

please contact me on mail [email protected]

Eliav2 avatar May 21 '21 17:05 Eliav2

Hey guys, how is this going? any progress?

jbcabreras avatar Jun 07 '21 17:06 jbcabreras

Yup, work in progress! but not ready yet.

the path algorithm has been rewritten to be directional and smarter

what left to do:

  • arrow does not know yet how to avoid rectangles(including start rectangle and end rectangle). this means path algo is not yet completed.
  • integrate with current features such arrow tail and head and label positioning.
  • allowing smooth path, grid with rounded corners, and straight paths.

sorry it's taking time, I'm busy with other tasks as well, but I will do my best to finish it as fast as possible. How urgent it is for you? react-xarrows-newPaths

Eliav2 avatar Jun 07 '21 23:06 Eliav2

do you have any idea how long until the next release?

jbcabreras avatar Jun 09 '21 12:06 jbcabreras

@Eliav2 Great effort. Really looking forward for this. I guess it will solve lot of issues with lines overlapping with nodes. I have created a issue for this here https://github.com/Eliav2/react-xarrows/issues/48.

Well in my case I had placed all nodes in prop grid and lines will run from one to another nicely without overlapping and it is static grid. But the above dynamic positioned nodes need this new paths.

jithureddy avatar Jun 24 '21 04:06 jithureddy

Hello guys! Any progress on this?

hbalardin avatar Oct 29 '21 16:10 hbalardin

Yes, will be released soon as paid version

Eliav2 avatar Oct 29 '21 21:10 Eliav2

Hi guys, any updates on this? Where can I find the paid version? tks

jbcabreras avatar Dec 01 '21 20:12 jbcabreras

Hi guys , any update on this ?

waficjazz avatar Sep 19 '22 08:09 waficjazz

Yup, work in progress! but not ready yet.

the path algorithm has been rewritten to be directional and smarter

what left to do:

  • arrow does not know yet how to avoid rectangles(including start rectangle and end rectangle). this means path algo is not yet completed.
  • integrate with current features such arrow tail and head and label positioning.
  • allowing smooth path, grid with rounded corners, and straight paths.

sorry it's taking time, I'm busy with other tasks as well, but I will do my best to finish it as fast as possible. How urgent it is for you? react-xarrows-newPaths react-xarrows-newPaths

Hi sir

Do not be tired Can you provide me the source code of this feature which is in beta mode? We are looking forward to this option in a project. We accept all the consequences

AlirezaBabaeii avatar Oct 08 '22 15:10 AlirezaBabaeii

Hey @Eliav2. Any updates on this? We're also looking for a feature like this in our project.

yashjais avatar Oct 31 '22 10:10 yashjais

busy times, I need to find some time to work on this project but currently I have no time. hopefully sometime soon

‫בתאריך יום ב׳, 31 באוק׳ 2022 ב-12:58 מאת ‪Yash Jaiswal‬‏ <‪ @.***‬‏>:‬

Hey @Eliav2 https://github.com/Eliav2. Any updates on this? We're also looking for a feature like this in our project.

— Reply to this email directly, view it on GitHub https://github.com/Eliav2/react-xarrows/issues/70#issuecomment-1296920518, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALI5Y4K3A3GP3NSU5IJTARDWF6Q4VANCNFSM45HZZNAQ . You are receiving this because you were mentioned.Message ID: @.***>

Eliav2 avatar Nov 02 '22 13:11 Eliav2

@Eliav2 Sure thing. Appreciate your work on this library. Thanks a ton!

yashjais avatar Nov 02 '22 13:11 yashjais

Did this feature never come out? It is so handy and makes the lines much cleaner that they always point outwards, gives them nice curves even if they are going straight down, and the obstacle avoidance would be an actual master piece.

Nevertheless, what a handy library!

AronAsmundsson avatar Aug 04 '23 19:08 AronAsmundsson

This would also be very handy for Gantt charts alike arrows which can be of great use. Is there any pull request we can help with?

lucfranken avatar Nov 22 '23 21:11 lucfranken

@Eliav2 is there any chance that you could upload your progress on this to a branch?

sagaban avatar Feb 24 '24 13:02 sagaban