mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-31 19:54:37 +00:00
#1122 SVG import - relative coordinates - test coords-units-02-b
This commit is contained in:
@@ -847,7 +847,7 @@ public class SvgImporter {
|
||||
double cy = attr.length() > 0 ? parseCoordinate(attr, viewBox.height) : 0;
|
||||
|
||||
attr = childElement.getAttribute("r");
|
||||
double r = attr.length() > 0 ? parseLength(attr, viewBox.width/* todo: how much is 100%? */) : 0;
|
||||
double r = attr.length() > 0 ? parseLength(attr, (viewBox.width + viewBox.height) / 2) : 0;
|
||||
|
||||
processEllipse(shapeNum, shapes, transform, style, cx, cy, r, r);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user