Explorar el Código

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

fujimoto kyosuke hace 5 años
padre
commit
8b805d436f
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/renderer/renderElement.ts

+ 3 - 0
src/renderer/renderElement.ts

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