Skip to content
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

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

Shabi-x
Copy link

@Shabi-x Shabi-x commented Jan 2, 2025

[中文版模板 / 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
  • Release
  • Site / documentation update
  • Demo update
  • Workflow
  • Other (about what?)

🔗 Related issue link

🔗 Related PR link

🐞 Bugserver case id

💡 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 docs label Jan 2, 2025
- `_spec.theme`:用户在图表 spec 对象配置中指定的主题
- `_currentThemeName`:通过 `VChart.ThemeManager.registerTheme` 注册的当前全局主题名称

### 简析主题合并的逻辑 (util/theme/merge-theme.ts)
Copy link
Contributor

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));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里没有体现 transformThemeToMerge 做了哪些处理

}
```

todo: rgbToHsl hslToRgb 的分析
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

todo部分需要处理好

Copy link
Author

@Shabi-x Shabi-x Jan 15, 2025

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

@Shabi-x Shabi-x changed the title [WIP] docs: init docs of theme sourceCode #3535 [WIP] docs:theme config explanation 11-1 #3535 Jan 15, 2025
Shabi-x

This comment was marked as resolved.

@Shabi-x Shabi-x changed the title [WIP] docs:theme config explanation 11-1 #3535 docs:theme config explanation 11-1 #3535 Jan 16, 2025
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.

2 participants