refactor!: move tooltip methods to TooltipHandler by tbouffard · Pull Request #640 · maxGraph/maxGraph

@tbouffard tbouffard changed the title refactor/tree-shaking_tooltip_mixin_code_to_tooltip_plugin refactor!: move all Graph tooltips methods to TooltipHandler

Jan 20, 2025

@tbouffard tbouffard changed the title refactor!: move all Graph tooltips methods to TooltipHandler refactor!: move all Graph tooltip methods to TooltipHandler

Jan 28, 2025

tbouffard

tbouffard

@tbouffard tbouffard changed the title refactor!: move all Graph tooltip methods to TooltipHandler refactor!: move tooltip methods from AbstractGraph to TooltipHandler

Dec 17, 2025

@tbouffard tbouffard changed the title refactor!: move tooltip methods from AbstractGraph to TooltipHandler refactor!: move tooltip methods to TooltipHandler

Dec 17, 2025

@tbouffard

Move `getTooltip` and `getTooltipForCell` from `AbstractGraph` to the `TooltipHandler` plugin as this is the only place where they are used.
This improves modularity and tree-shaking, clarifies responsibilities, and reduces the amount of code in `AbstractGraph` by removing the `TooltipMixin`.

The stories have been updated accordingly and can be used as examples for adapting application code.

BREAKING CHANGES: The `getTooltip` and `getTooltipForCell` methods have been moved from `AbstractGraph` to the `TooltipHandler` plugin.
If you were overriding these methods in a `AbstractGraph` subclass, you should now extend `TooltipHandler` instead.

coderabbitai[bot]

@tbouffard tbouffard deleted the refactor/tree-shaking_tooltip_mixin_code_to_tooltip_plugin branch

December 19, 2025 16:28