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

Comments

@danielcaldas
Copy link
Owner

@danielcaldas danielcaldas commented Oct 2, 2018

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

This comment has been minimized.

Copy link
Contributor

@kaungmyatlwin kaungmyatlwin commented Oct 2, 2018

I'll work on this.

kaungmyatlwin pushed a commit to kaungmyatlwin/react-d3-graph that referenced this issue Oct 2, 2018
zvolchak added a commit to zvolchak/react-d3-graph that referenced this issue Oct 29, 2018
* fix: danielcaldas#119 Add mouseCursor prop to <Link>

* fix: Update Snapshot Testing for pointer

* doc: Add mouseCursor doc for Link

* doc: change to mouseCursor prop in Link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.