Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tooltip): tooltip support get content async #6660

Open
wants to merge 1 commit into
base: v5
Choose a base branch
from

Conversation

TZZack
Copy link
Contributor

@TZZack TZZack commented Dec 20, 2024

Plugin tooltip's getContent support async

image

Copy link

Walkthrough

This pull request introduces asynchronous support for the getContent function in the tooltip plugin. The changes allow tooltip content to be fetched asynchronously, enhancing flexibility and functionality.

Changes

File Summary
packages/g6/__tests__/demos/index.ts Added export for pluginTooltipAsync.
packages/g6/__tests__/demos/plugin-tooltip-async.ts New test case for async tooltip content retrieval.
packages/g6/__tests__/unit/plugins/tooltip.spec.ts Updated tests to handle async tooltip content and added new test for async content.
packages/g6/src/plugins/tooltip.ts Modified getContent to return a promise and updated show method to handle async content.

@TZZack TZZack force-pushed the feat-tooltip-getcontent-async branch from 6f742db to 896270b Compare December 20, 2024 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants