Fix fill of looping lines in exported SVG (#1396)

This commit is contained in:
fujimoto kyosuke 2020-04-12 11:46:46 +09:00 committed by GitHub
parent 038cff8793
commit 8b805d436f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -426,6 +426,9 @@ export function renderElementToSvg(
offsetY || 0 offsetY || 0
}) rotate(${degree} ${cx} ${cy})`, }) rotate(${degree} ${cx} ${cy})`,
); );
if (element.type === "line") {
node.setAttribute("fill-rule", "evenodd");
}
group.appendChild(node); group.appendChild(node);
}); });
svgRoot.appendChild(group); svgRoot.appendChild(group);