fix: correct border radius in SVG
This commit is contained in:
parent
5ff4e0d640
commit
06ae04c0be
@ -219,8 +219,8 @@ export const applyFancyBackgroundOnSvg = async ({
|
||||
"height",
|
||||
`${dimensions.height - FANCY_BG_PADDING * 2 * exportScale}`,
|
||||
);
|
||||
rect.setAttribute("rx", (FANCY_BG_PADDING * exportScale).toString());
|
||||
rect.setAttribute("ry", (FANCY_BG_PADDING * exportScale).toString());
|
||||
rect.setAttribute("rx", (FANCY_BG_BORDER_RADIUS * exportScale).toString());
|
||||
rect.setAttribute("ry", (FANCY_BG_BORDER_RADIUS * exportScale).toString());
|
||||
rect.setAttribute("fill", backgroundColor);
|
||||
svgRoot.appendChild(rect);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user