mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-22 01:06:15 +00:00
fix: svg shape export - use proper winding
This commit is contained in:
@@ -152,7 +152,7 @@ public class SVGShapeExporter extends DefaultSVGShapeExporter {
|
||||
gradient.setAttribute("id", gradientId);
|
||||
path.setAttribute("stroke", "none");
|
||||
path.setAttribute("fill", "url(#" + gradientId + ")");
|
||||
path.setAttribute("fill-rule", "evenodd");
|
||||
path.setAttribute("fill-rule", windingRule == ShapeTag.WIND_NONZERO ? "nonzero" : "evenodd");
|
||||
exporter.addToDefs(gradient);
|
||||
}
|
||||
|
||||
@@ -226,6 +226,7 @@ public class SVGShapeExporter extends DefaultSVGShapeExporter {
|
||||
finalizePath();
|
||||
String patternId = getPattern(bitmapId, matrix, colorTransform, smooth);
|
||||
path.setAttribute("ffdec:fill-bitmapId", "" + bitmapId);
|
||||
path.setAttribute("fill-rule", windingRule == ShapeTag.WIND_NONZERO ? "nonzero" : "evenodd");
|
||||
if (patternId != null) {
|
||||
path.setAttribute("style", "fill:url(#" + patternId + ")");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user