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

Link mouse cursor property #119

Closed
danielcaldas opened this issue Oct 2, 2018 · 1 comment
Closed

Link mouse cursor property #119

danielcaldas opened this issue Oct 2, 2018 · 1 comment
Labels

Comments

@danielcaldas
Copy link
Owner

As nodes, links could have a configurable mouseCursor property that defines on the fly what is the cursor like when the mouse is hovering on some link.

The new config API should have a new mouseCursor property as specified below:

node: {
    color: '#d3d3d3',
    // ...
    mouseCursor: 'pointer',
},
link: {
    color: '#d3d3d3',
    // ...
    mouseCursor: 'pointer' --> new configurable property!
}

Please remember that:

  • configs are documented on top of the graph.config.js file
  • Adding a new config to a link means that you need then to provide it in the Link component Link.jsx
  • Adding a new config means that links builder in graph.helper.js needs to pass along that new property

Happy Hacktoberfest!

@kaungmyatlwin
Copy link
Contributor

I'll work on this.

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

No branches or pull requests

2 participants