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

Option to support fixed angles #17

Open
aguedob opened this issue Jul 6, 2018 · 10 comments
Open

Option to support fixed angles #17

aguedob opened this issue Jul 6, 2018 · 10 comments
Labels
feature New feature or request Low Something low priority isn't working

Comments

@aguedob
Copy link

aguedob commented Jul 6, 2018

It would be awesome to have an option to support fixed angles in connectors while dragging a node
dragelaine

@ugurdogrusoz ugurdogrusoz added feature New feature or request Low Something low priority isn't working labels Jun 12, 2019
@chinicuin
Copy link

Any update on this feature? It would be great to have this option. 😃

@ugurdogrusoz
Copy link
Contributor

We do not currently have the resources to work on this. Feel free to contribute and do a PR on the unstable branch though. It would be highly appreciated.

@chinicuin
Copy link

Sure, I will give it a try in the next couple of weeks and do the corresponding pull request.

@chinicuin
Copy link

https://js.cytoscape.org/#style/taxi-edges
There is an edge type called taxi, I hope this helps @aguedob

@leoluKL
Copy link

leoluKL commented May 17, 2021

I actually needs this feature in my project. I will try developing it and merge in. Let me know @ugurdogrusoz if it is already implemented in some way.
The feature I plan to achieve is, when mouse dragging a bend anchor point to a location, which is either 0 or 45 or 90 to a anchor point(or source/dest node) before or after the dragging anchor point, it will automatically "stick" to that location.

@ugurdogrusoz
Copy link
Contributor

No, it hasn't been implemented and I don't believe it's straightforward.

@leoluKL
Copy link

leoluKL commented May 17, 2021

I have completed this feature, I will commit in a short while. I have tested in the demo html.
As I do not have a comprehensive understanding of the other code, it might need some additional code to avoid confliction. Please review.

@ugurdogrusoz
Copy link
Contributor

PR must be to the unstable branch and the new feature needs to be off by default with an option.

@leoluKL
Copy link

leoluKL commented May 17, 2021

Understood. It is strange that the current unstable branch does not work in my laptop after running webpack again (without any change). so I develop and test this feature in master branch. I will PR to unstable still.
image

@leoluKL
Copy link

leoluKL commented May 17, 2021

oops, sorry I misunderstood the original feature request. ..... I am so sorry, i actually implement a feature that will "stick" anchor to some perfect angle when dragging anchor
it is different from the original feature request, which asking for more node and keep anchor angle..

Shall I start a new issue and paste this implementation. This feature is what I need in my other project.

@canbax canbax mentioned this issue Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request Low Something low priority isn't working
Projects
None yet
Development

No branches or pull requests

4 participants