mirror of
https://github.com/excalidraw/excalidraw
synced 2025-07-25 13:58:22 +08:00
fix: correct border radius in SVG
This commit is contained in:
@ -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);
|
||||
};
|
||||
|
Reference in New Issue
Block a user