Skip to content

Arrow styling per Edge? #267

@danjhd

Description

@danjhd

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions