summaryrefslogtreecommitdiff
path: root/crates/typst-svg/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/typst-svg/src')
-rw-r--r--crates/typst-svg/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
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",