Skip to content

Codex/fix sankey glyph state - #2129

Merged
xile611 merged 4 commits into
developfrom
codex/fix-sankey-glyph-state
Sep 17, 2026
Merged

xile611 merged 4 commits into
developfrom
codex/fix-sankey-glyph-state

Conversation

@xile611

@xile611 xile611 commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Refactoring
  • Update dependency
  • Code style optimization
  • Test Case
  • Branch merge
  • Site / documentation update
  • Demo update
  • Workflow
  • Release
  • Other (about what?)

🔗 Related issue link

🐞 Bugserver case id

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self-Check before Merge

⚠️ Please check all items below before requesting a reviewing. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

🚀 Summary

copilot:summary

🔍 Walkthrough

copilot:walkthrough

@github-actions github-actions Bot added the docs label Sep 16, 2026

@skie1997 skie1997 left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

两条行内意见分别涉及:修改 path/radius 后几何缓存未刷新,以及设置 dx/dy 后位移缓存未更新。均已通过测试复现。

Comment on lines +119 to +122
if (forceUpdateTag || category & UpdateCategory.SHAPE) {
child.addUpdateShapeAndBoundsTag();
} else if (category & UpdateCategory.BOUNDS) {
child.addUpdateBoundTag();

@skie1997 skie1997 Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[P1] 修改 path/radius 后,子图形仍使用旧缓存

子图形继承宿主的 path/radius 时,修改宿主属性不会刷新子图形的几何缓存。例如路径宽度从 10 改成 30,包围盒仍是 10。这里需要更新子图形的几何和包围盒,不能只标记重绘。

Comment on lines +1018 to +1020
if (this.glyphHost) {
this.commitBaseAttributesByCategory(params, forceUpdateTag, context);
return;

@skie1997 skie1997 Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[P2] 设置 dx/dy 后,子图形的位移缓存没有更新

给已有变换缓存的 Glyph 子图形执行 setAttributes({ dx: 20 }),属性变成 20,但矩阵中的位移仍是 0。dx/dy 被误判为仅重绘,需要补上变换矩阵和包围盒更新。

@xile611
xile611 force-pushed the codex/fix-sankey-glyph-state branch from 880cc3c to de63027 Compare September 16, 2026 09:28
@xile611
xile611 merged commit 2fffc74 into develop Sep 17, 2026
7 of 9 checks passed
@xile611
xile611 deleted the codex/fix-sankey-glyph-state branch September 17, 2026 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants