fix: restore point visibility after overlap updates - #4686
Merged
Merged
Conversation
skie1997
approved these changes
Sep 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤔 这个分支是...
🔗 相关 issue 链接
无独立 GitHub issue。
🔗 相关的 PR 链接
无。
🐞 Bugserver 用例 id
6746cd6971189400b2ec8dbe💡 问题的背景&解决方案
开启
markOverlap后,通过updateSpec将密集数据切换为稀疏数据,复用的点图元仍可能保持旧的visible: false。原用例绿色点更新后只有 6/21 可见,直接渲染相同新 spec 则为 21/21;有无setSelected都可复现。BaseMark.clearBeforeReInit()清空样式后重新调用默认样式初始化,使新一轮编码恢复正常可见性,系列及用户配置继续按原优先级覆盖默认值。symbolOverlap基于本轮完整编码结果判断可见性,移除跨轮次隐藏标记与 reset,避免旧算法隐藏结果覆盖本轮显式隐藏配置。修复后,原用例在有无
setSelected两条路径下,绿色与橙色点均为 21/21,点属性与直接渲染新 spec 一致。本次保持现有 VRender 依赖及状态、动画属性提交流程。📝 Changelog
已运行
rush change-all --message 'fix: restore point visibility after overlap updates' --type patch --not-commit,并提交生成的变更日志。☑️ 自测
验证结果:
rush test --only tag:package通过:VChart 87 个套件、482 项测试全部通过,vutils-extension 的 1 项测试通过。🚀 Summary
copilot:summary
🔍 Walkthrough
copilot:walkthrough