Repository navigation
fix(mermaid): 跟随卡片主题色与透明度 - #336
Merged
taekchef merged 2 commits intoOct 20, 2026
Merged
Conversation
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.
Refs #328
Mermaid 原先从全局 body 取色,忽略图表卡片的局部主题;主题插件仅替换样式表时,已有 SVG 也可能保留旧的不透明底色。现在从实际图表卡片读取配色,保留宿主提供的原始透明度,并在主题样式表更新后刷新图表。
0.62的额外透明度处理及其依赖,避免已有 40% 底色再次被压低。验证:Node 24 下
npm run check通过(100 个文件、1284 项测试);verify-pack通过(2.60 MB / 8.60 MB)。真实 Chromium 中,全局初始透明度、全局变量更新、局部卡片覆盖、仅样式表更新四种场景均保留并跟随 40% 底色;原有浏览器回归 19 项基线、33 项当前检查通过,字体与标签未回归。三项新增单元回归在旧实现失败,修复后通过。原报告者的壁纸和桌面组合尚未实机复测,当前未发布 npm 新版本;#328 保持开放,等待包含修复的新版本及原环境复测。