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(graphs): add mindmap #2697

Merged
merged 10 commits into from
Sep 18, 2024
Merged

feat(graphs): add mindmap #2697

merged 10 commits into from
Sep 18, 2024

Conversation

yvonneyx
Copy link
Collaborator

@yvonneyx yvonneyx commented Sep 12, 2024

  • 调整层次图实现逻辑,由于每种图会会有自己的特殊逻辑,将 options 从 BaseGraph 抽取到上层组件中处理
  • 将展开/收起的逻辑集中到 collapse-expand-react-node transform 中,额外支持配置 iconPlacement, iconOffsetX, iconOffsetY 配置项,用于灵活定位
  • 新增思维导图 MindMap

内置思维导图样式

image

基于内置进行自定义

image

@@ -0,0 +1,12 @@
export const ANTV_PALETTE = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个是不从G6导出就好?

@lxfu1 lxfu1 merged commit bfcfa95 into v2 Sep 18, 2024
8 checks passed
@lxfu1 lxfu1 deleted the graph/mindmap branch September 18, 2024 05:40
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