mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: correct border radius in SVG
This commit is contained in:
parent
5ff4e0d640
commit
06ae04c0be
1 changed files with 2 additions and 2 deletions
|
@ -219,8 +219,8 @@ export const applyFancyBackgroundOnSvg = async ({
|
||||||
"height",
|
"height",
|
||||||
`${dimensions.height - FANCY_BG_PADDING * 2 * exportScale}`,
|
`${dimensions.height - FANCY_BG_PADDING * 2 * exportScale}`,
|
||||||
);
|
);
|
||||||
rect.setAttribute("rx", (FANCY_BG_PADDING * exportScale).toString());
|
rect.setAttribute("rx", (FANCY_BG_BORDER_RADIUS * exportScale).toString());
|
||||||
rect.setAttribute("ry", (FANCY_BG_PADDING * exportScale).toString());
|
rect.setAttribute("ry", (FANCY_BG_BORDER_RADIUS * exportScale).toString());
|
||||||
rect.setAttribute("fill", backgroundColor);
|
rect.setAttribute("fill", backgroundColor);
|
||||||
svgRoot.appendChild(rect);
|
svgRoot.appendChild(rect);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue