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:
parent
a8a5e7b6ff
commit
92c7d3257f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user