[Bug]: Calling the showById method of the Tooltip tooltip, the position of the tooltip is incorrect #6729
Open
2 of 10 tasks
Labels
status: waiting for maintainer
These issues have not yet been reviewed by a maintainer
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 / 操作系统
Browser / 浏览器
The text was updated successfully, but these errors were encountered: