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
1 changed files with 1 additions and 1 deletions

View File

@ -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);