chore(vutils): improve code comments #251
Open
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 连接
无(纯注释改进,无关联 issue)
💡 问题的背景&解决方案
在
color/Color.ts
中,部分颜色空间转换相关函数(例如convertGammaToLinear
、convertLinearToGamma
)的注释较为简略。本次提交仅针对这些函数与辅助方法的代码注释进行了补充与优化,使其含义更清晰、语义更一致,方便其他开发者快速理解代码逻辑。
📝 Changelog
color/Color.ts
; no functional changes.color/Color.ts
中的代码注释与说明,提升可读性,无任何逻辑改动。☑️ 自测
🚀 Summary
copilot:summary
🔍 Walkthrough
copilot:walkthrough