Open Malikx-Alee opened 4 years ago
+1
You can override node rendering with the renderNode function and return your own SVG component with the tooltip. Overriding the node rendering allows you to do so much more with the nodes that is not possible with the default nodes.
Edges are different. We needed the handleTooltipText (provided by a contributor) because react-digraph has to render the edges itself. We do provide an afterRenderEdge function to help modify those edges, but we don't provide a renderEdge function.
Currently the node does not show handleToolTipText like edges.
Below is the code for edges but it does not work for nodes: