fix: 修复 drawpoly(), ege_drawpoly() 在绘制形成多边形的闭合折线时首尾连接处无拐角的情况 #172
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
drawpoly() 和 ege_drawpoly() 内部都使用 折线 PolyLine 来实现,。如果直线线帽和直线连接样式为圆角,那么首尾连接处不进行额外处理也是可以正常连接的,但是如果是斜角和尖角的就出问题。
所以这里对首先连接的闭合折线使用 Polygon() 来进行绘制