diff --git a/common/changes/@visactor/vtable/3684-bug-frame-border-with-array_2025-04-07-03-54.json b/common/changes/@visactor/vtable/3684-bug-frame-border-with-array_2025-04-07-03-54.json new file mode 100644 index 0000000000..5ef5a8be02 --- /dev/null +++ b/common/changes/@visactor/vtable/3684-bug-frame-border-with-array_2025-04-07-03-54.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "fix: frame border set array render bottom line position error #3684\n\n", + "type": "none", + "packageName": "@visactor/vtable" + } + ], + "packageName": "@visactor/vtable", + "email": "892739385@qq.com" +} \ No newline at end of file diff --git a/packages/vtable/src/scenegraph/graphic/contributions/rect-contribution-render.ts b/packages/vtable/src/scenegraph/graphic/contributions/rect-contribution-render.ts index adbff93c3d..581a2ff542 100644 --- a/packages/vtable/src/scenegraph/graphic/contributions/rect-contribution-render.ts +++ b/packages/vtable/src/scenegraph/graphic/contributions/rect-contribution-render.ts @@ -226,8 +226,8 @@ export class SplitRectAfterRenderContribution implements IRectRenderContribution stroke, strokeArrayWidth || lineWidth, strokeArrayColor || strokeColor, - Math.ceil(width + deltaWidth), - Math.ceil(height + deltaHeight) + rect.name !== 'table-border-rect' ? Math.ceil(width + deltaWidth) : width + deltaWidth, + rect.name !== 'table-border-rect' ? Math.ceil(height + deltaHeight) : height + deltaHeight ); } }