From 67ead94cc25d6663dc6afaebb6c7e781ba9c26bb Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 28 Dec 2023 13:51:32 +0100 Subject: Fix naming inconsistency for strokes --- crates/typst-svg/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/typst-svg/src') diff --git a/crates/typst-svg/src/lib.rs b/crates/typst-svg/src/lib.rs index b8143122..62f217f5 100644 --- a/crates/typst-svg/src/lib.rs +++ b/crates/typst-svg/src/lib.rs @@ -657,7 +657,7 @@ impl SVGRenderer { self.xml.write_attribute("stroke-width", &stroke.thickness.to_pt()); self.xml.write_attribute( "stroke-linecap", - match stroke.line_cap { + match stroke.cap { LineCap::Butt => "butt", LineCap::Round => "round", LineCap::Square => "square", @@ -665,7 +665,7 @@ impl SVGRenderer { ); self.xml.write_attribute( "stroke-linejoin", - match stroke.line_join { + match stroke.join { LineJoin::Miter => "miter", LineJoin::Round => "round", LineJoin::Bevel => "bevel", @@ -673,7 +673,7 @@ impl SVGRenderer { ); self.xml .write_attribute("stroke-miterlimit", &stroke.miter_limit.get()); - if let Some(pattern) = &stroke.dash_pattern { + if let Some(pattern) = &stroke.dash { self.xml.write_attribute("stroke-dashoffset", &pattern.phase.to_pt()); self.xml.write_attribute( "stroke-dasharray", -- cgit v1.2.3