Skip to content

fix(vlayouts): refresh word placement status on relayout - #297

Merged
xile611 merged 1 commit into
mainfrom
codex/fix-wordcloud-placement-reset
Nov 20, 2026
Merged

xile611 merged 1 commit into
mainfrom
codex/fix-wordcloud-placement-reset

Conversation

@xile611

@xile611 xile611 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Fixes VisActor/VChart#4591.

[中文版模板 / 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
  • Chore
  • Other (about what?)

🔗 Related issue link

💡 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 test label Nov 20, 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.

看过当前提交 3665d4f,未发现阻断问题。

修复方向是对的:每次重新布局都用本轮 place(...) 的结果覆盖 hasPlaced,避免放大或全局缩小回滚后沿用上一轮的 true,导致本轮已经放置失败的词仍被当作可见词输出。

新增的两个回归用例分别覆盖了 ensureMappingEnlarge 放大失败和 ensureMapping 全局缩小回滚;CI 的 build 和全量 package test 均通过(vlayouts:17 suites / 102 tests)。

@xile611
xile611 merged commit 2b8e375 into main Nov 20, 2026
6 checks passed
@xile611
xile611 deleted the codex/fix-wordcloud-placement-reset branch November 20, 2026 07:52
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.

[Bug] 词云文字重叠bug

2 participants