Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add draggable point to smart edge #36

Open
picxy3d opened this issue Jul 10, 2022 · 4 comments
Open

Add draggable point to smart edge #36

picxy3d opened this issue Jul 10, 2022 · 4 comments
Labels
enhancement New feature or request pinned This should not be closed by bots on inactivity

Comments

@picxy3d
Copy link

picxy3d commented Jul 10, 2022

feature

  • draggable
  • show it on focus
  • save coordinate of it
  • update those point position with pathfinder
  • if user drag the point find path from that point
  • pathfinder avoid collapse between edge

EX

Screenshot from 2022-07-10 15-45-30

Screenshot from 2022-07-10 15-24-10

thx for your great work

@picxy3d picxy3d added the enhancement New feature or request label Jul 10, 2022
@tisoap
Copy link
Owner

tisoap commented Jul 10, 2022

Hi @picxy3d , thanks for the suggestion! Could you share the name of the website/app where you got your example screenshots from?

I'm unsure if React Flow allows for development of edges with draggable points, but I'll leave this open to investigate. But one thing for sure is that:

  • pathfinder avoid collapse between edge

... is impossible to accomplish. Is the same as trying so solve the three utilities problem.

@tisoap tisoap added the pinned This should not be closed by bots on inactivity label Jul 10, 2022
@picxy3d
Copy link
Author

picxy3d commented Jul 11, 2022

HI @tisoap thx for your response
i got my example screen shots from here
live example can be found here
you are right actually avoid collapse between edge was unnecessary as long as user can drag and customize it
but it will be great to have because when we use smart edge with large amount of node the edge will look like spaghetti
it was so hard to find what it connect to so i want it to look clean like pcb path for inspiration

image
image

to be clear i mean get draggable points and put it to path finder as obj to avoid (as same as nodes)
so it will draw path like this

Screenshot from 2022-07-11 10-53-09

instead of this

Screenshot from 2022-07-11 10-52-43

sory i dont explaind it clearly at the first comment

@picxy3d
Copy link
Author

picxy3d commented Jul 11, 2022

about draggable points it was possible with custom edge but react flow doesn't have any official support on this
joey request this feature on react flow discord before

image

@agrawal-rohit
Copy link

feature

  • draggable
  • show it on focus
  • save coordinate of it
  • update those point position with pathfinder
  • if user drag the point find path from that point
  • pathfinder avoid collapse between edge

EX

Screenshot from 2022-07-10 15-45-30

Screenshot from 2022-07-10 15-24-10

thx for your great work

+1, it would be an awesome addition to the package

Repository owner locked and limited conversation to collaborators Jun 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request pinned This should not be closed by bots on inactivity
Projects
None yet
Development

No branches or pull requests

3 participants