Closed AhmedSalihCezayir closed 11 months ago
@AhmedSalihCezayir Since the tooltip display position is the center of the default CircleNode:https://github.com/antvis/Graphin/blob/master/packages/graphin/src/components/Tooltip/useTooltip.tsx#L51
it is recommended that you customize a tooltip for this case
Describe the bug
When a tooltip is added to a custom node, tooltip is not centered with respect to the node but instead it is in the wrong position.
Your Example Website or App
https://codesandbox.io/s/tooltip-location-problem-morw7v?file=/src/App.js
Steps to Reproduce the Bug or Issue
Expected behavior
I expect the tooltip to be centered.
Screenshots or Videos
Current tooltip positioning:
Platform
Additional context
No response