diff --git a/src/graphic/helper/roundRect.ts b/src/graphic/helper/roundRect.ts index db79d2c4..0ee6e9d1 100644 --- a/src/graphic/helper/roundRect.ts +++ b/src/graphic/helper/roundRect.ts @@ -84,4 +84,5 @@ export function buildPath(ctx: CanvasRenderingContext2D | PathProxy, shape: { r4 !== 0 && ctx.arc(x + r4, y + height - r4, r4, Math.PI / 2, Math.PI); ctx.lineTo(x, y + r1); r1 !== 0 && ctx.arc(x + r1, y + r1, r1, Math.PI, Math.PI * 1.5); + ctx.closePath(); }