-
Notifications
You must be signed in to change notification settings - Fork 231
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
get x, y and other node informations with event onMouseOverNode() #306
Comments
Option 1
Option2
Option3
I think we could potentially afford I will prefer note: Please try and use the feature request/bug report GitHub templates, it makes understand the issue, a way faster a more structured process. |
I think we can add in this case the X and Y in a {'position' : {x: posX, y: posY}} property if we don't want to wait for the breaking change for a version 3. I prefer option 2 because node information can be important, and x, y it's possible to add un object node. I have updated the description of issue with the template report ;) |
Hey, there @jdelpierre I currently have no time available to look into this issue. Please feel free to send a PR in my way. I would be more than glad to review and provide guidance. Cheers! |
Thanks for the interest but it's hard for me to find time in this period too :( |
Why don't just return the whole object instead of its ID or a limited set of properties? I would do this for every event. |
The API was designed with minimal overhead, the I'm looking into |
Hi there, if you're looking into tackling this issue, please consider the Option 2 as an approach to implementing this. Below the new API for onMouseOverNode. function onMouseOverNode(id, node) {
// ...
} Cheers! |
I'm closing this issue as it has been resolved with #385. This feature will become available in the next release. |
Hello everybody,
Is your item request related to a problem? Please describe your request
I would like to be able to at the onMouseOverNode() event of the :
get the x, y positioning information and the current node property object to position a tooltip containing the node information.
Describe the solution you would like
I would like to be able to have the following arguments: onMouseOverNode(x, y, node)
Describe your use case
Write about what you are building and why you need this feature.
Describe the alternatives you have considered
For the moment, I'm going to go through the original d3js library because I managed to create the tooltip, but I have to look for the positions and information myself at each event, so it's expensive.
Thank you
Issue after discuss about this => #304
The text was updated successfully, but these errors were encountered: