Skip to content
New issue

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

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

Already on GitHub? # to your account

Double-headed edges #4

Closed
Dragemil opened this issue Dec 16, 2020 · 3 comments
Closed

Double-headed edges #4

Dragemil opened this issue Dec 16, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@Dragemil
Copy link
Contributor

Is there an easy way to maybe pass a flag to the graph, that if you had an edge x -> y and an edge y -> x it would be drawn as single double-headed edge, rather than two edges?

Also, is there a possibility to label edges with text?

Or do I have to provide whole EdgePaintBuilder/EdgePathBuilder, which seems rather complicated?

@lempiy
Copy link
Owner

lempiy commented Dec 17, 2020

@Dragemil
For <-> sounds reasonable. It's not to hard to implement via some kind of edges "merge", but currently not available.
About labels on edges:
Because widget is built on top of custom painter, it's hard to implement this feature - you need to handle edges size and graph orientation properly to centralise your text and avoid overlaps.
I have React.js version of this lib which uses SVG rendering. This version has edge labels implemented by some other guy, but I'm not satisfied with the result. If you want to make your contribution, please do so.
I had plan for version 1.0.0 with new type of matrix (with 2 cells per 1 object instead of 1), but for now I don't have time to work on this.

@lempiy lempiy added the enhancement New feature or request label Dec 17, 2020
@hareendranmg
Copy link

Hi @Dragemil, Did you able to label edges with text?

@Dragemil
Copy link
Contributor Author

Dragemil commented May 3, 2021

Sorry, unfortunately I didn't need the labaled edges in the end.

@lempiy lempiy mentioned this issue Dec 11, 2022
@lempiy lempiy closed this as completed Dec 11, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants