antvis/G6

Support for custom tooltips (i.e. tippy) #2777

bencsn posted onGitHub

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

It's currently not possible to use custom tool tips with G6, especially in Canvas mode because most tool tips implementations require an HTML element to attach to and a hook for destroying the tool tips once they are used. These two are missing in G6 currently.

For example, we are using tippy js (https://github.com/atomiks/tippyjs) throughout our application and we'd like G6 tooltips to have the same look and feel by reusing our custom-made tooltips.

What does the proposed API look like?

A generic way to use any custom tooltips with G6. Most tooltip libraries need the following

  • Expose an HTML element for tippy (or other custom tooltip libraries) to attach to (including in Canvas mode)
  • Expose a hook to destroy a tooltip after it is used (could be something similar to mouseleave event?)

<!-- generated by antv-issue-helper. DO NOT REMOVE -->


This issue has been closed because it has been outdate for a long time. Please open a new issue if you still need help. 这个 issue 已经被关闭,因为 它已经过期很久了。 如果你仍然需要帮助,请创建一个新的 issue。

posted by github-actions[bot] over 1 year ago

Fund this Issue

$0.00
Funded

Pull requests