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

支持钉钉E应用的绘图属性 #18

Closed
cuibeihong opened this issue Jan 11, 2019 · 1 comment
Closed

支持钉钉E应用的绘图属性 #18

cuibeihong opened this issue Jan 11, 2019 · 1 comment
Assignees

Comments

@cuibeihong
Copy link

阴影相关属性目前不支持,还有dd-charts依赖的f2版本过低

@simaQ simaQ self-assigned this Jan 22, 2019
@simaQ
Copy link
Contributor

simaQ commented Feb 11, 2019

已在 @antv/[email protected] 版本支持,由于支付宝小程序画布的阴影接口为 setShadow(shadowOffsetX, shadowOffsetY, shadowBlur, shadowColor) 不兼容 H5 Canvas 上下文的阴影属性(shadowOffsetX, shadowOffsetY, shadowBlur, shadowColor),所有在支付宝小程序中需要按照如下的方式设置阴影:

// 为折线图设置阴影样式
chart.line()
  .position('x*y')
  .style({
    shadow: [ 0, 0, 10, '#1890ff' ] 
  });

即使用 shadow 属性,而且该属性的值必须是数组格式,顺序如下:

shadow: [ shadowOffsetX, shadowOffsetY, shadowBlur, shadowColor ]

@cuibeihong 望知晓,带支付宝小程序画布接口升级,同 H5 Canvas 保持一致后,即可使用 shadowOffsetX, shadowOffsetY, shadowBlur, shadowColor 这四个属性。

@simaQ simaQ closed this as completed Feb 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants