fix: fix border rect missing when borderLineWidth is 0

This commit is contained in:
Rui-Sun 2024-10-14 14:54:51 +08:00
parent cbaed83b00
commit 9e6e7ffbf0
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@visactor/vtable",
"comment": "fix: fix border rect missing when borderLineWidth is 0",
"type": "none"
}
],
"packageName": "@visactor/vtable"
}

View File

@ -208,6 +208,14 @@ export function createFrameBorder(
group.addChild(borderRect);
(group as any).border = borderRect;
}
} else {
const borderRect = createRect({
fill: false,
stroke: false
});
borderRect.name = 'border-rect';
group.addChild(borderRect);
(group as any).border = borderRect;
}
}