sim51 / react-sigma

Sigma React component
https://sim51.github.io/react-sigma/
Other
158 stars 27 forks source link

Tooltip support when a node event happens (dbl click, hover, etc) #52

Closed BaherZ closed 3 months ago

BaherZ commented 1 year ago

Feature request template

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] I do not think there is a current way where we can have a tooltip when we for example double-click on a node, something like this existed in the form of a plug-in Sigma 1.0, I wonder if we have this in react sigma.

sim51 commented 1 year ago

Such a feature doesn't exist on react-sigma, you have to write the component.

You have to register an event on the double click node, and then do what you want. In the event you have the mouse position, and also the node that has been clicked, so you have everything you need to do it.

Such feature depends a lot of what the user wants to do (as content, as tooltip placement and iteraction, ...), so I don't think it will be part of this library.

But if you build an example, I can publish it on the website.