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

[4.0] path 的 bbox 计算问题 #252

Closed
simaQ opened this issue Nov 4, 2019 · 2 comments
Closed

[4.0] path 的 bbox 计算问题 #252

simaQ opened this issue Nov 4, 2019 · 2 comments
Assignees

Comments

@simaQ
Copy link
Contributor

simaQ commented Nov 4, 2019

问题描述:对于较规则的 path,比如矩形,bbox d的计算误差太大。

复现 riddle: https://riddle.alibaba-inc.com/riddles/b9895ed4

@dengfuping
Copy link
Member

  • path 的包围盒计算采取更为准确的算法,除了计算出夹角处的实际线宽以外,还考虑了其在水平和垂直方向上的投影长度。

@dengfuping
Copy link
Member

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