From 848f3b13cfb1e22d958d778d9e678592cfe6e8f8 Mon Sep 17 00:00:00 2001 From: zhouxinyu Date: Mon, 30 Dec 2024 16:42:58 +0800 Subject: [PATCH] fix: fix issue with cornerType not setted --- packages/vrender-core/src/common/shape/rect.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vrender-core/src/common/shape/rect.ts b/packages/vrender-core/src/common/shape/rect.ts index e11bb7a2c..fb43191f9 100644 --- a/packages/vrender-core/src/common/shape/rect.ts +++ b/packages/vrender-core/src/common/shape/rect.ts @@ -12,7 +12,7 @@ export function createRectPath( width: number, height: number, rectCornerRadius: number | number[], - roundCorner: boolean, + roundCorner: boolean = true, edgeCb?: IEdgeCb[] ) { if (width < 0) {