refactor!: move tooltip methods to TooltipHandler by tbouffard · Pull Request #640 · maxGraph/maxGraph
tbouffard
changed the title
refactor/tree-shaking_tooltip_mixin_code_to_tooltip_plugin
refactor!: move all Graph tooltips methods to TooltipHandler
tbouffard
changed the title
refactor!: move all Graph tooltips methods to TooltipHandler
refactor!: move all Graph tooltip methods to TooltipHandler
tbouffard
changed the title
refactor!: move all Graph tooltip methods to TooltipHandler
refactor!: move tooltip methods from AbstractGraph to TooltipHandler
tbouffard
changed the title
refactor!: move tooltip methods from AbstractGraph to TooltipHandler
refactor!: move tooltip methods to TooltipHandler
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.
tbouffard
deleted the
refactor/tree-shaking_tooltip_mixin_code_to_tooltip_plugin
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters