Skip to content

Tooltip before and after draw hooks not documented and weird behaviour #10002

@LeeLenaleee

Description

@LeeLenaleee

Documentation Is:

  • Missing or needed
  • Confusing
  • Not Sure?

Please Explain in Detail...

The tooltip plugin calls the following plugin hooks: beforeTooltipDraw and afterTooltipDraw. These don't seem to be documentated.

Also it seems like the hook are called in the wrong place because it seems they get called every render cycle. But changing this will make it a braking change.

Your Proposal for Changes

Document the plugin hooks.

Change the hooks to only fire when the tooltip is actually being draw instead of every render cycle

Example

https://codepen.io/leelenaleee/pen/ZEXKRmR

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions