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

Arrow styling per Edge? #267

Open
danjhd opened this issue Dec 5, 2024 · 0 comments
Open

Arrow styling per Edge? #267

danjhd opened this issue Dec 5, 2024 · 0 comments

Comments

@danjhd
Copy link

danjhd commented Dec 5, 2024

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[x] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:

Current behavior

At present from what i can see of the code it is not possible to apply a style to and Arrow that differs based upon the Edge it is connected to. You have the capability to apply styles "per Edge" so that i can colour the Edge line a different colour based upon some parameters of the Edge but the arrow head of that line will have a different colour and the same colour/style for all Edges.

Expected behavior

I would like to have the ability to use an arrow function in the arrow prop (like you can for the edge prop so that i can use EdgeProperties to style the arrow individually.
OR
Add a new prop to the Edge component to allow me to pass a specific ArrowMarker per Edge.

Minimal reproduction of the problem with instructions

n/a

What is the motivation / use case for changing the behavior?

Having a single style/colour for all arrows when it is possible to style the Edges differently feels like a bad decision, why would customers not want to have individual styles on the Arrow?

Environment

n/a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant