summaryrefslogtreecommitdiff
path: root/crates/typst-svg/src
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-12-28 13:51:32 +0100
committerLaurenz <laurmaedje@gmail.com>2023-12-28 13:52:58 +0100
commit67ead94cc25d6663dc6afaebb6c7e781ba9c26bb (patch)
treebafdf207aeda1fa72d078ced5410ee31d5dc0e53 /crates/typst-svg/src
parente215f22965760bcc5df3204243597825e99b3fe7 (diff)
Fix naming inconsistency for strokes
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",