mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 20:10:51 +00:00
SVG import - close ellipse
This commit is contained in:
@@ -821,6 +821,7 @@ public class ShapeImporter {
|
||||
double sqrt2RYHalf = Math.sqrt(2) * ry / 2;
|
||||
double sqrt2Minus1RY = (Math.sqrt(2) - 1) * ry;
|
||||
|
||||
Point startPoint = new Point(0, 0);
|
||||
List<PathCommand> pathCommands = new ArrayList<>();
|
||||
PathCommand scr = new PathCommand();
|
||||
scr.command = 'M';
|
||||
@@ -866,6 +867,11 @@ public class ShapeImporter {
|
||||
pathCommands.add(cer);
|
||||
}
|
||||
|
||||
PathCommand serz = new PathCommand();
|
||||
serz.command = 'Z';
|
||||
serz.params = new double[]{startPoint.x, startPoint.y};
|
||||
pathCommands.add(serz);
|
||||
|
||||
processCommands(shapeNum, shapes, pathCommands, transform, style);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user