mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
fix: Exporting freedraw with color to svg (#3565)
This commit is contained in:
parent
a8a5e7b6ff
commit
92c7d3257f
1 changed files with 1 additions and 1 deletions
|
@ -708,7 +708,7 @@ export const renderElementToSvg = (
|
||||||
);
|
);
|
||||||
const path = svgRoot.ownerDocument!.createElementNS(SVG_NS, "path");
|
const path = svgRoot.ownerDocument!.createElementNS(SVG_NS, "path");
|
||||||
node.setAttribute("stroke", "none");
|
node.setAttribute("stroke", "none");
|
||||||
node.setAttribute("fill", element.strokeStyle);
|
node.setAttribute("fill", element.strokeColor);
|
||||||
path.setAttribute("d", getFreeDrawSvgPath(element));
|
path.setAttribute("d", getFreeDrawSvgPath(element));
|
||||||
node.appendChild(path);
|
node.appendChild(path);
|
||||||
svgRoot.appendChild(node);
|
svgRoot.appendChild(node);
|
||||||
|
|
Loading…
Add table
Reference in a new issue