-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs:theme config explanation 11-1 #3535 #3629
base: develop
Are you sure you want to change the base?
Conversation
- `_spec.theme`:用户在图表 spec 对象配置中指定的主题 | ||
- `_currentThemeName`:通过 `VChart.ThemeManager.registerTheme` 注册的当前全局主题名称 | ||
|
||
### 简析主题合并的逻辑 (util/theme/merge-theme.ts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
源码解析可以单独列一章节,然后通过一个简单的流程图作为整体流程介绍,然后分析每个细节
|
||
```typescript | ||
export function mergeTheme(target: Maybe<ITheme>, ...sources: Maybe<ITheme>[]): Maybe<ITheme> { | ||
return mergeSpec(transformThemeToMerge(target), ...sources.map(transformThemeToMerge)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里没有体现 transformThemeToMerge 做了哪些处理
} | ||
``` | ||
|
||
todo: rgbToHsl hslToRgb 的分析 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo部分需要处理好
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
您好,最新的更改我更新在飞书文档 :https://papergames.feishu.cn/docx/EyJQd5WwxoYB97xWXpGc4VNAnRg 啦,完成好了转md再翻译再提pr
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
🔗 Related PR link
🐞 Bugserver case id
💡 Background and solution
📝 Changelog
☑️ Self-Check before Merge
🚀 Summary
copilot:summary
🔍 Walkthrough
copilot:walkthrough