Skip to content
This repository was archived by the owner on Jul 29, 2019. It is now read-only.
This repository was archived by the owner on Jul 29, 2019. It is now read-only.

Shorthand option for edge color being ignored #4299

@StrikeAgainst

Description

@StrikeAgainst

I'm using Vis network for my Typescript React project, and I'm having an issue with setting the color for edges. When I'm using the shorthand option like this:

edges: { color: '#0000ff' },

it will be ignored and inherit the color from the node border instead. Doing the longhand option works though:

edges: { color: { color: '#0000ff' } },

although this is too verbose in my opinion, having to set highlight color etc. individually as well. This issue goes for both global and local edge properties.

Just recently I switched from using react-vis-network (which uses vis version ^4.0.0 / 4.21.0) to directly using vis. This is when this issue started appearing, although react-vis-network doesn't alter any of the properties.

Is there anything known about this?

Tested with Google Chrome 74 on Windows 10. vis version is ^4.0.0 / 4.21.0.

Please tell me if there's any more code I need to provide. Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions