Skip to content

Commit fae89ff

Browse files
authored
Merge pull request #3701 from VisActor/3684-bug-frame-border-with-array
3684 bug frame border with array
2 parents 3de23fe + 2237993 commit fae89ff

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "fix: frame border set array render bottom line position error #3684\n\n",
5+
"type": "none",
6+
"packageName": "@visactor/vtable"
7+
}
8+
],
9+
"packageName": "@visactor/vtable",
10+
"email": "892739385@qq.com"
11+
}

packages/vtable/src/scenegraph/graphic/contributions/rect-contribution-render.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ export class SplitRectAfterRenderContribution implements IRectRenderContribution
226226
stroke,
227227
strokeArrayWidth || lineWidth,
228228
strokeArrayColor || strokeColor,
229-
Math.ceil(width + deltaWidth),
230-
Math.ceil(height + deltaHeight)
229+
rect.name !== 'table-border-rect' ? Math.ceil(width + deltaWidth) : width + deltaWidth,
230+
rect.name !== 'table-border-rect' ? Math.ceil(height + deltaHeight) : height + deltaHeight
231231
);
232232
}
233233
}

0 commit comments

Comments
 (0)