Skip to content

Commit cfb1c27

Browse files
authored
Merge pull request #1155 from ecomfe/fix/roundRect
fix(graphic): close path in `roundRect` helper to avoid stroke corner gap
2 parents 31f3e22 + 90b0a1b commit cfb1c27

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/graphic/helper/roundRect.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,5 @@ export function buildPath(ctx: CanvasRenderingContext2D | PathProxy, shape: {
8484
r4 !== 0 && ctx.arc(x + r4, y + height - r4, r4, Math.PI / 2, Math.PI);
8585
ctx.lineTo(x, y + r1);
8686
r1 !== 0 && ctx.arc(x + r1, y + r1, r1, Math.PI, Math.PI * 1.5);
87+
ctx.closePath();
8788
}

0 commit comments

Comments
 (0)