fix: respect disabled label smart invert - #4637
Open
biubiukam wants to merge 1 commit into
Open
Conversation
biubiukam
marked this pull request as ready for review
August 4, 2026 15:43
Contributor
|
🦞 Aime Bot Review 🔍 改动摘要本次 PR 修复了
📝 具体观察
🚀 合并建议代码逻辑正确,测试充分,建议合并。 |
🦞Aime Bot Review 🔍 Summary of changesThis PR fixes the issue where
📝 Specific observations
🚀 Merge suggestionsThe code logic is correct and fully tested. It is recommended to merge. |
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 链接
Fix #4492
🔗 相关的 PR 链接
N/A
🐞 Bugserver 用例 id
N/A
💡 问题的背景&解决方案
内部 bar 和 pie 标签会根据
position自动开启smartInvert,但现有归一化逻辑会覆盖显式配置的smartInvert: false,bar 标签还会覆盖显式传入的 options 对象。本次修改仅在
smartInvert未配置时使用内部标签的自动反色默认值,从而保留显式的布尔值或 options 对象。同时补充单元测试,覆盖关闭自动反色、保留 options 对象以及未配置时维持原有默认行为。📝 Changelog
☑️ 自测
🚀 Summary
copilot:summary
🔍 Walkthrough
copilot:walkthrough