antvis/G6

[Bug]: Calling the showById method of the Tooltip tooltip, the position of the tooltip is incorrect #6729

hcxcomeon posted onGitHub

Describe the bug / 问题描述

PixPin_2025-01-15_15-16-26 image

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)

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 / 其他

g6版本 5.0.42

posted by hcxcomeon 3 months ago

Fund this Issue

$0.00
Funded

Pull requests