SVG export: rectangles, circles, ellipses, lines and straight paths as SVG shape elements (#4652)

This commit is contained in:
bflatastic
2026-10-30 09:45:59 +07:00
parent c733ae97f0
commit beb0ae6515
26 changed files with 294 additions and 45 deletions
+1 -1
View File
@@ -495,7 +495,7 @@ fn svg_export_writes_pattern_def() {
// The tile art is inside the pattern.
let start = svg.find("<pattern").unwrap();
let end = svg.find("</pattern>").unwrap();
assert!(svg[start..end].contains("<path"));
assert!(vectorcraft_testkit::svg_shapes(&svg[start..end]) > 0);
}
/// A pattern fill is written as a PDF tiling pattern, which PDF import reads back as a pattern