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

fix: 修复 drawpoly(), ege_drawpoly() 在绘制形成多边形的闭合折线时首尾连接处无拐角的情况 #172

Merged
merged 3 commits into from
May 16, 2024

Conversation

yixy-only
Copy link
Collaborator

drawpoly() 和 ege_drawpoly() 内部都使用 折线 PolyLine 来实现,。如果直线线帽和直线连接样式为圆角,那么首尾连接处不进行额外处理也是可以正常连接的,但是如果是斜角和尖角的就出问题。
所以这里对首先连接的闭合折线使用 Polygon() 来进行绘制

@yixy-only yixy-only self-assigned this May 14, 2024
@yixy-only yixy-only merged commit b16b41e into wysaid:master May 16, 2024
1 check passed
@yixy-only yixy-only deleted the fix_polygon branch May 16, 2024 14:04
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.

1 participant