Skip to content

fix(bar): 修复条形图在 reflect y 时,绘制圆角错误 #3745

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

Merged
merged 2 commits into from
Dec 14, 2021

Conversation

visiky
Copy link
Member

@visiky visiky commented Dec 14, 2021

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Description of change

close: #3743

Sorry, something went wrong.

@visiky visiky requested a review from hustcc December 14, 2021 08:00
@github-actions
Copy link

github-actions bot commented Dec 14, 2021

😭 Deploy PR Preview 048a492 failed. Build logs

🤖 By surge-preview

if (coordinate.isReflect('x')) {
[p0, p3] = swap(p0, p3);
[p1, p2] = swap(p1, p2);
}
Copy link
Member Author

Choose a reason for hiding this comment

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

之前写复杂了,只要根据 coordinate 的转换为 points 以及 radius 转换就行 (radius 只考虑在转置下的一个坐标转换)

@visiky visiky force-pushed the fix-3743 branch 2 times, most recently from 305808b to f0e0b96 Compare December 14, 2021 10:27
@visiky visiky merged commit 048a492 into master Dec 14, 2021
@visiky visiky deleted the fix-3743 branch December 14, 2021 12:32
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

Successfully merging this pull request may close these issues.

🐛 条形图设置 reflect: 'y' 之后,corner-radius 绘制失败
2 participants