1
0
mirror of https://github.com/excalidraw/excalidraw.git synced 2024-11-10 11:35:52 +01:00

fix: Exporting freedraw with color to svg (#3565)

This commit is contained in:
Steve Ruiz 2021-05-11 09:44:26 +01:00 committed by GitHub
parent a8a5e7b6ff
commit 92c7d3257f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -708,7 +708,7 @@ export const renderElementToSvg = (
);
const path = svgRoot.ownerDocument!.createElementNS(SVG_NS, "path");
node.setAttribute("stroke", "none");
node.setAttribute("fill", element.strokeStyle);
node.setAttribute("fill", element.strokeColor);
path.setAttribute("d", getFreeDrawSvgPath(element));
node.appendChild(path);
svgRoot.appendChild(node);