fix: reset dendrogram implement - #36
Conversation
Aarebecca
commented
Dec 25, 2025
- 将 dendrogram 的包裹节点高度恢复为 0,保持旧版仅依赖 nodeSep/subTreeSep 的布局行为,避免节点尺寸引入的间距偏移。
- 更新所有 dendrogram 相关 SVG 快照,确保升级后结果与旧版一致。
- 保留版本号升级改动用于发版。
- 备注:后续可考虑引入基于 node.height/width 的尺寸感知布局,并同步调整间距/居中逻辑(当前 nodeSize 仍未参与计算)。
Summary of ChangesHello @Aarebecca, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! 此拉取请求旨在修复 dendrogram 布局中的一个间距问题,该问题是由于节点尺寸意外地影响了布局计算而引起的。通过将包裹节点的高度重置为 0,我们确保了布局行为回到了仅依赖于 nodeSep 和 subTreeSep 的状态,从而消除了不必要的间距偏移。同时,更新了相关的 SVG 快照以验证此修复,并为即将发布的版本进行了版本号升级。未来可能会考虑引入更智能的尺寸感知布局。 Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|