antvis/G2

The issue has been closed
[问题] shadowColor属性传参后续会像color属性支持函数吗? #4411
vobile-wangzhenfeng posted onGitHub
<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests and possibly benchmarks. Contributors guide: https://github.com/antvis/g2/blob/master/CONTRIBUTING.md 感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试,必要时请附上性能测试。 Contributors guide: https://github.com/antvis/g2/blob/master/CONTRIBUTING.md -->
Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->
-
npm test
passes - benchmarks are included
- commit message follows commit guidelines
- documents are updated
Description of change
<!-- Provide a description of the change below this comment. -->
问题
比如我想实现下面效果时,
需要将每个部分的shadowColor与它本身的颜色相对应,但是目前shadowColor属性只能设置一种颜色。
期望
shadowColor: string | ((datum: Datum, defaultColor?: string) => string)