Skip to content

Commit 90b0a1b

Browse files
authored
fix(graphic): close path in roundRect helper to avoid stroke corner gap
This fixes apache/echarts#21595
1 parent 31f3e22 commit 90b0a1b

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)