Skip to content

Feat g6 theme and academy style#408

Merged
hustcc merged 3 commits intoaifrom
feat_g6-theme-and-academy-style
Apr 29, 2026
Merged

Feat g6 theme and academy style#408
hustcc merged 3 commits intoaifrom
feat_g6-theme-and-academy-style

Conversation

@q32757468
Copy link
Copy Markdown
Member

@q32757468 q32757468 commented Apr 29, 2026

ref: #368

  • 修改了site中部分描述不正确的地方
  • 优化了skill中summary 可能不会读取reference 的情况
  • 学术风格的柱状图等默认没有圆角,整体的其他图表也保持该风格,学术风格无圆角还是更好看些

统一无圆角的学术风格:
image

q32757468 and others added 2 commits April 29, 2026 11:01
Apply getTheme() consistently across all G6-based charts (fishbone-diagram,
flow-diagram, indented-tree, mindmap, network-graph, organization-chart),
fix theme count in docs site, expand network-graph and dual-axes config
docs, and clarify summary generation instructions in SKILL.md.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Academy theme uses sharp corners (radius 0) for a more formal style.
Applied to fishbone-diagram, flow-diagram, indented-tree, mindmap,
organization-chart, dual-axes, and waterfall.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 29, 2026

⚠️ No Changeset found

Latest commit: 24cb47c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 29, 2026

🎊 PR Preview 24cb47c has been successfully built and deployed to https://antvis-GPT-Vis-preview-pr-408.surge.sh

🕐 Build time: 0.011s

🤖 By surge-preview

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the theme system by consolidating the 'light' theme into 'default' and introducing specific styling logic for the 'academy' theme across multiple visualization types, including DualAxes, Fishbone, Flow, IndentedTree, Mindmap, and Organization charts. Documentation for DualAxes and NetworkGraph has been expanded, and the requirements for the 'summary' type have been clarified. Feedback identifies a bug in the FlowDiagram where dynamic node size measurements are overridden by hardcoded values in the style callback, and a layout issue in the IndentedTree where new root node padding may cause background overflow due to an insufficient size buffer.

Comment thread src/vis/flow-diagram/index.ts
Comment thread src/vis/indented-tree/index.ts
The node.style callback always returned hardcoded DEFAULT_NODE_HEIGHT,
overriding measured heights set by measureAndUpdateNodeSizes on re-render.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@hustcc hustcc merged commit cb09d93 into ai Apr 29, 2026
8 checks passed
@hustcc hustcc deleted the feat_g6-theme-and-academy-style branch April 29, 2026 05:07
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