antvis/G6

The issue has been closed
[Bug]: Calling the showById method of the Tooltip tooltip, the position of the tooltip is incorrect #6729
hcxcomeon posted onGitHub
Describe the bug / 问题描述
plugins: [ { key: 'toolKey', type: 'tooltip', trigger: 'click', getContent: () => { return '123' } } ]
const divDom = document.createElement('div') divDom.textContent = 'text' divDom.style.background = 'red' divDom.addEventListener('click', () => { const tool = graph.getPluginInstance('toolKey') tool.showById('Classification') }) document.getElementById('container').appendChild(divDom)
Reproduction link / 复现链接
No response
Steps to Reproduce the Bug or Issue / 重现步骤
1.注册一个Tooltip, 2.通过其他方式调用showById触发其显示
G6 Version / G6 版本
🆕 5.x
OS / 操作系统
- macOS
- Windows
- Linux
- Others / 其他
Browser / 浏览器
- Chrome
- Edge
- Firefox
- Safari (Limited support / 有限支持)
- IE (Nonsupport / 不支持)
- Others / 其他