mirror of
https://github.com/visioncortex/vtracer.git
synced 2026-09-12 07:06:03 -07:00
svg namespace
This commit is contained in:
+1
-2
@@ -29,8 +29,7 @@ impl SvgFile {
|
|||||||
|
|
||||||
pub fn to_svg_file(&self) -> String {
|
pub fn to_svg_file(&self) -> String {
|
||||||
let mut result: Vec<String> = vec![format!(r#"<?xml version="1.0" encoding="UTF-8"?>
|
let mut result: Vec<String> = vec![format!(r#"<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<svg width="{}" height="{}">
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="{}" height="{}">"#, self.width, self.height)];
|
||||||
"#, self.width, self.height)];
|
|
||||||
|
|
||||||
for patch in &self.patches {
|
for patch in &self.patches {
|
||||||
let color = patch.color;
|
let color = patch.color;
|
||||||
|
|||||||
Reference in New Issue
Block a user