We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
阴影相关属性目前不支持,还有dd-charts依赖的f2版本过低
The text was updated successfully, but these errors were encountered:
feat: 支持 shadow 阴影样式设置。Closed #18
8886a95
已在 @antv/[email protected] 版本支持,由于支付宝小程序画布的阴影接口为 setShadow(shadowOffsetX, shadowOffsetY, shadowBlur, shadowColor) 不兼容 H5 Canvas 上下文的阴影属性(shadowOffsetX, shadowOffsetY, shadowBlur, shadowColor),所有在支付宝小程序中需要按照如下的方式设置阴影:
@antv/[email protected]
setShadow(shadowOffsetX, shadowOffsetY, shadowBlur, shadowColor)
// 为折线图设置阴影样式 chart.line() .position('x*y') .style({ shadow: [ 0, 0, 10, '#1890ff' ] });
即使用 shadow 属性,而且该属性的值必须是数组格式,顺序如下:
shadow
shadow: [ shadowOffsetX, shadowOffsetY, shadowBlur, shadowColor ]
@cuibeihong 望知晓,带支付宝小程序画布接口升级,同 H5 Canvas 保持一致后,即可使用 shadowOffsetX, shadowOffsetY, shadowBlur, shadowColor 这四个属性。
Sorry, something went wrong.
simaQ
No branches or pull requests
阴影相关属性目前不支持,还有dd-charts依赖的f2版本过低
The text was updated successfully, but these errors were encountered: